From c7a122c9d12d4ba6c08aed06291ebebf6bcdd1ed Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 18 May 2013 17:15:52 +0300 Subject: move some other code from popupmenu to commands. --- src/commands.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'src/commands.cpp') 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 -- cgit v1.2.3-70-g09d2