![]() |
VR-Forces 4.8 Class Documentation
|
Represents a new kind of dock widget: it has a "pin" button that allows the widget to pin/unpin from an autoHidePanel widget (if added to it) and a "close" button. More...

Public Types | |
| enum | DtAutoHideDockType { Palette = 0, Dialog } |
Signals | |
| void | signal_closing (DtAutoHideDock *dock) |
| This signal gets emitted when the widget is closing. More... | |
| void | signal_pinPressed (DtAutoHideDock *dock) |
| This signal gets emitted when the pin button is pressed on this widget. More... | |
| void | signal_topLevelChanged (DtAutoHideDock *dock) |
| This signal gets emitted when this widget changes its status from docked to floating and vice versa. More... | |
| void | signal_resized (DtAutoHideDock *dock) |
| This signal gets emitted when this widget is resized. More... | |
| void | signal_destroyed (DtAutoHideDock *dock) |
| This signal gets emitted when this widget is about to be destroyed. More... | |
| void | signal_enter (DtAutoHideDock *dock) |
| This signal gets emitted when the mouse enters on this widget. More... | |
| void | signal_leave (DtAutoHideDock *dock) |
| This signal gets emitted when the mouse leaves this widget. More... | |
Public Member Functions | |
| DtAutoHideDock (makVrv::DtDe &de, const QString &title="", const std::string &className="", QWidget *parent=0, Qt::WindowFlags flags=0) | |
| Ctor. More... | |
| ~DtAutoHideDock () | |
| Dtor. More... | |
| virtual const QIcon & | icon () |
| Set/Get the icon. More... | |
| virtual void | setIcon (const QIcon &icon) |
| virtual DtAutoHideDockType | dockType () const |
| Set/Get the type of dock this item represents. More... | |
| virtual void | setDockType (DtAutoHideDockType t) |
| virtual bool | pinned () const |
| Set/Get the pin status. More... | |
| virtual void | setPinned (bool flag) |
| virtual void | setupGui () |
| Initializes the visuals of this object. More... | |
| virtual void | setTitle (const QString &title) |
| virtual void | setAdjustToMinimumSize (bool) |
| Whether or not to adjust the size of the doc (on open) to minimum size. Default is true. More... | |
| virtual bool | adjustToMinimumSize () const |
| const std::string & | className () const |
Protected Slots | |
| virtual void | slot_closePressed () |
| Gets called when the close button is pressed on the titleBarWidget. More... | |
| virtual void | slot_pinPressed (bool flag) |
| Gets called when the pin is pressed on the titleBarWidget. More... | |
| virtual void | slot_topLevelChanged (bool) |
| Gets called when the widget changes its floating status. More... | |
Protected Member Functions | |
| virtual bool | eventFilter (QObject *p, QEvent *e) |
| Event filter installed to listen for mouse events from the titleBarWidget. More... | |
| virtual void | enterEvent (QEvent *event) |
| Automatic event that gets triggered when the mouse enters the widget. More... | |
| virtual void | leaveEvent (QEvent *event) |
| Automatic event that gets triggered when the mouse leaves the widget. More... | |
| virtual void | closeEvent (QCloseEvent *event) |
| This event gets automatically called when the widget is about to be closed. More... | |
| virtual void | paintEvent (QPaintEvent *p) |
| This event gets automatically called when the widget is about to be painted on screen. More... | |
| virtual void | resizeEvent (QResizeEvent *event) |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| DtExtendedTitleBarWidget * | myTitleBarWidget |
| QIcon | myIcon |
| DtAutoHideDockType | myDockType |
| bool | myAdjustToMinimumSize |
| std::string | myClassName |
Represents a new kind of dock widget: it has a "pin" button that allows the widget to pin/unpin from an autoHidePanel widget (if added to it) and a "close" button.
It also adds an entry inside the "View" menu to show/hide the dock (if it is a palette type)
| makVrf::DtAutoHideDock::DtAutoHideDock | ( | makVrv::DtDe & | de, |
| const QString & | title = "", |
||
| const std::string & | className = "", |
||
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | flags = 0 |
||
| ) |
Ctor.
| makVrf::DtAutoHideDock::~DtAutoHideDock | ( | ) |
Dtor.
|
virtual |
Set/Get the icon.
|
virtual |
|
virtual |
Set/Get the type of dock this item represents.
|
virtual |
|
virtual |
Set/Get the pin status.
|
virtual |
|
virtual |
Initializes the visuals of this object.
Reimplemented in makVrf::DtShapeObjectDefinitionDialog, makVrf::DtPointObjectDefinitionDialog, makVrf::DtBoxObjectDefinitionDialog, makVrf::DtCircleObjectDefinitionDialog, makVrf::DtComputedRouteDefinitionDialog, makVrf::DtNavigationAreaDefinitionDialog, makVrf::DtMissileTargetDefinitionDialog, makVrf::DtLocalWeatherAreaDefinitionDialog, makVrf::DtLocalWeatherBoxDefinitionDialog, makVrf::DtLocalWeatherCircleDefinitionDialog, vrfCustomControlObjectExample::DtCustomControlObjectDefinitionDialog, makVrf::DtCloudLayerBoxDefinitionDialog, makVrf::DtScenarioEventDefinitionDialog, makVrf::DtIntelCollectionAreaDefinitionDialog, makVrf::DtMinefieldDefinitionDialog, makVrf::DtContaminationAreaDefinitionDialog, makVrf::DtMunitionDetonationDefinitionDialog, makVrf::DtDynamicTerrainSwitchDialog, and makVrf::DtIndirectArtilleryObjectDefinitionDialog.
|
virtual |
|
virtual |
Whether or not to adjust the size of the doc (on open) to minimum size. Default is true.
|
virtual |
|
inline |
Event filter installed to listen for mouse events from the titleBarWidget.
|
protectedvirtual |
Automatic event that gets triggered when the mouse enters the widget.
|
protectedvirtual |
Automatic event that gets triggered when the mouse leaves the widget.
|
protectedvirtual |
This event gets automatically called when the widget is about to be closed.
Reimplemented in makVrf::DtShapeObjectDefinitionDialog, makVrf::DtPointObjectDefinitionDialog, makVrf::DtBoxObjectDefinitionDialog, makVrf::DtCircleObjectDefinitionDialog, and makVrf::DtComputedRouteDefinitionDialog.
|
protectedvirtual |
This event gets automatically called when the widget is about to be painted on screen.
|
protectedvirtual |
|
signal |
This signal gets emitted when the widget is closing.
It passes itself as argument.
|
signal |
This signal gets emitted when the pin button is pressed on this widget.
It passes itself as argument.
|
signal |
This signal gets emitted when this widget changes its status from docked to floating and vice versa.
It passes itself as argument.
|
signal |
This signal gets emitted when this widget is resized.
|
signal |
This signal gets emitted when this widget is about to be destroyed.
|
signal |
This signal gets emitted when the mouse enters on this widget.
|
signal |
This signal gets emitted when the mouse leaves this widget.
|
protectedvirtualslot |
Gets called when the close button is pressed on the titleBarWidget.
|
protectedvirtualslot |
Gets called when the pin is pressed on the titleBarWidget.
|
protectedvirtualslot |
Gets called when the widget changes its floating status.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |