mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-28 20:25:34 +08:00
refactor: Remove simulator logos
This commit is contained in:
@@ -77,15 +77,6 @@ namespace BlackGui::Components
|
|||||||
CGuiUtility::checkBoxReadOnly(ui->cb_XP, !CBuildConfig::isCompiledWithXPlaneSupport());
|
CGuiUtility::checkBoxReadOnly(ui->cb_XP, !CBuildConfig::isCompiledWithXPlaneSupport());
|
||||||
CGuiUtility::checkBoxReadOnly(ui->cb_FG, !CBuildConfig::isCompiledWithFGSupport());
|
CGuiUtility::checkBoxReadOnly(ui->cb_FG, !CBuildConfig::isCompiledWithFGSupport());
|
||||||
|
|
||||||
/** does NOT work
|
|
||||||
const qreal fadeOut = 0.25;
|
|
||||||
ui->lbl_P3D->setWindowOpacity(CBuildConfig::isCompiledWithP3DSupport() ? 1.0 : fadeOut);
|
|
||||||
ui->lbl_FSX->setWindowOpacity(CBuildConfig::isCompiledWithFsxSupport() ? 1.0 : fadeOut);
|
|
||||||
ui->lbl_FS9->setWindowOpacity(CBuildConfig::isCompiledWithFs9Support() ? 1.0 : fadeOut);
|
|
||||||
ui->lbl_XP->setWindowOpacity(CBuildConfig::isCompiledWithXPlaneSupport() ? 1.0 : fadeOut);
|
|
||||||
ui->lbl_FG->setWindowOpacity(CBuildConfig::isCompiledWithFGSupport() ? 1.0 : fadeOut);
|
|
||||||
**/
|
|
||||||
|
|
||||||
if (p3d) { ui->comp_SettingsSimulator->setSimulator(CSimulatorInfo(CSimulatorInfo::P3D)); }
|
if (p3d) { ui->comp_SettingsSimulator->setSimulator(CSimulatorInfo(CSimulatorInfo::P3D)); }
|
||||||
else if (fsx) { ui->comp_SettingsSimulator->setSimulator(CSimulatorInfo(CSimulatorInfo::FSX)); }
|
else if (fsx) { ui->comp_SettingsSimulator->setSimulator(CSimulatorInfo(CSimulatorInfo::FSX)); }
|
||||||
else if (fs9) { ui->comp_SettingsSimulator->setSimulator(CSimulatorInfo(CSimulatorInfo::FS9)); }
|
else if (fs9) { ui->comp_SettingsSimulator->setSimulator(CSimulatorInfo(CSimulatorInfo::FS9)); }
|
||||||
|
|||||||
@@ -51,16 +51,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="2" alignment="Qt::AlignHCenter">
|
|
||||||
<widget class="QLabel" name="lbl_FS9">
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true">background: "lightgrey"</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string><img width="100" src=":/simulators/icons/simulators/FS9.png"/></string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0" alignment="Qt::AlignHCenter">
|
<item row="1" column="0" alignment="Qt::AlignHCenter">
|
||||||
<widget class="QCheckBox" name="cb_P3D">
|
<widget class="QCheckBox" name="cb_P3D">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@@ -75,16 +65,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1" alignment="Qt::AlignHCenter">
|
|
||||||
<widget class="QLabel" name="lbl_FSX">
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true">background: "lightgrey"</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string><img width="100" src=":/simulators/icons/simulators/FSX.png"/></string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="2" alignment="Qt::AlignHCenter">
|
<item row="1" column="2" alignment="Qt::AlignHCenter">
|
||||||
<widget class="QCheckBox" name="cb_FS9">
|
<widget class="QCheckBox" name="cb_FS9">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@@ -98,33 +78,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="3" alignment="Qt::AlignHCenter">
|
|
||||||
<widget class="QLabel" name="lbl_XP">
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true">background: "lightgrey"</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string><img width="100" src=":/simulators/icons/simulators/XPlane.png"/></string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QLabel" name="lbl_P3D">
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true">background: "lightgrey"</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string><img width="130" src=":/simulators/icons/simulators/Prepar3D.png"/></string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="4" alignment="Qt::AlignHCenter">
|
|
||||||
<widget class="QLabel" name="lbl_FG">
|
|
||||||
<property name="text">
|
|
||||||
<string><img width="50" src=":/simulators/icons/simulators/FG.png"/></string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="4" alignment="Qt::AlignHCenter">
|
<item row="1" column="4" alignment="Qt::AlignHCenter">
|
||||||
<widget class="QCheckBox" name="cb_FG">
|
<widget class="QCheckBox" name="cb_FG">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
|||||||
@@ -20,26 +20,6 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QFrame" name="fr_InfoHeader">
|
<widget class="QFrame" name="fr_InfoHeader">
|
||||||
<layout class="QHBoxLayout" name="hl_InfoHeader" stretch="1,1,3">
|
<layout class="QHBoxLayout" name="hl_InfoHeader" stretch="1,1,3">
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="lbl_FSX">
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true">background: "lightgrey"</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string><img width="100" src=":/simulators/icons/simulators/FSX.png"/></string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="lbl_P3D">
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true">background: "lightgrey"</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string><img width="130" src=":/simulators/icons/simulators/Prepar3D.png"/></string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="lbl_Explaination">
|
<widget class="QLabel" name="lbl_Explaination">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
|||||||
@@ -32,13 +32,6 @@
|
|||||||
<property name="bottomMargin">
|
<property name="bottomMargin">
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="lbl_XplaneIcon">
|
|
||||||
<property name="text">
|
|
||||||
<string><html><img src=":/simulators/icons/simulators/XPlane.png" width=175></html></string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="lbl_Explaination">
|
<widget class="QLabel" name="lbl_Explaination">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
|||||||
@@ -579,13 +579,6 @@
|
|||||||
<file>icons/misc/cn.png</file>
|
<file>icons/misc/cn.png</file>
|
||||||
<file>icons/misc/ru.png</file>
|
<file>icons/misc/ru.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/simulators">
|
|
||||||
<file>icons/simulators/FS9.png</file>
|
|
||||||
<file>icons/simulators/FSX.png</file>
|
|
||||||
<file>icons/simulators/Prepar3D.png</file>
|
|
||||||
<file>icons/simulators/XPlane.png</file>
|
|
||||||
<file>icons/simulators/FG.png</file>
|
|
||||||
</qresource>
|
|
||||||
<qresource prefix="/famfamfam">
|
<qresource prefix="/famfamfam">
|
||||||
<file>icons/famfamfam/icons/silk/control_eject.png</file>
|
<file>icons/famfamfam/icons/silk/control_eject.png</file>
|
||||||
<file>icons/famfamfam/icons/silk/control_eject_blue.png</file>
|
<file>icons/famfamfam/icons/silk/control_eject_blue.png</file>
|
||||||
|
|||||||
@@ -155,16 +155,6 @@ namespace BlackMisc
|
|||||||
CIcon(CIcons::OSLinux, "Linux"),
|
CIcon(CIcons::OSLinux, "Linux"),
|
||||||
CIcon(CIcons::OSMacOs, "Mac OS"),
|
CIcon(CIcons::OSMacOs, "Mac OS"),
|
||||||
CIcon(CIcons::OSWindows, "Windows"),
|
CIcon(CIcons::OSWindows, "Windows"),
|
||||||
CIcon(CIcons::SimulatorFG, "FG"),
|
|
||||||
CIcon(CIcons::SimulatorFG16, "FG"),
|
|
||||||
CIcon(CIcons::SimulatorFS9, "FS9"),
|
|
||||||
CIcon(CIcons::SimulatorFS916, "FS9"),
|
|
||||||
CIcon(CIcons::SimulatorFSX, "FSX"),
|
|
||||||
CIcon(CIcons::SimulatorFSX16, "FSX"),
|
|
||||||
CIcon(CIcons::SimulatorP3D, "P3D"),
|
|
||||||
CIcon(CIcons::SimulatorP3D16, "P3D"),
|
|
||||||
CIcon(CIcons::SimulatorXPlane, "XPlane"),
|
|
||||||
CIcon(CIcons::SimulatorXPlane16, "XPlane"),
|
|
||||||
CIcon(CIcons::StandardIconAppAircraft16, "aircraft"),
|
CIcon(CIcons::StandardIconAppAircraft16, "aircraft"),
|
||||||
CIcon(CIcons::StandardIconAppAtc16, "ATC"),
|
CIcon(CIcons::StandardIconAppAtc16, "ATC"),
|
||||||
CIcon(CIcons::StandardIconAppFlightPlan16, "flight plan"),
|
CIcon(CIcons::StandardIconAppFlightPlan16, "flight plan"),
|
||||||
|
|||||||
@@ -537,66 +537,6 @@ namespace BlackMisc
|
|||||||
return pm;
|
return pm;
|
||||||
}
|
}
|
||||||
|
|
||||||
const QPixmap &CIcons::simulatorFSX()
|
|
||||||
{
|
|
||||||
static const QPixmap pm(":/simulators/icons/simulators/FSX.png");
|
|
||||||
return pm;
|
|
||||||
}
|
|
||||||
|
|
||||||
const QPixmap &CIcons::simulatorFSX16()
|
|
||||||
{
|
|
||||||
static const QPixmap pm(simulatorFSX().scaled(32, 16, Qt::KeepAspectRatio));
|
|
||||||
return pm;
|
|
||||||
}
|
|
||||||
|
|
||||||
const QPixmap &CIcons::simulatorP3D()
|
|
||||||
{
|
|
||||||
static const QPixmap pm(":/simulators/icons/simulators/Prepar3D.png");
|
|
||||||
return pm;
|
|
||||||
}
|
|
||||||
|
|
||||||
const QPixmap &CIcons::simulatorP3D16()
|
|
||||||
{
|
|
||||||
static const QPixmap pm(simulatorP3D().scaled(32, 16, Qt::KeepAspectRatio));
|
|
||||||
return pm;
|
|
||||||
}
|
|
||||||
|
|
||||||
const QPixmap &CIcons::simulatorFS9()
|
|
||||||
{
|
|
||||||
static const QPixmap pm(":/simulators/icons/simulators/FS9.png");
|
|
||||||
return pm;
|
|
||||||
}
|
|
||||||
|
|
||||||
const QPixmap &CIcons::simulatorFS916()
|
|
||||||
{
|
|
||||||
static const QPixmap pm(simulatorFS9().scaled(32, 16, Qt::KeepAspectRatio));
|
|
||||||
return pm;
|
|
||||||
}
|
|
||||||
|
|
||||||
const QPixmap &CIcons::simulatorFG()
|
|
||||||
{
|
|
||||||
static const QPixmap pm(":/simulators/icons/simulators/FG.png");
|
|
||||||
return pm;
|
|
||||||
}
|
|
||||||
|
|
||||||
const QPixmap &CIcons::simulatorFG16()
|
|
||||||
{
|
|
||||||
static const QPixmap pm(simulatorFG().scaled(32, 16, Qt::KeepAspectRatio));
|
|
||||||
return pm;
|
|
||||||
}
|
|
||||||
|
|
||||||
const QPixmap &CIcons::simulatorXPlane()
|
|
||||||
{
|
|
||||||
static const QPixmap pm(":/simulators/icons/simulators/FS9.png");
|
|
||||||
return pm;
|
|
||||||
}
|
|
||||||
|
|
||||||
const QPixmap &CIcons::simulatorXPlane16()
|
|
||||||
{
|
|
||||||
static const QPixmap pm(simulatorXPlane().scaled(32, 16, Qt::KeepAspectRatio));
|
|
||||||
return pm;
|
|
||||||
}
|
|
||||||
|
|
||||||
const QPixmap &CIcons::swift16()
|
const QPixmap &CIcons::swift16()
|
||||||
{
|
{
|
||||||
static const QPixmap pm(":/own/icons/own/swift3D/sw3DBlue-16.png");
|
static const QPixmap pm(":/own/icons/own/swift3D/sw3DBlue-16.png");
|
||||||
@@ -1213,16 +1153,6 @@ namespace BlackMisc
|
|||||||
case OSLinux: return osLinux();
|
case OSLinux: return osLinux();
|
||||||
case OSMacOs: return osMac();
|
case OSMacOs: return osMac();
|
||||||
case OSWindows: return osWindows();
|
case OSWindows: return osWindows();
|
||||||
case SimulatorFG: return simulatorFG();
|
|
||||||
case SimulatorFG16: return simulatorFG16();
|
|
||||||
case SimulatorFS9: return simulatorFS9();
|
|
||||||
case SimulatorFS916: return simulatorFS916();
|
|
||||||
case SimulatorFSX: return simulatorFSX();
|
|
||||||
case SimulatorFSX16: return simulatorFSX16();
|
|
||||||
case SimulatorP3D: return simulatorP3D();
|
|
||||||
case SimulatorP3D16: return simulatorP3D16();
|
|
||||||
case SimulatorXPlane: return simulatorXPlane();
|
|
||||||
case SimulatorXPlane16: return simulatorXPlane16();
|
|
||||||
case StandardIconAppAircraft16: return appAircraft16();
|
case StandardIconAppAircraft16: return appAircraft16();
|
||||||
case StandardIconAppAtc16: return appAtc16();
|
case StandardIconAppAtc16: return appAtc16();
|
||||||
case StandardIconAppFlightPlan16: return appFlightPlan16();
|
case StandardIconAppFlightPlan16: return appFlightPlan16();
|
||||||
|
|||||||
@@ -91,16 +91,6 @@ namespace BlackMisc
|
|||||||
OSLinux,
|
OSLinux,
|
||||||
OSMacOs,
|
OSMacOs,
|
||||||
OSWindows,
|
OSWindows,
|
||||||
SimulatorFG,
|
|
||||||
SimulatorFG16,
|
|
||||||
SimulatorFS9,
|
|
||||||
SimulatorFS916,
|
|
||||||
SimulatorFSX,
|
|
||||||
SimulatorFSX16,
|
|
||||||
SimulatorP3D,
|
|
||||||
SimulatorP3D16,
|
|
||||||
SimulatorXPlane,
|
|
||||||
SimulatorXPlane16,
|
|
||||||
StandardIconAppAircraft16,
|
StandardIconAppAircraft16,
|
||||||
StandardIconAppAtc16,
|
StandardIconAppAtc16,
|
||||||
StandardIconAppFlightPlan16,
|
StandardIconAppFlightPlan16,
|
||||||
@@ -499,40 +489,6 @@ namespace BlackMisc
|
|||||||
//! Preloader
|
//! Preloader
|
||||||
static const QPixmap &preloader16();
|
static const QPixmap &preloader16();
|
||||||
|
|
||||||
// --------------------------------------------------
|
|
||||||
// -- Simulators
|
|
||||||
// --------------------------------------------------
|
|
||||||
|
|
||||||
//! @{
|
|
||||||
//! Simulator FSX
|
|
||||||
static const QPixmap &simulatorFSX();
|
|
||||||
static const QPixmap &simulatorFSX16();
|
|
||||||
//! @}
|
|
||||||
|
|
||||||
//! @{
|
|
||||||
//! Simulator P3D
|
|
||||||
static const QPixmap &simulatorP3D();
|
|
||||||
static const QPixmap &simulatorP3D16();
|
|
||||||
//! @}
|
|
||||||
|
|
||||||
//! @{
|
|
||||||
//! Simulator FS9
|
|
||||||
static const QPixmap &simulatorFS9();
|
|
||||||
static const QPixmap &simulatorFS916();
|
|
||||||
//! @}
|
|
||||||
|
|
||||||
//! @{
|
|
||||||
//! Simulator FG
|
|
||||||
static const QPixmap &simulatorFG();
|
|
||||||
static const QPixmap &simulatorFG16();
|
|
||||||
//! @}
|
|
||||||
|
|
||||||
//! @{
|
|
||||||
//! Simulator XPlane
|
|
||||||
static const QPixmap &simulatorXPlane();
|
|
||||||
static const QPixmap &simulatorXPlane16();
|
|
||||||
//! @}
|
|
||||||
|
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
// -- swift
|
// -- swift
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.7 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 67 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 25 KiB |
@@ -168,19 +168,7 @@ namespace BlackMisc::Simulation
|
|||||||
|
|
||||||
CIcons::IconIndex CSimulatorInfo::toIcon() const
|
CIcons::IconIndex CSimulatorInfo::toIcon() const
|
||||||
{
|
{
|
||||||
if (this->isSingleSimulator())
|
return CIcons::StandardIconEmpty;
|
||||||
{
|
|
||||||
switch (this->getSimulator())
|
|
||||||
{
|
|
||||||
case FSX: return CIcons::SimulatorFSX16;
|
|
||||||
case FS9: return CIcons::SimulatorFS916;
|
|
||||||
case P3D: return CIcons::SimulatorP3D16;
|
|
||||||
case XPLANE: return CIcons::SimulatorXPlane16;
|
|
||||||
case FG: return CIcons::SimulatorXPlane16;
|
|
||||||
default: break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return CValueObject::toIcon();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CSimulatorInfo CSimulatorInfo::add(const CSimulatorInfo &other)
|
CSimulatorInfo CSimulatorInfo::add(const CSimulatorInfo &other)
|
||||||
|
|||||||
Reference in New Issue
Block a user