From 8c84a4338597b8b17bca5b1ffbe819f6d71fbf83 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Mon, 17 Nov 2008 18:54:03 +0000 Subject: 2.5 getting-back-into-coding commit :) - cleaned up join and split operations. Most noticable is operator callback design, which should make a design based on user-less exec() first, then wrap invoke() and modal() around it. The exec() should be callable with only Context and properties. - split now works again; and inversed as previously, if you drag from a triangle (action zone) inside area it subdivides area as expected. - dragging from triangle outside area, over an edge, joins areas - split has been simplified, it had too many options... it could just work simpler (now) - 'action zone' now is an operator itself, a widget sending an ACTIONZONE event, which can be handled by others (so other gestures can be added in action zone too) Still evaluating: - context gets set where? - code structure confuses... what are proper functions for operators? - what is WM... should low level screen stuff more there? - when do you send event, notifier? - files grow to large, will clean Oh yeah and docs, docs, docs. Coming! :) --- source/blender/editors/include/ED_screen_types.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'source/blender/editors/include/ED_screen_types.h') diff --git a/source/blender/editors/include/ED_screen_types.h b/source/blender/editors/include/ED_screen_types.h index ee19210b74d..29e62d51f7d 100644 --- a/source/blender/editors/include/ED_screen_types.h +++ b/source/blender/editors/include/ED_screen_types.h @@ -33,23 +33,14 @@ typedef struct AZone { struct AZone *next, *prev; int type; int flag; - int action; int pos; short x1, y1, x2, y2; } AZone; -#define MAX_AZONES 8 - - /* actionzone type */ #define AZONE_TRI 1 #define AZONE_QUAD 2 -/* actionzone action */ -#define AZONE_SPLIT 1 -#define AZONE_JOIN 2 -#define AZONE_DRAG 3 - /* actionzone pos */ #define AZONE_S 1 #define AZONE_SW 2 -- cgit v1.2.3