Version: 9.12.0
QtxDockWidget Class Reference

Enhanced dockable widget class. More...

#include <QtxDockWidget.h>

Inheritance diagram for QtxDockWidget:
Inheritance graph

Classes

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

Public Slots

virtual void setVisible (bool)
 Show/hide the dockable window. More...
 

Signals

void orientationChanged (Qt::Orientation)
 Emitted when the dockable window orientation is changed. More...
 
void aboutToShow ()
 

Public Member Functions

 QtxDockWidget (const QString &, QWidget *=0, Qt::WindowFlags=0)
 Constructor. More...
 
 QtxDockWidget (const bool, QWidget *=0, Qt::WindowFlags=0)
 Constructor. More...
 
 QtxDockWidget (QWidget *, Qt::WindowFlags=0)
 Constructor. More...
 
virtual ~QtxDockWidget ()
 Destructor. More...
 
virtual QSize sizeHint () const
 Get the recommended size for the widget. More...
 
virtual QSize minimumSizeHint () const
 Get the recommended minimum size for the widget. More...
 
Qt::Orientation orientation () const
 Get dockable window orientation. More...
 

Protected Member Functions

virtual void resizeEvent (QResizeEvent *)
 Process resize event. More...
 

Private Member Functions

void updateState ()
 Update dockable window state. More...
 

Private Attributes

WatchermyWatcher
 watcher object More...
 
Qt::Orientation myOrientation
 dockable window orientation More...
 

Detailed Description

Enhanced dockable widget class.

Constructor & Destructor Documentation

◆ QtxDockWidget() [1/3]

QtxDockWidget::QtxDockWidget ( const QString &  title,
QWidget parent = 0,
Qt::WindowFlags  f = 0 
)

Constructor.

Parameters
titledockable widget title
parentparent widget
fwidget flags

References updateState().

◆ QtxDockWidget() [2/3]

QtxDockWidget::QtxDockWidget ( const bool  watch,
QWidget parent = 0,
Qt::WindowFlags  f = 0 
)

Constructor.

Parameters
watchif true the event filter is installed to watch wigdet state changes to update it properly
parentparent widget
fwidget flags

References myWatcher, and updateState().

◆ QtxDockWidget() [3/3]

QtxDockWidget::QtxDockWidget ( QWidget parent,
Qt::WindowFlags  f = 0 
)

Constructor.

Parameters
parentparent widget
fwidget flags

◆ ~QtxDockWidget()

QtxDockWidget::~QtxDockWidget ( )
virtual

Destructor.

References myWatcher.

Member Function Documentation

◆ aboutToShow

void QtxDockWidget::aboutToShow ( )
signal

◆ minimumSizeHint()

QSize QtxDockWidget::minimumSizeHint ( ) const
virtual

Get the recommended minimum size for the widget.

Returns
recommended dockable widget minimum size

◆ orientation()

Qt::Orientation QtxDockWidget::orientation ( ) const

Get dockable window orientation.

Returns
orientation type

References Horizontal, and Vertical.

◆ orientationChanged

QtxDockWidget::orientationChanged ( Qt::Orientation  o)
signal

Emitted when the dockable window orientation is changed.

Parameters
onew window orientation

◆ resizeEvent()

void QtxDockWidget::resizeEvent ( QResizeEvent *  e)
protectedvirtual

Process resize event.

Parameters
eevent

References updateState().

◆ setVisible

void QtxDockWidget::setVisible ( bool  on)
virtualslot

Show/hide the dockable window.

Parameters
onnew visibility state

References aboutToShow(), QtxDockWidget::Watcher::hidden(), QtxDockWidget::Watcher::isEmpty(), myWatcher, and QtxDockWidget::Watcher::shown().

◆ sizeHint()

QSize QtxDockWidget::sizeHint ( ) const
virtual

Get the recommended size for the widget.

Returns
recommended dockable widget size

◆ updateState()

void QtxDockWidget::updateState ( )
private

Update dockable window state.

References myOrientation, orientation(), and orientationChanged().

Member Data Documentation

◆ myOrientation

Qt::Orientation QtxDockWidget::myOrientation
private

dockable window orientation

◆ myWatcher

Watcher* QtxDockWidget::myWatcher
private

watcher object


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