6 #ifndef SWIFT_GUI_AIRCRAFTMODELVIEW_H
7 #define SWIFT_GUI_AIRCRAFTMODELVIEW_H
12 #include <QStringList>
26 namespace swift::misc::aviation
28 class CAircraftIcaoCode;
31 namespace swift::misc::simulation
39 class CAircraftModelFilterDialog;
47 class CAircraftModelStatisticsDialog;
48 class CAircraftModelValidationDialog;
75 bool hasSelectedModelsToStash()
const;
78 void setAcceptedMetaTypeIds();
81 void addFilterDialog();
87 int removeModelsWithModelString(
const QStringList &modelStrings,
88 Qt::CaseSensitivity sensitivity = Qt::CaseInsensitive);
92 Qt::CaseSensitivity sensitivity = Qt::CaseInsensitive);
96 Qt::CaseSensitivity sensitivity = Qt::CaseInsensitive);
102 void setHighlightModelStrings(
const QStringList &highlightModels);
105 void setHighlightModelsForInvalidModels();
108 void setHighlight(
bool highlight);
111 void setHighlightColor(
const QBrush &brush);
114 bool highlightModels()
const;
119 const QString &simDir);
143 virtual void dropEvent(QDropEvent *event)
override;
165 void toggleHighlightInvalidModels();
168 void stashingClearsSelection();
171 void toggleHighlightStashedModels();
174 void requestedStash();
177 void requestTempDisable();
180 void displayModelStatisticsDialog();
183 void displayModelValidationDialog();
185 bool m_stashingClearsSelection =
true;
186 bool m_withValidationContextMenu =
true;
190 m_correspondingSimulator;
191 QString m_correspondingSimulatorDir;
Form for a aircraft model filter.
AircraftModelMode
How to display.
void setValidationContextMenu(const bool enabled)
Enable the validation context menu.
void requestTempDisableModelsForMatching(const swift::misc::simulation::CAircraftModelList &models)
Temp.disable model.
void jsonModelsForSimulatorLoaded(const swift::misc::simulation::CSimulatorInfo &simulator)
Models for simulator loaded (JSON)
void toggledHighlightStashedModels()
Highlight stashed models has been toggled.
void requestHandlingOfStashDrop(const swift::misc::aviation::CAirlineIcaoCode &airlineIcao)
Request further handling of drops I cannot handle on my own.
void requestStash(const swift::misc::simulation::CAircraftModelList &models)
Request to stash if applicable.
Base class for views with DB objects also orderable (based on swift::misc::IOrderableList )
Specialized value object compliant map for variants, based on indexes.
Streamable status message, e.g.
Value object for ICAO classification.
Value object for ICAO classification.
Value object encapsulating information about an airpot.
Value object encapsulating a list of aircraft models.
Value object encapsulating information of software distributor.
Simple hardcoded info about the corresponding simulator.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.