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

Public Member Functions | |
| Watcher (QtxDockWidget *) | |
| Constructor. More... | |
| void | shown (QtxDockWidget *) |
| Set internal status to "shown". More... | |
| void | hidden (QtxDockWidget *) |
| Set internal status to "hidden". More... | |
| virtual bool | eventFilter (QObject *, QEvent *) |
| Custom event filter. More... | |
| bool | isEmpty () const |
| bool | isVisible () const |
Protected Types | |
| enum | { Update = QEvent::User , Remove } |
Protected Member Functions | |
| virtual void | customEvent (QEvent *) |
| Proces custom events. More... | |
Private Member Functions | |
| void | installFilters () |
| Install this object as event filter to all children widgets of the dockable widget being watched. More... | |
| void | showContainer () |
| Show the dock window being watched. More... | |
| void | hideContainer () |
| Hide the dock window being watched. More... | |
| void | updateIcon () |
| Update the icon of dockable window being watched. More... | |
| void | updateCaption () |
| Update the title of dockable window being watched. More... | |
| void | updateVisibility () |
| Update visibility state of all children widgets of the dockable widget being watched. More... | |
| void | setEmpty (const bool) |
| void | setVisible (const bool) |
Private Attributes | |
| QtxDockWidget * | myCont |
| bool | myState |
| bool | myEmpty |
| bool | myBlock |
| bool | myShown |
Internal class which goal is to watch parent dockable widget state changing.
| QtxDockWidget::Watcher::Watcher | ( | QtxDockWidget * | cont | ) |
Constructor.
| cont | dockable widget to be watched |
References installFilters(), myCont, and myShown.
|
protectedvirtual |
Proces custom events.
| e | custom event (not used) |
Custom event filter.
| o | event receiver object |
| e | event sent to object |
true if further event processing should be stopped | void QtxDockWidget::Watcher::hidden | ( | QtxDockWidget * | dw | ) |
Set internal status to "hidden".
| dw | dockable widget |
References QtxDockWidget::setVisible().
|
private |
Hide the dock window being watched.
References QtxDockWidget::setVisible().
|
private |
Install this object as event filter to all children widgets of the dockable widget being watched.
| bool QtxDockWidget::Watcher::isEmpty | ( | ) | const |
| bool QtxDockWidget::Watcher::isVisible | ( | ) | const |
|
private |
|
private |
|
private |
Show the dock window being watched.
References QtxDockWidget::setVisible().
| void QtxDockWidget::Watcher::shown | ( | QtxDockWidget * | dw | ) |
Set internal status to "shown".
| dw | dockable widget |
References QtxDockWidget::setVisible().
|
private |
Update the title of dockable window being watched.
|
private |
Update the icon of dockable window being watched.
|
private |
Update visibility state of all children widgets of the dockable widget being watched.
|
private |
|
private |
|
private |
|
private |
|
private |