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

QtxDockWidget.Watcher Class Reference

Internal class which goal is to watch parent dockable widget state changing.

Inheritance diagram for QtxDockWidget.Watcher:
Inheritance graph

Public Member Functions

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

Protected Types

enum  { Update = QEvent::User, Remove }

Protected Member Functions

virtual void customEvent (QEvent *)
 Proces custom events.

Private Member Functions

void installFilters ()
 Install this object as event filter to all children widgets of the dockable widget being watched.
void showContainer ()
 Show the dock window being watched.
void hideContainer ()
 Hide the dock window being watched.
void updateIcon ()
 Update the icon of dockable window being watched.
void updateCaption ()
 Update the title of dockable window being watched.
void updateVisibility ()
 Update visibility state of all children widgets of the dockable widget being watched.
void setEmpty (const bool)
void setVisible (const bool)

Private Attributes

QtxDockWidgetmyCont
bool myState
bool myEmpty
bool myBlock
bool myShown

Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
Update 
Remove 

Constructor & Destructor Documentation

QtxDockWidget.Watcher::Watcher ( QtxDockWidget cont)
Parameters:
contdockable widget to be watched

References QtxDockWidget.Watcher.installFilters(), QtxDockWidget.Watcher.myCont, and QtxDockWidget.Watcher.myShown.


Member Function Documentation

void QtxDockWidget.Watcher::shown ( QtxDockWidget dw)
Parameters:
dwdockable widget

References QtxDockWidget.setVisible().

void QtxDockWidget.Watcher::hidden ( QtxDockWidget dw)
Parameters:
dwdockable widget

References QtxDockWidget.setVisible().

bool QtxDockWidget.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 QtxDockWidget.Watcher::isEmpty ( ) const
bool QtxDockWidget.Watcher::isVisible ( ) const
void QtxDockWidget.Watcher::customEvent ( QEvent e) [protected, virtual]
Parameters:
ecustom event (not used)
void QtxDockWidget.Watcher::installFilters ( ) [private]

References test_table.l.

void QtxDockWidget.Watcher::showContainer ( ) [private]
void QtxDockWidget.Watcher::hideContainer ( ) [private]
void QtxDockWidget.Watcher::updateIcon ( ) [private]
void QtxDockWidget.Watcher::updateCaption ( ) [private]
void QtxDockWidget.Watcher::updateVisibility ( ) [private]

References test_table.l.

void QtxDockWidget.Watcher::setEmpty ( const bool  on) [private]
void QtxDockWidget.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