68 int current_channel_index = 0, channel_index;
77 if (current_channel_index == channel_index) {
89 else if (show_selected_only ==
false) {
97 current_channel_index++;
113 ®ion->
v2d, event->
mval[0], event->
mval[1], &location[0], &location[1]);
122 ot->
name =
"Select Channel";
124 ot->
idname =
"CLIP_OT_dopesheet_select_channel";
142 "Mouse location to select channel",
149 "Extend selection rather than clearing the existing selection");
162 int frame_min =
INT_MAX, frame_max = INT_MIN;
171 if (frame_min < frame_max) {
191 ot->
name =
"Frame All";
192 ot->
description =
"Reset viewable area to show full keyframe range";
193 ot->
idname =
"CLIP_OT_dopesheet_view_all";
#define CHANNEL_HEIGHT_HALF
void view2d_region_to_view(const View2D *v2d, float x, float y, float *r_view_x, float *r_view_y) ATTR_NONNULL()
void RNA_float_set_array(PointerRNA *ptr, const char *name, const float *values)
static wmOperatorStatus dopesheet_select_channel_invoke(bContext *C, wmOperator *op, const wmEvent *event)
MovieTrackingObject * BKE_tracking_object_get_active(const MovieTracking *tracking)
SpaceClip * CTX_wm_space_clip(const bContext *C)
static bool dopesheet_select_channel_poll(bContext *C)
static bool space_clip_dopesheet_poll(bContext *C)
MINLINE int max_ii(int a, int b)
void ED_region_tag_redraw(ARegion *region)
static wmOperatorStatus dopesheet_select_channel_exec(bContext *C, wmOperator *op)
PropertyRNA * RNA_def_float_vector(StructOrFunctionRNA *cont_, const char *identifier, const int len, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
static wmOperatorStatus dopesheet_view_all_exec(bContext *C, wmOperator *)
MovieClip * ED_space_clip_get_clip(const SpaceClip *sc)
BLI_INLINE float BLI_rctf_size_x(const struct rctf *rct)
void CLIP_OT_dopesheet_select_channel(wmOperatorType *ot)
bool ED_space_clip_tracking_poll(bContext *C)
void BKE_tracking_track_deselect(MovieTrackingTrack *track, eTrackArea area)
@ TRACKING_DOPE_SELECTED_ONLY
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
void CLIP_OT_dopesheet_view_all(wmOperatorType *ot)
MINLINE int min_ii(int a, int b)
ARegion * CTX_wm_region(const bContext *C)
void RNA_float_get_array(PointerRNA *ptr, const char *name, float *values)
void BKE_tracking_track_select(ListBaseT< MovieTrackingTrack > *tracksbase, MovieTrackingTrack *track, eTrackArea area, bool extend)
struct MovieTracking tracking
MovieTrackingTrack * track
ListBaseT< MovieTrackingDopesheetChannel > channels
TrackingDopesheetFlag flag
ListBaseT< MovieTrackingTrack > tracks
MovieTrackingTrack * active_track
MovieTrackingDopesheet dopesheet
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT