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

Enhanced dockable widget class.

#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...
 

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...
 

Constructor & Destructor Documentation

QtxDockWidget::QtxDockWidget ( const QString &  title,
QWidget parent = 0,
Qt::WindowFlags  f = 0 
)
Parameters
titledockable widget title
parentparent widget
fwidget flags

References updateState().

QtxDockWidget::QtxDockWidget ( const bool  watch,
QWidget parent = 0,
Qt::WindowFlags  f = 0 
)
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::QtxDockWidget ( QWidget parent,
Qt::WindowFlags  f = 0 
)
Parameters
parentparent widget
fwidget flags
QtxDockWidget::~QtxDockWidget ( )
virtual

Member Function Documentation

QSize QtxDockWidget::minimumSizeHint ( ) const
virtual
Returns
recommended dockable widget minimum size
Qt::Orientation QtxDockWidget::orientation ( ) const
Returns
orientation type

References Horizontal, and Vertical.

QtxDockWidget::orientationChanged ( Qt::Orientation  o)
signal
Parameters
onew window orientation
void QtxDockWidget::resizeEvent ( QResizeEvent *  e)
protectedvirtual
Parameters
eevent

References updateState().

void QtxDockWidget::setVisible ( bool  on)
virtualslot
QSize QtxDockWidget::sizeHint ( ) const
virtual
Returns
recommended dockable widget size
void QtxDockWidget::updateState ( )
private

Member Data Documentation

Qt::Orientation QtxDockWidget::myOrientation
private
Watcher* QtxDockWidget::myWatcher
private

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