swift
aircraftpartscomponent.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2020 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_AIRCRAFTPARTSCOMPONENT_H
7 #define SWIFT_GUI_COMPONENTS_AIRCRAFTPARTSCOMPONENT_H
8 
9 #include <QFrame>
10 #include <QScopedPointer>
11 
12 #include "misc/aviation/callsign.h"
13 
14 namespace Ui
15 {
16  class CAircraftPartsComponent;
17 }
18 namespace swift::gui::components
19 {
21  class CAircraftPartsComponent : public QFrame
22  {
23  Q_OBJECT
24 
25  public:
27  explicit CAircraftPartsComponent(QWidget *parent = nullptr);
28 
30  virtual ~CAircraftPartsComponent() override;
31 
33  void setCallsign(const swift::misc::aviation::CCallsign &callsign);
34 
35  signals:
38 
39  private:
41  void sendAircraftParts();
42 
44  void setCurrentParts();
45 
47  void requestPartsFromNetwork();
48 
50  void displayOwnParts();
51 
53  void displayLogInSimulator();
54 
56  void onCallsignChanged();
57 
58  QScopedPointer<Ui::CAircraftPartsComponent> ui;
59  };
60 } // namespace swift::gui::components
61 
62 #endif // SWIFT_GUI_COMPONENTS_AIRCRAFTPARTSCOMPONENT_H
Allows to display and manipulate parts.
void setCallsign(const swift::misc::aviation::CCallsign &callsign)
Set selected callsign.
void callsignChanged(const swift::misc::aviation::CCallsign &callsign)
Currently used callsign.
Value object encapsulating information of a callsign.
Definition: callsign.h:30
High level reusable GUI components.
Definition: aboutdialog.cpp:13