diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-06-08 20:48:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-06-08 20:48:12 +0400 |
commit | 62160cef8accc4b1d4a908043990db15d48c6960 (patch) | |
tree | b3a22a4045b2b9dde8d4807527d62c2f50fe24be /source/blender/editors/space_sequencer/space_sequencer.c | |
parent | ddbd871567911a5243de23de3c7ec8fa1ef061aa (diff) |
Sequencer WIP
- Move buttons into the sequencer Nkey region
- Made the header and menu items use the python api, still need to get more buttons working.
- Fixed some minor problems
Diffstat (limited to 'source/blender/editors/space_sequencer/space_sequencer.c')
-rw-r--r-- | source/blender/editors/space_sequencer/space_sequencer.c | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/source/blender/editors/space_sequencer/space_sequencer.c b/source/blender/editors/space_sequencer/space_sequencer.c index 855bb49cb03..c7c92b71861 100644 --- a/source/blender/editors/space_sequencer/space_sequencer.c +++ b/source/blender/editors/space_sequencer/space_sequencer.c @@ -198,29 +198,12 @@ static void sequencer_main_area_init(wmWindowManager *wm, ARegion *ar) /* add handlers, stuff you only do once or on area/region changes */ static void sequencer_header_area_init(wmWindowManager *wm, ARegion *ar) { - UI_view2d_region_reinit(&ar->v2d, V2D_COMMONVIEW_HEADER, ar->winx, ar->winy); + ED_region_header_init(ar); } static void sequencer_header_area_draw(const bContext *C, ARegion *ar) { - float col[3]; - - /* clear */ - if(ED_screen_area_active(C)) - UI_GetThemeColor3fv(TH_HEADER, col); - else - UI_GetThemeColor3fv(TH_HEADERDESEL, col); - - glClearColor(col[0], col[1], col[2], 0.0); - glClear(GL_COLOR_BUFFER_BIT); - - /* set view2d view matrix for scrolling (without scrollers) */ - UI_view2d_view_ortho(C, &ar->v2d); - - sequencer_header_buttons(C, ar); - - /* restore view matrix? */ - UI_view2d_view_restore(C); + ED_region_header(C, ar); } static void sequencer_main_area_listener(ARegion *ar, wmNotifier *wmn) @@ -298,7 +281,9 @@ void ED_spacetype_sequencer(void) art->draw= sequencer_buttons_area_draw; BLI_addhead(&st->regiontypes, art); + /* Keep as python only for now sequencer_buttons_register(art); + */ /* regions: header */ art= MEM_callocN(sizeof(ARegionType), "spacetype sequencer region"); @@ -311,7 +296,6 @@ void ED_spacetype_sequencer(void) BLI_addhead(&st->regiontypes, art); - BKE_spacetype_register(st); } |