swift
settingsmatchingcomponent.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_SETTINGSMATCHINGCOMPONENT_H
7 #define SWIFT_GUI_COMPONENTS_SETTINGSMATCHINGCOMPONENT_H
8 
9 #include <QFrame>
10 #include <QScopedPointer>
11 
13 
14 namespace swift::core::context
15 {
16  class IContextSimulator;
17 }
18 namespace Ui
19 {
20  class CSettingsMatchingComponent;
21 }
22 namespace swift::gui::components
23 {
25  class CSettingsMatchingComponent : public QFrame
26  {
27  Q_OBJECT
28 
29  public:
31  explicit CSettingsMatchingComponent(QWidget *parent = nullptr);
32 
34  virtual ~CSettingsMatchingComponent() override;
35 
38 
41 
43  void showButtons(bool show);
44 
45  private:
46  QScopedPointer<Ui::CSettingsMatchingComponent> ui;
47 
49  void onSavePressed() const;
50 
52  void onReloadPressed();
53 
55  void onMatchingsAgainPressed();
56 
58  void onSetupChanged();
59 
61  void deferredReload(int deferMs);
62 
64  static swift::core::context::IContextSimulator *simulatorContext();
65  };
66 } // namespace swift::gui::components
67 
68 #endif // SWIFT_GUI_COMPONENTS_SETTINGSMATCHINGCOMPONENT_H
void setMatchingSetup(const swift::misc::simulation::CAircraftMatcherSetup &setup)
Set setup.
swift::misc::simulation::CAircraftMatcherSetup getMatchingSetup() const
Get setup.
CSettingsMatchingComponent(QWidget *parent=nullptr)
Constructor.
High level reusable GUI components.
Definition: aboutdialog.cpp:13