Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/area.c
| Show First 20 Lines • Show All 1,543 Lines • ▼ Show 20 Lines | void ED_region_panels(const bContext *C, ARegion *ar, int vertical, const char *context, int contextnr) | ||||
| Panel *panel; | Panel *panel; | ||||
| View2D *v2d = &ar->v2d; | View2D *v2d = &ar->v2d; | ||||
| View2DScrollers *scrollers; | View2DScrollers *scrollers; | ||||
| int x, y, xco, yco, w, em, triangle; | int x, y, xco, yco, w, em, triangle; | ||||
| bool is_context_new = 0; | bool is_context_new = 0; | ||||
| int redo; | int redo; | ||||
| int scroll; | int scroll; | ||||
| bool use_category_tabs = (ar->regiontype == RGN_TYPE_TOOLS); /* XXX, should use some better check? */ | /* XXX bad hack, add RGN_TYPE_PREVIEW just for image editor, may be better to add tools type panel instead? */ | ||||
| bool use_category_tabs = ELEM(ar->regiontype, RGN_TYPE_TOOLS, RGN_TYPE_PREVIEW); /* XXX, should use some better check? */ | |||||
| /* offset panels for small vertical tab area */ | /* offset panels for small vertical tab area */ | ||||
| const char *category = NULL; | const char *category = NULL; | ||||
| const int category_tabs_width = UI_PANEL_CATEGORY_MARGIN_WIDTH; | const int category_tabs_width = UI_PANEL_CATEGORY_MARGIN_WIDTH; | ||||
| int margin_x = 0; | int margin_x = 0; | ||||
| BLI_SMALLSTACK_DECLARE(pt_stack, PanelType *); | BLI_SMALLSTACK_DECLARE(pt_stack, PanelType *); | ||||
| if (contextnr != -1) | if (contextnr != -1) | ||||
| ▲ Show 20 Lines • Show All 424 Lines • Show Last 20 Lines | |||||