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

visualization/SGanttViewWin.h

Go to the documentation of this file.
00001 /* #start# ***********************************************************
00002 
00003                              Scheduling Simulator
00004                     Lehrstuhl f"ur Effiziente Algorithmen
00005                        Technische Universit"at M"unchen
00006 
00007  File    : $Id: SGanttViewWin.h,v 1.5 2003/01/08 18:57:14 meierb Exp $
00008 
00009  Purpose : This window has two purposes:
00010            1. It contains a scrollview which is the container for 
00011         the gantt view.
00012      2. It displays the result of the SOptCriterionLog in the statusbar.
00013 
00014  RCS-Log:
00015  $Log: SGanttViewWin.h,v $
00016  Revision 1.5  2003/01/08 18:57:14  meierb
00017  added randomized release times
00018 
00019  Revision 1.1.1.1  2002/12/02 22:26:19  meierb
00020  my_schedule
00021 
00022  Revision 1.3  2002/11/11 16:19:36  taeubig
00023  changes in header inclusion
00024 
00025  Revision 1.2  2002/10/08 05:21:21  woerster
00026  added actions and a toolbar
00027 
00028  Revision 1.1  2002/08/29 12:59:59  taeubig
00029  Added the sources
00030 
00031  Revision 1.8  2001/05/16 13:20:04  taeubig
00032  QT headers are included last because of "slots" conflict
00033 
00034  Revision 1.7  2000/01/19 11:32:47  kern
00035  added view window baseclass for easier reuse
00036 
00037  Revision 1.6  2000/01/16 18:43:00  kern
00038  java docs
00039 
00040  Revision 1.5  2000/01/12 09:27:42  kern
00041  added javadocs
00042 
00043  Revision 1.4  2000/01/03 11:25:23  kern
00044  uses feedevent for logger
00045 
00046  Revision 1.3  1999/12/27 10:10:06  kern
00047  added optcriterion logger
00048 
00049  Revision 1.2  1999/12/20 10:44:36  kern
00050  gantt view now uses gantt chart
00051 
00052  Revision 1.1  1999/12/06 14:10:47  kern
00053  added gantt view
00054 
00055 
00056  * #end# ************************************************************* */  
00057  
00058 #ifndef SGANTTVIEWWIN_H
00059 #define SGANTTVIEWWIN_H 
00060 
00061 // system header files
00062 
00063 // project header files
00064 #include "../model/STaskSystem.h"
00065 #include "../logging/SOptCriterionLog.h"
00066 #include "../general/SObserver.h"
00067 #include "SViewWindow.h"
00068 #include "SGanttView.h"
00069 
00070 // QT header files
00071 #include <qscrollview.h>
00072 #include <qlabel.h>
00073 #include <qtoolbar.h>
00074 
00083 class SGanttViewWin : public SViewWindow, SObserver
00084 {
00085   Q_OBJECT
00086 
00087 public:
00090   SGanttViewWin( STaskSystem &ts, QWidget* parent = 0, QString name = 0 );
00091   ~SGanttViewWin();
00092 
00093 public slots:
00098   void load();
00099 
00100 protected:
00103   virtual void update( const class SEvent & );
00104 
00105 private:  
00106   STaskSystem &_ts;
00109   QLabel *_pOptCritLabel;
00112   SOptCriterionLog *_pOptCritLogger;
00115   QScrollView *_pGanttScrollView;
00116 
00118   QToolBar *_toolbar;
00119   
00120   SGanttView  *_pGanttView;
00123   void initLogger();
00126   void displayOptCrit();
00127 }; 
00128 
00129 #endif //SGANTTVIEWWIN_H

Generated on Thu May 22 16:48:09 2003 for Sketch-it! by doxygen1.2.18