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:
Diffstat (limited to 'source/blender/editors/space_clip/clip_buttons.c')
-rw-r--r--source/blender/editors/space_clip/clip_buttons.c300
1 files changed, 160 insertions, 140 deletions
diff --git a/source/blender/editors/space_clip/clip_buttons.c b/source/blender/editors/space_clip/clip_buttons.c
index 80ce07d39ef..2e7ee3498b5 100644
--- a/source/blender/editors/space_clip/clip_buttons.c
+++ b/source/blender/editors/space_clip/clip_buttons.c
@@ -585,34 +585,38 @@ void uiTemplateMarker(uiLayout *layout,
0,
0,
"");
- uiDefButF(block,
- UI_BTYPE_NUM,
- B_MARKER_POS,
- IFACE_("X:"),
- 0.5 * UI_UNIT_X,
- 9 * UI_UNIT_Y,
- 7.25 * UI_UNIT_X,
- UI_UNIT_Y,
- &cb->marker_pos[0],
- -10 * width,
- 10.0 * width,
- step,
- digits,
- TIP_("X-position of marker at frame in screen coordinates"));
- uiDefButF(block,
- UI_BTYPE_NUM,
- B_MARKER_POS,
- IFACE_("Y:"),
- 8.25 * UI_UNIT_X,
- 9 * UI_UNIT_Y,
- 7.25 * UI_UNIT_X,
- UI_UNIT_Y,
- &cb->marker_pos[1],
- -10 * height,
- 10.0 * height,
- step,
- digits,
- TIP_("Y-position of marker at frame in screen coordinates"));
+ bt = uiDefButF(block,
+ UI_BTYPE_NUM,
+ B_MARKER_POS,
+ IFACE_("X:"),
+ 0.5 * UI_UNIT_X,
+ 9 * UI_UNIT_Y,
+ 7.25 * UI_UNIT_X,
+ UI_UNIT_Y,
+ &cb->marker_pos[0],
+ -10 * width,
+ 10.0 * width,
+ 0,
+ 0,
+ TIP_("X-position of marker at frame in screen coordinates"));
+ UI_but_number_step_size_set(bt, step);
+ UI_but_number_precision_set(bt, digits);
+ bt = uiDefButF(block,
+ UI_BTYPE_NUM,
+ B_MARKER_POS,
+ IFACE_("Y:"),
+ 8.25 * UI_UNIT_X,
+ 9 * UI_UNIT_Y,
+ 7.25 * UI_UNIT_X,
+ UI_UNIT_Y,
+ &cb->marker_pos[1],
+ -10 * height,
+ 10.0 * height,
+ 0,
+ 0,
+ TIP_("Y-position of marker at frame in screen coordinates"));
+ UI_but_number_step_size_set(bt, step);
+ UI_but_number_precision_set(bt, digits);
uiDefBut(block,
UI_BTYPE_LABEL,
@@ -628,34 +632,38 @@ void uiTemplateMarker(uiLayout *layout,
0,
0,
"");
- uiDefButF(block,
- UI_BTYPE_NUM,
- B_MARKER_OFFSET,
- IFACE_("X:"),
- 0.5 * UI_UNIT_X,
- 7 * UI_UNIT_Y,
- 7.25 * UI_UNIT_X,
- UI_UNIT_Y,
- &cb->track_offset[0],
- -10 * width,
- 10.0 * width,
- step,
- digits,
- TIP_("X-offset to parenting point"));
- uiDefButF(block,
- UI_BTYPE_NUM,
- B_MARKER_OFFSET,
- IFACE_("Y:"),
- 8.25 * UI_UNIT_X,
- 7 * UI_UNIT_Y,
- 7.25 * UI_UNIT_X,
- UI_UNIT_Y,
- &cb->track_offset[1],
- -10 * height,
- 10.0 * height,
- step,
- digits,
- TIP_("Y-offset to parenting point"));
+ bt = uiDefButF(block,
+ UI_BTYPE_NUM,
+ B_MARKER_OFFSET,
+ IFACE_("X:"),
+ 0.5 * UI_UNIT_X,
+ 7 * UI_UNIT_Y,
+ 7.25 * UI_UNIT_X,
+ UI_UNIT_Y,
+ &cb->track_offset[0],
+ -10 * width,
+ 10.0 * width,
+ 0,
+ 0,
+ TIP_("X-offset to parenting point"));
+ UI_but_number_step_size_set(bt, step);
+ UI_but_number_precision_set(bt, digits);
+ bt = uiDefButF(block,
+ UI_BTYPE_NUM,
+ B_MARKER_OFFSET,
+ IFACE_("Y:"),
+ 8.25 * UI_UNIT_X,
+ 7 * UI_UNIT_Y,
+ 7.25 * UI_UNIT_X,
+ UI_UNIT_Y,
+ &cb->track_offset[1],
+ -10 * height,
+ 10.0 * height,
+ 0,
+ 0,
+ TIP_("Y-offset to parenting point"));
+ UI_but_number_step_size_set(bt, step);
+ UI_but_number_precision_set(bt, digits);
uiDefBut(block,
UI_BTYPE_LABEL,
@@ -671,34 +679,38 @@ void uiTemplateMarker(uiLayout *layout,
0,
0,
"");
- uiDefButF(block,
- UI_BTYPE_NUM,
- B_MARKER_PAT_DIM,
- IFACE_("Width:"),
- 0.5 * UI_UNIT_X,
- 5 * UI_UNIT_Y,
- 15 * UI_UNIT_X,
- UI_UNIT_Y,
- &cb->marker_pat[0],
- 3.0f,
- 10.0 * width,
- step,
- digits,
- TIP_("Width of marker's pattern in screen coordinates"));
- uiDefButF(block,
- UI_BTYPE_NUM,
- B_MARKER_PAT_DIM,
- IFACE_("Height:"),
- 0.5 * UI_UNIT_X,
- 4 * UI_UNIT_Y,
- 15 * UI_UNIT_X,
- UI_UNIT_Y,
- &cb->marker_pat[1],
- 3.0f,
- 10.0 * height,
- step,
- digits,
- TIP_("Height of marker's pattern in screen coordinates"));
+ bt = uiDefButF(block,
+ UI_BTYPE_NUM,
+ B_MARKER_PAT_DIM,
+ IFACE_("Width:"),
+ 0.5 * UI_UNIT_X,
+ 5 * UI_UNIT_Y,
+ 15 * UI_UNIT_X,
+ UI_UNIT_Y,
+ &cb->marker_pat[0],
+ 3.0f,
+ 10.0 * width,
+ 0,
+ 0,
+ TIP_("Width of marker's pattern in screen coordinates"));
+ UI_but_number_step_size_set(bt, step);
+ UI_but_number_precision_set(bt, digits);
+ bt = uiDefButF(block,
+ UI_BTYPE_NUM,
+ B_MARKER_PAT_DIM,
+ IFACE_("Height:"),
+ 0.5 * UI_UNIT_X,
+ 4 * UI_UNIT_Y,
+ 15 * UI_UNIT_X,
+ UI_UNIT_Y,
+ &cb->marker_pat[1],
+ 3.0f,
+ 10.0 * height,
+ 0,
+ 0,
+ TIP_("Height of marker's pattern in screen coordinates"));
+ UI_but_number_step_size_set(bt, step);
+ UI_but_number_precision_set(bt, digits);
uiDefBut(block,
UI_BTYPE_LABEL,
@@ -714,62 +726,70 @@ void uiTemplateMarker(uiLayout *layout,
0,
0,
"");
- uiDefButF(block,
- UI_BTYPE_NUM,
- B_MARKER_SEARCH_POS,
- IFACE_("X:"),
- 0.5 * UI_UNIT_X,
- 2 * UI_UNIT_Y,
- 7.25 * UI_UNIT_X,
- UI_UNIT_Y,
- &cb->marker_search_pos[0],
- -width,
- width,
- step,
- digits,
- TIP_("X-position of search at frame relative to marker's position"));
- uiDefButF(block,
- UI_BTYPE_NUM,
- B_MARKER_SEARCH_POS,
- IFACE_("Y:"),
- 8.25 * UI_UNIT_X,
- 2 * UI_UNIT_Y,
- 7.25 * UI_UNIT_X,
- UI_UNIT_Y,
- &cb->marker_search_pos[1],
- -height,
- height,
- step,
- digits,
- TIP_("Y-position of search at frame relative to marker's position"));
- uiDefButF(block,
- UI_BTYPE_NUM,
- B_MARKER_SEARCH_DIM,
- IFACE_("Width:"),
- 0.5 * UI_UNIT_X,
- 1 * UI_UNIT_Y,
- 15 * UI_UNIT_X,
- UI_UNIT_Y,
- &cb->marker_search[0],
- 3.0f,
- 10.0 * width,
- step,
- digits,
- TIP_("Width of marker's search in screen coordinates"));
- uiDefButF(block,
- UI_BTYPE_NUM,
- B_MARKER_SEARCH_DIM,
- IFACE_("Height:"),
- 0.5 * UI_UNIT_X,
- 0 * UI_UNIT_Y,
- 15 * UI_UNIT_X,
- UI_UNIT_Y,
- &cb->marker_search[1],
- 3.0f,
- 10.0 * height,
- step,
- digits,
- TIP_("Height of marker's search in screen coordinates"));
+ bt = uiDefButF(block,
+ UI_BTYPE_NUM,
+ B_MARKER_SEARCH_POS,
+ IFACE_("X:"),
+ 0.5 * UI_UNIT_X,
+ 2 * UI_UNIT_Y,
+ 7.25 * UI_UNIT_X,
+ UI_UNIT_Y,
+ &cb->marker_search_pos[0],
+ -width,
+ width,
+ 0,
+ 0,
+ TIP_("X-position of search at frame relative to marker's position"));
+ UI_but_number_step_size_set(bt, step);
+ UI_but_number_precision_set(bt, digits);
+ bt = uiDefButF(block,
+ UI_BTYPE_NUM,
+ B_MARKER_SEARCH_POS,
+ IFACE_("Y:"),
+ 8.25 * UI_UNIT_X,
+ 2 * UI_UNIT_Y,
+ 7.25 * UI_UNIT_X,
+ UI_UNIT_Y,
+ &cb->marker_search_pos[1],
+ -height,
+ height,
+ 0,
+ 0,
+ TIP_("Y-position of search at frame relative to marker's position"));
+ UI_but_number_step_size_set(bt, step);
+ UI_but_number_precision_set(bt, digits);
+ bt = uiDefButF(block,
+ UI_BTYPE_NUM,
+ B_MARKER_SEARCH_DIM,
+ IFACE_("Width:"),
+ 0.5 * UI_UNIT_X,
+ 1 * UI_UNIT_Y,
+ 15 * UI_UNIT_X,
+ UI_UNIT_Y,
+ &cb->marker_search[0],
+ 3.0f,
+ 10.0 * width,
+ 0,
+ 0,
+ TIP_("Width of marker's search in screen coordinates"));
+ UI_but_number_step_size_set(bt, step);
+ UI_but_number_precision_set(bt, digits);
+ bt = uiDefButF(block,
+ UI_BTYPE_NUM,
+ B_MARKER_SEARCH_DIM,
+ IFACE_("Height:"),
+ 0.5 * UI_UNIT_X,
+ 0 * UI_UNIT_Y,
+ 15 * UI_UNIT_X,
+ UI_UNIT_Y,
+ &cb->marker_search[1],
+ 3.0f,
+ 10.0 * height,
+ 0,
+ 0,
+ TIP_("Height of marker's search in screen coordinates"));
+ UI_but_number_step_size_set(bt, step);
+ UI_but_number_precision_set(bt, digits);
UI_block_align_end(block);
}