mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
Formatting, naming
This commit is contained in:
@@ -21,7 +21,7 @@ namespace BlackSimPlugin
|
|||||||
{
|
{
|
||||||
namespace Fsx
|
namespace Fsx
|
||||||
{
|
{
|
||||||
/**
|
/*!
|
||||||
* A component that gathers all SimConnect-related settings.
|
* A component that gathers all SimConnect-related settings.
|
||||||
*/
|
*/
|
||||||
class CSimConnectSettingsComponent : public QFrame
|
class CSimConnectSettingsComponent : public QFrame
|
||||||
|
|||||||
@@ -5,10 +5,9 @@ namespace BlackSimPlugin
|
|||||||
{
|
{
|
||||||
namespace Fsx
|
namespace Fsx
|
||||||
{
|
{
|
||||||
|
|
||||||
CSimulatorFsxConfig::CSimulatorFsxConfig(QObject *parent) : QObject(parent)
|
CSimulatorFsxConfig::CSimulatorFsxConfig(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
|
// void
|
||||||
}
|
}
|
||||||
|
|
||||||
BlackGui::CPluginConfigWindow *CSimulatorFsxConfig::createConfigWindow(QWidget *parent)
|
BlackGui::CPluginConfigWindow *CSimulatorFsxConfig::createConfigWindow(QWidget *parent)
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ namespace BlackSimPlugin
|
|||||||
{
|
{
|
||||||
namespace Fsx
|
namespace Fsx
|
||||||
{
|
{
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Window for setting up the FSX plugin.
|
* Window for setting up the FSX plugin.
|
||||||
*/
|
*/
|
||||||
@@ -39,7 +38,6 @@ namespace BlackSimPlugin
|
|||||||
//! \copydoc BlackGui::IPluginConfig::createConfigWindow()
|
//! \copydoc BlackGui::IPluginConfig::createConfigWindow()
|
||||||
BlackGui::CPluginConfigWindow *createConfigWindow(QWidget *parent) override;
|
BlackGui::CPluginConfigWindow *createConfigWindow(QWidget *parent) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,20 +8,17 @@ namespace BlackSimPlugin
|
|||||||
{
|
{
|
||||||
namespace Fsx
|
namespace Fsx
|
||||||
{
|
{
|
||||||
|
|
||||||
CSimulatorFsxConfigWindow::CSimulatorFsxConfigWindow(QWidget *parent) :
|
CSimulatorFsxConfigWindow::CSimulatorFsxConfigWindow(QWidget *parent) :
|
||||||
CPluginConfigWindow(parent),
|
CPluginConfigWindow(parent),
|
||||||
ui(new Ui::CSimulatorFsxConfigWindow)
|
ui(new Ui::CSimulatorFsxConfigWindow)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
connect(ui->bb_OkCancel, &QDialogButtonBox::rejected, this, &QWidget::close);
|
connect(ui->bb_OkCancel, &QDialogButtonBox::rejected, this, &QWidget::close);
|
||||||
}
|
}
|
||||||
|
|
||||||
CSimulatorFsxConfigWindow::~CSimulatorFsxConfigWindow()
|
CSimulatorFsxConfigWindow::~CSimulatorFsxConfigWindow()
|
||||||
{
|
{
|
||||||
|
// void
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,15 +16,12 @@
|
|||||||
#include "blackgui/pluginconfigwindow.h"
|
#include "blackgui/pluginconfigwindow.h"
|
||||||
#include <QScopedPointer>
|
#include <QScopedPointer>
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui { class CSimulatorFsxConfigWindow; }
|
||||||
class CSimulatorFsxConfigWindow;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace BlackSimPlugin
|
namespace BlackSimPlugin
|
||||||
{
|
{
|
||||||
namespace Fsx
|
namespace Fsx
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A window the lets user set up the FSX plugin.
|
* A window the lets user set up the FSX plugin.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="BlackSimPlugin::Fsx::CSimConnectSettingsComponent" name="frame">
|
<widget class="BlackSimPlugin::Fsx::CSimConnectSettingsComponent" name="fr_simConnectSettings">
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::StyledPanel</enum>
|
<enum>QFrame::StyledPanel</enum>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ namespace BlackSimPlugin
|
|||||||
{
|
{
|
||||||
namespace XPlane
|
namespace XPlane
|
||||||
{
|
{
|
||||||
|
|
||||||
CSimulatorXPlaneConfig::CSimulatorXPlaneConfig(QObject *parent) : QObject(parent)
|
CSimulatorXPlaneConfig::CSimulatorXPlaneConfig(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ namespace BlackSimPlugin
|
|||||||
{
|
{
|
||||||
namespace XPlane
|
namespace XPlane
|
||||||
{
|
{
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Setting for XBus.
|
* Setting for XBus.
|
||||||
*/
|
*/
|
||||||
@@ -50,7 +49,6 @@ namespace BlackSimPlugin
|
|||||||
|
|
||||||
//! \copydoc BlackGui::IPluginConfig::createConfigWindow()
|
//! \copydoc BlackGui::IPluginConfig::createConfigWindow()
|
||||||
BlackGui::CPluginConfigWindow *createConfigWindow(QWidget *parent) override;
|
BlackGui::CPluginConfigWindow *createConfigWindow(QWidget *parent) override;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ namespace BlackSimPlugin
|
|||||||
{
|
{
|
||||||
namespace XPlane
|
namespace XPlane
|
||||||
{
|
{
|
||||||
|
|
||||||
CSimulatorXPlaneConfigWindow::CSimulatorXPlaneConfigWindow(QWidget *parent) :
|
CSimulatorXPlaneConfigWindow::CSimulatorXPlaneConfigWindow(QWidget *parent) :
|
||||||
CPluginConfigWindow(parent),
|
CPluginConfigWindow(parent),
|
||||||
ui(new Ui::CSimulatorXPlaneConfigWindow)
|
ui(new Ui::CSimulatorXPlaneConfigWindow)
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ namespace BlackSimPlugin
|
|||||||
private:
|
private:
|
||||||
QScopedPointer<Ui::CSimulatorXPlaneConfigWindow> ui;
|
QScopedPointer<Ui::CSimulatorXPlaneConfigWindow> ui;
|
||||||
BlackMisc::CSetting<XBusServer> m_xbusServerSetting { this };
|
BlackMisc::CSetting<XBusServer> m_xbusServerSetting { this };
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user