00001 /* #start# *********************************************************** 00002 00003 Scheduling Simulator 00004 Lehrstuhl f"ur Effiziente Algorithmen 00005 Technische Universit"at M"unchen 00006 00007 File : $Id: SMachineViewWin.h,v 1.4 2003/01/08 18:57:14 meierb Exp $ 00008 00009 Purpose : This qmainwindow has two functions: 00010 1. It contains the machine views (one view for each machine in the 00011 tasksystem. 00012 2. Here you can add and delete machine. 00013 00014 RCS-Log: 00015 $Log: SMachineViewWin.h,v $ 00016 Revision 1.4 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.2 2002/11/11 16:19:36 taeubig 00023 changes in header inclusion 00024 00025 Revision 1.1 2002/08/29 12:59:59 taeubig 00026 Added the sources 00027 00028 Revision 1.8 2001/05/16 13:20:04 taeubig 00029 QT headers are included last because of "slots" conflict 00030 00031 Revision 1.7 2000/01/19 11:32:49 kern 00032 added view window baseclass for easier reuse 00033 00034 Revision 1.6 2000/01/16 18:43:02 kern 00035 java docs 00036 00037 Revision 1.5 2000/01/12 09:27:45 kern 00038 added javadocs 00039 00040 Revision 1.4 2000/01/07 12:01:47 kern 00041 added "adding/deleting machines feature" 00042 00043 Revision 1.3 2000/01/03 11:24:46 kern 00044 added comments 00045 00046 Revision 1.2 1999/12/21 10:24:46 kern 00047 moved machine settings from preferences to machineview 00048 00049 Revision 1.1 1999/12/10 10:29:53 kern 00050 added machine view 00051 00052 00053 * #end# ************************************************************* */ 00054 00055 #ifndef SMACHINEVIEWWIN_H 00056 #define SMACHINEVIEWWIN_H 00057 00058 // system header files 00059 00060 // project header files 00061 #include "SMachineView.h" 00062 #include "SViewWindow.h" 00063 00064 // QT header files 00065 #include <qlist.h> 00066 #include <qpushbutton.h> 00067 #include <qframe.h> 00068 #include <qlayout.h> 00069 00078 class SMachineViewWin : public SViewWindow 00079 { 00080 Q_OBJECT 00081 00082 public: 00085 SMachineViewWin( STaskSystem &ts, QWidget* parent = 0, QString name = 0 ); 00086 ~SMachineViewWin(); 00087 00088 public slots: 00092 void load(); 00093 00094 private: 00098 STaskSystem &_ts; 00101 QFrame *_pGrid; 00104 QGridLayout *_pMainGridLayout; 00108 int _row; 00112 int _col; 00116 int _maxCols; 00117 // button for adding and deleting machines 00118 QPushButton *_pAddMachBtn, *_pDelMachBtn; 00121 QList<SMachineView> *_pMachViewList; 00122 00123 private slots: 00126 void addMachine(); 00129 void delMachine(); 00130 00131 }; 00132 00133 #endif //SMACHINEVIEWWIN_H