2#include "NDEVR/Headers/DLLInfo.h"
3#include "NDEVR/Headers/Editor.h"
6 class TransitIncidentVehicleEditorUI;
51 Ui::TransitIncidentVehicleEditorUI*
ui;
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.
The core String View class for the NDEVR API.
Editor widget for viewing and modifying a transit incident person's details.
Table widget for displaying and managing persons in a transit incident.
virtual bool fullscreenTouch() const override
Returns whether this editor should be shown fullscreen on touch devices.
TransitIncidentPersonEditor * m_driver_editor
Editor for the vehicle driver.
TransitIncidentPersonTable * m_passenger_table
Table of passengers in the vehicle.
TransitIncidentPersonEditor * m_owner_editer
Editor for the vehicle owner.
void descriptionChangedSlot()
Slot invoked when the description field value changes.
void setupMetadataWidget(DesignObjectStringWidget *widget, const StringView &metadata)
Binds a DesignObjectStringWidget to the specified metadata key.
TransitIncidentVehicleEditor(const DynamicPointer< QTDesignObject > &object, QWidget *parent=nullptr)
Constructs a TransitIncidentVehicleEditor.
TransitIncidentVehicle vehicle() const
Returns the TransitIncidentVehicle being edited.
static void Register()
Registers this editor type with the editor factory.
void showDescription(bool show_description)
Shows or hides the description field in the editor.
virtual void updateValues() override
Refreshes the UI fields from the underlying model data.
Ui::TransitIncidentVehicleEditorUI * ui
The auto-generated UI form.
void showDrivers(bool show_description)
Shows or hides the driver sub-editor.
Represents a vehicle involved in a transit incident.
The primary namespace for the NDEVR SDK.