Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ScheduleWindow Class Reference

#include <ScheduleWin.h>

Inherits QMainWindow, and SObserver.

Inheritance diagram for ScheduleWindow:

Inheritance graph
[legend]
List of all members.

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 ()
STaskSystemgetTaskSystem ()
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 &)

Detailed Description

This is the main window of the application. It contains the tasksystem and creates the different views. It is responsible for opening/closing the different views, navigating through the tasksystem (start/stop/reset the simulation). The logger and the algorithm for the tasksystem is set in this class. You can load a tasksystem from file or create a new tasksystem with the generator. It observes nearly all parts of the tasksystem to react to any event that occured.


Constructor & Destructor Documentation

ScheduleWindow::ScheduleWindow  
 

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.

ScheduleWindow::~ScheduleWindow  
 

The destructor of the main window.


Member Function Documentation

void ScheduleWindow::closeEvent QCloseEvent *    [protected, virtual]
 

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.

const SSchedAlgorithm* const* ScheduleWindow::getAlgArray   const [inline]
 

leda_list< leda_string > ScheduleWindow::getNamesOfAlgorithms  
 

leda_list< leda_string > ScheduleWindow::getNamesOfIncompatibleAlgorithms  
 

int ScheduleWindow::getNumberOfAlgorithms  
 

STaskSystem & ScheduleWindow::getTaskSystem  
 

void ScheduleWindow::hideEvent QHideEvent *    [protected, virtual]
 

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.

void ScheduleWindow::setupActions  
 

Creation of the actions that are used in the menus and toolbars.

void ScheduleWindow::setupMenuBar  
 

The creation of the menubar.

void ScheduleWindow::setupStatusBar  
 

The creation of the statusbar.

void ScheduleWindow::setupToolBar  
 

The creation of the different toolbars.

void ScheduleWindow::showEvent QShowEvent *    [protected, virtual]
 

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.

void ScheduleWindow::sload   [signal]
 

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.

virtual void SObserver::update const SEvent   event [pure virtual, inherited]
 

Here the class is informed of an event, when an observed component has sent an event by SObservable::notifyObservers()

Parameters:
event  event sent by an observed component (the reference is not guaranteed to be valid after the termination of the call to update()
See also:
SObservable::notifyObservers()

Implemented in SGanttLog, SLogger, SJobArray, and STaskSystem.

void ScheduleWindow::update const class SEvent   [protected]
 

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.

void ScheduleWindow::updateMatching  
 

void ScheduleWindow::updateMatching const SClassification   classif
 


The documentation for this class was generated from the following files:
Generated on Thu May 22 16:50:43 2003 for Sketch-it! by doxygen1.2.18