]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/qt-console/restore/restore.h
Working directory pane in restore. Will get this into the stack next.
[bacula/bacula] / bacula / src / qt-console / restore / restore.h
index d5823d6d625d3328e730d4bda9bbe7e9f4b78148..98305b2d74db3025f9f3aa400aa6888521ff8013 100644 (file)
  */
 
 #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 
@@ -48,7 +53,7 @@ class prerestoreDialog : public QDialog, public Ui::prerestoreForm
 public:
    prerestoreDialog(Console *parent);
 
-public slots:
+private slots:
    void accept();
    void reject();
    void job_name_change(int index);
@@ -58,27 +63,46 @@ private:
 
 };
 
+/*  
+ * 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 directoryItemChanged(QTreeWidgetItem *, QTreeWidgetItem *);
+   void upButtonPushed();
+   void unmarkButtonPushed();
+   void markButtonPushed();
+   void addDirectory(QString &);
 
 private:
-
+   Console *m_console;
+   QString m_cwd;
+   QHash<QString, QTreeWidgetItem *> m_dirPaths;
+   QHash<QTreeWidgetItem *,QString> m_dirTreeItems;
 };
 
 
-class bRestore : public QWidget, public Ui::bRestoreForm
+class bRestore : public Pages, public Ui::bRestoreForm
 {
    Q_OBJECT 
 
 public:
-   bRestore(QStackedWidget *parent);
+   bRestore();
+   ~bRestore();
 
 public slots:
 
@@ -86,6 +110,4 @@ private:
 
 };
 
-
-
 #endif /* _RESTORE_H_ */