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:
authorTon Roosendaal <ton@blender.org>2005-05-05 21:19:21 +0400
committerTon Roosendaal <ton@blender.org>2005-05-05 21:19:21 +0400
commitf0a4ce98f904fa9577e80c9bcd2b80da6847e365 (patch)
tree289c594f3d43762a106be9f4b3a3e384dbcacc55 /source/blender/include/blendef.h
parent22f65bce76b70a09467469c9a06c51d9acf76fa6 (diff)
Added the new Timeline Window, copied from Tuhopuu, coded by Matt Ebb.
Main change is that it's an own Space type now, not part of the Audio window... the audio window should restrict to own options. This way functionality is nicely separated. Since it's the first time I added a new space (since long!) I've made an extensive tutorial as well. You can find that here: http://www.blender3d.org/cms/Adding_new_Space_Window.557.0.html Notes for using timewindow; - Add time markers with MKey - CTRL+M gives option to name Marker - Markers cannot be moved yet... - Pageup-Pagedown keys moves current frame to next-prev Marker - Xkey removes Markers - If an object has Ipos or an Action, it draws key lines - CTRL+Pageup-Pagedown moves current frame to next-prev Key - Press S or E to set start/end frame for playback Notes about the implementation in Tuhopuu: - Add new Marker now selects new, deselects others - Selecting Marker didn't work like elsewhere in Blender, on click it should deselect all, except the indicated Marker. Not when holding SHIFT of course - Not exported functions are static now - Removed unused defines (MARKER_NONE NEXT_AVAIL) - Drawing order was confusing, doing too many matrix calls - Removed not needed scrollbar, added new function to draw time values. (Has advantage the MMB scroll works not confusing on a scrollbar) - Added proper support for 'frame mapping' - The string button (name Marker) had a bug (checked str[64] while str was only 64 long) - String button itself didn't allow "OK on enter" - Made frame buttons in header larger, the arrows overlapped - Removed support for negative frame values, that won't work so simple!
Diffstat (limited to 'source/blender/include/blendef.h')
-rw-r--r--source/blender/include/blendef.h30
1 files changed, 25 insertions, 5 deletions
diff --git a/source/blender/include/blendef.h b/source/blender/include/blendef.h
index 5a3e8006e35..6702e49f489 100644
--- a/source/blender/include/blendef.h
+++ b/source/blender/include/blendef.h
@@ -37,6 +37,9 @@
#define MAXFRAME 30000
#define MAXFRAMEF 30000.0f
+#define MINFRAME 1
+#define MINFRAMEF 1.0
+
#define MAXLAMP 32765
/* max length material array, 16 because of bits in matfrom */
#define MAXPICKBUF 10000
@@ -151,6 +154,8 @@
#define B_TEXALONE 47
#define B_MESHALONE 48
#define B_CURVEALONE 49
+#define B_HEMESHALONE 50
+
/* EVENT < 50: alones en locals */
#define B_KEEPDATA 60
@@ -159,6 +164,7 @@
#define B_REDRCURW3D 63
#define B_FLIPINFOMENU 64
#define B_FLIPFULLSCREEN 65
+#define B_EASYTOOLBOX 66
#define B_SHOWSPLASH 70
@@ -223,6 +229,8 @@
#define B_MAN_TRANS 161
#define B_MAN_ROT 162
#define B_MAN_SCALE 163
+#define B_HEMESHBROWSE 164
+#define B_HEMESHLOCAL 165
/* IPO: 200 */
#define B_IPOHOME 201
@@ -320,7 +328,8 @@
#define B_TEXTFONT 505
#define B_TEXTSTORE 506
#define B_TEXTLINENUM 507
-#define B_TAB_NUMBERS 508
+#define B_TAB_NUMBERS 508
+#define B_SYNTAX 509
/* SCRIPT: 525 */
#define B_SCRIPTBROWSE 526
@@ -340,7 +349,7 @@
#define B_SOUNDHOME 653
#define B_PACKSOUND 654
-/* ACTION: 701 - 800 */
+/* ACTION: 701 - 750 */
#define B_ACTHOME 701
#define B_ACTCOPY 702
#define B_ACTPASTE 703
@@ -351,19 +360,30 @@
#define B_ACTPIN 708
#define B_ACTBAKE 709
-#define B_NOTHING -1
-#define B_NOP -1
+/* TIME: 751 - 800 */
+#define B_TL_REW 751
+#define B_TL_PLAY 752
+#define B_TL_FF 753
+#define B_TL_PREVKEY 754
+#define B_TL_NEXTKEY 755
/* NLA: 801-900 */
#define B_NLAHOME 801
+/* FREE 900 - 999 */
+
+
+#define B_NOTHING -1
+#define B_NOP -1
+
+
/* editbutflag */
#define B_CLOCKWISE 1
#define B_KEEPORIG 2
#define B_BEAUTY 4
#define B_SMOOTH 8
#define B_KNIFE 0x80
-#define B_PERCENTSUBD 0x40
+#define B_PERCENTSUBD 0x40
/* DISPLAYMODE */