move UicbList in uicb.c

This commit is contained in:
Julien Danjou 2007-11-15 14:41:03 +01:00
parent 2da4d0d907
commit 0fa1b4c822
2 changed files with 59 additions and 57 deletions

View file

@ -26,15 +26,12 @@
#include <confuse.h>
#include <X11/keysym.h>
#include "util.h"
#include "awesome.h"
#include "screen.h"
#include "draw.h"
#include "tag.h"
#include "rules.h"
#include "statusbar.h"
#include "layout.h"
#include "mouse.h"
#include "statusbar.h"
#include "util.h"
#include "rules.h"
#include "screen.h"
#include "layouts/tile.h"
#include "layouts/floating.h"
#include "layouts/max.h"
@ -58,55 +55,7 @@ typedef struct
unsigned int button;
} MouseButton;
/** List of available UI bindable callbacks and functions */
const NameFuncLink UicbList[] = {
/* util.c */
{"spawn", uicb_spawn},
{"exec", uicb_exec},
/* client.c */
{"client_kill", uicb_client_kill},
{"client_moveresize", uicb_client_moveresize},
{"client_settrans", uicb_client_settrans},
{"setborder", uicb_setborder},
{"client_swapnext", uicb_client_swapnext},
{"client_swapprev", uicb_client_swapprev},
/* tag.c */
{"client_tag", uicb_client_tag},
{"client_togglefloating", uicb_client_togglefloating},
{"tag_toggleview", uicb_tag_toggleview},
{"client_toggletag", uicb_client_toggletag},
{"tag_view", uicb_tag_view},
{"tag_viewprev_selected", uicb_tag_prev_selected},
{"tag_viewprev", uicb_tag_viewprev},
{"tag_viewnext", uicb_tag_viewnext},
/* layout.c */
{"tag_setlayout", uicb_tag_setlayout},
{"client_focusnext", uicb_client_focusnext},
{"client_focusprev", uicb_client_focusprev},
{"client_togglemax", uicb_client_togglemax},
{"client_toggleverticalmax", uicb_client_toggleverticalmax},
{"client_togglehorizontalmax", uicb_client_togglehorizontalmax},
{"client_zoom", uicb_client_zoom},
/* layouts/tile.c */
{"tag_setmwfact", uicb_tag_setmwfact},
{"tag_setnmaster", uicb_tag_setnmaster},
{"tag_setncol", uicb_tag_setncol},
/* screen.c */
{"screen_focusnext", uicb_screen_focusnext},
{"screen_focusprev", uicb_screen_focusprev},
{"client_movetoscreen", uicb_client_movetoscreen},
/* awesome.c */
{"quit", uicb_quit},
/* statusbar.c */
{"togglebar", uicb_togglebar},
/* config.c */
{"reloadconfig", uicb_reloadconfig},
{"setstatustext", uicb_setstatustext},
/* mouse.c */
{"client_movemouse", uicb_client_movemouse},
{"client_resizemouse", uicb_client_resizemouse},
{NULL, NULL}
};
extern const NameFuncLink UicbList[];
/** List of keyname and corresponding X11 mask codes */
static const KeyMod KeyModList[] =

55
uicb.c
View file

@ -21,11 +21,64 @@
#include <string.h>
#include "awesome.h"
#include "util.h"
#include "uicb.h"
#include "screen.h"
#include "tag.h"
#include "layout.h"
#include "mouse.h"
#include "statusbar.h"
#include "layouts/tile.h"
extern const NameFuncLink UicbList[];
const NameFuncLink UicbList[] = {
/* util.c */
{"spawn", uicb_spawn},
{"exec", uicb_exec},
/* client.c */
{"client_kill", uicb_client_kill},
{"client_moveresize", uicb_client_moveresize},
{"client_settrans", uicb_client_settrans},
{"setborder", uicb_setborder},
{"client_swapnext", uicb_client_swapnext},
{"client_swapprev", uicb_client_swapprev},
/* tag.c */
{"client_tag", uicb_client_tag},
{"client_togglefloating", uicb_client_togglefloating},
{"tag_toggleview", uicb_tag_toggleview},
{"client_toggletag", uicb_client_toggletag},
{"tag_view", uicb_tag_view},
{"tag_viewprev_selected", uicb_tag_prev_selected},
{"tag_viewprev", uicb_tag_viewprev},
{"tag_viewnext", uicb_tag_viewnext},
/* layout.c */
{"tag_setlayout", uicb_tag_setlayout},
{"client_focusnext", uicb_client_focusnext},
{"client_focusprev", uicb_client_focusprev},
{"client_togglemax", uicb_client_togglemax},
{"client_toggleverticalmax", uicb_client_toggleverticalmax},
{"client_togglehorizontalmax", uicb_client_togglehorizontalmax},
{"client_zoom", uicb_client_zoom},
/* layouts/tile.c */
{"tag_setmwfact", uicb_tag_setmwfact},
{"tag_setnmaster", uicb_tag_setnmaster},
{"tag_setncol", uicb_tag_setncol},
/* screen.c */
{"screen_focusnext", uicb_screen_focusnext},
{"screen_focusprev", uicb_screen_focusprev},
{"client_movetoscreen", uicb_client_movetoscreen},
/* awesome.c */
{"quit", uicb_quit},
/* statusbar.c */
{"togglebar", uicb_togglebar},
/* config.c */
{"reloadconfig", uicb_reloadconfig},
{"setstatustext", uicb_setstatustext},
/* mouse.c */
{"client_movemouse", uicb_client_movemouse},
{"client_resizemouse", uicb_client_resizemouse},
{NULL, NULL}
};
int
parse_control(char *cmd, awesome_config *awesomeconf)