![]() |
NDEVR
API Documentation
|
The root class that allows interface with the NDEVR API Widget Docking system. More...
Public Member Functions | |
| DockItem (ContainerWidgetBase *container=nullptr) | |
| Constructs a DockItem with an optional container. | |
| DockItem (RibbonArea ribbon_area, ContainerWidgetBase *container=nullptr) | |
| Constructs a DockItem with a preferred ribbon area and optional container. | |
| ContainerWidgetBase * | container () const |
| Returns the container widget that owns this dock item. | |
| FloatingWidget * | floatingWidget () const |
| Returns the floating widget if this dock item is currently floating. | |
| bool | isClosable () const |
| Checks whether this dock item can be closed by the user. | |
| bool | isDocked () const |
| Checks whether this dock item is currently docked in a section. | |
| bool | isDockSelected () const |
| Checks whether this dock item is currently selected. | |
| bool | isDockVisible () const |
| Checks whether this dock item is currently visible in its dock. | |
| bool | isHidable () const |
| Checks whether this dock item can be hidden by the user. | |
| bool | isMovable () const |
| Checks whether this dock item can be moved by the user. | |
| bool | isWindowable () const |
| Checks whether this dock item can be detached into a floating window. | |
| void | moveTabToEnd () |
| Moves this dock item's tab to the end of the tab bar. | |
| void | moveTabToStart () |
| Moves this dock item's tab to the start of the tab bar. | |
| SectionWidget * | section () const |
| Returns the section widget that currently contains this dock item. | |
| void | setClosable (bool closable) |
| Sets whether this dock item can be closed by the user. | |
| virtual void | setContainer (ContainerWidgetBase *container) |
| Sets the container widget that owns this dock item. | |
| void | setDockArea (DropArea drop_area, SectionWidget *section) |
| Sets the drop area and target section for docking this item. | |
| virtual void | setDockSelected (bool selected) |
| Sets whether this dock item is visually selected. | |
| void | setHidable (bool hidable) |
| Sets whether this dock item can be hidden by the user. | |
| virtual void | setIcon (const QIcon &icon) |
| Sets the icon displayed on this dock item's tab. | |
| virtual void | setIconID (const StringView &icon) |
| Sets the icon by resource identifier string. | |
| void | setMoveable (bool movable) |
| Sets whether this dock item can be moved by the user. | |
| void | setRibbonArea (RibbonArea ribbon_area) |
| Sets the preferred ribbon area for this dock item. | |
| void | setSettingsCallback (const std::function< void(PopupInfo)> &callback) |
| Sets the callback invoked when the settings action is triggered. | |
| void | setShowTab (bool show_tab) |
| Sets whether the tab for this dock item is shown. | |
| void | setTabFlat (bool flat) |
| Sets whether the tab for this dock item should have a flat appearance. | |
| std::function< void(PopupInfo)> | settingsCallback () |
| Returns the callback invoked when the settings action is triggered. | |
| virtual void | setTitle (const TranslatedString &title) |
| Sets the display title for this dock item. | |
| virtual void | setUseTabTitle (bool use_tab_title) |
| Sets whether the tab title should be used for display. | |
| void | setWindowable (bool hidable) |
| Sets whether this dock item can be detached into a floating window. | |
| bool | showTab () const |
| Checks whether the tab for this dock item is shown. | |
| virtual void | swapWith (DockItem *other_widget) |
| Swaps this dock item's position and section with another dock item. | |
| virtual const TranslatedString & | title () const |
| Returns the display title of this dock item. | |
| SectionIconTab * | titleWidget () const |
| Returns the icon/title tab widget associated with this dock item. | |
| bool | useTabTitle () const |
| Checks whether the tab title is used for display. | |
Protected Member Functions | |
| virtual void | createSectionContent () |
| Creates the SectionContent used to represent this dock item in the docking system. | |
| virtual void | initialize () |
| Initializes the dock item after construction, setting up internal state. | |
Protected Attributes | |
| QPointer< ContainerWidgetBase > | m_container |
| The container widget that owns this dock item. | |
| QIcon | m_icon |
| The QIcon displayed on this dock item's tab. | |
| String | m_icon_id |
| The icon resource identifier string. | |
| SectionIconTab * | m_icon_title |
| The icon/title tab widget for this dock item. | |
| bool | m_is_closable |
| Whether the user can close this dock item. | |
| bool | m_is_hidable |
| Whether the user can hide this dock item. | |
| bool | m_is_movable |
| Whether the user can move this dock item. | |
| bool | m_is_selected |
| Whether this dock item is currently selected. | |
| bool | m_is_windowable |
| Whether the user can detach this item into a floating window. | |
| SectionWidget * | m_original_section |
| The section widget this item was originally docked in. | |
| RibbonArea | m_preferred_ribbon_area |
| The preferred ribbon area for this dock item. | |
| SectionContent * | m_section_content |
| The section content representing this dock item. | |
| std::function< void(PopupInfo)> | m_settings_callback |
| Callback invoked when the settings action is triggered. | |
| bool | m_show_tab |
| Whether the tab for this dock item is shown. | |
| TranslatedString | m_title |
| The translated display title. | |
| bool | m_use_tab_title |
| Whether the tab title is used for display. | |
| UUID | m_uuid |
| The unique identifier for this dock item. | |
The root class that allows interface with the NDEVR API Widget Docking system.
Definition at line 55 of file DockItem.h.
|
explicit |
Constructs a DockItem with a preferred ribbon area and optional container.
| [in] | ribbon_area | The preferred ribbon area for this dock item. |
| [in] | container | The parent container widget, or nullptr. |
References container().
Referenced by DockItem(), and swapWith().
|
explicit |
Constructs a DockItem with an optional container.
| [in] | container | The parent container widget, or nullptr. |
References DockItem(), and container().
| ContainerWidgetBase * DockItem::container | ( | ) | const |
Returns the container widget that owns this dock item.
Referenced by CustomDockButton::CustomDockButton(), CustomDockButton::CustomDockButton(), CustomDockButton::CustomDockButton(), DockItem(), DockItem(), DockWidget< t_type >::DockWidget(), DockWidget< t_type >::DockWidget(), DockWidget< t_type >::DockWidget(), QCustomDockWidget::QCustomDockWidget(), QCustomDockWidget::QCustomDockWidget(), QCustomDockWidget::QCustomDockWidget(), and setContainer().
| FloatingWidget * DockItem::floatingWidget | ( | ) | const |
Returns the floating widget if this dock item is currently floating.
|
inline |
Checks whether this dock item can be closed by the user.
Definition at line 164 of file DockItem.h.
References m_is_closable.
| bool DockItem::isDocked | ( | ) | const |
Checks whether this dock item is currently docked in a section.
|
inline |
Checks whether this dock item is currently selected.
Definition at line 214 of file DockItem.h.
References m_is_selected.
| bool DockItem::isDockVisible | ( | ) | const |
Checks whether this dock item is currently visible in its dock.
|
inline |
Checks whether this dock item can be hidden by the user.
Definition at line 169 of file DockItem.h.
References m_is_hidable.
| bool DockItem::isMovable | ( | ) | const |
Checks whether this dock item can be moved by the user.
|
inline |
Checks whether this dock item can be detached into a floating window.
Definition at line 174 of file DockItem.h.
References m_is_windowable.
| SectionWidget * DockItem::section | ( | ) | const |
Returns the section widget that currently contains this dock item.
Referenced by setDockArea(), CustomDockButton::showButton(), QCustomDockWidget::showDock(), QCustomDockWidget::showDock(), and QCustomDockWidget::showDock().
| void DockItem::setClosable | ( | bool | closable | ) |
Sets whether this dock item can be closed by the user.
| [in] | closable | Whether the item is closable. |
|
virtual |
Sets the container widget that owns this dock item.
| [in] | container | The container widget to assign. |
References container().
| void DockItem::setDockArea | ( | DropArea | drop_area, |
| SectionWidget * | section ) |
|
virtual |
Sets whether this dock item is visually selected.
| [in] | selected | Whether the item is selected. |
Reimplemented in QCustomDockWidget.
| void DockItem::setHidable | ( | bool | hidable | ) |
Sets whether this dock item can be hidden by the user.
| [in] | hidable | Whether the item is hidable. |
|
virtual |
Sets the icon displayed on this dock item's tab.
| [in] | icon | The QIcon to display. |
Reimplemented in QCustomDockWidget.
|
virtual |
Sets the icon by resource identifier string.
| [in] | icon | The icon resource identifier. |
| void DockItem::setMoveable | ( | bool | movable | ) |
Sets whether this dock item can be moved by the user.
| [in] | movable | Whether the item is movable. |
| void DockItem::setRibbonArea | ( | RibbonArea | ribbon_area | ) |
Sets the preferred ribbon area for this dock item.
| [in] | ribbon_area | The ribbon area to assign. |
|
inline |
Sets the callback invoked when the settings action is triggered.
| [in] | callback | The settings callback function. |
Definition at line 179 of file DockItem.h.
References m_settings_callback.
| void DockItem::setShowTab | ( | bool | show_tab | ) |
Sets whether the tab for this dock item is shown.
| [in] | show_tab | Whether to show the tab. |
| void DockItem::setTabFlat | ( | bool | flat | ) |
Sets whether the tab for this dock item should have a flat appearance.
| [in] | flat | Whether the tab should be flat. |
|
inline |
Returns the callback invoked when the settings action is triggered.
Definition at line 184 of file DockItem.h.
References m_settings_callback.
|
virtual |
Sets the display title for this dock item.
| [in] | title | The translated title string. |
Reimplemented in QCustomDockWidget.
References title().
|
virtual |
Sets whether the tab title should be used for display.
| [in] | use_tab_title | Whether to use the tab title. |
| void DockItem::setWindowable | ( | bool | hidable | ) |
Sets whether this dock item can be detached into a floating window.
| [in] | hidable | Whether the item is windowable. |
| bool DockItem::showTab | ( | ) | const |
Checks whether the tab for this dock item is shown.
|
virtual |
Swaps this dock item's position and section with another dock item.
| [in] | other_widget | The dock item to swap with. |
References DockItem().
|
inlinevirtual |
Returns the display title of this dock item.
Definition at line 234 of file DockItem.h.
References m_title.
Referenced by setTitle(), QCustomDockWidget::setTitle(), and QCustomDockWidget::setTitleSlot().
| SectionIconTab * DockItem::titleWidget | ( | ) | const |
Returns the icon/title tab widget associated with this dock item.
| bool DockItem::useTabTitle | ( | ) | const |
Checks whether the tab title is used for display.