3#include <NDEVR/ModelEditController.h>
4#include <NDEVR/BaseValues.h>
8 class VehicleSelectorUI;
55 Ui::VehicleSelectorUI*
ui;
Provides a screen of buttons that allow the user to pick a Model for an action.
A core class where all Design Objects including models, materials, and geometries are stored.
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
Takes user input in order to modify a model in real-time.
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
A database of vehicle specifications (make, model, year, dimensions, weight) loaded from DBF files an...
bool m_is_editing
Whether the user is currently editing a placed vehicle.
void onPlaceVehicle()
Handles the place vehicle action from the UI.
ModelEditController * m_edit_controller
The edit controller for placing objects.
VehicleSelector(QTModelManager *lookup, ModelEditController *edit_controller, VehicleDatabase *db, QWidget *parent=nullptr)
Constructs the vehicle selector widget.
void placeVehicle()
Places the currently selected vehicle into the scene.
QTModelManager * m_manager
The Qt model manager for scene access.
void updateUI()
Refreshes the UI to reflect the current selection state.
VehicleTableView * m_table
The table view displaying vehicle records.
void vehicleSelectedSignal()
Emitted when a vehicle has been selected by the user.
void updateInsertEnabled()
Updates the enabled state of the insert/place button.
Ui::VehicleSelectorUI * ui
The auto-generated UI form.
VehicleDatabase * m_db
The vehicle database being browsed.
void setupArchiveObject(DesignObjectChooser *chooser, const File &archive)
Configures the archive object chooser for a given archive file.
void setCurrentRecord(uint04 record_idx)
Sets the currently highlighted vehicle record.
uint04 m_current_record
Index of the currently selected record.
A QTableView subclass that displays vehicle database records with sort and filter support.
The primary namespace for the NDEVR SDK.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...