00001 /* #start# *********************************************************** 00002 00003 Scheduling Simulator 00004 Lehrstuhl f"ur Effiziente Algorithmen 00005 Technische Universit"at M"unchen 00006 00007 File : $Id: SDAGView.h,v 1.4 2003/01/08 18:57:14 meierb Exp $ 00008 00009 Purpose : This view is the parent view for the dag view element. It manages 00010 the graphical context and the mouse events. 00011 It is a pure SViewEl-Container. 00012 00013 RCS-Log: 00014 $Log: SDAGView.h,v $ 00015 Revision 1.4 2003/01/08 18:57:14 meierb 00016 added randomized release times 00017 00018 Revision 1.1.1.1 2002/12/02 22:26:19 meierb 00019 my_schedule 00020 00021 Revision 1.2 2002/11/11 16:19:36 taeubig 00022 changes in header inclusion 00023 00024 Revision 1.1 2002/08/29 12:59:59 taeubig 00025 Added the sources 00026 00027 Revision 1.11 2001/05/16 13:20:04 taeubig 00028 QT headers are included last because of "slots" conflict 00029 00030 Revision 1.10 2000/08/21 23:04:16 hall 00031 more "intelligent" repaint (moved to SViewEl.cpp), 00032 fixes/workarounds for crazy bugs 00033 00034 Revision 1.9 2000/05/29 20:00:54 taeubig 00035 Updated #includes for new subdirectories 00036 00037 Revision 1.8 2000/05/24 13:02:42 taeubig 00038 New compiler (gcc-2.95) and new Qt (2.1) 00039 Replaced "list" by "leda_list" etc. 00040 00041 Revision 1.7 2000/01/16 18:42:56 kern 00042 java docs 00043 00044 Revision 1.6 2000/01/12 09:27:38 kern 00045 added javadocs 00046 00047 Revision 1.5 1999/11/29 11:46:04 kern 00048 added design structure 00049 00050 00051 Revision 1.4 1999/11/19 16:11:10 hall 00052 changed SObserver::update( SEvent & ) to ...( const SEvent & ) 00053 00054 Revision 1.3 1999/11/16 10:06:18 kern 00055 added visualization 00056 00057 Revision 1.2 1999/01/29 10:04:07 schickin 00058 Project-Headers added. 00059 00060 00061 * #end# ************************************************************* */ 00062 00063 #ifndef SDAGVIEW_H 00064 #define SDAGVIEW_H 00065 00066 // system header files 00067 00068 // project header files 00069 #include "SView.h" 00070 #include "SDAGViewEl.h" 00071 #include "../model/jobs/SJob.h" 00072 00073 // QT header files 00074 #include <qstring.h> 00075 #include <qpixmap.h> 00076 00082 class SDAGView : public SView 00083 { 00084 Q_OBJECT 00085 00086 public: 00089 SDAGView( STaskSystem &ts, QWidget* parent = 0, QString name = 0 ); 00090 ~SDAGView(); 00095 // void repaint( QRect rect ); 00096 00097 signals: 00101 void numberOfNodes( int ); 00105 void numberOfEdges( int ); 00106 00107 public slots: 00110 bool load(); 00111 00112 protected: 00116 virtual void mousePressEvent( QMouseEvent* ); 00120 virtual void mouseReleaseEvent( QMouseEvent* ); 00124 virtual void mouseMoveEvent( QMouseEvent* ); 00125 00126 private: 00129 SDAGViewEl *_pDAGViewEl; 00130 }; 00131 00132 #endif //SDAGVIEW_H