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:
authorJoshua Leung <aligorith@gmail.com>2009-05-31 15:14:50 +0400
committerJoshua Leung <aligorith@gmail.com>2009-05-31 15:14:50 +0400
commit33267f58581ea8f9d89028958c6e64a8d048d4db (patch)
tree5bd7494f65b9a3914a945926df92d303b659d0d2 /source/blender/editors/space_nla/nla_intern.h
parentc42eeddea491d6a79dbcc0b8b28386237085643d (diff)
NLA SoC: Basic selection operators
* Added click-select/left-right select and deselect all/invert all selection operators. For now, these basic operators will suffice (more advanced selection operators will be coded at a later stage). * Fixed a few bugs in DopeSheet found while coding the relevant tools for NLA. * Added custom border-select operator for NLA channels (since the standard one assumes negative direction channel order) * Added new API-method for NLA strips to check if the strip occurs within a given range, since this test needed to be performed in a few places... * Tweaked the NLA Editor View2D ranges a bit to give saner default sizing. This still isn't right yet though.
Diffstat (limited to 'source/blender/editors/space_nla/nla_intern.h')
-rw-r--r--source/blender/editors/space_nla/nla_intern.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/source/blender/editors/space_nla/nla_intern.h b/source/blender/editors/space_nla/nla_intern.h
index 37eb7774696..448b823bd4b 100644
--- a/source/blender/editors/space_nla/nla_intern.h
+++ b/source/blender/editors/space_nla/nla_intern.h
@@ -17,11 +17,11 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
- * The Original Code is Copyright (C) 2008 Blender Foundation.
+ * The Original Code is Copyright (C) 2009 Blender Foundation, Joshua Leung.
* All rights reserved.
*
*
- * Contributor(s): Blender Foundation
+ * Contributor(s): Blender Foundation, Joshua Leung
*
* ***** END GPL LICENSE BLOCK *****
*/
@@ -60,6 +60,18 @@ void nla_header_buttons(const bContext *C, ARegion *ar);
/* **************************************** */
/* nla_select.c */
+/* defines for left-right select tool */
+enum {
+ NLAEDIT_LRSEL_TEST = -1,
+ NLAEDIT_LRSEL_NONE,
+ NLAEDIT_LRSEL_LEFT,
+ NLAEDIT_LRSEL_RIGHT,
+} eNlaEdit_LeftRightSelect_Mode;
+
+/* --- */
+
+void NLAEDIT_OT_select_all_toggle(wmOperatorType *ot);
+void NLAEDIT_OT_click_select(wmOperatorType *ot);
/* **************************************** */
/* nla_edit.c */
@@ -67,6 +79,7 @@ void nla_header_buttons(const bContext *C, ARegion *ar);
/* **************************************** */
/* nla_channels.c */
+void NLA_OT_channels_select_border(wmOperatorType *ot);
void NLA_OT_channels_click(wmOperatorType *ot);
/* **************************************** */