![]() |
NDEVR
API Documentation
|
The core container for objects using the NDEVR API Widget Docking system. More...
Public Member Functions | |
| SectionContent (ContainerWidgetBase *container, SectionTab *title, const std::function< void(SectionContent *)> &function, RibbonArea preferred_ribbon_area) | |
| Constructs a SectionContent with a deferred creation callback instead of an immediate widget. | |
| SectionContent (ContainerWidgetBase *container, SectionTab *title, QWidget *content, RibbonArea preferred_ribbon_area) | |
| Constructs a SectionContent with the given container, title tab, content widget, and ribbon area. | |
| bool | allowAutoHideTitle () const |
| Returns whether the title bar can be automatically hidden when not needed. | |
| bool | allowHide () const |
| Returns whether this section content is allowed to be hidden by the user. | |
| void | autoHideTitleChangedSignal (bool allow_hide) |
| Emitted when the auto-hide title setting changes. | |
| ContainerWidgetBase * | containerWidget () const |
| Returns the container widget that owns this section content. | |
| QWidget * | contentWidget () const |
| Returns the widget displaying the actual content. | |
| FloatingWidget * | floatingWidget () const |
| Returns the floating widget currently hosting this content, if any. | |
| bool | hasSpecialCallback () const |
| Checks whether a special callback has been set for this content. | |
| void | onCheckedClick () override |
| Called when the associated button dialog is checked or clicked. | |
| RibbonArea | preferredRibbonArea () const |
| Returns the preferred ribbon area for docking this content. | |
| void | retranslate () |
| Retranslates all user-facing strings for this section content. | |
| void | runSpecialCallback () |
| Executes the special callback function, passing this content as the argument. | |
| SectionTab * | sectionTab () const |
| Returns the section tab associated with this content. | |
| SectionWidget * | sectionWidget () const |
| Returns the section widget currently hosting this content, if any. | |
| void | setAllowAutoHideTitle (bool allow_hide) |
| Sets whether the title bar can be automatically hidden when not needed. | |
| void | setAllowHide (bool allow_hide) |
| Sets whether this section content is allowed to be hidden by the user. | |
| void | setContainer (ContainerWidgetBase *container) |
| Sets the parent container widget for this content. | |
| void | setContentWidget (QWidget *widget) |
| Sets the widget displaying the actual content. | |
| void | setFloatingWidget (FloatingWidget *widget) |
| Sets the floating widget that currently hosts this content. | |
| void | setPreferredRibbonArea (RibbonArea area) |
| Sets the preferred ribbon area for docking this content. | |
| void | setSectionWidget (SectionWidget *widget) |
| Sets the section widget that currently hosts this content. | |
| void | setSpecialCallback (const std::function< void(SectionContent *)> &callback) |
| Sets a special callback function to be invoked for deferred content creation. | |
| void | setTitle (const TranslatedString &title) |
| Sets the display title of this section content. | |
| const std::function< void(SectionContent *)> & | specialCallback () |
| Returns the special callback function, if one has been set. | |
| const TranslatedString & | title () const |
| Returns the display title of this section content. | |
| UUID | uid () const |
| Returns the unique identifier for this section content. | |
| Public Member Functions inherited from ButtonDialog | |
| virtual | ~ButtonDialog () |
| Virtual destructor. | |
| virtual void | addButton (Button *button) |
| Adds a button that controls the visibility of the dialog. | |
| PopupInfo | buttonDialogBestPopupInfo () const |
| Returns the best PopupInfo configuration based on the last pressed button's position. | |
| virtual void | removeButton (Button *button) |
| Removes a previously associated button. | |
| virtual void | setButtonsChecked (bool check) |
| Sets the checked state of all associated buttons. | |
Additional Inherited Members | |
| Protected Attributes inherited from ButtonDialog | |
| Buffer< QPointer< Button > > | m_buttons |
| All buttons associated with this dialog. | |
| QPointer< Button > | m_last_pressed |
| The most recently pressed button, used for popup positioning. | |
| bool | m_should_be_checked = false |
| Whether the associated buttons should be in the checked state. | |
The core container for objects using the NDEVR API Widget Docking system.
Contains information used to correctly display the content.
Definition at line 52 of file SectionContent.h.
| SectionContent::SectionContent | ( | ContainerWidgetBase * | container, |
| SectionTab * | title, | ||
| QWidget * | content, | ||
| RibbonArea | preferred_ribbon_area ) |
Constructs a SectionContent with the given container, title tab, content widget, and ribbon area.
| [in] | container | The parent container widget that owns this content. |
| [in] | title | The tab widget used for the title of this section. |
| [in] | content | The widget displaying the actual content. |
| [in] | preferred_ribbon_area | The preferred docking area for this content. |
References title().
| SectionContent::SectionContent | ( | ContainerWidgetBase * | container, |
| SectionTab * | title, | ||
| const std::function< void(SectionContent *)> & | function, | ||
| RibbonArea | preferred_ribbon_area ) |
Constructs a SectionContent with a deferred creation callback instead of an immediate widget.
| [in] | container | The parent container widget that owns this content. |
| [in] | title | The tab widget used for the title of this section. |
| [in] | function | A callback invoked to lazily create the content widget. |
| [in] | preferred_ribbon_area | The preferred docking area for this content. |
References title().
|
inline |
Returns whether the title bar can be automatically hidden when not needed.
Definition at line 190 of file SectionContent.h.
|
inline |
Returns whether this section content is allowed to be hidden by the user.
Definition at line 180 of file SectionContent.h.
| void SectionContent::autoHideTitleChangedSignal | ( | bool | allow_hide | ) |
Emitted when the auto-hide title setting changes.
| [in] | allow_hide | The new auto-hide title state. |
Referenced by setAllowAutoHideTitle().
| ContainerWidgetBase * SectionContent::containerWidget | ( | ) | const |
Returns the container widget that owns this section content.
| QWidget * SectionContent::contentWidget | ( | ) | const |
Returns the widget displaying the actual content.
|
inline |
Returns the floating widget currently hosting this content, if any.
Definition at line 116 of file SectionContent.h.
|
inline |
Checks whether a special callback has been set for this content.
Definition at line 161 of file SectionContent.h.
|
inline |
Returns the preferred ribbon area for docking this content.
Definition at line 146 of file SectionContent.h.
| SectionTab * SectionContent::sectionTab | ( | ) | const |
Returns the section tab associated with this content.
|
inline |
Returns the section widget currently hosting this content, if any.
Definition at line 111 of file SectionContent.h.
|
inline |
Sets whether the title bar can be automatically hidden when not needed.
| [in] | allow_hide | True to allow auto-hiding the title bar. |
Definition at line 185 of file SectionContent.h.
References autoHideTitleChangedSignal().
|
inline |
Sets whether this section content is allowed to be hidden by the user.
| [in] | allow_hide | True to allow hiding, false to prevent it. |
Definition at line 175 of file SectionContent.h.
| void SectionContent::setContainer | ( | ContainerWidgetBase * | container | ) |
Sets the parent container widget for this content.
| [in] | container | The container widget to assign. |
| void SectionContent::setContentWidget | ( | QWidget * | widget | ) |
Sets the widget displaying the actual content.
| [in] | widget | The content widget to assign. |
| void SectionContent::setFloatingWidget | ( | FloatingWidget * | widget | ) |
Sets the floating widget that currently hosts this content.
| [in] | widget | The floating widget to assign. |
| void SectionContent::setPreferredRibbonArea | ( | RibbonArea | area | ) |
Sets the preferred ribbon area for docking this content.
| [in] | area | The preferred ribbon area to set. |
| void SectionContent::setSectionWidget | ( | SectionWidget * | widget | ) |
Sets the section widget that currently hosts this content.
| [in] | widget | The section widget to assign. |
|
inline |
Sets a special callback function to be invoked for deferred content creation.
| [in] | callback | The callback function to assign. |
Definition at line 166 of file SectionContent.h.
|
inline |
Sets the display title of this section content.
| [in] | title | The translated title string to set. |
Definition at line 106 of file SectionContent.h.
References title().
|
inline |
Returns the special callback function, if one has been set.
Definition at line 156 of file SectionContent.h.
|
inline |
Returns the display title of this section content.
Definition at line 101 of file SectionContent.h.
Referenced by SectionContent(), SectionContent(), and setTitle().
| UUID SectionContent::uid | ( | ) | const |
Returns the unique identifier for this section content.