swift
Public Slots | Signals | Public Member Functions | Static Public Attributes | List of all members
swift::gui::components::CDbStashComponent Class Reference

Stashed objects. More...

Inheritance diagram for swift::gui::components::CDbStashComponent:
[legend]

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::CAircraftModelViewview () 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::CAircraftModelListgetStashedModels () 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.
 
- Public Member Functions inherited from swift::gui::components::CDbMappingComponentAware
virtual void setMappingComponent (CDbMappingComponent *component)
 Set the corresponding component.
 
CDbMappingComponentgetMappingComponent () const
 Get the mapping component.
 
- Public Member Functions inherited from swift::gui::CEnableForDockWidgetInfoArea
CDockWidgetInfoAreagetDockWidgetInfoArea () 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...
 
CInfoAreagetParentInfoArea () const
 The parent info area.
 
bool isParentDockWidgetFloating () const
 Is the parent dockable widget floating?
 
bool isVisibleWidget () const
 Visible widget. More...
 
CEnableForFramelessWindowmainApplicationWindow () 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

- Protected Member Functions inherited from swift::gui::components::CDbMappingComponentAware
 CDbMappingComponentAware (QObject *parent)
 Constructor.
 
virtual ~CDbMappingComponentAware ()
 Destructor.
 
 CDbMappingComponentAware (const CDbMappingComponentAware &)=default
 Copy constructor.
 
CDbMappingComponentAwareoperator= (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.
 
- Protected Member Functions inherited from swift::gui::CEnableForDockWidgetInfoArea
 CEnableForDockWidgetInfoArea (CDockWidgetInfoArea *parentInfoArea=nullptr)
 Constructor. More...
 
virtual ~CEnableForDockWidgetInfoArea ()
 Destructor.
 
- Protected Attributes inherited from swift::gui::CEnableForDockWidgetInfoArea
CDockWidgetInfoAream_parentDockableInfoArea = nullptr
 my parent dockable widget
 
swift::misc::CConnectionGuard m_connections
 connections
 

Detailed Description

Stashed objects.

Definition at line 57 of file dbstashcomponent.h.


The documentation for this class was generated from the following files: