*/
#include <QtGui>
+#include "pages.h"
#include "ui_brestore.h"
#include "ui_restore.h"
#include "ui_prerestore.h"
class Console;
+/*
+ * The pre-restore dialog selects the Job/Client to be restored
+ * It really could use considerable enhancement.
+ */
class prerestoreDialog : public QDialog, public Ui::prerestoreForm
{
Q_OBJECT
public:
prerestoreDialog(Console *parent);
-public slots:
+private slots:
void accept();
void reject();
void job_name_change(int index);
};
+/*
+ * The restore dialog is brought up once we are in the Bacula
+ * restore tree routines. It handles putting up a GUI tree
+ * representation of the files to be restored.
+ */
class restoreDialog : public QDialog, public Ui::restoreForm
{
Q_OBJECT
public:
restoreDialog(Console *parent);
+ void fillDirectory();
+ char *get_cwd();
+ bool cwd(const char *);
-public slots:
-
+private slots:
+ void accept();
+ void reject();
+ void fileDoubleClicked(QTreeWidgetItem *item, int column);
+ void upButtonPushed();
+ void unmarkButtonPushed();
+ void markButtonPushed();
private:
-
+ Console *m_console;
+ QString m_cwd;
};
-class bRestore : public QWidget, public Ui::bRestoreForm
+class bRestore : public Pages, public Ui::bRestoreForm
{
Q_OBJECT
public:
- bRestore(QStackedWidget *parent);
+ bRestore();
+ ~bRestore();
public slots:
};
-
-
#endif /* _RESTORE_H_ */