34#include <NDEVR/Editor.h>
37 class StationEditorUI;
162 Ui::StationEditorUI*
ui;
The equivelent of std::vector but with a bit more control.
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Editor(QWidget *parent=nullptr)
Constructs an Editor with no design object target.
void updateComputedPosition()
Recomputes and displays the computed absolute position from relative data.
bool isInRelativeMode() const
Checks whether the editor is currently in relative positioning mode.
bool isPrismStation() const
Checks whether this station is a prism station type.
void updatePositionFromDialogSlot()
Slot invoked to update the station position from the dialog fields.
void setPositionFromDialog()
Applies the absolute position from the dialog fields to the target station.
void setupForNewTarget()
Configures the editor UI for a newly assigned target.
StationEditor(const DynamicPointer< QTDesignObject > &station, QWidget *parent=nullptr)
Constructs a StationEditor targeting a specific station.
QCustomTabWidget * m_tool_tab_widget
Tab widget containing station tool pages.
void updateFromReferenceCombo()
Slot invoked when the reference combo selection changes.
void setupRelativePosition()
Configures the relative position UI elements based on the current target.
void setHorizontal(bool horizontal) override
Sets the layout orientation of the editor.
void showEditingControls(bool show)
Shows or hides the editing controls in the editor.
void init()
Initializes the editor UI and connects signals.
StationEditor(QWidget *parent=nullptr)
Constructs a StationEditor with no initial target.
void updateRelativePosition()
Refreshes the displayed relative position values.
Ui::StationEditorUI * ui
The auto-generated UI form for the station editor.
void updateValues() override
Refreshes the displayed values from the current target.
Buffer< QWidget * > m_tool_widgets
Custom tool widgets added to the tab area.
void setPrismOffsetSlot()
Slot invoked to apply the prism offset from the UI.
bool supportsRelative() const
Checks whether this station supports relative positioning.
void clearReferenceInformation()
Clears any displayed reference information in the editor.
void updateRelativePositionFromDialog()
Slot invoked to update the relative position from the dialog fields.
Vertex< 3, fltp08 > currentLocation() const
Returns the current 3D location of the station.
EditorShowMode showMode() const override
Returns the preferred show mode for this editor.
virtual void setTarget(const DynamicPointer< QTDesignObject > &object) override
Sets the target design object for this editor.
void setRelativeLocationFromUISlot()
Slot invoked to set the relative location based on the current UI values.
void addStationToolWidget(QWidget *widget)
Adds a custom tool widget to the station editor tab area.
A point in N-dimensional space, used primarily for spatial location information.
The primary namespace for the NDEVR SDK.
EditorShowMode
Describes how an Editor should be displayed within the application UI.