4 Bacula(R) - The Network Backup Solution
6 Copyright (C) 2000-2017 Kern Sibbald
8 The original author of Bacula is Kern Sibbald, with contributions
9 from many others, a complete list can be found in the file AUTHORS.
11 You may use this file and others of this release according to the
12 license defined in the LICENSE file, which includes the Affero General
13 Public License, v3.0 ("AGPLv3") and some additional permissions and
14 terms pursuant to its AGPLv3 Section 7.
16 This notice must be preserved when any source code is
17 conveyed and/or propagated.
19 Bacula(R) is a registered trademark of Kern Sibbald.
22 * Dirk Bartley, March 2007
31 * This class is inherited by all widget windows which are on the stack
32 * It is for the purpose of having a consistent set of functions and properties
33 * in all of the subclasses to accomplish tasks such as pulling a window out
34 * of or into the stack. It also provides virtual functions called
35 * from in mainwin so that subclasses can contain functions to allow them
36 * to populate the screens at the time of first viewing, (when selected) as
37 * opposed to the first creation of the console connection. The
38 * console is not connected until after the page selector tree has been
44 class Pages : public QWidget
54 void togglePageDocking();
58 virtual void PgSeltreeWidgetClicked();
59 virtual void currentStackItem();
60 void closeStackPage();
61 Console *console() { return m_console; };
63 void setContextMenuDockText();
64 void setTreeWidgetItemDockColor();
65 void consoleCommand(QString &);
66 void consoleCommand(QString &, bool setCurrent);
67 void consoleCommand(QString &, int conn, bool setCurrent=true, bool notify=true);
68 QString &name() { return m_name; };
69 void getVolumeList(QStringList &);
70 void getStatusList(QStringList &);
75 QList<QAction*> m_contextActions;
79 /* closeEvent is a virtual function inherited from QWidget */
80 virtual void closeEvent(QCloseEvent* event);
85 void pgInitialize(const QString &);
86 void pgInitialize(const QString &, QTreeWidgetItem *);
87 virtual void treeWidgetName(QString &);
88 virtual void changeEvent(QEvent *event);
89 void setConsoleCurrent();
96 bool m_dockOnFirstUse;
101 #endif /* _PAGES_H_ */