2#include "TransitIncidentManager/Headers/TransitIncidentEntityTable.h"
3#include "TransitIncidentManager/Headers/TransitIncidentManager.h"
4#include <NDEVR/InterfaceOrientationController.h>
5#include "Base/Headers/Translator.h"
22 QBoxLayout* layout =
new QHBoxLayout();
26 layout->addWidget(person_table);
29 setWindowTitle(_tqs(
"Pedestrians"));
47 QBoxLayout* layout =
new QHBoxLayout();
53 }, _t(
"Add Vehicle"));
54 layout->addWidget(vehicle_table);
57 setWindowTitle(_tqs(
"Vehicles"));
void showSearch(bool show_search)
Shows or hides the search bar.
Button * addNewButton(std::function< void(Button *)> callback, const TranslatedString &new_title=_t("Add New"), const StringView &add_icon="plus")
Adds an "Add New" button to the bottom button bar.
static InterfaceOrientationController & Default()
Returns the default global InterfaceOrientationController instance.
void run(QWidget *object, const std::function< void(bool is_horizontal)> &function)
Registers a widget with a custom callback for orientation changes.
Central manager for transit incident data, including buses, drivers, witnesses, officers,...
DynamicPointer< QTDesignObject > vehicleRoot()
Returns the root design object for involved vehicles.
DynamicPointer< QTDesignObject > pedestrianRoot()
Returns the root design object for pedestrians.
TransitIncidentPedestrianEditor(TransitIncidentManager *manager, QWidget *parent=nullptr)
Constructs the pedestrian editor and populates it with the pedestrian list.
TransitIncidentManager * m_manager
The owning transit incident manager.
Table widget for displaying and managing persons in a transit incident.
void createAddButton(TransitIncidentPersonType person_type)
Adds an "Add" button to the table that creates a person of the given type.
Table widget for displaying and managing vehicles in a transit incident.
void createModel(PopupInfo info)
Creates a new vehicle model and shows it in a popup editor.
TransitIncidentManager * m_manager
The owning transit incident manager.
TransitIncidentVehiclesEditor(TransitIncidentManager *manager, QWidget *parent=nullptr)
Constructs the vehicles editor and populates it with the vehicle list.
The primary namespace for the NDEVR SDK.
@ e_pedestrian
A pedestrian involved in the incident.