![]() |
VR-Forces 4.1.1 Class Documentation
|
The dockable class provides the docking interface for any class to be a dockable widget in the DtDeMainWindow. More...

Public Member Functions | |
| DtDockable (DtDe &de, const std::string &className) | |
| CTOR By default a dockable widget is not docked, call dock to attempt to dock this widget. | |
| virtual | ~DtDockable () |
| DTOR. | |
| const std::string & | className () const |
| The class name. | |
| void | dock (Qt::DockWidgetArea area) |
| Dock this dockable in the main window, this function should only be called once. | |
| virtual bool | isDocked () const |
| Check to see if we are in a container. | |
| virtual void | setContainerVisible (bool visible) |
| call either shows or hides container base upon the input. | |
| virtual void | setContainerMovable (bool moveable) |
| Set whether the container is moveable. | |
| virtual void | setContainerFloatable (bool floatable) |
| Set whether the container is floatable. | |
| virtual void | setContainerClosable (bool closeable) |
| Set whether the container is closeable. | |
| virtual bool | isContainerHidden () const |
| Returns true if container is hidden. | |
| virtual bool | isContainerMovable () const |
| Returns true if container is moveable. | |
| virtual bool | isContainerFloatable () const |
| Returns true if container is floatable. | |
| virtual bool | isContainerClosable () const |
| Returns true if container is closeable. | |
| virtual void | showContainer () |
| Show the container. | |
| virtual void | hideContainer () |
| Hide the container. | |
| virtual void | floatContainer () |
| Float the container. | |
| virtual void | unfloatContainer () |
| Un float the container. | |
| virtual void | removeContainer () |
| Untabs the container. | |
| virtual bool | initiallyVisible () const |
| Virtual function needed for controlling if the widget is docked visible. | |
| virtual Qt::DockWidgetArea | initialDockWidgetLocation () const |
| Virtual function needed for controlling if the widget is docked visible. | |
| virtual bool | containerTabbed () const |
| Tells whether the container is tabbed or not. | |
| virtual int | containerTabIndex () const |
| If the container is tabbed, returns the position of the container inside the tab structure. | |
| virtual void | getContainerTabbedGeometry (int &x, int &y, int &width, int &height) const |
| Gets the geometry of the container if it is tabbed. | |
| virtual QWidget * | container () |
| Returns the QDockWidget or other container that holds this widget. | |
| virtual void | setContainer (QWidget *cont) |
| Set with the QDockWidget or other container that holds this widget. | |
| virtual void | bringToTop () |
| Brings the container to the front (when it is tabbed) | |
| virtual void | setDockWidgetItem (DtDockWidgetItem *item) |
| If this dockable is the target of a menu item, a pointer to to the associated menu item. | |
| virtual DtDockWidgetItem * | dockWidgetItem () const |
| Get the associated menu item, if any. | |
| virtual void | connectContainerToDockItem () |
| The menu item create does this the first time, but we need to do it explicitly on GUI restores. | |
Protected Member Functions | |
| QTabBar * | tabBar () const |
| Returns the container tab bar object if myContainer is tabbed. | |
Protected Attributes | |
| QWidget * | myContainer |
| my Container widget | |
| std::string | myClassName |
| DtDe & | myDe |
| bool | myIsFloatable |
| bool | myIsClosable |
| bool | myIsMovable |
| DtDockWidgetItem * | myDockWidgetItem |
Friends | |
| class | DtDockWidgetItem |
The dockable class provides the docking interface for any class to be a dockable widget in the DtDeMainWindow.
| makVrv::DtDockable::DtDockable | ( | DtDe & | de, |
| const std::string & | className | ||
| ) |
CTOR By default a dockable widget is not docked, call dock to attempt to dock this widget.
|
virtual |
DTOR.
| const std::string& makVrv::DtDockable::className | ( | ) | const |
The class name.
| void makVrv::DtDockable::dock | ( | Qt::DockWidgetArea | area | ) |
Dock this dockable in the main window, this function should only be called once.
Dock depends on a a subclass which extends both dock and QWidget
|
virtual |
Check to see if we are in a container.
|
virtual |
call either shows or hides container base upon the input.
|
virtual |
Set whether the container is moveable.
|
virtual |
Set whether the container is floatable.
|
virtual |
Set whether the container is closeable.
|
virtual |
Returns true if container is hidden.
|
virtual |
Returns true if container is moveable.
|
virtual |
Returns true if container is floatable.
|
virtual |
Returns true if container is closeable.
|
virtual |
Show the container.
Reimplemented in makVrf::DtExtendedDockable.
|
virtual |
Hide the container.
Reimplemented in makVrf::DtExtendedDockable.
|
virtual |
Float the container.
|
virtual |
Un float the container.
|
virtual |
Untabs the container.
Reimplemented in makVrv::DtQtPagePanel.
|
virtual |
Virtual function needed for controlling if the widget is docked visible.
Reimplemented in makVrv::DtConsoleLogWidget.
|
virtual |
Virtual function needed for controlling if the widget is docked visible.
|
virtual |
Tells whether the container is tabbed or not.
|
virtual |
If the container is tabbed, returns the position of the container inside the tab structure.
Returns -1 otherwise.
|
virtual |
Gets the geometry of the container if it is tabbed.
Returns -1 in every one of the arguments otherwise.
|
virtual |
Returns the QDockWidget or other container that holds this widget.
|
virtual |
Set with the QDockWidget or other container that holds this widget.
Reimplemented in makVrv::DtQtPagePanel.
|
virtual |
Brings the container to the front (when it is tabbed)
Reimplemented in makVrv::DtQtPagePanel.
|
virtual |
If this dockable is the target of a menu item, a pointer to to the associated menu item.
Used during GUI restoration
|
virtual |
Get the associated menu item, if any.
|
virtual |
The menu item create does this the first time, but we need to do it explicitly on GUI restores.
|
protected |
Returns the container tab bar object if myContainer is tabbed.
|
friend |
|
protected |
my Container widget
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |