#include <ScheduleWin.h>
Inherits QMainWindow, and SObserver.
Inheritance diagram for ScheduleWindow:
Signals | |
void | sload () |
Public Methods | |
ScheduleWindow () | |
~ScheduleWindow () | |
void | setupActions () |
void | setupMenuBar () |
void | setupToolBar () |
void | setupStatusBar () |
void | updateMatching (const SClassification &classif) |
void | updateMatching () |
int | getNumberOfAlgorithms () |
const SSchedAlgorithm *const * | getAlgArray () const |
leda_list< leda_string > | getNamesOfAlgorithms () |
leda_list< leda_string > | getNamesOfIncompatibleAlgorithms () |
STaskSystem & | getTaskSystem () |
virtual void | update (const SEvent &event)=0 |
Protected Methods | |
virtual void | showEvent (QShowEvent *) |
virtual void | hideEvent (QHideEvent *) |
virtual void | closeEvent (QCloseEvent *) |
void | update (const class SEvent &) |
|
The constructor creates a new scheduling main window. The decorations ( i.e. menubar, toolbars, statusbar ) and the only instance of the tasksystem are created here. |
|
The destructor of the main window. |
|
This function overides the closeEvent() function from QMainWindow. The CloseEvent occures if the application is about to be closed. This event is used here to save the current positions of the open views and the schedule window, so that they can be restored the next time the application will be started. |
|
|
|
|
|
|
|
|
|
|
|
This function overides the hideEvent() function from QMainWindow. If a QHideEvent occured ( the user wants to minimize the main window) the open views are also hidden by this function. |
|
Creation of the actions that are used in the menus and toolbars. |
|
The creation of the menubar. |
|
The creation of the statusbar. |
|
The creation of the different toolbars. |
|
This function overides the showEvent() function from QMainWindow. It tries to place the schedule window on its last position. If the main window was hidden, it also shows all views, that are already open. |
|
This signal is emitted after a new tasksystem was loaded from file or created with the generator. It should be connected to the load/startup routines of the views, so they can update themselfs. |
|
Here the class is informed of an event, when an observed component has sent an event by SObservable::notifyObservers()
Implemented in SGanttLog, SLogger, SJobArray, and STaskSystem. |
|
This update function is mainly used to get information about the modification of the tasksystem. This is for example setting a new logger/algorithm, adding/deleting jobs etc. In such a case the main window will disable the navigation buttons except the reset button to prevent any inconsistencies. |
|
|
|
|