Version: 6.3.1
Data Structures | Public Slots | Public Member Functions | Protected Member Functions | Private Attributes

QtxToolBar Class Reference

Enhanced toolbar class.

#include <QtxToolBar.h>

Inheritance diagram for QtxToolBar:
Inheritance graph

Data Structures

class  Watcher
 Internal class which goal is to watch parent toolbar state changing. More...

Public Slots

virtual void setVisible (bool)
 Show/hide the toolbar.

Public Member Functions

 QtxToolBar (const bool, const QString &, QWidget *)
 Constructor.
 QtxToolBar (const QString &, QWidget *)
 Constructor.
 QtxToolBar (const bool, QWidget *=0)
 Constructor.
 QtxToolBar (QWidget *=0)
 Constructor.
virtual ~QtxToolBar ()
 Destructor.
QMainWindowmainWindow () const
 Get parent main window.

Protected Member Functions

virtual bool event (QEvent *)

Private Attributes

WatchermyWatcher
 watcher object
bool myStretch
 stretching toolbar flag (not used)

Constructor & Destructor Documentation

QtxToolBar::QtxToolBar ( const bool  watch,
const QString &  label,
QWidget parent 
)
Parameters:
watchif true the event filter is installed to watch toolbar state changes to update it properly
labeltoolbar title
parentparent widget

References myWatcher.

QtxToolBar::QtxToolBar ( const QString &  label,
QWidget parent 
)
Parameters:
labeltoolbar title
parentparent widget
QtxToolBar::QtxToolBar ( const bool  watch,
QWidget parent = 0 
)
Parameters:
watchif true the event filter is installed to watch toolbar state changes to update it properly
parentparent widget

References myWatcher.

QtxToolBar::QtxToolBar ( QWidget parent = 0)
Parameters:
parentparent widget
QtxToolBar::~QtxToolBar ( ) [virtual]

Member Function Documentation

QMainWindow * QtxToolBar::mainWindow ( ) const
Returns:
main window pointer
void QtxToolBar::setVisible ( bool  visible) [virtual, slot]
Parameters:
onnew visibility state

References QtxToolBar.Watcher.hidden(), myWatcher, and QtxToolBar.Watcher.shown().

bool QtxToolBar::event ( QEvent e) [protected, virtual]

Field Documentation

bool QtxToolBar.myStretch [private]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS