NDEVR
API Documentation
TransitIncidentPersonEditor.h
1#pragma once
2#include "NDEVR/Headers/DLLInfo.h"
3#include "NDEVR/Headers/Editor.h"
4namespace Ui
5{
6 class TransitIncidentPersonEditorUI;
7}
8namespace NDEVR
9{
13 {
14 Q_OBJECT
15 public:
19 TransitIncidentPersonEditor(const DynamicPointer<QTDesignObject>& object, QWidget* parent = nullptr);
21 virtual void updateValues();
23 static void Register();
26 void showDescription(bool show_description);
34 virtual bool fullscreenTouch() const override
35 {
36 return true;
37 }
38 protected slots:
41 protected:
42 Ui::TransitIncidentPersonEditorUI* ui;
43 };
44}
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.
virtual void updateValues()
Refreshes the UI fields from the underlying model data.
void descriptionChangedSlot()
Slot invoked when the description field value changes.
Ui::TransitIncidentPersonEditorUI * ui
The auto-generated UI form.
static void Register()
Registers this editor type with the editor factory.
TransitIncidentPerson person() const
Returns the TransitIncidentPerson being edited.
TransitIncidentPersonEditor(const DynamicPointer< QTDesignObject > &object, QWidget *parent=nullptr)
Constructs a TransitIncidentPersonEditor.
void setToDefaultLicenseType()
Sets the identification type field to the default license type.
void showDescription(bool show_description)
Shows or hides the description field in the editor.
virtual bool fullscreenTouch() const override
Returns whether this editor should be shown fullscreen on touch devices.
Represents a person involved in a transit incident.
The primary namespace for the NDEVR SDK.