Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QtxDockWidget::Watcher Class Reference

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

Inheritance diagram for QtxDockWidget::Watcher:
Inheritance graph

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

QtxDockWidgetmyCont
 
bool myState
 
bool myEmpty
 
bool myBlock
 
bool myShown
 

Detailed Description

Member Enumeration Documentation

anonymous enum
protected
Enumerator
Update 
Remove 

Constructor & Destructor Documentation

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

References installFilters(), myCont, and myShown.

Member Function Documentation

void QtxDockWidget::Watcher::customEvent ( QEvent e)
protectedvirtual
Parameters
ecustom event (not used)
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
void QtxDockWidget::Watcher::hidden ( QtxDockWidget dw)
Parameters
dwdockable widget

References QtxDockWidget::setVisible().

void QtxDockWidget::Watcher::hideContainer ( )
private
void QtxDockWidget::Watcher::installFilters ( )
private
bool QtxDockWidget::Watcher::isEmpty ( ) const
bool QtxDockWidget::Watcher::isVisible ( ) const
void QtxDockWidget::Watcher::setEmpty ( const bool  on)
private
void QtxDockWidget::Watcher::setVisible ( const bool  on)
private
void QtxDockWidget::Watcher::showContainer ( )
private
void QtxDockWidget::Watcher::shown ( QtxDockWidget dw)
Parameters
dwdockable widget

References QtxDockWidget::setVisible().

void QtxDockWidget::Watcher::updateCaption ( )
private
void QtxDockWidget::Watcher::updateIcon ( )
private
void QtxDockWidget::Watcher::updateVisibility ( )
private

Member Data Documentation

bool QtxDockWidget::Watcher::myBlock
private
QtxDockWidget* QtxDockWidget::Watcher::myCont
private
bool QtxDockWidget::Watcher::myEmpty
private
bool QtxDockWidget::Watcher::myShown
private
bool QtxDockWidget::Watcher::myState
private

The documentation for this class was generated from the following file: