From 0d76989e392fb7950c394fb6df6151f95b36ee89 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Thu, 21 Feb 2002 00:39:08 +0000 Subject: indentation --- src/Keys.cc | 88 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/src/Keys.cc b/src/Keys.cc index 079bdb6..d52fdbf 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.10 2002/02/20 23:10:48 fluxgen Exp $ +//$Id: Keys.cc,v 1.11 2002/02/21 00:39:08 fluxgen Exp $ #ifdef HAVE_CONFIG_H # include "config.h" @@ -31,17 +31,17 @@ #ifdef HAVE_STDIO_H # include -#endif // HAVE_STDIO_H +#endif // HAVE_STDIO_H #ifdef HAVE_CTYPE_H # include -#endif // HAVE_CTYPE_H +#endif // HAVE_CTYPE_H #ifdef STDC_HEADERS # include # include # include -#endif // STDC_HEADERS +#endif // STDC_HEADERS #if HAVE_STRINGS_H # include @@ -49,19 +49,19 @@ #ifdef HAVE_SYS_TYPES_H # include -#endif // HAVE_SYS_TYPES_H +#endif // HAVE_SYS_TYPES_H #ifdef HAVE_SYS_WAIT_H # include -#endif // HAVE_SYS_WAIT_H +#endif // HAVE_SYS_WAIT_H #ifdef HAVE_UNISTD_H # include -#endif // HAVE_UNISTD_H +#endif // HAVE_UNISTD_H #ifdef HAVE_SYS_STAT_H # include -#endif // HAVE_SYS_STAT_H +#endif // HAVE_SYS_STAT_H #include #include @@ -270,41 +270,41 @@ bool Keys::load(char *filename) { } last_key->action = m_actionlist[i].action; - switch(last_key->action) { - case Keys::EXECUTE: + switch(last_key->action) { + case Keys::EXECUTE: last_key->execcommand = - const_cast - (StringUtil::strcasestr(linebuffer.get(), - getActionStr(Keys::EXECUTE))+ + const_cast + (StringUtil::strcasestr(linebuffer.get(), + getActionStr(Keys::EXECUTE))+ strlen(getActionStr(Keys::EXECUTE))); - break; - case WORKSPACE: - if (argc + 1 < val.size()) - last_key->param = atoi( val[argc+1].c_str()); - else - last_key->param = 0; - break; - case LEFTWORKSPACE: - case RIGHTWORKSPACE: - case NEXTWORKSPACE: - case PREVWORKSPACE: - if (argc + 1 < val.size()) - last_key->param = atoi( val[argc+1].c_str()); - else - last_key->param = 1; - break; - case NUDGERIGHT: - case NUDGELEFT: - case NUDGEUP: - case NUDGEDOWN: - if (argc + 1 < val.size()) - last_key->param = atoi( val[argc+1].c_str()); - else - last_key->param = 2; - break; - default: - break; - } + break; + case WORKSPACE: + if (argc + 1 < val.size()) + last_key->param = atoi( val[argc+1].c_str()); + else + last_key->param = 0; + break; + case LEFTWORKSPACE: + case RIGHTWORKSPACE: + case NEXTWORKSPACE: + case PREVWORKSPACE: + if (argc + 1 < val.size()) + last_key->param = atoi( val[argc+1].c_str()); + else + last_key->param = 1; + break; + case NUDGERIGHT: + case NUDGELEFT: + case NUDGEUP: + case NUDGEDOWN: + if (argc + 1 < val.size()) + last_key->param = atoi( val[argc+1].c_str()); + else + last_key->param = 2; + break; + default: + break; + } //add the keychain to list if (!mergeTree(current_key)) @@ -453,7 +453,7 @@ Keys::KeyAction Keys::getAction(XKeyEvent *ke) { } else { if (m_keylist[i]->action == Keys::EXECUTE) m_execcmdstring = m_keylist[i]->execcommand; //update execcmdstring if action is grabExecute - m_param = m_keylist[i]->param; + m_param = m_keylist[i]->param; return m_keylist[i]->action; } } @@ -593,7 +593,7 @@ Keys::t_key::t_key(unsigned int key_, unsigned int mod_, KeyAction action_) { action = action_; key = key_; mod = mod_; - param = 0; + param = 0; } Keys::t_key::t_key(t_key *k) { @@ -601,7 +601,7 @@ Keys::t_key::t_key(t_key *k) { key = k->key; mod = k->mod; execcommand = k->execcommand; - param = k-> param; + param = k-> param; } Keys::t_key::~t_key() { -- cgit v0.11.2