From 3d20c78714d4bfc95327b16d8af6163d57856463 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Mon, 21 Jan 2002 01:48:47 +0000 Subject: indentation and removed some debug code --- src/Keys.cc | 168 +++++++++++++++++++++++++++--------------------------------- 1 file changed, 75 insertions(+), 93 deletions(-) diff --git a/src/Keys.cc b/src/Keys.cc index 92fa617..54ae77a 100644 --- a/src/Keys.cc +++ b/src/Keys.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -//$Id: Keys.cc,v 1.8 2002/01/10 14:24:09 fluxgen Exp $ +//$Id: Keys.cc,v 1.9 2002/01/21 01:48:47 fluxgen Exp $ #ifdef HAVE_CONFIG_H # include "config.h" @@ -76,53 +76,53 @@ using namespace std; Keys::t_actionstr Keys::m_actionlist[] = { - {"Minimize", ICONIFY}, - {"Raise", RAISE}, - {"Lower", LOWER}, - {"Close", CLOSE}, - {"AbortKeychain", ABORTKEYCHAIN}, - {"Workspace1", WORKSPACE1}, - {"Workspace2", WORKSPACE2}, - {"Workspace3", WORKSPACE3}, - {"Workspace4", WORKSPACE4}, - {"Workspace5", WORKSPACE5}, - {"Workspace6", WORKSPACE6}, - {"Workspace7", WORKSPACE7}, - {"Workspace8", WORKSPACE8}, - {"Workspace9", WORKSPACE9}, - {"Workspace10", WORKSPACE10}, - {"Workspace11", WORKSPACE11}, - {"Workspace12", WORKSPACE12}, - {"NextWorkspace", NEXTWORKSPACE}, - {"PrevWorkspace", PREVWORKSPACE}, - {"LeftWorkspace", LEFTWORKSPACE}, - {"RightWorkspace", RIGHTWORKSPACE}, - {"KillWindow", KILLWINDOW}, - {"NextWindow", NEXTWINDOW}, - {"PrevWindow", PREVWINDOW}, - {"NextTab", NEXTTAB}, - {"PrevTab", PREVTAB}, - {"ShadeWindow", SHADE}, - {"MaximizeWindow", MAXIMIZE}, - {"StickWindow", STICK}, - {"ExecCommand", EXECUTE}, - {"MaximizeVertical", VERTMAX}, - {"MaximizeHorizontal", HORIZMAX}, - {"NudgeRight", NUDGERIGHT}, - {"NudgeLeft", NUDGELEFT}, - {"NudgeUp", NUDGEUP}, - {"NudgeDown", NUDGEDOWN}, - {"BigNudgeRight", BIGNUDGERIGHT}, - {"BigNudgeLeft", BIGNUDGELEFT}, - {"BigNudgeUp", BIGNUDGEUP}, - {"BigNudgeDown", BIGNUDGEDOWN}, - {"HorizontalIncrement", HORIZINC}, - {"VerticalIncrement", VERTINC}, - {"HorizontalDecrement", HORIZDEC}, - {"VerticalDecrement", VERTDEC}, - {"ToggleDecor", TOGGLEDECOR}, - {0, LASTKEYGRAB} - }; + {"Minimize", ICONIFY}, + {"Raise", RAISE}, + {"Lower", LOWER}, + {"Close", CLOSE}, + {"AbortKeychain", ABORTKEYCHAIN}, + {"Workspace1", WORKSPACE1}, + {"Workspace2", WORKSPACE2}, + {"Workspace3", WORKSPACE3}, + {"Workspace4", WORKSPACE4}, + {"Workspace5", WORKSPACE5}, + {"Workspace6", WORKSPACE6}, + {"Workspace7", WORKSPACE7}, + {"Workspace8", WORKSPACE8}, + {"Workspace9", WORKSPACE9}, + {"Workspace10", WORKSPACE10}, + {"Workspace11", WORKSPACE11}, + {"Workspace12", WORKSPACE12}, + {"NextWorkspace", NEXTWORKSPACE}, + {"PrevWorkspace", PREVWORKSPACE}, + {"LeftWorkspace", LEFTWORKSPACE}, + {"RightWorkspace", RIGHTWORKSPACE}, + {"KillWindow", KILLWINDOW}, + {"NextWindow", NEXTWINDOW}, + {"PrevWindow", PREVWINDOW}, + {"NextTab", NEXTTAB}, + {"PrevTab", PREVTAB}, + {"ShadeWindow", SHADE}, + {"MaximizeWindow", MAXIMIZE}, + {"StickWindow", STICK}, + {"ExecCommand", EXECUTE}, + {"MaximizeVertical", VERTMAX}, + {"MaximizeHorizontal", HORIZMAX}, + {"NudgeRight", NUDGERIGHT}, + {"NudgeLeft", NUDGELEFT}, + {"NudgeUp", NUDGEUP}, + {"NudgeDown", NUDGEDOWN}, + {"BigNudgeRight", BIGNUDGERIGHT}, + {"BigNudgeLeft", BIGNUDGELEFT}, + {"BigNudgeUp", BIGNUDGEUP}, + {"BigNudgeDown", BIGNUDGEDOWN}, + {"HorizontalIncrement", HORIZINC}, + {"VerticalIncrement", VERTINC}, + {"HorizontalDecrement", HORIZDEC}, + {"VerticalDecrement", VERTDEC}, + {"ToggleDecor", TOGGLEDECOR}, + {0, LASTKEYGRAB} + }; Keys::Keys(Display *display, char *filename): m_abortkey(0), @@ -277,17 +277,6 @@ bool Keys::load(char *filename) { //add the keychain to list if (!mergeTree(current_key)) cerr<<"Keys: Failed to merge keytree!"<(StringUtil::strcasestr(linebuffer.get(), - getActionStr(Keys::EXECUTE)) + strlen(getActionStr(Keys::EXECUTE)))<execcommand<