2008-12-23 19:47:33 +00:00
|
|
|
/**
|
|
|
|
* $Id:
|
|
|
|
*
|
|
|
|
* ***** BEGIN GPL LICENSE BLOCK *****
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* 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.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Contributor(s): Blender Foundation
|
|
|
|
*
|
|
|
|
* ***** END GPL LICENSE BLOCK *****
|
|
|
|
*/
|
|
|
|
#ifndef ED_OBJECT_INTERN_H
|
|
|
|
#define ED_OBJECT_INTERN_H
|
|
|
|
|
2009-01-10 19:34:23 +00:00
|
|
|
struct wmOperatorType;
|
2009-01-13 15:18:41 +00:00
|
|
|
struct KeyBlock;
|
|
|
|
struct Lattice;
|
|
|
|
struct Curve;
|
|
|
|
struct Object;
|
|
|
|
struct Mesh;
|
2009-01-10 19:34:23 +00:00
|
|
|
|
2008-12-23 19:47:33 +00:00
|
|
|
/* internal exports only */
|
2009-03-24 12:16:58 +00:00
|
|
|
|
2008-12-23 19:47:33 +00:00
|
|
|
|
|
|
|
/* object_edit.c */
|
2009-01-25 15:41:17 +00:00
|
|
|
void OBJECT_OT_editmode_toggle(struct wmOperatorType *ot);
|
2009-03-22 23:41:05 +00:00
|
|
|
void OBJECT_OT_parent_set(struct wmOperatorType *ot);
|
|
|
|
void OBJECT_OT_parent_clear(struct wmOperatorType *ot);
|
|
|
|
void OBJECT_OT_track_set(struct wmOperatorType *ot);
|
|
|
|
void OBJECT_OT_track_clear(struct wmOperatorType *ot);
|
2009-03-29 02:15:13 +00:00
|
|
|
void OBJECT_OT_select_all_toggle(struct wmOperatorType *ot);
|
2009-03-24 12:16:58 +00:00
|
|
|
void OBJECT_OT_select_invert(struct wmOperatorType *ot);
|
|
|
|
void OBJECT_OT_select_random(struct wmOperatorType *ot);
|
|
|
|
void OBJECT_OT_select_by_type(struct wmOperatorType *ot);
|
|
|
|
void OBJECT_OT_select_by_layer(struct wmOperatorType *ot);
|
|
|
|
void OBJECT_OT_select_linked(struct wmOperatorType *ot);
|
2009-03-22 23:41:05 +00:00
|
|
|
void OBJECT_OT_location_clear(struct wmOperatorType *ot);
|
|
|
|
void OBJECT_OT_rotation_clear(struct wmOperatorType *ot);
|
|
|
|
void OBJECT_OT_scale_clear(struct wmOperatorType *ot);
|
|
|
|
void OBJECT_OT_origin_clear(struct wmOperatorType *ot);
|
|
|
|
void OBJECT_OT_restrictview_set(struct wmOperatorType *ot);
|
|
|
|
void OBJECT_OT_restrictview_clear(struct wmOperatorType *ot);
|
|
|
|
void OBJECT_OT_slowparent_set(struct wmOperatorType *ot);
|
|
|
|
void OBJECT_OT_slowparent_clear(struct wmOperatorType *ot);
|
|
|
|
void OBJECT_OT_center_set(struct wmOperatorType *ot);
|
|
|
|
void OBJECT_OT_dupli_set_real(struct wmOperatorType *ot);
|
2009-01-15 16:07:39 +00:00
|
|
|
void OBJECT_OT_object_add(struct wmOperatorType *ot);
|
2009-03-22 23:41:05 +00:00
|
|
|
void OBJECT_OT_duplicate_add(struct wmOperatorType *ot);
|
2009-03-29 02:15:13 +00:00
|
|
|
void OBJECT_OT_delete(struct wmOperatorType *ot);
|
2009-01-13 15:18:41 +00:00
|
|
|
|
2009-01-25 20:22:05 +00:00
|
|
|
void OBJECT_OT_mesh_add(struct wmOperatorType *ot);
|
|
|
|
void OBJECT_OT_curve_add(struct wmOperatorType *ot);
|
2009-02-13 17:37:01 +00:00
|
|
|
void OBJECT_OT_surface_add(struct wmOperatorType *ot);
|
2.5: Text edit mode operators back. Took me a while getting
them nicely repeatable, and splitting up the big edit_text
operator into individual operator so it's all nicely scriptable,
documented, configurable, etc..
* Insert Text, Line Break, Insert Lorem
* Toggle Case, Set Case, Toggle Style, Set Style, Set Material
* Copy Text, Cut Text, Paste Text, Paste File, Paste Buffer
* Move, Move Select, Delete
* Change Spacing, Change Character
Notes
* Text (datablock) to Object doesn't work yet, will need to
implement text editor context for that.
* Some shortcut keys don't work because screen/wm overrides them,
ctrl+x, ctrl+left/right. That override goes top down which works
well for some cases, but here we need to override in the other
direction.
* There's no unicode support in RNA, or the user interface code
for that matter, but text strings can contain these characters.
At the moment it stores a UTF-8 string in char arrays, which is
supposed to be nicely compatible with ascii. Seems reasonable to
add support for UTF-8 in the interface code, python bindings, ..
eventually?
2009-02-17 19:55:20 +00:00
|
|
|
void OBJECT_OT_text_add(struct wmOperatorType *ot);
|
2009-02-18 09:28:04 +00:00
|
|
|
void OBJECT_OT_armature_add(struct wmOperatorType *ot);
|
2009-01-25 20:22:05 +00:00
|
|
|
/* only used as menu */
|
|
|
|
void OBJECT_OT_primitive_add(struct wmOperatorType *ot);
|
|
|
|
|
2009-01-13 15:18:41 +00:00
|
|
|
/* editlattice.c */
|
|
|
|
void free_editLatt(Object *ob);
|
|
|
|
void make_editLatt(Object *obedit);
|
|
|
|
void load_editLatt(Object *obedit);
|
|
|
|
void remake_editLatt(Object *obedit);
|
|
|
|
|
2009-01-20 03:41:23 +00:00
|
|
|
/* editgroup.c */
|
|
|
|
void GROUP_OT_group_create(struct wmOperatorType *ot);
|
2009-03-29 02:15:13 +00:00
|
|
|
void GROUP_OT_objects_remove(struct wmOperatorType *ot);
|
2009-01-20 10:50:36 +00:00
|
|
|
void GROUP_OT_objects_add_active(struct wmOperatorType *ot);
|
|
|
|
void GROUP_OT_objects_remove_active(struct wmOperatorType *ot);
|
2009-01-13 15:18:41 +00:00
|
|
|
|
2008-12-23 19:47:33 +00:00
|
|
|
#endif /* ED_OBJECT_INTERN_H */
|
|
|
|
|