NDEVR
API Documentation
BusManagerWidget

Widget for managing transit bus entries in an incident report. More...

Inheritance diagram for BusManagerWidget:
[legend]
Collaboration diagram for BusManagerWidget:
[legend]

Public Member Functions

 BusManagerWidget (TransitIncidentManager *manager, QWidget *parent=nullptr)
 Constructs a BusManagerWidget.
Public Member Functions inherited from DesignTableEditorWidget
 DesignTableEditorWidget (DesignPropertyTable *table, const std::function< QWidget *(const Model &)> &callback, QWidget *parent=nullptr)
 Constructs a DesignTableEditorWidget with a property table and editor factory callback.
void requestHiddenSignal ()
 Emitted when the editor panel requests to be hidden.
void setActive (const Model &model)
 Activates the editor for the given model, creating it via the callback if needed.

Protected Member Functions

TransitIncidentVehicleEditoreditor (UUID id)
 Creates or retrieves the vehicle editor for the given bus.

Protected Attributes

TransitIncidentManagerm_manager
 The owning transit incident manager.
Protected Attributes inherited from DesignTableEditorWidget
std::function< QWidget *(const Model &)> m_callback
 The factory function creating editor widgets.
QWidget * m_current_editor = nullptr
 The currently displayed editor widget.
QCustomStackedWidgetm_editor_stack = nullptr
 The stacked widget managing editor transitions.
QWidget * m_new_editor = nullptr
 A newly created editor widget pending display.
DesignPropertyTablem_table = nullptr
 The property table listing design objects.

Detailed Description

Widget for managing transit bus entries in an incident report.

Definition at line 10 of file BusManagerWidget.h.

Constructor & Destructor Documentation

◆ BusManagerWidget()

BusManagerWidget::BusManagerWidget ( TransitIncidentManager * manager,
QWidget * parent = nullptr )

Constructs a BusManagerWidget.

Parameters
[in]managerThe transit incident manager that owns the bus data.
[in]parentThe parent widget.

Member Function Documentation

◆ editor()

TransitIncidentVehicleEditor * BusManagerWidget::editor ( UUID id)
protected

Creates or retrieves the vehicle editor for the given bus.

Parameters
[in]idThe UUID of the bus to edit.
Returns
A pointer to the TransitIncidentVehicleEditor for the bus.

The documentation for this class was generated from the following file: