![]() |
NDEVR
API Documentation
|
A popup dialog for showing options or information to the user for a particular DesignObject. More...
Public Member Functions | |
| DesignObjectDialog (const DynamicPointer< QTDesignObject > &object, const ShowPropertiesSettings &style) | |
| Constructs a DesignObjectDialog for the given object and display style. | |
| DesignObjectDialog (const ShowPropertiesSettings &style) | |
| Constructs a DesignObjectDialog with the given display style but no target object. | |
| ~DesignObjectDialog () | |
| Destructor. | |
| void | addEditor (Editor *editor, uint04 index=Constant< uint04 >::Invalid) |
| Adds an editor tab to the dialog. | |
| void | addTabDialog (QWidget *editor, uint04 index=Constant< uint04 >::Invalid) |
| Adds a generic widget as a tab in the dialog. | |
| virtual Buffer< QWidget * > | bottomOptions () override |
| Returns widgets displayed at the bottom of the dialog. | |
| void | clearTabDialogs () |
| Removes all tab dialogs from the dialog. | |
| virtual StringView | customDialogIcon () const override |
| Returns the custom dialog icon name, if set. | |
| virtual TranslatedString | customDialogTitle () const override |
| Returns the custom dialog title, if set. | |
| const QTDesignObject & | designObject () const |
| Returns a const reference to the underlying QTDesignObject. | |
| const DynamicPointer< QTDesignObject > & | designObjectPtr () |
| Returns the pointer to the target design object. | |
| void | dialogFinishedSignal () |
| Emitted when the dialog has completed all operations and is finished. | |
| const UnitManager & | dialogUnits () const |
| Returns the unit manager used by this dialog for value conversions. | |
| const Buffer< Editor * > & | editors () const |
| Returns the list of editors in this dialog. | |
| Model | getModel () const |
| Returns the target as a Model. | |
| DesignObject | getObject () const |
| Returns the target as a DesignObject. | |
| template<class t_type> | |
| bool | hasEditor () const |
| Checks whether this dialog contains an editor of the specified type. | |
| virtual Buffer< QWidget * > | printableWidgetOptions () override |
| Returns widgets that provide print configuration options. | |
| virtual Buffer< QWidget * > | printableWidgets () override |
| Returns the list of widgets that can be printed. | |
| void | requestBackSignal () |
| Emitted when the user presses the back button. | |
| void | requestCancelSignal () |
| Emitted when the user cancels the dialog. | |
| void | requestConfirmSignal () |
| Emitted when the user confirms the dialog. | |
| void | requestDeleteSignal () |
| Emitted when the user requests deletion of the target object. | |
| void | requestPrintSignal () |
| Emitted when the user requests printing. | |
| void | setCustomTitle (const TranslatedString &title) |
| Sets a custom title for the dialog window. | |
| void | setHorizontal (bool horizontal) override |
| Sets whether the dialog layout is horizontal or vertical. | |
| virtual void | setReadOnly (bool read_only) override |
| Sets whether the dialog is in read-only mode. | |
| virtual void | setTarget (const DynamicPointer< QTDesignObject > &object) override |
| Sets the target design object and refreshes all editors. | |
| void | setType (const StringView &type) |
| Sets the type name used for dialog setup callbacks. | |
| void | showCurrentIndex (uint04 index) |
| Shows the editor tab at the given index. | |
| EditorShowMode | showMode () const override |
| Returns the show mode for this editor. | |
| template<class t_type> | |
| bool | showSubDialog () |
| Finds the editor of type t_type and displays its tab. | |
| QSize | sizeHint () const override |
| Returns the recommended size for this dialog. | |
| virtual void | updateValues () override |
| Updates all editor values from the current target object state. | |
| Public Member Functions inherited from Editor | |
| Editor (const DynamicPointer< QTDesignObject > &object, QWidget *parent=nullptr) | |
| Constructs an Editor targeting the given design object. | |
| Editor (QWidget *parent=nullptr) | |
| Constructs an Editor with no design object target. | |
| virtual bool | disableExport () const |
| Returns whether exporting should be disabled for this editor. | |
| Model | getModel () const |
| Returns the target design object as a Model. | |
| DesignObject | getObject () const |
| Returns the target design object. | |
| virtual bool | isBusy () const |
| Returns whether the editor is currently busy performing an operation. | |
| void | isBusyStatusChanged () |
| Emitted when the busy status of the editor changes. | |
| virtual bool | isHorizontal () const |
| Returns whether the editor layout is horizontal. | |
| virtual void | moveTargetWithMouse () |
| Initiates interactive mouse-based movement of the target object in the viewport. | |
| void | objectUpdatedSignal () |
| Emitted when the target object has been updated. | |
| virtual InterfaceOrientationController * | orientationController () const |
| Returns the orientation controller associated with this editor. | |
| virtual void | requestScrollEnabled (bool enabled) |
| Requests enabling or disabling scrolling within the editor. | |
| virtual void | setup (DesignObjectDialog *, const ShowPropertiesSettings &) |
| Sets up the editor with a parent dialog and property display settings. | |
| const DynamicPointer< QTDesignObject > & | target () const |
| Returns the current design object target. | |
Protected Member Functions | |
| void | checkIfBusy () |
| Checks if background operations are still busy before closing. | |
| void | onCancelPressed () |
| Slot called when the cancel button is pressed. | |
| void | onConfirmPressed () |
| Slot called when the confirm/accept button is pressed. | |
| Protected Member Functions inherited from Editor | |
| void | onDesignObjectDeletedSlot () |
| Slot called when the target design object is deleted. | |
| void | onDesignObjectUpdateSlot () |
| Slot called when the target design object is updated. | |
Protected Attributes | |
| Button * | m_accept_button = nullptr |
| Button for accepting and closing. | |
| QHBoxLayout * | m_button_layout = nullptr |
| Layout for the bottom button bar. | |
| QWidget * | m_button_layout_widget = nullptr |
| Container widget for the button layout. | |
| Button * | m_cancel_button = nullptr |
| Button for canceling and closing. | |
| TranslatedString | m_custom_title |
| Custom dialog title, if set. | |
| UnitManager | m_dialog_units |
| Unit manager for value display conversions. | |
| Buffer< Editor * > | m_editors |
| The list of editor tabs in this dialog. | |
| Button * | m_print_button = nullptr |
| Button for printing dialog content. | |
| Button * | m_save_button = nullptr |
| Button for saving changes. | |
| ShowPropertiesSettings | m_settings |
| Display settings controlling property visibility. | |
| QCustomTabWidget * | m_tab_menu |
| The tab widget for switching between editors. | |
| Buffer< QWidget * > | m_tabs |
| The list of tab widgets. | |
| SectionWidget * | m_target_widget |
| The main content section widget. | |
| Button * | m_units_button = nullptr |
| Button for changing unit settings. | |
| Button * | m_zoom_button = nullptr |
| Button for zooming to the target object. | |
| Protected Attributes inherited from Editor | |
| DynamicPointer< QTDesignObject > | m_design_object |
| The design object being edited. | |
| bool | m_is_read_only = false |
| Whether the editor is in read-only mode. | |
| InterfaceOrientationController * | m_orientation_controller |
| The orientation controller for this editor. | |
A popup dialog for showing options or information to the user for a particular DesignObject.
A DesignObjectDialog stores multiple Editors which are used to edit or modify the target Model, Material or Geometry.
Definition at line 154 of file DesignObjectDialog.h.
| DesignObjectDialog::DesignObjectDialog | ( | const DynamicPointer< QTDesignObject > & | object, |
| const ShowPropertiesSettings & | style ) |
Constructs a DesignObjectDialog for the given object and display style.
| [in] | object | The target design object to show properties for. |
| [in] | style | The display settings controlling which properties are shown. |
| DesignObjectDialog::DesignObjectDialog | ( | const ShowPropertiesSettings & | style | ) |
Constructs a DesignObjectDialog with the given display style but no target object.
| [in] | style | The display settings controlling which properties are shown. |
Adds an editor tab to the dialog.
| [in] | editor | The editor to add. |
| [in] | index | The position to insert at, or Invalid to append. |
References Editor::Editor().
| void DesignObjectDialog::addTabDialog | ( | QWidget * | editor, |
| uint04 | index = Constant< uint04 >::Invalid ) |
Adds a generic widget as a tab in the dialog.
| [in] | editor | The widget to add as a tab. |
| [in] | index | The position to insert at, or Invalid to append. |
Referenced by BuildActionProgramLogic::setupPropertiesDialog().
|
overridevirtual |
Returns widgets displayed at the bottom of the dialog.
Reimplemented from Editor.
|
overridevirtual |
Returns the custom dialog icon name, if set.
Reimplemented from Editor.
|
overridevirtual |
Returns the custom dialog title, if set.
Reimplemented from Editor.
| const QTDesignObject & DesignObjectDialog::designObject | ( | ) | const |
Returns a const reference to the underlying QTDesignObject.
|
inline |
Returns the pointer to the target design object.
Definition at line 218 of file DesignObjectDialog.h.
References Editor::m_design_object.
| const UnitManager & DesignObjectDialog::dialogUnits | ( | ) | const |
Returns the unit manager used by this dialog for value conversions.
Returns the list of editors in this dialog.
Definition at line 233 of file DesignObjectDialog.h.
References m_editors.
| Model DesignObjectDialog::getModel | ( | ) | const |
| DesignObject DesignObjectDialog::getObject | ( | ) | const |
Returns the target as a DesignObject.
|
inline |
Checks whether this dialog contains an editor of the specified type.
Definition at line 239 of file DesignObjectDialog.h.
References Editor::Editor(), and m_editors.
|
overridevirtual |
Returns widgets that provide print configuration options.
Reimplemented from Editor.
|
overridevirtual |
Returns the list of widgets that can be printed.
Reimplemented from Editor.
| void DesignObjectDialog::setCustomTitle | ( | const TranslatedString & | title | ) |
Sets a custom title for the dialog window.
| [in] | title | The translated title string. |
|
overridevirtual |
Sets whether the dialog layout is horizontal or vertical.
| [in] | horizontal | True for horizontal layout, false for vertical. |
Reimplemented from Editor.
|
overridevirtual |
Sets whether the dialog is in read-only mode.
| [in] | read_only | True to disable editing. |
Reimplemented from Editor.
|
overridevirtual |
Sets the target design object and refreshes all editors.
| [in] | object | The new target design object. |
Reimplemented from Editor.
| void DesignObjectDialog::setType | ( | const StringView & | type | ) |
Sets the type name used for dialog setup callbacks.
| [in] | type | The type name string. |
| void DesignObjectDialog::showCurrentIndex | ( | uint04 | index | ) |
Shows the editor tab at the given index.
| [in] | index | The tab index to display. |
Referenced by showSubDialog().
|
overridevirtual |
Returns the show mode for this editor.
Reimplemented from Editor.
|
inline |
Finds the editor of type t_type and displays its tab.
Definition at line 321 of file DesignObjectDialog.h.
References m_editors, and showCurrentIndex().
|
override |
Returns the recommended size for this dialog.