Version: 9.12.0
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

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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
Update 
Remove 

Constructor & Destructor Documentation

◆ Watcher()

QtxDockWidget::Watcher::Watcher ( QtxDockWidget cont)

Constructor.

Parameters
contdockable widget to be watched

References installFilters(), myCont, and myShown.

Member Function Documentation

◆ customEvent()

void QtxDockWidget::Watcher::customEvent ( QEvent e)
protectedvirtual

Proces custom events.

Parameters
ecustom event (not used)

◆ eventFilter()

bool QtxDockWidget::Watcher::eventFilter ( QObject o,
QEvent e 
)
virtual

Custom event filter.

Parameters
oevent receiver object
eevent sent to object
Returns
true if further event processing should be stopped

◆ hidden()

void QtxDockWidget::Watcher::hidden ( QtxDockWidget dw)

Set internal status to "hidden".

Parameters
dwdockable widget

References QtxDockWidget::setVisible().

◆ hideContainer()

void QtxDockWidget::Watcher::hideContainer ( )
private

Hide the dock window being watched.

References QtxDockWidget::setVisible().

◆ installFilters()

void QtxDockWidget::Watcher::installFilters ( )
private

Install this object as event filter to all children widgets of the dockable widget being watched.

◆ isEmpty()

bool QtxDockWidget::Watcher::isEmpty ( ) const

◆ isVisible()

bool QtxDockWidget::Watcher::isVisible ( ) const

◆ setEmpty()

void QtxDockWidget::Watcher::setEmpty ( const bool  on)
private

◆ setVisible()

void QtxDockWidget::Watcher::setVisible ( const bool  on)
private

◆ showContainer()

void QtxDockWidget::Watcher::showContainer ( )
private

Show the dock window being watched.

References QtxDockWidget::setVisible().

◆ shown()

void QtxDockWidget::Watcher::shown ( QtxDockWidget dw)

Set internal status to "shown".

Parameters
dwdockable widget

References QtxDockWidget::setVisible().

◆ updateCaption()

void QtxDockWidget::Watcher::updateCaption ( )
private

Update the title of dockable window being watched.

◆ updateIcon()

void QtxDockWidget::Watcher::updateIcon ( )
private

Update the icon of dockable window being watched.

◆ updateVisibility()

void QtxDockWidget::Watcher::updateVisibility ( )
private

Update visibility state of all children widgets of the dockable widget being watched.

Member Data Documentation

◆ myBlock

bool QtxDockWidget::Watcher::myBlock
private

◆ myCont

QtxDockWidget* QtxDockWidget::Watcher::myCont
private

◆ myEmpty

bool QtxDockWidget::Watcher::myEmpty
private

◆ myShown

bool QtxDockWidget::Watcher::myShown
private

◆ myState

bool QtxDockWidget::Watcher::myState
private

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