![]() |
NDEVR
API Documentation
|
A base class for displaying options for editing a single DesignObject, typically a Model. More...
Public Member Functions | |
| 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 Buffer< QWidget * > | bottomOptions () |
| Returns widgets to be placed at the bottom of the editor layout. | |
| virtual StringView | customDialogIcon () const |
| Returns a custom icon name for the editor dialog, or an empty string if none. | |
| virtual TranslatedString | customDialogTitle () const |
| Returns a custom title for the editor dialog, or an empty string if none. | |
| 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 Buffer< QWidget * > | printableWidgetOptions () |
| Returns option widgets to configure printing for this editor. | |
| virtual Buffer< QWidget * > | printableWidgets () |
| Returns the widgets that can be printed from this editor. | |
| virtual void | requestScrollEnabled (bool enabled) |
| Requests enabling or disabling scrolling within the editor. | |
| virtual void | setHorizontal (bool horizontal) |
| Sets whether the editor layout is horizontal. | |
| virtual void | setReadOnly (bool read_only) |
| Sets whether the editor is in read-only mode. | |
| virtual void | setTarget (const DynamicPointer< QTDesignObject > &object) |
| Sets the design object target for this editor. | |
| virtual void | setup (DesignObjectDialog *, const ShowPropertiesSettings &) |
| Sets up the editor with a parent dialog and property display settings. | |
| virtual EditorShowMode | showMode () const |
| Returns the preferred display mode for this editor. | |
| const DynamicPointer< QTDesignObject > & | target () const |
| Returns the current design object target. | |
| virtual void | updateValues ()=0 |
| Updates the displayed values to reflect the current state of the target object. | |
Protected Attributes | |
| 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 base class for displaying options for editing a single DesignObject, typically a Model.
| Editor::Editor | ( | QWidget * | parent = nullptr | ) |
Constructs an Editor with no design object target.
| [in] | parent | The parent widget. |
Referenced by DesignObjectDialog::addEditor(), and DesignObjectDialog::hasEditor().
| Editor::Editor | ( | const DynamicPointer< QTDesignObject > & | object, |
| QWidget * | parent = nullptr ) |
Constructs an Editor targeting the given design object.
| [in] | object | The design object to edit. |
| [in] | parent | The parent widget. |
|
inlinevirtual |
Returns widgets to be placed at the bottom of the editor layout.
Reimplemented in DesignObjectDialog.
|
inlinevirtual |
Returns a custom icon name for the editor dialog, or an empty string if none.
Reimplemented in DesignObjectDialog.
|
inlinevirtual |
Returns a custom title for the editor dialog, or an empty string if none.
Reimplemented in DesignObjectDialog.
|
inlinevirtual |
Returns whether exporting should be disabled for this editor.
Reimplemented in VLCVideoModelViewer.
| Model Editor::getModel | ( | ) | const |
| DesignObject Editor::getObject | ( | ) | const |
Returns the target design object.
|
inlinevirtual |
|
virtual |
Returns whether the editor layout is horizontal.
|
virtual |
Returns the orientation controller associated with this editor.
|
inlinevirtual |
Returns option widgets to configure printing for this editor.
Reimplemented in DesignObjectDialog, and PolylineSliceEditor.
|
inlinevirtual |
Returns the widgets that can be printed from this editor.
Reimplemented in BlastReportEditor, CustomerInfoSheet, CustomerJobInfoSheet, DesignObjectDialog, DesignObjectEditor, and PolylineSliceEditor.
|
virtual |
Requests enabling or disabling scrolling within the editor.
| [in] | enabled | True to enable scrolling. |
Reimplemented in SolidMaterialEditor.
|
virtual |
Sets whether the editor layout is horizontal.
| [in] | horizontal | True for horizontal layout, false for vertical. |
Reimplemented in CameraEditor, DesignObjectDialog, ModelMaterialsDialog, SolidMaterialEditor, and StationEditor.
|
virtual |
Sets whether the editor is in read-only mode.
| [in] | read_only | True to make the editor read-only. |
Reimplemented in DesignObjectDialog.
|
virtual |
Sets the design object target for this editor.
| [in] | object | The design object to edit. |
Reimplemented in BuildActionItemsWidget, BuildActionWidget, DesignObjectDialog, and StationEditor.
|
inlinevirtual |
Sets up the editor with a parent dialog and property display settings.
| [in] | dialog | The parent DesignObjectDialog. |
| [in] | settings | The property display settings. |
|
virtual |
Returns the preferred display mode for this editor.
Reimplemented in DesignObjectDialog, ImageModelDialog, LayerEditor, LineworkMaterialEditor, OrientationOperationsWidget, PaperEditor, PolylineSliceEditor, ProjectEditor, SolidMaterialEditor, StationEditor, and VLCVideoModelViewer.
|
inline |
Returns the current design object target.
Definition at line 151 of file Editor.h.
References m_design_object.