A widget that allows the user to browse, search, and select vehicles from the VehicleDatabase and place them into the design scene.
More...
|
|
void | onPlaceVehicle () |
| | Handles the place vehicle action from the UI.
|
|
void | placeVehicle () |
| | Places the currently selected vehicle into the scene.
|
| void | setupArchiveObject (DesignObjectChooser *chooser, const File &archive) |
| | Configures the archive object chooser for a given archive file.
|
|
void | updateInsertEnabled () |
| | Updates the enabled state of the insert/place button.
|
|
void | updateUI () |
| | Refreshes the UI to reflect the current selection state.
|
|
|
uint04 | m_current_record = Constant<uint04>::Invalid |
| | Index of the currently selected record.
|
|
VehicleDatabase * | m_db |
| | The vehicle database being browsed.
|
|
ModelEditController * | m_edit_controller |
| | The edit controller for placing objects.
|
|
bool | m_is_editing = false |
| | Whether the user is currently editing a placed vehicle.
|
|
QTModelManager * | m_manager |
| | The Qt model manager for scene access.
|
|
VehicleTableView * | m_table |
| | The table view displaying vehicle records.
|
|
Ui::VehicleSelectorUI * | ui |
| | The auto-generated UI form.
|
A widget that allows the user to browse, search, and select vehicles from the VehicleDatabase and place them into the design scene.
Definition at line 21 of file VehicleSelector.h.
◆ VehicleSelector()
Constructs the vehicle selector widget.
- Parameters
-
| [in] | lookup | The Qt model manager for scene access. |
| [in] | edit_controller | The edit controller for placing vehicles. |
| [in] | db | The vehicle database to browse. |
| [in] | parent | Optional parent widget. |
◆ setCurrentRecord()
| void VehicleSelector::setCurrentRecord |
( |
uint04 | record_idx | ) |
|
Sets the currently highlighted vehicle record.
- Parameters
-
| [in] | record_idx | The record index to select. |
◆ setupArchiveObject()
Configures the archive object chooser for a given archive file.
- Parameters
-
| [in] | chooser | The design object chooser to configure. |
| [in] | archive | The archive file containing model data. |
The documentation for this class was generated from the following file: