summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-18 17:15:52 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-18 17:15:52 +0300
commitc7a122c9d12d4ba6c08aed06291ebebf6bcdd1ed (patch)
tree14df91219b35d83feab98360d978de73f3a946af /src/commands.cpp
parentdd828df46a661fbd0a24fbe540a4a585360be005 (diff)
downloadmv-c7a122c9d12d4ba6c08aed06291ebebf6bcdd1ed.tar.gz
mv-c7a122c9d12d4ba6c08aed06291ebebf6bcdd1ed.tar.bz2
mv-c7a122c9d12d4ba6c08aed06291ebebf6bcdd1ed.tar.xz
mv-c7a122c9d12d4ba6c08aed06291ebebf6bcdd1ed.zip
move some other code from popupmenu to commands.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index e6d0e9eb6..857212aa3 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -1164,6 +1164,34 @@ impHandler1(disableHighlight)
}
}
+impHandler1(dontRemoveName)
+{
+ tab->setRemoveNames(false);
+ if (chatWindow)
+ chatWindow->saveState();
+}
+
+impHandler1(removeName)
+{
+ tab->setRemoveNames(true);
+ if (chatWindow)
+ chatWindow->saveState();
+}
+
+impHandler1(disableAway)
+{
+ tab->setNoAway(true);
+ if (chatWindow)
+ chatWindow->saveState();
+}
+
+impHandler1(enableAway)
+{
+ tab->setNoAway(false);
+ if (chatWindow)
+ chatWindow->saveState();
+}
+
impHandler0(testsdlfont)
{
#if defined USE_OPENGL && defined DEBUG_SDLFONT