diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-11-30 09:15:33 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-11-30 09:15:33 +0300 |
commit | 43b26b72ab0df5ff8bbdb7e30c761099b95385a6 (patch) | |
tree | 07457dfbcfb633975e36c67482c5743b9836025a /source/blender/makesdna/DNA_windowmanager_types.h | |
parent | 970fa83fab52387aa3f9aa0f3e90d73b5af52bfd (diff) |
View2D - Initial commit of Pan-View Operator
* Moved View2D data from space-data to ARegion (aka regions). This has been done because drawing occurs in regions not areas anymore. The View2D struct is currently stored in the ARegion struct (not as pointer), given that most of the regions in use will be 2D anyway (only the 3d-view's "window" region is the exception).
Added version patch code for outliner and timeline only for now. Headers are also likely to need this.
* Added separate keymap for View2D operators. All regions that use View2D will need this added. This includes headers too.
* Pan view operator (ED_View2D_OT_view_pan), currently works for Outliner and Timeline. Use MMB-drag as before.
- It currently doesn't exposed any parameters for redo (via RNA-ID-Props), but only uses some customdata. Suggestions on what these parameters could be are welcomed.
- I've yet to implement the necessary axis-locking features for this panning (which is required in Timeline for example to prevent vertical panning, which moves the markers out of view).
Diffstat (limited to 'source/blender/makesdna/DNA_windowmanager_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_windowmanager_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_windowmanager_types.h b/source/blender/makesdna/DNA_windowmanager_types.h index 2d2cc962f8a..07abe9fd75f 100644 --- a/source/blender/makesdna/DNA_windowmanager_types.h +++ b/source/blender/makesdna/DNA_windowmanager_types.h @@ -69,6 +69,7 @@ typedef struct wmWindowManager { /* custom keymaps */ ListBase windowkeymap; ListBase screenkeymap; + ListBase view2dkeymap; ListBase uikeymap; ListBase timekeymap; /* keymaps have to be NULLed in readfile.c */ |