6#include "ui_settingsswiftplugin.h"
11using namespace swift::misc::simulation;
12using namespace swift::misc::simulation::settings;
20 this->onSettingsChanged();
29 return m_settings.get();
32 void CSettingsSwiftPlugin::onSettingsChanged()
35 ui->comp_EmulatedSimulatorSelector->setValue(settings.getEmulatedSimulator());
36 ui->lep_OwnModel->setText(settings.getOwnModel().getModelString());
37 ui->lep_DefaultModel->setText(settings.getDefaultModel().getModelString());
38 ui->cb_LogFunctionCalls->setChecked(settings.isLoggingFunctionCalls());
41 void CSettingsSwiftPlugin::save()
59 CSwiftPluginSettings settings;
CSettingsSwiftPlugin(QWidget *parent=nullptr)
Ctor.
~CSettingsSwiftPlugin()
Dtor.
swift::misc::simulation::settings::CSwiftPluginSettings getPluginSettings() const
Get the plugin settings.
CStatusMessage setAndSave(const T &value, qint64 timestamp=0)
Write and save in the same step. Must be called from the thread in which the owner lives.
T get() const
Get a copy of the current value.
static void preformatted(const CStatusMessage &statusMessage)
Sends a verbatim, preformatted message to the log.
bool isEmpty() const
Message empty.
Streamable status message, e.g.
Aircraft model (used by another pilot, my models on disk).
void setModelString(const QString &modelString)
Model string.
bool hasModelString() const
Non empty model string?
void setOwnModel(const CAircraftModel &ownModel)
Set own model.
void setLoggingFunctionCalls(bool log)
Log function calls?
void setEmulatedSimulator(const CSimulatorInfo &simulator)
Emulated simualtor.
void setDefaultModel(const CAircraftModel &defaultModel)
Set default model.
High level reusable GUI components.
Free functions in swift::misc.
QFrame(QWidget *parent, Qt::WindowFlags f)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const