diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-07-15 23:19:43 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-07-15 23:19:43 +0400 |
commit | 4df1836325bd2847f3c88eb6fafa98e7bafea81c (patch) | |
tree | c97e1fb46527bdec40f787457cee1152405a990d /source/blender/editors/space_buttons/space_buttons.c | |
parent | 097d05a1afed5d3a6e919c8885da92e35fe482bc (diff) |
2.5: User Preferences
* Added basic infrastructure to layout user preferences. The
intention is that you open a user preferences space in place
of the buttons space, and have panels there.
* The existing sections don't have to be followed, it's easy
to create different ones, just change the user_pref_sections
enum in RNA.
* This will get separated from the info header later.
Diffstat (limited to 'source/blender/editors/space_buttons/space_buttons.c')
-rw-r--r-- | source/blender/editors/space_buttons/space_buttons.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/source/blender/editors/space_buttons/space_buttons.c b/source/blender/editors/space_buttons/space_buttons.c index 65fbdeb4205..9345a24b198 100644 --- a/source/blender/editors/space_buttons/space_buttons.c +++ b/source/blender/editors/space_buttons/space_buttons.c @@ -94,31 +94,6 @@ static SpaceLink *buttons_new(const bContext *C) BLI_addtail(&sbuts->regionbase, ar); ar->regiontype= RGN_TYPE_WINDOW; -#if 0 // disabled, as this currently draws badly in new system - /* buts space goes from (0,0) to (1280, 228) */ - ar->v2d.tot.xmin= 0.0f; - ar->v2d.tot.ymin= 0.0f; - ar->v2d.tot.xmax= 1279.0f; - ar->v2d.tot.ymax= 228.0f; - - ar->v2d.cur= sbuts->v2d.tot; - - ar->v2d.min[0]= 256.0f; - ar->v2d.min[1]= 42.0f; - - ar->v2d.max[0]= 2048.0f; - ar->v2d.max[1]= 450.0f; - - ar->v2d.minzoom= 0.5f; - ar->v2d.maxzoom= 1.21f; - - ar->v2d.scroll= 0; // TODO: will we need scrollbars? - ar->v2d.align= V2D_ALIGN_NO_NEG_X|V2D_ALIGN_NO_NEG_Y; - ar->v2d.keepzoom= V2D_KEEPZOOM|V2D_KEEPASPECT; - ar->v2d.keeptot= V2D_KEEPTOT_BOUNDS; -#endif - - return (SpaceLink *)sbuts; } @@ -164,13 +139,7 @@ static SpaceLink *buttons_duplicate(SpaceLink *sl) /* add handlers, stuff you only do once or on area/region changes */ static void buttons_main_area_init(wmWindowManager *wm, ARegion *ar) { - ListBase *keymap; - ED_region_panels_init(wm, ar); - - /* own keymap */ - keymap= WM_keymap_listbase(wm, "Buttons", SPACE_BUTS, 0); /* XXX weak? */ - WM_event_add_keymap_handler_bb(&ar->handlers, keymap, &ar->v2d.mask, &ar->winrct); } static void buttons_main_area_draw(const bContext *C, ARegion *ar) |