swift
Classes | Signals | Public Member Functions | Static Public Member Functions | List of all members
swift::gui::components::CDbOwnModelsComponent Class Reference

Handling of own models on disk (the models installed for the simulator) More...

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

Signals

void successfullyLoadedModels (const swift::misc::simulation::CSimulatorInfo &simulator, int count)
 Models have been successfully loaded.
 
void ownModelsSimulatorChanged (const swift::misc::simulation::CSimulatorInfo &simulator)
 Own models simulator has changed.
 
- Signals inherited from swift::gui::COverlayMessagesFrame
void requestTextMessageEntryTab (components::TextMessageTab tab)
 Request an text message entry.
 
void requestTextMessageEntryCallsign (const swift::misc::aviation::CCallsign &callsign)
 Request an text message entry.
 
void requestTextMessageWidget (const swift::misc::aviation::CCallsign &callsign)
 Request a text message widget.
 

Public Member Functions

 CDbOwnModelsComponent (QWidget *parent=nullptr)
 Constructor.
 
virtual ~CDbOwnModelsComponent ()
 Destructor.
 
swift::misc::simulation::CAircraftModel getOwnModelForModelString (const QString &modelString) const
 Own (installed) model for given model string.
 
swift::misc::simulation::CAircraftModelList getOwnModels () const
 Own models.
 
swift::misc::simulation::CAircraftModelList getOwnCachedModels (const swift::misc::simulation::CSimulatorInfo &simulator) const
 Own cached models from loader.
 
swift::misc::simulation::CAircraftModelList getOwnSelectedModels () const
 Own models selected in view.
 
swift::misc::simulation::CSimulatorInfo getOwnModelsSimulator () const
 Own models for simulator.
 
bool setSimulator (const swift::misc::simulation::CSimulatorInfo &simulator, bool forced=false)
 Change current simulator for own models.
 
void setSimulatorSelectorMode (CSimulatorSelector::Mode mode)
 How to display. More...
 
int getOwnModelsCount () const
 Number of own models.
 
QString getInfoString () const
 Info string about models in cache. More...
 
QString getInfoStringFsFamily () const
 Info string without XPlane (FSX,P3D, FS9) More...
 
swift::misc::CStatusMessage updateViewAndCache (const swift::misc::simulation::CAircraftModelList &models)
 Update view and cache.
 
void clearView ()
 Clear the view.
 
swift::gui::views::CAircraftModelViewview () const
 Models view.
 
models::CAircraftModelListModelmodel () const
 Access to aircraft model.
 
swift::misc::simulation::IAircraftModelLoadermodelLoader () const
 Access to model loader.
 
bool requestModelsInBackground (const swift::misc::simulation::CSimulatorInfo &simulator, bool onlyIfNotEmpty)
 Forced read for given simulator.
 
void gracefulShutdown ()
 Graceful shutdown.
 
Implementations of the models interfaces
virtual void setModels (const swift::misc::simulation::CAircraftModelList &models)
 Set models.
 
virtual void setModelsForSimulator (const swift::misc::simulation::CAircraftModelList &models, const swift::misc::simulation::CSimulatorInfo &simulator)
 Set models.
 
virtual int updateModels (const swift::misc::simulation::CAircraftModelList &models)
 Update models.
 
virtual int updateModelsForSimulator (const swift::misc::simulation::CAircraftModelList &models, const swift::misc::simulation::CSimulatorInfo &simulator)
 Set models.
 
- Public Member Functions inherited from swift::gui::COverlayMessagesFrame
 COverlayMessagesFrame (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
 Constructor.
 
- Public Member Functions inherited from swift::gui::COverlayMessagesBase< QFrame >
virtual ~COverlayMessagesBase ()
 Destructor.
 
void initOverlayMessages (QSize inner={})
 Init, normally we use lazy init, but by calling init explicitly we can force initalization. More...
 
void activateTextMessages (bool activate)
 Active send/receive of text messages. More...
 
void showStatusMessagesFrame ()
 Show the inner frame.
 
void setOverlaySizeFactors (double widthFactor, double heightFactor, double middleFactor=2)
 Set the size factors.
 
void setForceSmall (bool force)
 Force small (smaller layout) More...
 
void setReducedInfo (bool reduced)
 Display reduced information. More...
 
void showOverlayMessagesWithConfirmation (const swift::misc::CStatusMessageList &messages, bool appendOldMessages, const QString &confirmationMessage, std::function< void()> okLambda, QMessageBox::StandardButton defaultButton=QMessageBox::Cancel, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Show multiple messages with confirmation bar. More...
 
void clearOverlayMessages ()
 Clear the overlay messages. More...
 
void closeOverlay ()
 Close button clicked. More...
 
void showOverlayMessages (const swift::misc::CStatusMessageList &messages, bool appendOldMessages=false, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Show multiple messages. More...
 
void showOverlayMessagesOrSingleMessage (const swift::misc::CStatusMessageList &messages, bool appendOldMessages=false, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Show multiple messages or a single message. More...
 
void showOverlayMessagesOrHTMLMessage (const swift::misc::CStatusMessageList &messages, bool appendOldMessages=false, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Show multiple messages or a single message (HTML) More...
 
void sortOverlayMessages (const swift::misc::CPropertyIndex &property, Qt::SortOrder order)
 Sort of overlay messages. More...
 
void setOverlayMessagesSorting (const swift::misc::CPropertyIndex &property, Qt::SortOrder order)
 Set sorting of overlay messages. More...
 
bool showOverlayMessage (const swift::misc::CStatusMessage &message, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Show single message. More...
 
bool showOverlayTextMessage (const swift::misc::network::CTextMessage &textMessage, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Info message, based on text message. More...
 
void showOverlayVariant (const swift::misc::CVariant &variant, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Display one of the supported types. More...
 
void showOverlayImage (const swift::misc::CPixmap &pixmap, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Image. More...
 
bool showOverlayHTMLMessage (const QString &htmlMessage, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 HTML message. More...
 
bool showOverlayHTMLMessage (const swift::misc::CStatusMessage &message, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 HTML message. More...
 
void showDownloadProgress (int progress, qint64 current, qint64 max, const QUrl &url, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))
 Download progress. More...
 
void showOverlayInlineTextMessage (components::TextMessageTab tab)
 Image. More...
 
void showOverlayInlineTextMessage (const swift::misc::aviation::CCallsign &callsign)
 Image. More...
 
- Public Member Functions inherited from swift::misc::simulation::IModelsSetable
 IModelsSetable ()
 Ctor, dtor, copy operators (CLANG warnings)
 
virtual ~IModelsSetable ()
 Ctor, dtor, copy operators (CLANG warnings)
 
 IModelsSetable (const IModelsSetable &)=default
 Ctor, dtor, copy operators (CLANG warnings)
 
IModelsSetableoperator= (const IModelsSetable &)=default
 Ctor, dtor, copy operators (CLANG warnings)
 
- Public Member Functions inherited from swift::misc::simulation::IModelsUpdatable
 IModelsUpdatable ()
 Ctor, dtor, copy operators (CLANG warnings)
 
virtual ~IModelsUpdatable ()
 Ctor, dtor, copy operators (CLANG warnings)
 
 IModelsUpdatable (const IModelsUpdatable &)=default
 Ctor, dtor, copy operators (CLANG warnings)
 
IModelsUpdatableoperator= (const IModelsUpdatable &)=default
 Ctor, dtor, copy operators (CLANG warnings)
 
- Public Member Functions inherited from swift::misc::simulation::IModelsForSimulatorSetable
 IModelsForSimulatorSetable ()
 Ctor, dtor, copy operators (CLANG warnings)
 
virtual ~IModelsForSimulatorSetable ()
 Ctor, dtor, copy operators (CLANG warnings)
 
 IModelsForSimulatorSetable (const IModelsForSimulatorSetable &)=default
 Ctor, dtor, copy operators (CLANG warnings)
 
IModelsForSimulatorSetableoperator= (const IModelsForSimulatorSetable &)=default
 Ctor, dtor, copy operators (CLANG warnings)
 
- Public Member Functions inherited from swift::misc::simulation::IModelsForSimulatorUpdatable
 IModelsForSimulatorUpdatable ()
 Ctor, dtor, copy operators (CLANG warnings)
 
virtual ~IModelsForSimulatorUpdatable ()
 Ctor, dtor, copy operators (CLANG warnings)
 
 IModelsForSimulatorUpdatable (const IModelsForSimulatorUpdatable &)=default
 Ctor, dtor, copy operators (CLANG warnings)
 
IModelsForSimulatorUpdatableoperator= (const IModelsForSimulatorUpdatable &)=default
 Ctor, dtor, copy operators (CLANG warnings)
 

Static Public Member Functions

static const QStringList & getLogCategories ()
 Log categories.
 

Additional Inherited Members

- Protected Member Functions inherited from swift::gui::COverlayMessagesBase< QFrame >
 COverlayMessagesBase (QWidget *parent, Qt::WindowFlags f=Qt::WindowFlags())
 Constructor.
 
void initInnerFrame (double widthFactor=-1, double heightFactor=-1)
 Init the inner frame (if not yet initialized)
 
void initMinimalFrame (int lines=4)
 Init a minimal frame (smaller as the normal one)
 
bool hasMinimumSize (int w, int h) const
 Check minimum height/width.
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void resizeEvent (QResizeEvent *event)
 
- Protected Attributes inherited from swift::gui::COverlayMessagesBase< QFrame >
COverlayMessagesm_overlayMessages
 embedded QFrame with status messages
 

Detailed Description

Handling of own models on disk (the models installed for the simulator)

Definition at line 56 of file dbownmodelscomponent.h.

Member Function Documentation

◆ getInfoString()

QString swift::gui::components::CDbOwnModelsComponent::getInfoString ( ) const

Info string about models in cache.

Remarks
This function is thread safe.

Definition at line 188 of file dbownmodelscomponent.cpp.

◆ getInfoStringFsFamily()

QString swift::gui::components::CDbOwnModelsComponent::getInfoStringFsFamily ( ) const

Info string without XPlane (FSX,P3D, FS9)

Remarks
This function is thread safe.

Definition at line 194 of file dbownmodelscomponent.cpp.

◆ setSimulatorSelectorMode()

void swift::gui::components::CDbOwnModelsComponent::setSimulatorSelectorMode ( CSimulatorSelector::Mode  mode)

How to display.

Definition at line 171 of file dbownmodelscomponent.cpp.


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