swift
|
Stashed objects. More...
Public Slots | |
swift::misc::CStatusMessage | stashModel (const swift::misc::simulation::CAircraftModel &model, bool replace=false, bool consolidateWithDbData=true, bool clearHighlighting=true) |
Stash given model (includes validation and consolidation with DB data) | |
swift::misc::CStatusMessageList | stashModels (const swift::misc::simulation::CAircraftModelList &models, bool replace=false, bool consolidateWithDbData=true, bool clearHighlighting=true) |
Stash given models (includes validation and consolidation with DB data) | |
void | replaceModelsUnvalidated (const swift::misc::simulation::CAircraftModelList &models) |
Replace models, no validation. | |
Signals | |
void | stashedModelsChanged () |
Stashed models have been changed. | |
void | modelsSuccessfullyPublished (const swift::misc::simulation::CAircraftModelList &publishedModels, bool directWrite) |
Models succesfully published. | |
Public Member Functions | |
CDbStashComponent (QWidget *parent=nullptr) | |
Constructor. | |
virtual | ~CDbStashComponent () |
Destructor. | |
swift::misc::CStatusMessage | validateStashModel (const swift::misc::simulation::CAircraftModel &model, bool allowReplace) const |
Test the given model if it can be stashed. | |
int | unstashModels (const QSet< int > &keys) |
Unstash given models with keys. | |
int | unstashModels (const QStringList &modelStrings) |
Unstash given models by model string. | |
int | unstashModels (const swift::misc::simulation::CAircraftModelList &models) |
Unstash given models. | |
swift::gui::views::CAircraftModelView * | view () const |
The embedded view. | |
bool | hasStashedModels () const |
Has stashed models. | |
int | getStashedModelsCount () const |
Number of models. | |
QStringList | getStashedModelStrings () const |
Stashed model strings. | |
const swift::misc::simulation::CAircraftModelList & | getStashedModels () const |
The stashed models. | |
swift::misc::simulation::CAircraftModel | getStashedModel (const QString &modelString) const |
Model for model string. | |
void | applyToSelected (const swift::misc::aviation::CLivery &livery, bool acceptWarnings=true) |
Apply livery to selected objects. | |
void | applyToSelected (const swift::misc::aviation::CAircraftIcaoCode &icao, bool acceptWarnings=true) |
Apply airline ICAO code to selected objects. | |
void | applyToSelected (const swift::misc::aviation::CAirlineIcaoCode &icao, bool acceptWarnings=true) |
Apply aircraft ICAO code to selected objects. | |
void | applyToSelected (const swift::misc::simulation::CDistributor &distributor, bool acceptWarnings=true) |
Apply distributor to selected objects. | |
void | applyToSelected (const swift::misc::CPropertyIndexVariantMap &vm) |
Apply set of properties to selected objects. | |
swift::misc::simulation::CAircraftModel | consolidateModel (const swift::misc::simulation::CAircraftModel &model) const |
Consolidate with other available data. | |
void | showChangedAttributes () |
Show changed attributes of selected models. | |
void | clearValidationHighlighting () |
Clear highlighting set by validations. | |
![]() | |
virtual void | setMappingComponent (CDbMappingComponent *component) |
Set the corresponding component. | |
CDbMappingComponent * | getMappingComponent () const |
Get the mapping component. | |
![]() | |
CDockWidgetInfoArea * | getDockWidgetInfoArea () const |
Corresponding dockable widget in info area. | |
bool | hasDockWidgetArea () const |
Has dock area? | |
virtual bool | setParentDockWidgetInfoArea (CDockWidgetInfoArea *parentDockableWidget) |
Corresponding dockable widget in info area. More... | |
CInfoArea * | getParentInfoArea () const |
The parent info area. | |
bool | isParentDockWidgetFloating () const |
Is the parent dockable widget floating? | |
bool | isVisibleWidget () const |
Visible widget. More... | |
CEnableForFramelessWindow * | mainApplicationWindow () const |
Main application window if any. | |
QWidget * | mainApplicationWindowWidget () const |
Main application window widget if any. | |
void | displayMyself () |
Display myself. | |
Static Public Attributes | |
static constexpr int | MaxModelPublished = 1000 |
Number of models which can be published at once. | |
Additional Inherited Members | |
![]() | |
CDbMappingComponentAware (QObject *parent) | |
Constructor. | |
virtual | ~CDbMappingComponentAware () |
Destructor. | |
CDbMappingComponentAware (const CDbMappingComponentAware &)=default | |
Copy constructor. | |
CDbMappingComponentAware & | operator= (const CDbMappingComponentAware &)=default |
Copy assignment operator. | |
bool | showMappingComponentOverlayMessage (const swift::misc::CStatusMessage &message, std::chrono::milliseconds timeout=std::chrono::milliseconds(0)) |
Overlay messages. | |
bool | showMappingComponentOverlayHtmlMessage (const swift::misc::CStatusMessage &message, std::chrono::milliseconds timeout=std::chrono::milliseconds(0)) |
Overlay messages. | |
![]() | |
CEnableForDockWidgetInfoArea (CDockWidgetInfoArea *parentInfoArea=nullptr) | |
Constructor. More... | |
virtual | ~CEnableForDockWidgetInfoArea () |
Destructor. | |
![]() | |
CDockWidgetInfoArea * | m_parentDockableInfoArea = nullptr |
my parent dockable widget | |
swift::misc::CConnectionGuard | m_connections |
connections | |
Stashed objects.
Definition at line 57 of file dbstashcomponent.h.