Version: 6.3.1
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes

QtxToolBar.Watcher Class Reference

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

Inheritance diagram for QtxToolBar.Watcher:
Inheritance graph

Public Member Functions

 Watcher (QtxToolBar *)
 Constructor.
void shown (QtxToolBar *)
 Set internal status to "shown".
void hidden (QtxToolBar *)
 Set internal status to "hidden".
virtual bool eventFilter (QObject *, QEvent *)
 Custom event filter.
bool isEmpty () const
bool isVisible () const

Protected Member Functions

virtual void customEvent (QEvent *)
 Proces custom events.

Private Types

enum  { Install = QEvent::User, Update }

Private Member Functions

void installFilters ()
 Install this object as event dilter to all children widgets of the toolbar being watched.
void showContainer ()
 Show the toolbar being watched.
void hideContainer ()
 Hide the toolbar being watched.
void updateVisibility ()
 Update visibility state of all children widgets of the toolbar being watched.
void setEmpty (const bool)
void setVisible (const bool)

Private Attributes

QtxToolBarmyCont
bool myState
bool myEmpty

Member Enumeration Documentation

anonymous enum [private]
Enumerator:
Install 
Update 

Constructor & Destructor Documentation

QtxToolBar.Watcher::Watcher ( QtxToolBar cont)

Member Function Documentation

void QtxToolBar.Watcher::shown ( QtxToolBar tb)
Parameters:
tbtoolbar

References QtxToolBar.setVisible().

void QtxToolBar.Watcher::hidden ( QtxToolBar tb)
Parameters:
tbtoolbar

References QtxToolBar.setVisible().

bool QtxToolBar.Watcher::eventFilter ( QObject o,
QEvent e 
) [virtual]
Parameters:
oevent receiver object
eevent sent to object
Returns:
true if further event processing should be stopped
bool QtxToolBar.Watcher::isEmpty ( ) const
bool QtxToolBar.Watcher::isVisible ( ) const
void QtxToolBar.Watcher::customEvent ( QEvent e) [protected, virtual]
Parameters:
ecustom event
void QtxToolBar.Watcher::installFilters ( ) [private]
void QtxToolBar.Watcher::showContainer ( ) [private]
void QtxToolBar.Watcher::hideContainer ( ) [private]
void QtxToolBar.Watcher::updateVisibility ( ) [private]
void QtxToolBar.Watcher::setEmpty ( const bool  on) [private]
void QtxToolBar.Watcher::setVisible ( const bool  on) [private]

Field Documentation

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