swift
modelbrowsercomponent.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2019 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_MODELBROWSERCOMPONENT_H
7 #define SWIFT_GUI_COMPONENTS_MODELBROWSERCOMPONENT_H
8 
9 #include <QFrame>
10 #include <QScopedPointer>
11 
14 #include "misc/variant.h"
15 
16 namespace Ui
17 {
18  class CModelBrowserComponent;
19 }
20 namespace swift::gui::components
21 {
23  class CModelBrowserComponent : public QFrame
24  {
25  Q_OBJECT
26 
27  public:
29  explicit CModelBrowserComponent(QWidget *parent = nullptr);
30 
32  virtual ~CModelBrowserComponent() override;
33 
35  void close();
36 
37  private:
38  void onSetRelativePosition();
39  void onSetAbsolutePosition();
40  void onSetPBH();
41  void onSetParts();
42  void onModelDblClicked(const swift::misc::CVariant &object);
43 
45 
46  void display();
47  void remove();
48  void loadModelSet();
49  bool hasContexts() const;
50  void onCGChecked(bool checked);
51  void updatePartsAndPBH(bool setPbh, bool setParts);
52  void fetchSimulatorValues();
53 
54  QScopedPointer<Ui::CModelBrowserComponent> ui;
57  };
58 } // namespace swift::gui::components
59 
60 #endif // SWIFT_GUI_COMPONENTS_MODELBROWSERCOMPONENT_H
CModelBrowserComponent(QWidget *parent=nullptr)
Constructor.
Wrapper around QVariant which provides transparent access to CValueObject methods of the contained ob...
Definition: variant.h:66
Value object encapsulating information of aircraft's parts.
Definition: aircraftparts.h:26
Value object encapsulating information of an aircraft's situation.
Comprehensive information of an aircraft.
High level reusable GUI components.
Definition: aboutdialog.cpp:13