]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/qt-console/PAGES
Do not restore spliiter settings if the settings do not contain settings
[bacula/bacula] / bacula / src / qt-console / PAGES
index 51286c774fa4ec6906619593bdd7b5d78af24d5b..ec019637827e73c79ea8c74e656e36a4b2447516 100644 (file)
@@ -19,3 +19,26 @@ dockPage();
    item in the page selector */
 setCurrent();
 
+Watch out for console not being connected yet gotchya's.  The console is not yet
+connected when the first base set of widgets are created on the stack.  Use a
+function like populate() to place objects in the window.  Call populate from
+virtual function void ClassName::currentStackItem().  Embed inside condition
+similar to if(!m_populated) {} so as to populate only the first time the page
+comes to the front.
+
+The major features that the pages class provides:
+dockPage, undockPage and togglePageDocking for docking.
+closeEvent to redock an undocked page when it is closed.
+virtual functions PgSeltreeWidgetClicked() and currentStackItem() to give pages
+the opportunity to have behaviours on events
+closeStackPage() to delete both the page object and it's page selector widget.
+consoleCommand(QString &command) to execute a console command
+setTitle() for setting the title of a window that will display when undocked.
+setCurrent() for making the page and tree widget item of an object selected and
+in the front of the stack.
+
+Closing
+Use the function closeStackPage() to close from within the class.  Otherwise, if
+there are pointers which need to be deleted, use a destructor.  The m_closeable
+page member will determine whether the option to close will appear in context
+menu of page selector.