summaryrefslogtreecommitdiff
path: root/src/gui/recorder.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-29 17:34:37 -0700
committerIra Rice <irarice@gmail.com>2009-01-29 17:34:37 -0700
commit5a217925e3088bfbb187d274ced159754e2397c2 (patch)
tree6b873f69d25637695b039259367d4572ac1c8b66 /src/gui/recorder.cpp
parentd3ac12d94f6ddb25866e10856ec47919a4b6d7a6 (diff)
downloadmana-5a217925e3088bfbb187d274ced159754e2397c2.tar.gz
mana-5a217925e3088bfbb187d274ced159754e2397c2.tar.bz2
mana-5a217925e3088bfbb187d274ced159754e2397c2.tar.xz
mana-5a217925e3088bfbb187d274ced159754e2397c2.zip
Trimmed out a few help functions from some subclasses, and moved them
back to the chat class, where they really belong. Since the party class parses its own suboptions, I left the suboptions within that class. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/recorder.cpp')
-rw-r--r--src/gui/recorder.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/gui/recorder.cpp b/src/gui/recorder.cpp
index da67875b..02eddbe5 100644
--- a/src/gui/recorder.cpp
+++ b/src/gui/recorder.cpp
@@ -46,7 +46,7 @@ void Recorder::record(const std::string &msg)
}
}
-void Recorder::changeStatus(const std::string &msg)
+void Recorder::changeRecordingStatus(const std::string &msg)
{
std::string msgCopy = msg;
trim(msgCopy);
@@ -91,24 +91,9 @@ void Recorder::changeStatus(const std::string &msg)
}
}
-void Recorder::help() const
-{
- mChat->chatLog("/record <filename>: Start recording the chat.", BY_SERVER);
-}
-
-void Recorder::help2() const
-{
- mChat->chatLog("Command: /record <filename>", BY_SERVER);
- mChat->chatLog("This command starts recording the chat log to the file "
- "<filename>.", BY_SERVER);
- mChat->chatLog("Command: /record", BY_SERVER);
- mChat->chatLog("This command finishes a recording session.", BY_SERVER);
-}
-
void Recorder::action(const gcn::ActionEvent &event)
{
- if (event.getId() == "activate")
- changeStatus("");
+ changeRecordingStatus("");
}
Recorder::~Recorder()