00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00033 
00034 
00035 
00036 
00037 #ifndef SMESHTOPVIEWEL_H
00038 #define SMESHTOPVIEWEL_H
00039 
00040 
00041 
00042 
00043 #include "STopViewEl.h"
00044 #include "SJobViewEl.h"
00045 #include "../model/SMachines.h"
00046 #include "../model/topos/SMeshTopology.h"
00047 #include "../logging/SGanttLog.h"
00048 
00049 class SMeshTopViewEl : public STopViewEl {
00050 public:
00051   SMeshTopViewEl(SJobViewEl &proto, SMeshTopology &top);
00052   SMeshTopViewEl(SJobViewEl &proto, SMeshTopology &top, STaskSystem &ts);
00053 
00054   virtual void paint( QPaintDevice *pd, QRect rect );
00055   void load();
00056   QRegion getRegion() ;
00057 
00058 protected:
00059   virtual void update( const class SEvent & );
00060 
00061 private:
00062   SMeshTopology &_top;
00063 
00064   SGanttLog *_pGanttLog;
00065 
00066   
00067   int _machines_h;
00068   int _machines_w;
00069 
00070   int _x;
00071   int _y;
00072   int _w;
00073   int _h;
00074   int _minH;
00075   int _minW;
00076   bool _resetNeeded;
00077   QFont _myFont;  
00078 
00079   void init();
00080 
00081   void paintChart( QPaintDevice *pd, QRect rect );
00082   void paintBackground( QPaintDevice *pd, QRect rect );
00083 };
00084 
00085 
00086 #endif