swift
Loading...
Searching...
No Matches
dbmodelworkbenchcomponent.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6#ifndef SWIFT_GUI_COMPONENTS_DBMODELSWORKBENCHCOMPONENT_H
7#define SWIFT_GUI_COMPONENTS_DBMODELSWORKBENCHCOMPONENT_H
8
9#include <QFrame>
10#include <QList>
11#include <QObject>
12#include <QScopedPointer>
13#include <QStringList>
14
16#include "misc/directories.h"
19#include "misc/statusmessage.h"
20
21namespace Ui
22{
23 class CDbModelWorkbenchComponent;
24}
25namespace swift::gui
26{
27 namespace menus
28 {
29 class CMenuActions;
30 }
31 namespace models
32 {
34 }
35 namespace views
36 {
37 class CAircraftModelView;
38 }
39 namespace components
40 {
50 {
56
57 public:
59 explicit CDbModelWorkbenchComponent(QWidget *parent = nullptr);
60
63
65 static const QStringList &getLogCategories();
66
69
72
75
77 int getModelsCount() const;
78
81
84
92 const swift::misc::simulation::CSimulatorInfo &simulator) override;
98 const swift::misc::simulation::CSimulatorInfo &simulator) override;
100
101 private:
104 this
105 };
106 };
107 } // namespace components
108} // namespace swift::gui
109#endif // SWIFT_GUI_COMPONENTS_DBMODELSWORKBENCHCOMPONENT_H
COverlayMessagesFrame(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
Constructor.
swift::misc::simulation::CAircraftModelList getModels() const
Models.
CDbModelWorkbenchComponent(QWidget *parent=nullptr)
Constructor.
swift::gui::views::CAircraftModelView * view() const
Models view.
void setModels(const swift::misc::simulation::CAircraftModelList &models)
Set models.
swift::misc::simulation::CAircraftModelList getSelectedModels() const
Own models selected in view.
int updateModelsForSimulator(const swift::misc::simulation::CAircraftModelList &models, const swift::misc::simulation::CSimulatorInfo &simulator)
Set models.
swift::misc::simulation::CAircraftModel getOwnModelForModelString(const QString &modelString) const
Own (installed) model for given model string.
static const QStringList & getLogCategories()
Log categories.
models::CAircraftModelListModel * model() const
Access to aircraft model.
int updateModels(const swift::misc::simulation::CAircraftModelList &models)
Update models.
void setModelsForSimulator(const swift::misc::simulation::CAircraftModelList &models, const swift::misc::simulation::CSimulatorInfo &simulator)
Set models.
Bunch of CMenuAction objects.
Definition menuaction.h:384
Class template for accessing a specific value in the CSettingsCache.
Aircraft model (used by another pilot, my models on disk).
Value object encapsulating a list of aircraft models.
Simple hardcoded info about the corresponding simulator.
Interface to "something" backing models, which can be set.
Interface to "something" backing models, which can be modified (updated).
Interface to "something" backing models, which can be set.
Interface to "something" backing models, which can be modified (updated).
Models to be used with views, mainly QTableView.
Views, mainly QTableView.
GUI related classes.
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)