6 #ifndef SWIFT_GUI_COMPONENTS_MAPPINGCOMPONENT_H
7 #define SWIFT_GUI_COMPONENTS_MAPPINGCOMPONENT_H
11 #include <QScopedPointer>
26 #include "misc/tokenbucket.h"
33 class CMappingComponent;
43 class CSimulatedAircraft;
50 class CCheckBoxDelegate;
67 TabRenderedAircraft = 0,
76 static const QStringList &getLogCategories();
85 int countCurrentMappings()
const;
88 int countAircraftModels()
const;
91 void setTab(TabWidget tab);
95 Qt::CaseSensitivity cs);
106 void onRowCountChanged(
int count,
bool withFilter);
114 void onAircraftSelectedInView(
const QModelIndex &index);
117 void onSaveAircraft();
120 void onResetAircraft();
123 void onModelPreviewChanged(
int state);
126 void onModelsUpdateRequested();
140 void onTabWidgetChanged(
int index);
146 bool isSimulatorAvailable()
const;
149 void showAircraftModelDetails(
bool show);
159 void tokenBucketUpdate();
165 void settingsChanged();
172 void updateRenderedAircraftView(
bool forceUpdate =
false);
184 void onSimulatorStatusChanged(
int status);
187 void doMatchingsAgain();
189 static constexpr std::chrono::milliseconds OverlayMessageMs { 5000 };
190 QScopedPointer<Ui::CMappingComponent> ui;
191 QTimer m_updateTimer;
192 bool m_missedRenderedAircraftUpdate =
true;
195 this, &CMappingComponent::settingsChanged
197 views::CCheckBoxDelegate *m_currentMappingsViewDelegate =
nullptr;
Using this class provides a QFrame with the overlay functionality already integrated.
void requestValidationDialog()
Request the validation dialog.
Base class with a member CIdentifier to be inherited by a class which has an identity in the environm...
Value object encapsulating information identifying a component of a modular distributed swift process...
Class template for accessing a specific value in the CSettingsCache.
Streamable status message, e.g.
Wrapper around QVariant which provides transparent access to CValueObject methods of the contained ob...
Value object encapsulating information of a callsign.
Value object encapsulating information about a connection status.
Value object encapsulating a list of aircraft models.
Comprehensive information of an aircraft.
Simple hardcoded info about the corresponding simulator.
Describing a simulator plugin.
Free functions in swift::misc.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.