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:
authorPeter Schlaile <peter@schlaile.de>2006-06-08 23:05:58 +0400
committerPeter Schlaile <peter@schlaile.de>2006-06-08 23:05:58 +0400
commitaf3f454cd82b8214b3ce004d7cb852523f9063b2 (patch)
tree41d7ec47f50e4f367aff48c75114f10eca282f64 /source/blender/src/header_seq.c
parentf6854b4d8e935fa030f1b5424007d5c98e311266 (diff)
==Sequencer==
Added patch by Matt Ebb, that enhances the sequencer GUI in several ways: - It looks a lot better - Strip colours are themeable. - The drawing code is more readable. - The background of the timeline makes now distinguishing the channels easier by alternating between different shades of gray. - Handle-scaling is clamped to min and max-values, making it possible to grab strips at large zooming levels more easily. - Preview-images can be panned by dragging it with the middle mouse button. Home-Key resets the position. - Since some people can't grab the meaning of "C 0", it is renamed to "Chan: 0" - Effect strips have slightly different colors to distinguish them better. Additionally: - fixed an off by one error in Matt's patch - Scene-rendering saves CFRA to avoid jumping current-scene on scrub (might be academic fix, since most likely it only happens if you add the sequencer-scene to the timeline... But nevertheless it bugs you on testing the GUI ;-)
Diffstat (limited to 'source/blender/src/header_seq.c')
-rw-r--r--source/blender/src/header_seq.c44
1 files changed, 27 insertions, 17 deletions
diff --git a/source/blender/src/header_seq.c b/source/blender/src/header_seq.c
index fe392d3a2da..5b11da9ba15 100644
--- a/source/blender/src/header_seq.c
+++ b/source/blender/src/header_seq.c
@@ -53,6 +53,7 @@
#include "DNA_space_types.h"
#include "BKE_global.h"
#include "BKE_main.h"
+#include "BIF_drawseq.h"
#include "BIF_interface.h"
#include "BIF_resources.h"
#include "BIF_screen.h"
@@ -436,15 +437,20 @@ static uiBlock *seq_editmenu(void *arg_unused)
void do_seq_buttons(short event)
{
Editing *ed;
-
+ SpaceSeq *sseq= curarea->spacedata.first;
+
ed= G.scene->ed;
if(ed==0) return;
-
+
switch(event) {
case B_SEQHOME:
- G.v2d->cur= G.v2d->tot;
- test_view2d(G.v2d, curarea->winx, curarea->winy);
- view2d_do_locks(curarea, V2D_LOCK_COPY);
+ if(sseq->mainb)
+ seq_reset_imageofs(sseq);
+ else {
+ G.v2d->cur= G.v2d->tot;
+ test_view2d(G.v2d, curarea->winx, curarea->winy);
+ view2d_do_locks(curarea, V2D_LOCK_COPY);
+ }
scrarea_queue_winredraw(curarea);
break;
case B_SEQCLEAR:
@@ -514,15 +520,6 @@ void seq_buttons()
uiBlockSetEmboss(block, UI_EMBOSS);
}
- /* CHANNEL shown in 3D preview */
- uiDefButS(block, NUM, B_REDR, "C",
- xco += XIC, 0, 3.5 * XIC,YIC,
- &sseq->chanshown, 0, MAXSEQ, 0, 0,
- "Channel shown in 3D preview. Click to change.");
-
- xco+= 8;
- xco += 3.5*XIC;
-
/* IMAGE */
uiDefIconTextButS(block, ICONTEXTROW,B_REDR, ICON_SEQ_SEQUENCER,
"Image Preview: %t"
@@ -533,11 +530,24 @@ void seq_buttons()
xco,0,XIC+10,YIC, &sseq->mainb, 0.0, 3.0,
0, 0,
"Shows the sequence output image preview");
- xco+=10;
+
+ xco+= 8 + XIC+10;
+
+ /* CHANNEL shown in 3D preview */
+ if(sseq->mainb) {
+ uiDefButS(block, NUM, B_REDR, "Chan:",
+ xco, 0, 3.5 * XIC,YIC,
+ &sseq->chanshown, 0, MAXSEQ, 0, 0,
+ "The channel number shown in the image preview. 0 is the result of all strips combined.");
+
+ xco+= 8 + XIC*3.5;
+ }
+
+
/* ZOOM and BORDER */
- xco+= 16;
+ xco+= 8;
uiBlockBeginAlign(block);
- uiDefIconButI(block, TOG, B_VIEW2DZOOM, ICON_VIEWZOOM, xco+=XIC,0,XIC,YIC, &viewmovetemp, 0, 0, 0, 0, "Zooms view in and out (Ctrl MiddleMouse)");
+ uiDefIconButI(block, TOG, B_VIEW2DZOOM, ICON_VIEWZOOM, xco,0,XIC,YIC, &viewmovetemp, 0, 0, 0, 0, "Zooms view in and out (Ctrl MiddleMouse)");
uiDefIconBut(block, BUT, B_IPOBORDER, ICON_BORDERMOVE, xco+=XIC,0,XIC,YIC, 0, 0, 0, 0, 0, "Zooms view to fit area");
uiBlockEndAlign(block);