X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fqt-console%2Fmainwin.h;h=c0cabd3b0769d0d682b21325c651aca32a88a08d;hb=e72538600e7a0dd4a07fa9066bb6eefa3645ef0c;hp=8001e9329f4ebddd3243aa00797590cfd701be99;hpb=18800f5ea61b6d6dc86ec610b41ad159a6f20918;p=bacula%2Fbacula diff --git a/bacula/src/qt-console/mainwin.h b/bacula/src/qt-console/mainwin.h index 8001e9329f..c0cabd3b07 100644 --- a/bacula/src/qt-console/mainwin.h +++ b/bacula/src/qt-console/mainwin.h @@ -25,7 +25,6 @@ (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich, Switzerland, email:ftf@fsfeurope.org. */ - /* * Version $Id$ * @@ -38,10 +37,15 @@ #define _MAINWIN_H_ #include +#include +#include "pages.h" #include "ui_main.h" #include "label/label.h" #include "run/run.h" #include "restore/restore.h" +#include "medialist/medialist.h" +#include "joblist/joblist.h" +#include "clients/clients.h" class Console; @@ -57,7 +61,23 @@ public: void writeSettings(); void readSettings(); void resetFocus() { lineEdit->setFocus(); }; - + void setContextMenuDockText(); + void setContextMenuDockText(Pages *, QTreeWidgetItem *); + void setTreeWidgetItemDockColor(Pages *, QTreeWidgetItem *); + void setTreeWidgetItemDockColor(Pages *); + void hashInsert(QTreeWidgetItem *, Pages *); + void hashRemove(Pages *); + void hashRemove(QTreeWidgetItem *, Pages *); + QTreeWidgetItem *topItem() { return m_topItem; }; + Console *console() { return m_console; }; + Pages* getFromHash(QTreeWidgetItem *); + QTreeWidgetItem* getFromHash(Pages *); + /* This hash is to get the page when the page selector widget is known */ + QHash m_pagehash; + /* This hash is to get the page selector widget when the page is known */ + QHash m_widgethash; + void createPageJobList(QString &, QString &, QTreeWidgetItem *parent, + Console *console); public slots: void input_line(); @@ -67,6 +87,11 @@ public slots: void labelDialogClicked(); void runDialogClicked(); void restoreDialogClicked(); + void undockWindowButton(); + void treeItemChanged(QTreeWidgetItem *, QTreeWidgetItem *); + void stackItemChanged(int); + void toggleDockContextWindow(); + void closePage(); protected: void closeEvent(QCloseEvent *event); @@ -74,11 +99,17 @@ protected: private: void createConnections(); - void createStackedWidgets(); + void createPages(); + QTreeWidgetItem *createTopPage(char *name); + QTreeWidgetItem *createPage(char *name, QTreeWidgetItem *parent); + void createPagebRestore(QTreeWidgetItem *parent, Console *console); + void createPageMediaList(QTreeWidgetItem *parent, Console *console); + void createPageClients(QTreeWidgetItem *parent, Console *console); private: - QString m_UserInput; Console *m_console; + QTreeWidgetItem *m_topItem; + Pages *m_pagespophold; QStringList m_cmd_history; int m_cmd_last; };