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:
authorCampbell Barton <ideasman42@gmail.com>2009-03-29 06:15:13 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-03-29 06:15:13 +0400
commit931527e648acfbc2c7b71b59ce661dad9a4c1038 (patch)
treea00b98e524fb8ea459d1f915524ee3a08fb7c747 /source/blender/editors/physics
parent4a164ce520c8b8a5f4e8ff90aef7050694562dc9 (diff)
- use clear, set, add, enable, disable and toggle as a prefix in operator names
- use select as a suffix eg UV_OT_loop_select -> UV_OT_select_loop - Each select all operator was using slightly different wording... select_all, deselect_all, de_select_all, select_de_select_all -> select_all_toggle - selection -> select - POSE_OT_select_connected -> POSE_OT_select_linked to match other operators - NODE_OT_delete_selection -> NODE_OT_delete since its not used in other operators - ANIM_OT_previewrange_define -> ANIM_OT_previewrange_set to match other operators - NODE_OT_fit_all -> NODE_OT_view_all to match other operators - View2D_OT_* -> VIEW2D_OT_* to match VIEW3D - View2D_OT_view_downscroll -> VIEW2D_OT_scroll_down more logical - removed MARKER_OT_mouseselect_extend and made extend a boolean property of MARKER_OT_mouseselect - MARKER_OT_mouseselect -> MARKER_OT_select - GROUP_OT_group_remove -> GROUP_OT_objects_remove more logical since its removing objects from groups - MESH_OT_removedoublesflag -> MESH_OT_remove_doubles - redundant words MESH_OT_split_mesh -> MESH_OT_split, OBJECT_OT_object_delete -> OBJECT_OT_delete renamed selection operator properties extend_select -> extend column_select -> column select_children_only -> children_only ... Since these are all in the context of selection operators there is no need for the extra 'select' in the property name. Updated docs http://www.graphicall.org/ftp/ideasman42/html/bpyoperator-module.html
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r--source/blender/editors/physics/editparticle.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/editors/physics/editparticle.c b/source/blender/editors/physics/editparticle.c
index 272383ab651..33d1bd66676 100644
--- a/source/blender/editors/physics/editparticle.c
+++ b/source/blender/editors/physics/editparticle.c
@@ -1209,11 +1209,11 @@ static int de_select_all_exec(bContext *C, wmOperator *op)
return OPERATOR_FINISHED;
}
-void PARTICLE_OT_de_select_all(wmOperatorType *ot)
+void PARTICLE_OT_select_all_toggle(wmOperatorType *ot)
{
/* identifiers */
ot->name= "Select or Deselect All";
- ot->idname= "PARTICLE_OT_de_select_all";
+ ot->idname= "PARTICLE_OT_select_all_toggle";
/* api callbacks */
ot->exec= de_select_all_exec;
@@ -2581,11 +2581,11 @@ static int set_brush_exec(bContext *C, wmOperator *op)
return OPERATOR_FINISHED;
}
-void PARTICLE_OT_set_brush(wmOperatorType *ot)
+void PARTICLE_OT_brush_set(wmOperatorType *ot)
{
/* identifiers */
ot->name= "Set Brush";
- ot->idname= "PARTICLE_OT_set_brush";
+ ot->idname= "PARTICLE_OT_brush_set";
/* api callbacks */
ot->exec= set_brush_exec;
@@ -3778,11 +3778,11 @@ static int set_editable_exec(bContext *C, wmOperator *op)
return OPERATOR_FINISHED;
}
-void PARTICLE_OT_set_editable(wmOperatorType *ot)
+void PARTICLE_OT_editable_set(wmOperatorType *ot)
{
/* identifiers */
ot->name= "Set Editable";
- ot->idname= "PARTICLE_OT_set_editable";
+ ot->idname= "PARTICLE_OT_editable_set";
/* api callbacks */
ot->exec= set_editable_exec;
@@ -3871,7 +3871,7 @@ void PARTICLE_OT_specials_menu(wmOperatorType *ot)
void ED_operatortypes_particle(void)
{
- WM_operatortype_append(PARTICLE_OT_de_select_all);
+ WM_operatortype_append(PARTICLE_OT_select_all_toggle);
WM_operatortype_append(PARTICLE_OT_select_first);
WM_operatortype_append(PARTICLE_OT_select_last);
WM_operatortype_append(PARTICLE_OT_select_linked);
@@ -3887,21 +3887,21 @@ void ED_operatortypes_particle(void)
WM_operatortype_append(PARTICLE_OT_delete);
WM_operatortype_append(PARTICLE_OT_mirror);
- WM_operatortype_append(PARTICLE_OT_set_brush);
+ WM_operatortype_append(PARTICLE_OT_brush_set);
WM_operatortype_append(PARTICLE_OT_brush_edit);
WM_operatortype_append(PARTICLE_OT_brush_radial_control);
WM_operatortype_append(PARTICLE_OT_specials_menu);
WM_operatortype_append(PARTICLE_OT_particle_edit_toggle);
- WM_operatortype_append(PARTICLE_OT_set_editable);
+ WM_operatortype_append(PARTICLE_OT_editable_set);
}
void ED_keymap_particle(wmWindowManager *wm)
{
ListBase *keymap= WM_keymap_listbase(wm, "Particle", 0, 0);
- WM_keymap_add_item(keymap, "PARTICLE_OT_de_select_all", AKEY, KM_PRESS, 0, 0);
+ WM_keymap_add_item(keymap, "PARTICLE_OT_select_all_toggle", AKEY, KM_PRESS, 0, 0);
WM_keymap_add_item(keymap, "PARTICLE_OT_select_more", PADPLUSKEY, KM_PRESS, KM_CTRL, 0);
WM_keymap_add_item(keymap, "PARTICLE_OT_select_less", PADMINUS, KM_PRESS, KM_CTRL, 0);
WM_keymap_add_item(keymap, "PARTICLE_OT_select_linked", LKEY, KM_PRESS, 0, 0);