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

visualization/SJobPropView.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: SJobPropView.h,v 1.4 2003/01/08 18:57:14 meierb Exp $
00008 
00009  Purpose : This view shows details of a given sjob, like weight, operation,
00010            processing time, partial processing time etc. . With this view
00011      you can also set some of the properties of the job. It is 
00012      displayed as long as the corresponding job is alive. If the job
00013      is deleted, the view closes itself ( to avoid inconsistencies ).
00014      This is a "pure qt widget" view, i.e. there is no view element.
00015 
00016  RCS-Log:
00017  $Log: SJobPropView.h,v $
00018  Revision 1.4  2003/01/08 18:57:14  meierb
00019  added randomized release times
00020 
00021  Revision 1.3  2002/12/18 16:20:07  meierb
00022  removed some file
00023 
00024  Revision 1.2  2002/12/16 23:32:09  meierb
00025  *** empty log message ***
00026 
00027  Revision 1.1.1.1  2002/12/02 22:26:19  meierb
00028  my_schedule
00029 
00030  Revision 1.2  2002/11/11 16:19:36  taeubig
00031  changes in header inclusion
00032 
00033  Revision 1.1  2002/08/29 12:59:59  taeubig
00034  Added the sources
00035 
00036  Revision 1.10  2001/05/16 13:20:04  taeubig
00037  QT headers are included last because of "slots" conflict
00038 
00039  Revision 1.9  2000/08/21 23:04:21  hall
00040  more "intelligent" repaint (moved to SViewEl.cpp),
00041  fixes/workarounds for crazy bugs
00042 
00043  Revision 1.8  2000/01/16 18:43:01  kern
00044  java docs
00045 
00046  Revision 1.7  2000/01/12 09:27:43  kern
00047  added javadocs
00048 
00049  Revision 1.6  2000/01/09 09:39:44  kern
00050  added partial proc times and workplan
00051 
00052  Revision 1.5  2000/01/03 11:24:43  kern
00053  added comments
00054 
00055  Revision 1.4  1999/12/15 10:20:03  kern
00056  added shop job support
00057 
00058  Revision 1.3  1999/12/10 10:32:34  kern
00059  fixed crash bug
00060 
00061  Revision 1.2  1999/12/01 09:47:27  kern
00062  added preferences
00063 
00064  Revision 1.1  1999/11/29 11:45:05  kern
00065  added design structure
00066 
00067 
00068  * #end# ************************************************************* */   
00069 
00070 #ifndef SJOBPROPVIEW_H
00071 #define SJOBPROPVIEW_H 
00072 
00073 // system header files
00074 
00075 // project header files
00076 #include "../model/STaskSystem.h"
00077 #include "../general/SObserver.h"
00078 #include "SView.h"
00079 
00080 // QT header files
00081 #include <qframe.h>
00082 #include <qlabel.h>
00083 #include <qlineedit.h>
00084 #include <qlayout.h>
00085 #include <qpushbutton.h>
00086 #include <qlistview.h>
00087 
00096 class SJobPropView : public SView, SObserver
00097 {
00098   Q_OBJECT
00099 
00100 public:
00105   SJobPropView( STaskSystem &ts, int job, 
00106     QWidget *parent = NULL, const char *name = "" );
00107   ~SJobPropView() {};
00108   
00113   virtual QSize sizeHint() { return _pGrid->totalSizeHint(); };
00114 
00115 protected:
00118   virtual void update( const class SEvent & );
00119  
00120 private:
00121   STaskSystem *_pTS;
00124   int _job;
00127   QGridLayout *_pGrid;
00130   QLineEdit *_pNumOpsEdit;
00133   QLineEdit *_pWeightEdit;
00136   QLineEdit *_pProcTimeEdit;
00137   QLineEdit *_pExpProcTimeEdit;
00140   QLabel *_pRemProcTimeLabel;
00141 
00142   QLabel *_pDistLabel;
00145   QLabel *_pExpProcTimeLabel;
00148   QLabel *_pReleaseTimeLabel;
00151   QLabel *_pStateLabel;
00154   QLabel *_pDueTimeLabel; 
00155   QListView *_pOpTimeMachListView; 
00156   QButtonGroup *_pOpTimeMachGroup;
00157   QLineEdit *_pMachEdit, *_pPartProcTimeEdit;
00158   QPushButton *_pApplyBtn;
00162   void displayProperties();
00165   void displayShopProperties();
00166 
00167 private slots:
00170   void set();
00175   void timeMachSelChanged( QListViewItem* );
00179   void changeOperation();
00182   void enableApplyBtn( const QString& );
00185   void closeAndDelete();
00186 };
00187 
00188 #endif //SJOBPROPVIEW_H

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