swift
Public Types | Signals | Public Member Functions | List of all members
swift::gui::components::CAircraftModelStringCompleter Class Reference

Completer for model strings. More...

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

Public Types

enum  CompleterSourceFlag { None = 0 , DB = 1 << 0 , ModelSet = 1 << 1 , OwnModels = 1 << 2 }
 Sources for string completion. More...
 

Signals

void modelStringChanged ()
 Model has been changed.
 

Public Member Functions

 CAircraftModelStringCompleter (QWidget *parent=nullptr)
 Constructor.
 
virtual ~CAircraftModelStringCompleter ()
 Destructor.
 
QString getModelString () const
 The model string.
 
void showSourceSelection (bool show)
 Show the selection buttons.
 
void setText (const QString &completersString)
 Set text.
 
void setModel (const swift::misc::simulation::CAircraftModel &model)
 Set model.
 
void setSourceVisible (CompleterSource source, bool visible)
 Show/hide radio buttons.
 
void selectSource (CompleterSourceFlag source)
 Set the currently selected source.
 
bool setSimulator (const swift::misc::simulation::CSimulatorInfo &simulator)
 Change the simulator.
 
swift::misc::simulation::CSimulatorInfo getSimulator () const
 Get current simulator.
 
void clear ()
 Clear.
 

Detailed Description

Completer for model strings.

Definition at line 27 of file aircraftmodelstringcompleter.h.

Member Enumeration Documentation

◆ CompleterSourceFlag

Sources for string completion.

Enumerator
None 

normally used to indicate nothing was loaded

Definition at line 33 of file aircraftmodelstringcompleter.h.


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