]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/qt-console/mainwin.h
dhb Implement dir_cmd in medialist remove dosql from console
[bacula/bacula] / bacula / src / qt-console / mainwin.h
index eed58b21855592b064d7a3df7840e5a7f09f4729..1f0a900e02860459eff9a8fd4712e161d49784bc 100644 (file)
@@ -1,7 +1,7 @@
 /*
    Bacula® - The Network Backup Solution
 
-   Copyright (C) 2000-2007 Free Software Foundation Europe e.V.
+   Copyright (C) 2007-2007 Free Software Foundation Europe e.V.
 
    The main author of Bacula is Kern Sibbald, with contributions from
    many others, a complete list can be found in the file AUTHORS.
 */
 
 /* 
+ *   Version $Id$
+ *
  * qt-console main window class definition.
  *
- *  Written by Kern Sibbald, January MMVI
+ *  Written by Kern Sibbald, January MMVII
  */
 
 #ifndef _MAINWIN_H_
 #define _MAINWIN_H_
 
 #include <QtGui>
+#include <QList>
+#include "pages.h"
 #include "ui_main.h"
+#include "label/label.h"
+#include "run/run.h"
+#include "restore/restore.h"
+#include "medialist/medialist.h"
 
 class Console;
 
@@ -49,16 +57,40 @@ public:
    void set_statusf(const char *fmt, ...);
    void set_status_ready();
    void set_status(const char *buf);
+   void writeSettings();
+   void readSettings();
+   void resetFocus() { lineEdit->setFocus(); };
+
 
 public slots:
    void input_line();
    void about();
    void treeItemClicked(QTreeWidgetItem *item, int column);
    void treeItemDoubleClicked(QTreeWidgetItem *item, int column);
+   void labelDialogClicked();
+   void runDialogClicked();
+   void restoreDialogClicked();
+   void undockWindow();
+   void undockWindowButton();
+
+protected:
+   void closeEvent(QCloseEvent *event);
+   void keyPressEvent(QKeyEvent *event);
+
+private:
+   void createConnections(); 
+   void createPages();
+   QTreeWidgetItem *createTopPage(char *name );
+   QTreeWidgetItem *createPage(char *name, QTreeWidgetItem *parent );
 
 private:
-   QString m_UserInput;
    Console *m_console;
+   Pages *m_pagespophold;
+   QList<Pages*> m_pageslist;
+   QList<Pages*> m_pagesindex;
+   QStringList m_cmd_history;
+   int m_cmd_last;
+   int m_pages;
 };
 
 #endif /* _MAINWIN_H_ */