10 #include <QToolButton>
13 #include "ui_settingscomponent.h"
20 using namespace swift::misc::network;
21 using namespace swift::misc::aviation;
22 using namespace swift::misc::audio;
23 using namespace swift::misc::physical_quantities;
24 using namespace swift::misc::input;
25 using namespace swift::misc::simulation;
26 using namespace swift::misc::simulation::settings;
29 using namespace swift::config;
40 ui->comp_DataLoadOverview->showVisibleDbRefreshButtons(CBuildConfig::isDebugBuild() ||
42 ui->comp_DataLoadOverview->showVisibleLoadAllButtons(
false,
false,
false);
64 return ui->comp_SettingsSimulatorBasics->getSimulatorSettings(simulator);
76 void CSettingsComponent::onOverviewButtonClicked()
79 if (
sender == ui->pb_Advanced)
84 if (
sender == ui->pb_Audio)
94 if (
sender == ui->pb_Hotkeys)
99 if (
sender == ui->pb_Network)
104 if (
sender == ui->pb_Servers)
109 if (
sender == ui->pb_Simulator)
114 if (
sender == ui->pb_SimulatorBasics)
119 if (
sender == ui->pb_DataLoadAndCaches)
124 if (
sender == ui->pb_SimulatorMessages)
129 if (
sender == ui->pb_Matching)
bool isDeveloperFlagSet() const
Running with dev.flag?
swift::misc::simulation::settings::CSpecializedSimulatorSettings getSimulatorSettings(const swift::misc::simulation::CSimulatorInfo &simulator) const
Settings for given simulator.
void setSettingsOverviewTab()
Set the overview tab.
void setGuiOpacity(double value)
GUI Opacity 0-100%.
~CSettingsComponent()
Destructor.
void setTab(SettingTab tab)
Set the tab.
void changedWindowsOpacity(int opacity)
Change the windows opacity 0..100.
void changedWindowsOpacity(int opacity)
Change the windows opacity 0..100.
Simple hardcoded info about the corresponding simulator.
Allows to have specific utility functions for each simulator.
SWIFT_GUI_EXPORT swift::gui::CGuiApplication * sGui
Single instance of GUI application object.
Backend services of the swift project, like dealing with the network or the simulators.
High level reusable GUI components.
Free functions in swift::misc.
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * sender() const const
void setExpanding(bool enabled)