7#include <QDialogButtonBox>
9#include "ui_simulatorflightgearconfigwindow.h"
16using namespace swift::misc::simulation::settings;
19namespace swift::simplugin::flightgear
26 ui->comp_SettingsFGSwiftBus->setDefaultP2PAddress(
27 m_fgswiftbusServerSetting.getDefault().getDBusServerAddress());
28 ui->comp_SettingsFGSwiftBus->set(m_fgswiftbusServerSetting.getThreadLocal().getDBusServerAddress());
31 &CSimulatorFlightgearConfigWindow::onSettingsAccepted);
44 void CSimulatorFlightgearConfigWindow::onSettingsChanged()
49 void CSimulatorFlightgearConfigWindow::onSettingsAccepted()
51 if (!sGui || sGui->isShuttingDown())
61 m_fgswiftbusServerSetting.
set(changed);
static void disableMinMaxCloseButtons(QWidget *window)
Disable close button on window.
CPluginConfigWindow(QWidget *parent)
No parent.
CStatusMessage set(const T &value, qint64 timestamp=0)
Write a new value. Must be called from the thread in which the owner lives.
const T & getThreadLocal() const
Read the current value.
void setDBusServerAddress(const QString &dBusServer)
Set DBus server.
QString getDBusServerAddress() const
DBus server.
~CSimulatorFlightgearConfigWindow()
Dtor.
CSimulatorFlightgearConfigWindow(QWidget *parent)
Ctor.
Free functions in swift::misc.
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const