diff options
author | Chuck Miller <shadowmil@gmail.com> | 2010-08-01 18:00:41 -0400 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2010-08-01 18:29:00 -0400 |
commit | 0e189bbe81c88283438aabb4fec3ba30920d3a36 (patch) | |
tree | c3f4b454564c6335c972fadd64fbc82cf23db55e /src/gui/recorder.cpp | |
parent | 1937ef53c8dd42d986c0a6b061a482a6d8e3c0f7 (diff) | |
download | mana-0e189bbe81c88283438aabb4fec3ba30920d3a36.tar.gz mana-0e189bbe81c88283438aabb4fec3ba30920d3a36.tar.bz2 mana-0e189bbe81c88283438aabb4fec3ba30920d3a36.tar.xz mana-0e189bbe81c88283438aabb4fec3ba30920d3a36.zip |
Reduce localChatTab presence replacing it with the event system
Reviewed-By: Jared Adams
Diffstat (limited to 'src/gui/recorder.cpp')
-rw-r--r-- | src/gui/recorder.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/recorder.cpp b/src/gui/recorder.cpp index 257afd7f..53024e7c 100644 --- a/src/gui/recorder.cpp +++ b/src/gui/recorder.cpp @@ -21,11 +21,11 @@ #include "gui/recorder.h" #include "client.h" +#include "eventmanager.h" #include "gui/chat.h" #include "gui/widgets/button.h" -#include "gui/widgets/chattab.h" #include "gui/widgets/layout.h" #include "gui/widgets/windowcontainer.h" @@ -84,16 +84,16 @@ void Recorder::setRecordingFile(const std::string &msg) * Message should go after mStream is closed so that it isn't * recorded. */ - localChatTab->chatLog(_("Finishing recording."), BY_SERVER); + SERVER_NOTICE(_("Finishing recording.")) } else { - localChatTab->chatLog(_("Not currently recording."), BY_SERVER); + SERVER_NOTICE(_("Not currently recording.")) } } else if (mStream.is_open()) { - localChatTab->chatLog(_("Already recording."), BY_SERVER); + SERVER_NOTICE(_("Already recording.")) } else { @@ -101,7 +101,7 @@ void Recorder::setRecordingFile(const std::string &msg) * Message should go before mStream is opened so that it isn't * recorded. */ - localChatTab->chatLog(_("Starting to record..."), BY_SERVER); + SERVER_NOTICE(_("Starting to record...")) const std::string file = Client::getLocalDataDirectory() + "/" + msgCopy; mStream.open(file.c_str(), std::ios_base::trunc); @@ -109,7 +109,7 @@ void Recorder::setRecordingFile(const std::string &msg) if (mStream.is_open()) setVisible(true); else - localChatTab->chatLog(_("Failed to start recording."), BY_SERVER); + SERVER_NOTICE(_("Failed to start recording.")) } } |