Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2006-11-16 12:48:53 +0300
committerJoshua Leung <aligorith@gmail.com>2006-11-16 12:48:53 +0300
commit7b71b524ed45dabd9f9ea903f723bc38a892db02 (patch)
treeecc84c8e237e4d9229afc7da45f765b0ea6d8a9c /source/blender/src/header_action.c
parent1e00c59c23203236a3accc00e260b6f094ff58aa (diff)
Some more action editor marker bugfixes:
* (De)select all markers now works normally * RMB click-drag in action editor when no markers caused segfault
Diffstat (limited to 'source/blender/src/header_action.c')
-rw-r--r--source/blender/src/header_action.c41
1 files changed, 30 insertions, 11 deletions
diff --git a/source/blender/src/header_action.c b/source/blender/src/header_action.c
index 4cb3dc27bd2..eecfcda1359 100644
--- a/source/blender/src/header_action.c
+++ b/source/blender/src/header_action.c
@@ -85,11 +85,13 @@
#define ACTMENU_VIEW_LOCK 6
#define ACTMENU_VIEW_SLIDERS 7
-#define ACTMENU_SEL_BORDER 0
-#define ACTMENU_SEL_ALL_KEYS 1
-#define ACTMENU_SEL_ALL_CHAN 2
-#define ACTMENU_SEL_COLUMN 3
-#define ACTMENU_SEL_ALL_MARKERS 4
+#define ACTMENU_SEL_BORDER 0
+#define ACTMENU_SEL_ALL_KEYS 1
+#define ACTMENU_SEL_ALL_CHAN 2
+#define ACTMENU_SEL_COLUMN 3
+#define ACTMENU_SEL_ALL_MARKERS 4
+#define ACTMENU_SEL_MARKERS_KEYSBETWEEN 5
+#define ACTMENU_SEL_MARKERS_KEYSCOLUMN 6
#define ACTMENU_KEY_DUPLICATE 0
#define ACTMENU_KEY_DELETE 1
@@ -379,10 +381,6 @@ static void do_action_selectmenu(void *arg, int event)
allqueue(REDRAWNLA, 0);
allqueue (REDRAWIPO, 0);
break;
-
- case ACTMENU_SEL_COLUMN:
- addqueue (curarea->win, KKEY, 1);
- break;
case ACTMENU_SEL_ALL_MARKERS: /* select/deselect all markers */
if (markers != NULL) {
@@ -391,6 +389,16 @@ static void do_action_selectmenu(void *arg, int event)
allqueue(REDRAWTIME, 0);
}
break;
+
+ case ACTMENU_SEL_COLUMN: /* select column */
+ addqueue (curarea->win, KKEY, 1);
+ break;
+
+ case ACTMENU_SEL_MARKERS_KEYSBETWEEN: /* keys between 2 extreme selected markers */
+ break;
+
+ case ACTMENU_SEL_MARKERS_KEYSCOLUMN: /* keys on same frame as marker(s) */
+ break;
}
}
@@ -428,10 +436,21 @@ static uiBlock *action_selectmenu(void *arg_unused)
menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1,
- "Select Column|K", 0, yco-=20,
+ "Select Keys Column|K", 0, yco-=20,
menuwidth, 19, NULL, 0.0, 0.0, 0,
ACTMENU_SEL_COLUMN, "");
-
+
+ /*
+ uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1,
+ "Select Keys At Markers|CTRL K", 0, yco-=20,
+ menuwidth, 19, NULL, 0.0, 0.0, 0,
+ ACTMENU_SEL_MARKERS_KEYSCOLUMN, "");
+
+ uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1,
+ "Select Keys Between Markers|SHIFT K", 0, yco-=20,
+ menuwidth, 19, NULL, 0.0, 0.0, 0,
+ ACTMENU_SEL_MARKERS_KEYSBETWEEN, "");
+ */
if(curarea->headertype==HEADERTOP) {
uiBlockSetDirection(block, UI_DOWN);