![]() |
VR-Forces 4.0.4 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 makVrv::DtDockable::~DtDockable | ( | ) | [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 bool makVrv::DtDockable::isDocked | ( | ) | const [virtual] |
Check to see if we are in a container.
| virtual void makVrv::DtDockable::setContainerVisible | ( | bool | visible | ) | [virtual] |
call either shows or hides container base upon the input.
| virtual void makVrv::DtDockable::setContainerMovable | ( | bool | moveable | ) | [virtual] |
Set whether the container is moveable.
| virtual void makVrv::DtDockable::setContainerFloatable | ( | bool | floatable | ) | [virtual] |
Set whether the container is floatable.
| virtual void makVrv::DtDockable::setContainerClosable | ( | bool | closeable | ) | [virtual] |
Set whether the container is closeable.
| virtual bool makVrv::DtDockable::isContainerHidden | ( | ) | const [virtual] |
Returns true if container is hidden.
| virtual bool makVrv::DtDockable::isContainerMovable | ( | ) | const [virtual] |
Returns true if container is moveable.
| virtual bool makVrv::DtDockable::isContainerFloatable | ( | ) | const [virtual] |
Returns true if container is floatable.
| virtual bool makVrv::DtDockable::isContainerClosable | ( | ) | const [virtual] |
Returns true if container is closeable.
| virtual void makVrv::DtDockable::showContainer | ( | ) | [virtual] |
Show the container.
Reimplemented in makVrf::DtExtendedDockable.
| virtual void makVrv::DtDockable::hideContainer | ( | ) | [virtual] |
Hide the container.
Reimplemented in makVrf::DtExtendedDockable.
| virtual void makVrv::DtDockable::floatContainer | ( | ) | [virtual] |
Float the container.
| virtual void makVrv::DtDockable::unfloatContainer | ( | ) | [virtual] |
Un float the container.
| virtual void makVrv::DtDockable::removeContainer | ( | ) | [virtual] |
Untabs the container.
Reimplemented in makVrv::DtQtPagePanel.
| virtual bool makVrv::DtDockable::initiallyVisible | ( | ) | const [virtual] |
Virtual function needed for controlling if the widget is docked visible.
Reimplemented in makVrv::DtConsoleLogWidget.
| virtual Qt::DockWidgetArea makVrv::DtDockable::initialDockWidgetLocation | ( | ) | const [virtual] |
Virtual function needed for controlling if the widget is docked visible.
| virtual bool makVrv::DtDockable::containerTabbed | ( | ) | const [virtual] |
Tells whether the container is tabbed or not.
| virtual int makVrv::DtDockable::containerTabIndex | ( | ) | const [virtual] |
If the container is tabbed, returns the position of the container inside the tab structure.
Returns -1 otherwise.
| virtual void makVrv::DtDockable::getContainerTabbedGeometry | ( | int & | x, |
| int & | y, | ||
| int & | width, | ||
| int & | height | ||
| ) | const [virtual] |
Gets the geometry of the container if it is tabbed.
Returns -1 in every one of the arguments otherwise.
| virtual QWidget* makVrv::DtDockable::container | ( | ) | [virtual] |
Returns the QDockWidget or other container that holds this widget.
| virtual void makVrv::DtDockable::setContainer | ( | QWidget * | cont | ) | [virtual] |
Set with the QDockWidget or other container that holds this widget.
Reimplemented in makVrv::DtQtPagePanel.
| virtual void makVrv::DtDockable::bringToTop | ( | ) | [virtual] |
Brings the container to the front (when it is tabbed)
Reimplemented in makVrv::DtQtPagePanel.
| virtual void makVrv::DtDockable::setDockWidgetItem | ( | DtDockWidgetItem * | item | ) | [virtual] |
If this dockable is the target of a menu item, a pointer to to the associated menu item.
Used during GUI restoration
| virtual DtDockWidgetItem* makVrv::DtDockable::dockWidgetItem | ( | ) | const [virtual] |
Get the associated menu item, if any.
| virtual void makVrv::DtDockable::connectContainerToDockItem | ( | ) | [virtual] |
The menu item create does this the first time, but we need to do it explicitly on GUI restores.
| QTabBar* makVrv::DtDockable::tabBar | ( | ) | const [protected] |
Returns the container tab bar object if myContainer is tabbed.
friend class DtDockWidgetItem [friend] |
QWidget* makVrv::DtDockable::myContainer [protected] |
my Container widget
std::string makVrv::DtDockable::myClassName [protected] |
DtDe& makVrv::DtDockable::myDe [protected] |
Reimplemented in makVrv::DtConsoleLogWidget, and makVrv::DtConnectedSlavesWidget.
bool makVrv::DtDockable::myIsFloatable [protected] |
bool makVrv::DtDockable::myIsClosable [protected] |
bool makVrv::DtDockable::myIsMovable [protected] |
DtDockWidgetItem* makVrv::DtDockable::myDockWidgetItem [protected] |