![]() |
VR-Forces 4.0.4 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. | |
| void | signal_pinPressed (DtAutoHideDock *dock) |
| This signal gets emitted when the pin button is pressed on this widget. | |
| void | signal_topLevelChanged (DtAutoHideDock *dock) |
| This signal gets emitted when this widget changes its status from docked to floating and vice versa. | |
| void | signal_resized (DtAutoHideDock *dock) |
| This signal gets emitted when this widget is resized. | |
| void | signal_destroyed (DtAutoHideDock *dock) |
| This signal gets emitted when this widget is about to be destroyed. | |
| void | signal_enter (DtAutoHideDock *dock) |
| This signal gets emitted when the mouse enters on this widget. | |
| void | signal_leave (DtAutoHideDock *dock) |
| This signal gets emitted when the mouse leaves this widget. | |
Public Member Functions | |
| DtAutoHideDock (makVrv::DtDe &de, const std::string title="", QWidget *parent=0, Qt::WindowFlags flags=0) | |
| Ctor. | |
| ~DtAutoHideDock () | |
| Dtor. | |
| virtual QPixmap & | icon () |
| Set/Get the icon. | |
| virtual void | setIcon (QPixmap &icon) |
| virtual DtAutoHideDockType | dockType () const |
| Set/Get the type of dock this item represents. | |
| virtual void | setDockType (DtAutoHideDockType t) |
| virtual bool | pinned () const |
| Set/Get the pin status. | |
| virtual void | setPinned (bool flag) |
| virtual void | setupGui () |
| Initializes the visuals of this object. | |
| virtual void | setTitle (const QString &title) |
Protected Slots | |
| virtual void | slot_closePressed () |
| Gets called when the close button is pressed on the titleBarWidget. | |
| virtual void | slot_pinPressed (bool flag) |
| Gets called when the pin is pressed on the titleBarWidget. | |
| virtual void | slot_topLevelChanged (bool) |
| Gets called when the widget changes its floating status. | |
Protected Member Functions | |
| virtual bool | eventFilter (QObject *p, QEvent *e) |
| Event filter installed to listen for mouse events from the titleBarWidget. | |
| virtual void | enterEvent (QEvent *event) |
| Automatic event that gets triggered when the mouse enters the widget. | |
| virtual void | leaveEvent (QEvent *event) |
| Automatic event that gets triggered when the mouse leaves the widget. | |
| virtual void | closeEvent (QCloseEvent *event) |
| This event gets automatically called when the widget is about to be closed. | |
| virtual void | paintEvent (QPaintEvent *p) |
| This event gets automatically called when the widget is about to be painted on screen. | |
| virtual void | resizeEvent (QResizeEvent *event) |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| DtExtendedTitleBarWidget * | myTitleBarWidget |
| QPixmap | myIcon |
| DtAutoHideDockType | myDockType |
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 std::string | title = "", |
||
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | flags = 0 |
||
| ) |
Ctor.
Dtor.
| virtual QPixmap& makVrf::DtAutoHideDock::icon | ( | ) | [virtual] |
Set/Get the icon.
| virtual void makVrf::DtAutoHideDock::setIcon | ( | QPixmap & | icon | ) | [virtual] |
| virtual DtAutoHideDockType makVrf::DtAutoHideDock::dockType | ( | ) | const [virtual] |
Set/Get the type of dock this item represents.
| virtual void makVrf::DtAutoHideDock::setDockType | ( | DtAutoHideDockType | t | ) | [virtual] |
| virtual bool makVrf::DtAutoHideDock::pinned | ( | ) | const [virtual] |
Set/Get the pin status.
| virtual void makVrf::DtAutoHideDock::setPinned | ( | bool | flag | ) | [virtual] |
| virtual void makVrf::DtAutoHideDock::setupGui | ( | ) | [virtual] |
Initializes the visuals of this object.
Reimplemented in makVrf::DtShapeObjectDefinitionDialog, makVrf::DtPointObjectDefinitionDialog, makVrf::DtCircleObjectDefinitionDialog, vrfCustomControlObjectExample::DtCustomControlObjectDefinitionDialog, and makVrf::DtIndirectFireObjectDefinitionDialog.
| virtual void makVrf::DtAutoHideDock::setTitle | ( | const QString & | title | ) | [virtual] |
| virtual bool makVrf::DtAutoHideDock::eventFilter | ( | QObject * | p, |
| QEvent * | e | ||
| ) | [protected, virtual] |
Event filter installed to listen for mouse events from the titleBarWidget.
| virtual void makVrf::DtAutoHideDock::enterEvent | ( | QEvent * | event | ) | [protected, virtual] |
Automatic event that gets triggered when the mouse enters the widget.
Reimplemented in BHAVE::BHAVE3DGui::DtGeneratePathDataWidget.
| virtual void makVrf::DtAutoHideDock::leaveEvent | ( | QEvent * | event | ) | [protected, virtual] |
Automatic event that gets triggered when the mouse leaves the widget.
Reimplemented in BHAVE::BHAVE3DGui::DtGeneratePathDataWidget.
| virtual void makVrf::DtAutoHideDock::closeEvent | ( | QCloseEvent * | event | ) | [protected, virtual] |
This event gets automatically called when the widget is about to be closed.
Reimplemented in makVrf::DtShapeObjectDefinitionDialog, makVrf::DtPointObjectDefinitionDialog, makVrf::DtCircleObjectDefinitionDialog, and BHAVE::BHAVE3DGui::DtGeneratePathDataWidget.
| virtual void makVrf::DtAutoHideDock::paintEvent | ( | QPaintEvent * | p | ) | [protected, virtual] |
This event gets automatically called when the widget is about to be painted on screen.
| virtual void makVrf::DtAutoHideDock::resizeEvent | ( | QResizeEvent * | event | ) | [protected, virtual] |
| void makVrf::DtAutoHideDock::signal_closing | ( | DtAutoHideDock * | dock | ) | [signal] |
This signal gets emitted when the widget is closing.
It passes itself as argument.
| void makVrf::DtAutoHideDock::signal_pinPressed | ( | DtAutoHideDock * | dock | ) | [signal] |
This signal gets emitted when the pin button is pressed on this widget.
It passes itself as argument.
| void makVrf::DtAutoHideDock::signal_topLevelChanged | ( | DtAutoHideDock * | dock | ) | [signal] |
This signal gets emitted when this widget changes its status from docked to floating and vice versa.
It passes itself as argument.
| void makVrf::DtAutoHideDock::signal_resized | ( | DtAutoHideDock * | dock | ) | [signal] |
This signal gets emitted when this widget is resized.
| void makVrf::DtAutoHideDock::signal_destroyed | ( | DtAutoHideDock * | dock | ) | [signal] |
This signal gets emitted when this widget is about to be destroyed.
| void makVrf::DtAutoHideDock::signal_enter | ( | DtAutoHideDock * | dock | ) | [signal] |
This signal gets emitted when the mouse enters on this widget.
| void makVrf::DtAutoHideDock::signal_leave | ( | DtAutoHideDock * | dock | ) | [signal] |
This signal gets emitted when the mouse leaves this widget.
| virtual void makVrf::DtAutoHideDock::slot_closePressed | ( | ) | [protected, virtual, slot] |
Gets called when the close button is pressed on the titleBarWidget.
Reimplemented in makVrf::DtShapeObjectDefinitionDialog, makVrf::DtPointObjectDefinitionDialog, and makVrf::DtCircleObjectDefinitionDialog.
| virtual void makVrf::DtAutoHideDock::slot_pinPressed | ( | bool | flag | ) | [protected, virtual, slot] |
Gets called when the pin is pressed on the titleBarWidget.
| virtual void makVrf::DtAutoHideDock::slot_topLevelChanged | ( | bool | ) | [protected, virtual, slot] |
Gets called when the widget changes its floating status.
makVrv::DtDe& makVrf::DtAutoHideDock::myDe [protected] |
Reimplemented in BHAVE::BHAVE3DGui::DtGeneratePathDataWidget.
QPixmap makVrf::DtAutoHideDock::myIcon [protected] |
DtAutoHideDockType makVrf::DtAutoHideDock::myDockType [protected] |