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);
23 protected:
24 void setupArchiveObject(DesignObjectChooser* chooser, const File& archive);
27 signals:
29 protected slots:
30 void updateUI();
31 protected:
36 Ui::VehicleSelectorUI* ui;
37 ModelEditController* m_edit_controller;
39 bool m_is_editing = false;
40 };
41}
#define VEHICLE_DATABASE_API
Definition DLLInfo.h:57
Provides a screen of buttons that allow the user to pick a Model for an action.
Definition DesignObjectChooser.h:45
Logic for reading or writing to a file as well as navigating filesystems.
Definition File.h:48
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
Definition QTModelManager.h:105
Definition VehicleDatabase.h:42
Definition VehicleSelector.h:18
void setCurrentRecord(uint04 record)
VehicleSelector(QTModelManager *lookup, ModelEditController *edit_controller, VehicleDatabase *db, QWidget *parent=nullptr)
void setupArchiveObject(DesignObjectChooser *chooser, const File &archive)
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:96
Definition FontEditor.h:6
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved 'invali...
Definition BaseValues.hpp:233