diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-31 20:16:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-31 20:16:39 +0300 |
commit | 35d4ce0ed75b2575067007a85d5c211d292ebada (patch) | |
tree | e5749655db88531768635586e52508cefdfd8a5a /src/gui/widgets | |
parent | 8f52bfee633b4aa2f7e49c1e16428d8f1c03fcfc (diff) | |
download | plus-35d4ce0ed75b2575067007a85d5c211d292ebada.tar.gz plus-35d4ce0ed75b2575067007a85d5c211d292ebada.tar.bz2 plus-35d4ce0ed75b2575067007a85d5c211d292ebada.tar.xz plus-35d4ce0ed75b2575067007a85d5c211d292ebada.zip |
Rename SoundManager sigleton from sound to soundManager.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/chattab.cpp | 8 | ||||
-rw-r--r-- | src/gui/widgets/guildchattab.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/setupitem.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/window.cpp | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp index f219bb661..31ae6a84b 100644 --- a/src/gui/widgets/chattab.cpp +++ b/src/gui/widgets/chattab.cpp @@ -289,7 +289,7 @@ void ChatTab::chatLog(std::string line, Own own, if (chatWindow && chatWindow->findHighlight(tmp.text)) { setFlash(2); - sound.playGuiSound(SOUND_HIGHLIGHT); + soundManager.playGuiSound(SOUND_HIGHLIGHT); } else { @@ -299,7 +299,7 @@ void ChatTab::chatLog(std::string line, Own own, else if (getFlash() == 2) { if (chatWindow && chatWindow->findHighlight(tmp.text)) - sound.playGuiSound(SOUND_HIGHLIGHT); + soundManager.playGuiSound(SOUND_HIGHLIGHT); } } @@ -312,7 +312,7 @@ void ChatTab::chatLog(std::string line, Own own, { if (chatWindow) chatWindow->unHideWindow(); - sound.playGuiSound(SOUND_GLOBAL); + soundManager.playGuiSound(SOUND_GLOBAL); } else if (own != BY_SERVER) { @@ -510,7 +510,7 @@ void ChatTab::addNewRow(std::string &line) void ChatTab::playNewMessageSound() { - sound.playGuiSound(SOUND_WHISPER); + soundManager.playGuiSound(SOUND_WHISPER); } void ChatTab::showOnline(const std::string &nick, diff --git a/src/gui/widgets/guildchattab.cpp b/src/gui/widgets/guildchattab.cpp index 5917fbda4..bb85e1a5b 100644 --- a/src/gui/widgets/guildchattab.cpp +++ b/src/gui/widgets/guildchattab.cpp @@ -134,7 +134,7 @@ void GuildChatTab::saveToLogFile(std::string &msg) void GuildChatTab::playNewMessageSound() { - sound.playGuiSound(SOUND_GUILD); + soundManager.playGuiSound(SOUND_GUILD); } void GuildChatTab::optionChanged(const std::string &value) diff --git a/src/gui/widgets/setupitem.cpp b/src/gui/widgets/setupitem.cpp index fbb24d2b6..54e1102a6 100644 --- a/src/gui/widgets/setupitem.cpp +++ b/src/gui/widgets/setupitem.cpp @@ -1037,7 +1037,7 @@ void SetupItemSound::action(const gcn::ActionEvent &event) { if (mSlider->getSelected()) { - sound.playGuiSfx(branding.getStringValue("systemsounds") + soundManager.playGuiSfx(branding.getStringValue("systemsounds") .append(mSlider->getSelectedString()).append(".ogg")); } } diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index 54ed4764f..63c5b6629 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -578,7 +578,7 @@ void Window::setVisible(bool visible, bool forceSticky) if (visible) { if (mPlayVisibleSound) - sound.playGuiSound(SOUND_SHOW_WINDOW); + soundManager.playGuiSound(SOUND_SHOW_WINDOW); if (gui) { gcn::MouseEvent *event = reinterpret_cast<gcn::MouseEvent*>( @@ -599,7 +599,7 @@ void Window::setVisible(bool visible, bool forceSticky) else { if (mPlayVisibleSound) - sound.playGuiSound(SOUND_HIDE_WINDOW); + soundManager.playGuiSound(SOUND_HIDE_WINDOW); } } |