From a71f072f9ccaae043069df1cbf95c169a60e494e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 27 Jan 2014 18:38:53 +1100 Subject: UI: Replace +/- menus with collapsible ones Patch D160, by Scott Petrovic with own modifications. --- source/blender/editors/screen/area.c | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'source/blender/editors/screen/area.c') diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index 2c691505877..25b6f241d9b 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -1533,39 +1533,6 @@ int ED_area_header_switchbutton(const bContext *C, uiBlock *block, int yco) return xco + 1.7 * U.widget_unit; } -int ED_area_header_standardbuttons(const bContext *C, uiBlock *block, int yco) -{ - ScrArea *sa = CTX_wm_area(C); - int xco = 0.4 * U.widget_unit; - uiBut *but; - - if (!sa->full) - xco = ED_area_header_switchbutton(C, block, yco); - - uiBlockSetEmboss(block, UI_EMBOSSN); - - if (sa->flag & HEADER_NO_PULLDOWN) { - but = uiDefIconButBitS(block, TOG, HEADER_NO_PULLDOWN, 0, - ICON_DISCLOSURE_TRI_RIGHT, - xco, yco, U.widget_unit, U.widget_unit * 0.9f, - &(sa->flag), 0, 0, 0, 0, - TIP_("Show pulldown menus")); - } - else { - but = uiDefIconButBitS(block, TOG, HEADER_NO_PULLDOWN, 0, - ICON_DISCLOSURE_TRI_DOWN, - xco, yco, U.widget_unit, U.widget_unit * 0.9f, - &(sa->flag), 0, 0, 0, 0, - TIP_("Hide pulldown menus")); - } - - uiButClearFlag(but, UI_BUT_UNDO); /* skip undo on screen buttons */ - - uiBlockSetEmboss(block, UI_EMBOSS); - - return xco + U.widget_unit; -} - /************************ standard UI regions ************************/ void ED_region_panels(const bContext *C, ARegion *ar, int vertical, const char *context, int contextnr) -- cgit v1.2.3