Ref T131, allow to obtain settings from UI component

Useful if we want to avoid to duplicate the settings, but access existing ones
This commit is contained in:
Klaus Basan
2018-02-28 23:45:05 +01:00
parent 9827353f32
commit a8f1bb96c7
3 changed files with 14 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
#define BLACKGUI_COMPONENTS_SETTINGSCOMPONENT_H
#include "blackgui/blackguiexport.h"
#include "blackmisc/simulation/settings/simulatorsettings.h"
#include <QColor>
#include <QObject>
#include <QScopedPointer>
@@ -57,6 +58,9 @@ namespace BlackGui
//! \copydoc CAudioSetupComponent::playNotificationSounds
bool playNotificationSounds() const;
//! Settings for given simulator
BlackMisc::Simulation::Settings::CSpecializedSimulatorSettings getSimulatorSettings(const BlackMisc::Simulation::CSimulatorInfo &simulator) const;
signals:
//! Change the windows opacity 0..100
void changedWindowsOpacity(int opacity);