API Documentation
Loading...
Searching...
No Matches
VehicleSelector.h
Go to the documentation of this file.
1#pragma once
5#include <QWidget>
6namespace Ui
7{
8 class VehicleSelectorUI;
9}
10namespace NDEVR
11{
12 class VehicleDatabase;
13 class VehicleTableView;
14 class QTModelManager;
15 class DesignObjectLookup;
16 class DesignObjectChooser;
18 {
19 Q_OBJECT
20 public:
21 VehicleSelector(QTModelManager* lookup, ModelEditController* edit_controller, VehicleDatabase* db, QWidget* parent = nullptr);
22 void setCurrentRecord(uint04 record);
23 protected:
24 void setupArchiveObject(DesignObjectChooser* chooser, const File& archive);
25 void updateInsertEnabled();
26 void onPlaceVehicle();
27 signals:
29 protected slots:
30 void updateUI();
31 protected:
36 Ui::VehicleSelectorUI* ui;
37 ModelEditController* m_edit_controller;
38 uint04 m_current_record = Constant<uint04>::NaN;
39 bool m_is_editing = false;
40 };
41}
#define VEHICLE_DATABASE_API
Definition DLLInfo.h:78
Definition DesignObjectChooser.h:42
Definition File.h:47
Definition QTModelManager.h:94
Definition VehicleDatabase.h:42
Definition VehicleSelector.h:18
Ui::VehicleSelectorUI * ui
Definition VehicleSelector.h:36
VehicleDatabase * m_db
Definition VehicleSelector.h:33
ModelEditController * m_edit_controller
Definition VehicleSelector.h:37
QTModelManager * m_manager
Definition VehicleSelector.h:35
VehicleTableView * m_table
Definition VehicleSelector.h:34
Definition VehicleTable.h:57
Definition ACIColor.h:37
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
Definition FontEditor.h:6
Definition BaseValues.hpp:272