NDEVR
API Documentation
TransitIncidentVehicleEditor.h
1#pragma once
2#include "NDEVR/Headers/DLLInfo.h"
3#include "NDEVR/Headers/Editor.h"
4namespace Ui
5{
6 class TransitIncidentVehicleEditorUI;
7}
8namespace NDEVR
9{
16 {
17 Q_OBJECT
18 public:
22 TransitIncidentVehicleEditor(const DynamicPointer<QTDesignObject>& object, QWidget* parent = nullptr);
24 virtual void updateValues() override;
26 static void Register();
29 void showDescription(bool show_description);
32 void showDrivers(bool show_description);
38 virtual bool fullscreenTouch() const override { return true; }
39 protected slots:
42 protected:
47 protected:
51 Ui::TransitIncidentVehicleEditorUI* ui;
52 };
53}
A widget allowing easy access to change the properties of a designObject by taking user string input.
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:356
Editor(QWidget *parent=nullptr)
Constructs an Editor with no design object target.
The core String View class for the NDEVR API.
Definition StringView.h:58
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.