Removed settings context

* removed old settings related classes
* moved notifications to BlackMisc::Audio
* added audio settings where needed

refs #464
refs #337
This commit is contained in:
Klaus Basan
2015-10-16 00:09:24 +02:00
committed by Mathew Sutcliffe
parent 821e0417ae
commit ac61a3458d
71 changed files with 350 additions and 1401 deletions

View File

@@ -11,6 +11,8 @@
#include "blackcore/context_all_interfaces.h"
#include <QWidget>
using namespace BlackMisc::Audio;
namespace BlackGui
{
namespace Components
@@ -91,18 +93,6 @@ namespace BlackGui
return this->m_runtime->getIContextOwnAircraft();
}
BlackCore::IContextSettings *CEnableForRuntime::getIContextSettings()
{
if (!this->m_runtime) return nullptr;
return this->m_runtime->getIContextSettings();
}
const BlackCore::IContextSettings *CEnableForRuntime::getIContextSettings() const
{
if (!this->m_runtime) return nullptr;
return this->m_runtime->getIContextSettings();
}
const BlackCore::IContextSimulator *CEnableForRuntime::getIContextSimulator() const
{
if (!this->m_runtime) return nullptr;
@@ -115,7 +105,7 @@ namespace BlackGui
return this->m_runtime->getIContextSimulator();
}
void CEnableForRuntime::playNotifcationSound(BlackSound::CNotificationSounds::Notification notification) const
void CEnableForRuntime::playNotifcationSound(CNotificationSounds::Notification notification) const
{
if (!this->getIContextAudio()) return;
this->getIContextAudio()->playNotification(notification, true);