Enhanced dockable widget class. More...
#include <QtxDockWidget.h>
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 | |
Watcher * | myWatcher |
watcher object More... | |
Qt::Orientation | myOrientation |
dockable window orientation More... | |
Enhanced dockable widget class.
QtxDockWidget::QtxDockWidget | ( | const QString & | title, |
QWidget * | parent = 0 , |
||
Qt::WindowFlags | f = 0 |
||
) |
Constructor.
title | dockable widget title |
parent | parent widget |
f | widget flags |
References updateState().
QtxDockWidget::QtxDockWidget | ( | const bool | watch, |
QWidget * | parent = 0 , |
||
Qt::WindowFlags | f = 0 |
||
) |
Constructor.
watch | if true the event filter is installed to watch wigdet state changes to update it properly |
parent | parent widget |
f | widget flags |
References myWatcher, and updateState().
QtxDockWidget::QtxDockWidget | ( | QWidget * | parent, |
Qt::WindowFlags | f = 0 |
||
) |
Constructor.
parent | parent widget |
f | widget flags |
|
virtual |
Destructor.
References myWatcher.
|
signal |
|
virtual |
Get the recommended minimum size for the widget.
Qt::Orientation QtxDockWidget::orientation | ( | ) | const |
|
signal |
Emitted when the dockable window orientation is changed.
o | new window orientation |
|
protectedvirtual |
|
virtualslot |
Show/hide the dockable window.
on | new visibility state |
References aboutToShow(), QtxDockWidget::Watcher::hidden(), QtxDockWidget::Watcher::isEmpty(), myWatcher, and QtxDockWidget::Watcher::shown().
|
virtual |
Get the recommended size for the widget.
|
private |
Update dockable window state.
References myOrientation, orientation(), and orientationChanged().
|
private |
dockable window orientation
|
private |
watcher object