]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/PAGES
Addressed issue of long compiles. Simplify with Pages::setCurrent
[bacula/bacula] / bacula / src / qt-console / PAGES
1 Each page should have the following in the constructor 
2 /* this is the text identifying the page in the tree widget */
3 m_name = "Restore";
4
5 /* this sets values for the class based on the extern mainWin-> it sets
6    m_parent (the stacked widget),
7    m_console (from current console)
8    creates the page selector tree widget and sets it's name and inserts
9    itself in the double direction hashes */
10 pgInitialize(parentwidgetitem); or
11 pgInitialize(); which will have the director as parent in page selector
12
13 /* is this window always present or can the user remove it */
14 m_closeable = true;
15
16 /* put the page in the stack widget */
17 dockPage();
18 /* bring the page to the top of the widget by "selecting" the tree widget 
19    item in the page selector */
20 setCurrent();
21