NDEVR
API Documentation
TransitIncidentEntityTable.h
1#pragma once
2#include "TransitIncidentEntity.h"
3#include "NDEVR/Headers/DesignPropertyTable.h"
4namespace NDEVR
5{
8 {
9 Q_OBJECT
10 public:
14 TransitIncidentEntityTable(QTModelManager* manager, QWidget* parent = nullptr);
15 };
16
18 {
19 Q_OBJECT
20 public:
24 TransitIncidentPersonTable(QTModelManager* manager, QWidget* parent = nullptr);
28 TransitIncidentPersonTable(const DynamicPointer<QTDesignObject>& parent_object, QWidget* parent_widget = nullptr);
36 protected:
38 void init();
39 protected:
41 };
42
44 {
45 Q_OBJECT
46 public:
51 TransitIncidentVehicleTable(QTModelManager* manager, bool is_bus_list, QWidget* parent = nullptr);
56 TransitIncidentVehicleTable(const DynamicPointer<QTDesignObject>& parent_object, bool is_bus_list, QWidget* parent_widget = nullptr);
60 protected:
62 void init();
63 protected:
64 bool m_is_bus_list = false;
66 };
67}
DesignPropertyTable(QWidget *parent=nullptr)
Constructs a DesignPropertyTable without a model manager.
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:356
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
TransitIncidentEntityTable(QTModelManager *manager, QWidget *parent=nullptr)
Constructs a TransitIncidentEntityTable.
TransitIncidentPersonTable(QTModelManager *manager, QWidget *parent=nullptr)
Constructs a TransitIncidentPersonTable from a model manager.
TransitIncidentPersonTable(const DynamicPointer< QTDesignObject > &parent_object, QWidget *parent_widget=nullptr)
Constructs a TransitIncidentPersonTable from a parent design object.
DynamicPointer< QTDesignObject > m_parent
The parent design object for this table.
void init()
Initializes the table columns and configuration.
void createModel(TransitIncidentPersonType person_type, PopupInfo info)
Creates a new person model of the given type and shows it in a popup editor.
void createAddButton(TransitIncidentPersonType person_type)
Adds an "Add" button to the table that creates a person of the given type.
void init()
Initializes the table columns and configuration.
bool m_is_bus_list
Whether this table shows buses.
TransitIncidentVehicleTable(const DynamicPointer< QTDesignObject > &parent_object, bool is_bus_list, QWidget *parent_widget=nullptr)
Constructs a TransitIncidentVehicleTable from a parent design object.
TransitIncidentVehicleTable(QTModelManager *manager, bool is_bus_list, QWidget *parent=nullptr)
Constructs a TransitIncidentVehicleTable from a model manager.
DynamicPointer< QTDesignObject > m_parent
The parent design object for this table.
void createModel(PopupInfo info)
Creates a new vehicle model and shows it in a popup editor.
The primary namespace for the NDEVR SDK.
TransitIncidentPersonType
Classifies the role of a person involved in a transit incident.
Class which is used to pass arguments and requests for creating a popup dialog or widget.
Definition PopupInfo.h:16