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

QToolBar Class Reference

Tool bar which is movable and layouts its widgets horizontal. More...

#include <QToolBar.h>

Inheritance diagram for QToolBar:

Inheritance graph
[legend]
Collaboration diagram for QToolBar:

Collaboration graph
[legend]

Public Methods

virtual void bringToFront (QWidget *widget)
 brings the given widget to the front. Must be a child widget

virtual void draw (QEvent *e)
 draws itself with OpenGL. Here is the OpenGL drawing code

virtual void layout ()
 layout the children widgets. This method is called every time the size is changed. Have to be overwritten for respond on size changes

virtual bool canDrag (QEvent *e)
 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

virtual bool processEvent (QEvent *e)
 processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner

virtual bool processMouseOwner (QEvent *e)
 processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner

virtual void childrenChanged ()
 called if a child is added/removed

virtual bool canFocus (QEvent *e)
 defines whether control can have keyboard focus. Should return true if Widget wants to get keyboard focus

virtual void Init ()
 initialization code

virtual void CleanUp ()
 clean up code

virtual int getMoverWidth ()
 getter method for MoverWidth

virtual void setMoverWidth (int newValue)
 setter method for MoverWidth

void print ()
 prints itself to the cout

 QToolBar (QWidget *aOwner)
 Constructor.

virtual ~QToolBar ()
 Destructor.

virtual void bringToFront (QWidget *widget)
 brings the given widget to the front. Must be a child widget

virtual void draw (QEvent *e)
 draws itself with OpenGL. Here is the OpenGL drawing code

virtual void layout ()
 layout the children widgets. This method is called every time the size is changed. Have to be overwritten for respond on size changes

virtual bool canDrag (QEvent *e)
 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

virtual bool processEvent (QEvent *e)
 processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner

virtual bool processMouseOwner (QEvent *e)
 processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner

virtual void childrenChanged ()
 called if a child is added/removed

virtual bool canFocus (QEvent *e)
 defines whether control can have keyboard focus. Should return true if Widget wants to get keyboard focus

virtual void Init ()
 initialization code

virtual void CleanUp ()
 clean up code

virtual int getMoverWidth ()
 getter method for MoverWidth

virtual void setMoverWidth (int newValue)
 setter method for MoverWidth

void print ()
 prints itself to the cout

 QToolBar (QWidget *aOwner)
 Constructor.

virtual ~QToolBar ()
 Destructor.


Protected Attributes

int MoverWidth
 Width of the left area, which is used to move the Toolbar.


Detailed Description

Tool bar which is movable and layouts its widgets horizontal.

Definition at line 16 of file QToolBar.h.


Constructor & Destructor Documentation

QToolBar::QToolBar QWidget   aOwner
 

Constructor.

Definition at line 127 of file QToolBar.cpp.

QToolBar::~QToolBar   [virtual]
 

Destructor.

Definition at line 137 of file QToolBar.cpp.

QToolBar::QToolBar QWidget   aOwner
 

Constructor.

virtual QToolBar::~QToolBar   [virtual]
 

Destructor.


Member Function Documentation

virtual void QToolBar::bringToFront QWidget   widget [virtual]
 

brings the given widget to the front. Must be a child widget

Reimplemented from QWidget.

void QToolBar::bringToFront QWidget   widget [virtual]
 

brings the given widget to the front. Must be a child widget

Reimplemented from QWidget.

Definition at line 14 of file QToolBar.cpp.

virtual bool QToolBar::canDrag QEvent   e [virtual]
 

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

Reimplemented from QWidget.

bool QToolBar::canDrag QEvent   e [virtual]
 

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

Reimplemented from QWidget.

Definition at line 61 of file QToolBar.cpp.

References QEvent::getX(), QWidget::Left, and MoverWidth.

virtual bool QToolBar::canFocus QEvent   e [virtual]
 

defines whether control can have keyboard focus. Should return true if Widget wants to get keyboard focus

Reimplemented from QWidget.

bool QToolBar::canFocus QEvent   e [virtual]
 

defines whether control can have keyboard focus. Should return true if Widget wants to get keyboard focus

Reimplemented from QWidget.

Definition at line 85 of file QToolBar.cpp.

virtual void QToolBar::childrenChanged   [virtual]
 

called if a child is added/removed

Reimplemented from QWidget.

void QToolBar::childrenChanged   [virtual]
 

called if a child is added/removed

Reimplemented from QWidget.

Definition at line 79 of file QToolBar.cpp.

References layout().

virtual void QToolBar::CleanUp   [virtual]
 

clean up code

Reimplemented from QWidget.

void QToolBar::CleanUp   [virtual]
 

clean up code

Reimplemented from QWidget.

Definition at line 98 of file QToolBar.cpp.

virtual void QToolBar::draw QEvent   e [virtual]
 

draws itself with OpenGL. Here is the OpenGL drawing code

Reimplemented from QWidget.

void QToolBar::draw QEvent   e [virtual]
 

draws itself with OpenGL. Here is the OpenGL drawing code

Reimplemented from QWidget.

Definition at line 20 of file QToolBar.cpp.

References QLookAndFeel::drawBevel(), QLookAndFeel::drawRect(), QLookAndFeel::getBackGroundColor(), QWidget::Height, QWidget::LookAndFeel, QColor::setAsCurrent(), and QWidget::Width.

virtual int QToolBar::getMoverWidth   [virtual]
 

getter method for MoverWidth

int QToolBar::getMoverWidth   [virtual]
 

getter method for MoverWidth

Definition at line 104 of file QToolBar.cpp.

References MoverWidth.

virtual void QToolBar::Init   [virtual]
 

initialization code

Reimplemented from QWidget.

void QToolBar::Init   [virtual]
 

initialization code

Reimplemented from QWidget.

Definition at line 91 of file QToolBar.cpp.

References QWidget::Height, and QWidget::Width.

virtual void QToolBar::layout   [virtual]
 

layout the children widgets. This method is called every time the size is changed. Have to be overwritten for respond on size changes

Reimplemented from QWidget.

void QToolBar::layout   [virtual]
 

layout the children widgets. This method is called every time the size is changed. Have to be overwritten for respond on size changes

Reimplemented from QWidget.

Definition at line 37 of file QToolBar.cpp.

References QWidget::Children, QWidget::Height, MoverWidth, and QWidget::Width.

Referenced by childrenChanged(), and main().

void QToolBar::print  
 

prints itself to the cout

Reimplemented from QWidget.

void QToolBar::print  
 

prints itself to the cout

Reimplemented from QWidget.

Definition at line 118 of file QToolBar.cpp.

virtual bool QToolBar::processEvent QEvent   e [virtual]
 

processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner

Reimplemented from QWidget.

bool QToolBar::processEvent QEvent   e [virtual]
 

processing mouse/keyboard events which are in widgets region. Mouse coordinates are relative to Owner

Reimplemented from QWidget.

Definition at line 67 of file QToolBar.cpp.

virtual bool QToolBar::processMouseOwner QEvent   e [virtual]
 

processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner

Reimplemented from QWidget.

bool QToolBar::processMouseOwner QEvent   e [virtual]
 

processing mouse events which are in Owner widget region. Mouse coordinates are relative to Owner

Reimplemented from QWidget.

Definition at line 73 of file QToolBar.cpp.

virtual void QToolBar::setMoverWidth int    newValue [virtual]
 

setter method for MoverWidth

void QToolBar::setMoverWidth int    newValue [virtual]
 

setter method for MoverWidth

Definition at line 110 of file QToolBar.cpp.

References MoverWidth.


Field Documentation

int QToolBar::MoverWidth [protected]
 

Width of the left area, which is used to move the Toolbar.

Definition at line 21 of file QToolBar.h.

Referenced by canDrag(), getMoverWidth(), layout(), and setMoverWidth().


The documentation for this class was generated from the following files:
Generated on Thu Mar 18 18:34:33 2004 for miniQT by doxygen1.2.18