From: Dirk H Bartley Date: Sun, 6 May 2007 14:07:52 +0000 (+0000) Subject: Update description of PAGES and changes to TODO. Also removed spacers X-Git-Tag: Release-7.0.0~6419 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5766289b378cf4df049ffe42418862b91abb2de2;p=bacula%2Fbacula Update description of PAGES and changes to TODO. Also removed spacers between up, mark and unmark in restore interface. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4712 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/PAGES b/bacula/src/qt-console/PAGES index 51286c774f..a232cc929e 100644 --- a/bacula/src/qt-console/PAGES +++ b/bacula/src/qt-console/PAGES @@ -19,3 +19,20 @@ 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. diff --git a/bacula/src/qt-console/TODO b/bacula/src/qt-console/TODO index 07027166ef..6d11dc8f0b 100644 --- a/bacula/src/qt-console/TODO +++ b/bacula/src/qt-console/TODO @@ -11,12 +11,9 @@ User preferences. With log to stdout options. Have settings for defaults of limits on joblist Test restore and get anything not working, working. +Add inteligence to prerestore. partially done. -Get restore into stack. - Should the jobs dialog be turned into a page as well?? -Possilbe: Turn run and label into docked pages. (remove button bar buttons??) - Update README describe bat.conf.example to bat.conf Add numerous are you sure dialog boxes. Like are you sure you want to @@ -101,6 +98,10 @@ global one defined in the mainWin class (if I remember right). ============================================================ DONE: ============================================================ +Get restore into stack. + Should the jobs dialog be turned into a page as well?? +Possilbe: Turn run and label into docked pages. (remove button bar buttons??) + Where and bootstrap are confused in runjobs of restore. This was just the labels. diff --git a/bacula/src/qt-console/pages.cpp b/bacula/src/qt-console/pages.cpp index 592649e632..76cebaec8b 100644 --- a/bacula/src/qt-console/pages.cpp +++ b/bacula/src/qt-console/pages.cpp @@ -234,7 +234,7 @@ void Pages::consoleCommand(QString &command) void Pages::changeEvent(QEvent *event) { if ((event->type() == QEvent::ActivationChange) && (isActiveWindow())) { - setCurrent(); + setCurrent(); } } diff --git a/bacula/src/qt-console/restore/restore.ui b/bacula/src/qt-console/restore/restore.ui index ed4af5bcbc..043ff8775f 100644 --- a/bacula/src/qt-console/restore/restore.ui +++ b/bacula/src/qt-console/restore/restore.ui @@ -5,8 +5,8 @@ 0 0 - 689 - 504 + 796 + 582 @@ -239,26 +239,10 @@ Up - :images/up.png + ../../../../../../../:images/up.png - - - - Qt::Horizontal - - - QSizePolicy::Expanding - - - - 16 - 20 - - - - @@ -279,26 +263,10 @@ Mark - :images/mark.png + ../../../../../../../:images/mark.png - - - - Qt::Horizontal - - - QSizePolicy::Expanding - - - - 16 - 20 - - - - @@ -319,7 +287,7 @@ Unmark - :images/unmark.png + ../../../../../../../:images/unmark.png