2#include "TransitIncidentManager/Headers/TransitIncidentEntityTable.h"
3#include "TransitIncidentManager/Headers/TransitIncidentManager.h"
19 QBoxLayout* layout =
new QVBoxLayout();
23 layout->addWidget(person_table);
25 setWindowTitle(_tqs(
"Witnesses"));
43 QBoxLayout* layout =
new QVBoxLayout();
47 layout->addWidget(person_table);
49 setWindowTitle(_tqs(
"Officers"));
void showSearch(bool show_search)
Shows or hides the search bar.
TransitIncidentManager * m_manager
The owning transit incident manager.
OfficersEditor(TransitIncidentManager *manager, QWidget *parent=nullptr)
Constructs the officers editor and populates it with the officer list.
Central manager for transit incident data, including buses, drivers, witnesses, officers,...
DynamicPointer< QTDesignObject > witnessRoot()
Returns the root design object for witnesses.
DynamicPointer< QTDesignObject > officerRoot()
Returns the root design object for officers.
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.
TransitIncidentManager * m_manager
The owning transit incident manager.
WitnessEditor(TransitIncidentManager *manager, QWidget *parent=nullptr)
Constructs the witness editor and populates it with the witness list.
The primary namespace for the NDEVR SDK.
@ e_officer
A responding officer.
@ e_witness
A witness to the incident.