Main Page   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

/cygdrive/d/Eigene Dateien/!DProcs/code_gen/QToolBar.h

Go to the documentation of this file.
00001 // Class QToolBar 
00002 // Filename QToolBar.h 
00003 // FaPra 2003-2004, A5, Alexander Kramer
00004 
00005 #ifndef QToolBar_h 
00006 #define QToolBar_h 
00007 
00008 
00009 //! Pre-declaration of QToolBar
00010 class QToolBar;
00011 
00012 
00013 #include "QWidget.h"
00014 
00015 //! Tool bar which is movable and layouts its widgets horizontal
00016 class QToolBar : public QWidget
00017 {
00018 protected:
00019 //! Width of the left area, which is used to move the Toolbar
00020 int MoverWidth;
00021 
00022 public:
00023 //! brings the given widget to the front. Must be a child widget
00024 virtual void bringToFront( QWidget*  widget );
00025 
00026 //! draws itself with OpenGL. Here is the OpenGL drawing code
00027 virtual void draw( QEvent*  e );
00028 
00029 //! layout the children widgets. This method is called every time the size is changed. Have to be overwritten for respond on size changes
00030 virtual void layout();
00031 
00032 //! have to return true if widget should be dragged with mouse. This method is overwritten in sub classes. If returns true, widget will be dragged
00033 virtual bool canDrag( QEvent*  e );
00034 
00035 //! processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner
00036 virtual bool processEvent( QEvent*  e );
00037 
00038 //! processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner
00039 virtual bool processMouseOwner( QEvent*  e );
00040 
00041 //! called if a child is added/removed
00042 virtual void childrenChanged();
00043 
00044 //! defines whether control can have keyboard focus. Should return true if Widget wants to get keyboard focus
00045 virtual bool canFocus( QEvent*  e );
00046 
00047 //! initialization code
00048 virtual void Init();
00049 
00050 //! clean up code
00051 virtual void CleanUp();
00052 
00053 //! getter method for MoverWidth
00054 virtual int getMoverWidth();
00055 
00056 //! setter method for MoverWidth
00057 virtual void setMoverWidth( int  newValue );
00058 
00059 //! prints itself to the cout
00060  void print();
00061 
00062 //! Constructor
00063   QToolBar( QWidget*  aOwner );
00064 
00065 //! Destructor
00066 virtual  ~QToolBar();
00067 
00068 
00069 };
00070 #endif
00071 

Generated on Thu Mar 18 18:33:48 2004 for miniQT by doxygen1.2.18