Blender V5.3
nla_intern.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2009 Blender Authors, Joshua Leung. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "DNA_listBase.h"
12
13namespace blender {
14
15struct ARegion;
16struct ARegionType;
17struct PointerRNA;
18struct SpaceNla;
19struct bAnimContext;
20struct bAnimListElem;
21struct bContext;
22struct wmKeyConfig;
23struct wmOperatorType;
24
25/* internal exports only */
26
27/* **************************************** */
28/* Macros, etc. only used by NLA */
29
30/* **************************************** */
31/* `space_nla.cc` / `nla_buttons.cc`. */
32
33bool nla_panel_context(const bContext *C,
34 PointerRNA *adt_ptr,
35 PointerRNA *nlt_ptr,
36 PointerRNA *strip_ptr);
37
39
40/* **************************************** */
41/* `nla_draw.cc` */
42
43void draw_nla_main_data(bAnimContext *ac, SpaceNla *snla, ARegion *region);
45 bAnimContext *ac,
46 ARegion *region,
47 const ListBaseT<bAnimListElem> &anim_data);
48
49/* **************************************** */
50/* `nla_select.cc` */
51
52/* defines for left-right select tool */
59
60/* --- */
61
62void NLA_OT_select_all(wmOperatorType *ot);
63void NLA_OT_select_box(wmOperatorType *ot);
64void NLA_OT_select_leftright(wmOperatorType *ot);
65void NLA_OT_click_select(wmOperatorType *ot);
66
67/* **************************************** */
68/* `nla_edit.cc` */
69
70/* defines for snap strips */
77
78/* --- */
79
83bool nlaedit_disable_tweakmode(bAnimContext *ac, bool do_solo);
84
85void NLA_OT_tweakmode_enter(wmOperatorType *ot);
86void NLA_OT_tweakmode_exit(wmOperatorType *ot);
87
88/* --- */
89
90void NLA_OT_previewrange_set(wmOperatorType *ot);
91
92void NLA_OT_view_all(wmOperatorType *ot);
93void NLA_OT_view_selected(wmOperatorType *ot);
94void NLA_OT_view_frame(wmOperatorType *ot);
95
96void NLA_OT_actionclip_add(wmOperatorType *ot);
97void NLA_OT_transition_add(wmOperatorType *ot);
98void NLA_OT_soundclip_add(wmOperatorType *ot);
99
100void NLA_OT_meta_add(wmOperatorType *ot);
101void NLA_OT_meta_remove(wmOperatorType *ot);
102
103void NLA_OT_duplicate(wmOperatorType *ot);
104void NLA_OT_delete(wmOperatorType *ot);
105void NLA_OT_split(wmOperatorType *ot);
106
107void NLA_OT_mute_toggle(wmOperatorType *ot);
108
109void NLA_OT_swap(wmOperatorType *ot);
110void NLA_OT_move_up(wmOperatorType *ot);
111void NLA_OT_move_down(wmOperatorType *ot);
112
113void NLA_OT_action_sync_length(wmOperatorType *ot);
114
115void NLA_OT_make_single_user(wmOperatorType *ot);
116
117void NLA_OT_apply_scale(wmOperatorType *ot);
118void NLA_OT_clear_scale(wmOperatorType *ot);
119
120void NLA_OT_snap(wmOperatorType *ot);
121
122void NLA_OT_fmodifier_add(wmOperatorType *ot);
123void NLA_OT_fmodifier_copy(wmOperatorType *ot);
124void NLA_OT_fmodifier_paste(wmOperatorType *ot);
125
126/* **************************************** */
127/* `nla_tracks.cc` */
128
132bool nlaedit_add_tracks_existing(bAnimContext *ac, bool above_sel);
136bool nlaedit_add_tracks_empty(bAnimContext *ac);
137
138/* --- */
139
140void NLA_OT_channels_click(wmOperatorType *ot);
141
142void NLA_OT_action_pushdown(wmOperatorType *ot);
143void NLA_OT_action_unlink(wmOperatorType *ot);
144
145void NLA_OT_tracks_add(wmOperatorType *ot);
146void NLA_OT_tracks_delete(wmOperatorType *ot);
147
148void NLA_OT_selected_objects_add(wmOperatorType *ot);
149
150/* **************************************** */
151/* `nla_ops.cc` */
152
156bool nlaop_poll_tweakmode_off(bContext *C);
161bool nlaop_poll_tweakmode_on(bContext *C);
162
166bool nlaedit_is_tweakmode_on(bAnimContext *ac);
167
168/* --- */
169
170void nla_operatortypes();
171void nla_keymap(wmKeyConfig *keyconf);
172
173} // namespace blender
These structs are the foundation for all linked lists in the library system.
#define C
Definition RandGen.cpp:29
BMesh Iterators.
void NLA_OT_delete(wmOperatorType *ot)
Definition nla_edit.cc:1328
void NLA_OT_transition_add(wmOperatorType *ot)
Definition nla_edit.cc:886
void draw_nla_track_list(const bContext *C, bAnimContext *ac, ARegion *region, const ListBaseT< bAnimListElem > &anim_data)
Definition nla_draw.cc:971
void NLA_OT_action_unlink(wmOperatorType *ot)
void NLA_OT_previewrange_set(wmOperatorType *ot)
Definition nla_edit.cc:413
void NLA_OT_fmodifier_paste(wmOperatorType *ot)
Definition nla_edit.cc:2816
bool nlaedit_is_tweakmode_on(bAnimContext *ac)
Definition nla_ops.cc:81
void NLA_OT_move_down(wmOperatorType *ot)
Definition nla_edit.cc:1931
void NLA_OT_select_box(wmOperatorType *ot)
void NLA_OT_mute_toggle(wmOperatorType *ot)
Definition nla_edit.cc:1560
void NLA_OT_split(wmOperatorType *ot)
Definition nla_edit.cc:1491
void NLA_OT_tracks_delete(wmOperatorType *ot)
bool nlaop_poll_tweakmode_off_with_main_region(bContext *C)
Definition nla_ops.cc:50
void NLA_OT_view_all(wmOperatorType *ot)
Definition nla_edit.cc:550
void NLA_OT_actionclip_add(wmOperatorType *ot)
Definition nla_edit.cc:746
void NLA_OT_channels_click(wmOperatorType *ot)
eNlaEdit_LeftRightSelect_Mode
Definition nla_intern.hh:53
@ NLAEDIT_LRSEL_RIGHT
Definition nla_intern.hh:57
@ NLAEDIT_LRSEL_NONE
Definition nla_intern.hh:55
@ NLAEDIT_LRSEL_LEFT
Definition nla_intern.hh:56
@ NLAEDIT_LRSEL_TEST
Definition nla_intern.hh:54
void NLA_OT_meta_add(wmOperatorType *ot)
Definition nla_edit.cc:1051
void NLA_OT_tweakmode_exit(wmOperatorType *ot)
Definition nla_edit.cc:293
void nla_buttons_register(ARegionType *art)
void NLA_OT_fmodifier_copy(wmOperatorType *ot)
Definition nla_edit.cc:2723
void NLA_OT_selected_objects_add(wmOperatorType *ot)
bool nlaop_poll_tweakmode_on(bContext *C)
Definition nla_ops.cc:59
eNlaEdit_Snap_Mode
Definition nla_intern.hh:71
@ NLAEDIT_SNAP_NEAREST_FRAME
Definition nla_intern.hh:73
@ NLAEDIT_SNAP_NEAREST_SECOND
Definition nla_intern.hh:74
@ NLAEDIT_SNAP_NEAREST_MARKER
Definition nla_intern.hh:75
@ NLAEDIT_SNAP_CFRA
Definition nla_intern.hh:72
void NLA_OT_snap(wmOperatorType *ot)
Definition nla_edit.cc:2498
void NLA_OT_move_up(wmOperatorType *ot)
Definition nla_edit.cc:1840
bool nlaedit_disable_tweakmode(bAnimContext *ac, bool do_solo)
Definition nla_edit.cc:223
bool nlaedit_add_tracks_empty(bAnimContext *ac)
void NLA_OT_tweakmode_enter(wmOperatorType *ot)
Definition nla_edit.cc:183
void NLA_OT_fmodifier_add(wmOperatorType *ot)
Definition nla_edit.cc:2640
void NLA_OT_soundclip_add(wmOperatorType *ot)
Definition nla_edit.cc:976
bool nla_panel_context(const bContext *C, PointerRNA *adt_ptr, PointerRNA *nlt_ptr, PointerRNA *strip_ptr)
void NLA_OT_select_all(wmOperatorType *ot)
void NLA_OT_swap(wmOperatorType *ot)
Definition nla_edit.cc:1749
void NLA_OT_select_leftright(wmOperatorType *ot)
void NLA_OT_apply_scale(wmOperatorType *ot)
Definition nla_edit.cc:2269
void NLA_OT_make_single_user(wmOperatorType *ot)
Definition nla_edit.cc:2128
void NLA_OT_duplicate(wmOperatorType *ot)
Definition nla_edit.cc:1230
void NLA_OT_action_pushdown(wmOperatorType *ot)
void NLA_OT_click_select(wmOperatorType *ot)
void nla_keymap(wmKeyConfig *keyconf)
Definition nla_ops.cc:179
void NLA_OT_tracks_add(wmOperatorType *ot)
void NLA_OT_view_frame(wmOperatorType *ot)
Definition nla_edit.cc:593
void NLA_OT_meta_remove(wmOperatorType *ot)
Definition nla_edit.cc:1116
void NLA_OT_action_sync_length(wmOperatorType *ot)
Definition nla_edit.cc:2015
void draw_nla_main_data(bAnimContext *ac, SpaceNla *snla, ARegion *region)
Definition nla_draw.cc:786
bool nlaop_poll_tweakmode_off(bContext *C)
Definition nla_ops.cc:29
bool nlaedit_add_tracks_existing(bAnimContext *ac, bool above_sel)
void NLA_OT_clear_scale(wmOperatorType *ot)
Definition nla_edit.cc:2335
void NLA_OT_view_selected(wmOperatorType *ot)
Definition nla_edit.cc:565
void nla_operatortypes()
Definition nla_ops.cc:91