4 Bacula® - The Network Backup Solution
6 Copyright (C) 2007-2007 Free Software Foundation Europe e.V.
8 The main author of Bacula is Kern Sibbald, with contributions from
9 many others, a complete list can be found in the file AUTHORS.
10 This program is Free Software; you can redistribute it and/or
11 modify it under the terms of version two of the GNU General Public
12 License as published by the Free Software Foundation and included
15 This program is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25 Bacula® is a registered trademark of Kern Sibbald.
26 The licensor of Bacula is the Free Software Foundation Europe
27 (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
28 Switzerland, email:ftf@fsfeurope.org.
33 * Dirk Bartley, March 2007
42 * This class is inherited by all widget windows which are on the stack
43 * It is for the purpose of having a consistent set of functions and properties
44 * in all of the subclasses to accomplish tasks such as pulling a window out
45 * of or into the stack. It also provides virtual functions called
46 * from in mainwin so that subclasses can contain functions to allow them
47 * to populate the screens at the time of first viewing, (when selected) as
48 * opposed to the first creation of the console connection. The
49 * console is not connected until after the page selector tree has been
55 class Pages : public QWidget
61 void togglePageDocking();
66 QList<QAction*> m_contextActions;
67 virtual void PgSeltreeWidgetClicked();
68 virtual void currentStackItem();
69 void closeStackPage();
70 Console *console() { return m_console; };
72 void setContextMenuDockText();
73 void setTreeWidgetItemDockColor();
74 void consoleCommand(QString &);
75 void consoleCommand(QString &, int conn);
76 void consoleCommand(QString &, bool setCurrent);
77 void consoleCommand(QString &, int conn, bool setCurrent);
78 QString &name() { return m_name; };
79 void getVolumeList(QStringList &);
80 void getStatusList(QStringList &);
84 /* closeEvent is a virtual function inherited from QWidget */
85 virtual void closeEvent(QCloseEvent* event);
89 void pgInitialize(const QString &);
90 void pgInitialize(const QString &, QTreeWidgetItem *);
91 virtual void treeWidgetName(QString &);
92 virtual void changeEvent(QEvent *event);
93 void setConsoleCurrent();
98 bool m_dockOnFirstUse;
103 #endif /* _PAGES_H_ */