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

visualization/SViewWindow.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: SViewWindow.h,v 1.4 2003/01/08 18:57:15 meierb Exp $
00008 
00009  Purpose : This window is a modified QMainWindow.
00010            It emits closing signals and has a load slot for starting the 
00011      creation of views after loading/creating a new tasksystem.
00012 
00013  RCS-Log:
00014  $Log: SViewWindow.h,v $
00015  Revision 1.4  2003/01/08 18:57:15  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.2  2000/08/20 23:12:47  taeubig
00028  bugfix
00029 
00030  Revision 1.1  2000/01/19 11:32:50  kern
00031  added view window baseclass for easier reuse
00032 
00033 
00034  * #end# ************************************************************* */   
00035 #ifndef SVIEWWINDOW_H
00036 #define SVIEWWINDOW_H 
00037 
00038 // system header files
00039 
00040 // project header files
00041 #include "../general/SPref.h"
00042 
00043 // QT header files
00044 #include <qmainwindow.h>
00045 #include <qpoint.h>
00046 
00051 class SViewWindow : public QMainWindow
00052 {
00053   Q_OBJECT
00054 
00055 public:
00058   SViewWindow( QWidget* parent = 0, QString name = 0 ) : 
00059     QMainWindow( parent, name ) {};
00060 
00067   // void setOldPos( QPoint p ) { _oldPos = p; };
00068 
00069 signals:
00072   void closing();
00073 
00074 public slots:
00079   virtual void load() = 0;
00083 /* 
00084   virtual void polish() { 
00085     // to be real sure to place the window where it was before we need to 
00086     // place it two times
00087     move( 0, 0 );
00088     move( _oldPos );
00089     QMainWindow::polish();
00090   };
00091 */
00092 protected: 
00096   virtual void closeEvent( QCloseEvent* ) { emit ( closing() ); };
00099   /*
00100   virtual void hideEvent( QHideEvent* ) { 
00101     _oldPos = frameGeometry().topLeft(); 
00102   };
00103   */
00104 
00105 private:
00106   // the old position of the window
00107   // QPoint _oldPos;
00108 };
00109 
00110 #endif //SVIEWWINDOW_H

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