71 int current_channel_index = 0, channel_index;
80 if (current_channel_index == channel_index) {
92 else if (show_selected_only ==
false) {
100 current_channel_index++;
114 ®ion->
v2d, event->
mval[0], event->
mval[1], &location[0], &location[1]);
123 ot->
name =
"Select Channel";
125 ot->
idname =
"CLIP_OT_dopesheet_select_channel";
143 "Mouse location to select channel",
150 "Extend selection rather than clearing the existing selection");
164 int frame_min = INT_MAX, frame_max = INT_MIN;
171 if (frame_min < frame_max) {
192 ot->
description =
"Reset viewable area to show full keyframe range";
193 ot->
idname =
"CLIP_OT_dopesheet_view_all";
struct SpaceClip * CTX_wm_space_clip(const bContext *C)
struct ARegion * CTX_wm_region(const bContext *C)
void BKE_tracking_track_deselect(struct MovieTrackingTrack *track, int area)
void BKE_tracking_track_select(struct ListBase *tracksbase, struct MovieTrackingTrack *track, int area, bool extend)
struct ListBase * BKE_tracking_object_get_tracks(struct MovieTracking *tracking, struct MovieTrackingObject *object)
struct MovieTrackingObject * BKE_tracking_object_get_active(struct MovieTracking *tracking)
MINLINE int min_ii(int a, int b)
MINLINE int max_ii(int a, int b)
BLI_INLINE float BLI_rctf_size_x(const struct rctf *rct)
@ TRACKING_DOPE_SELECTED_ONLY
bool ED_space_clip_tracking_poll(struct bContext *C)
struct MovieClip * ED_space_clip_get_clip(struct SpaceClip *sc)
void ED_region_tag_redraw(struct ARegion *region)
void UI_view2d_region_to_view(const struct View2D *v2d, float x, float y, float *r_view_x, float *r_view_y) ATTR_NONNULL()
static bool space_clip_dopesheet_poll(bContext *C)
void CLIP_OT_dopesheet_view_all(wmOperatorType *ot)
void CLIP_OT_dopesheet_select_channel(wmOperatorType *ot)
static int dopesheet_view_all_exec(bContext *C, wmOperator *UNUSED(op))
static int dopesheet_select_channel_exec(bContext *C, wmOperator *op)
static int dopesheet_select_channel_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static bool dopesheet_select_channel_poll(bContext *C)
#define CHANNEL_HEIGHT_HALF
void RNA_float_get_array(PointerRNA *ptr, const char *name, float *values)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
void RNA_float_set_array(PointerRNA *ptr, const char *name, const float *values)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, bool default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_float_vector(StructOrFunctionRNA *cont_, const char *identifier, int len, const float *default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
struct MovieTracking tracking
struct MovieTrackingDopesheetChannel * next
MovieTrackingTrack * track
MovieTrackingDopesheet dopesheet
MovieTrackingTrack * act_track
int(* invoke)(struct bContext *, struct wmOperator *, const struct wmEvent *) ATTR_WARN_UNUSED_RESULT
bool(* poll)(struct bContext *) ATTR_WARN_UNUSED_RESULT
int(* exec)(struct bContext *, struct wmOperator *) ATTR_WARN_UNUSED_RESULT
void WM_event_add_notifier(const bContext *C, uint type, void *reference)