*******
- added descriptions to view3d operators
- fixed up the object select menu
- fixed a few typos
This commit is contained in:
Michael Fox
2009-03-23 03:14:56 +00:00
parent 438ba310ed
commit baf12bf3a3
2 changed files with 20 additions and 6 deletions

View File

@@ -549,6 +549,7 @@ void VIEW3D_OT_viewrotate(wmOperatorType *ot)
/* identifiers */
ot->name= "Rotate view";
ot->description = "Rotate the current view.";
ot->idname= "VIEW3D_OT_viewrotate";
/* api callbacks */
@@ -630,7 +631,8 @@ void VIEW3D_OT_viewmove(wmOperatorType *ot)
{
/* identifiers */
ot->name= "Rotate view";
ot->name= "Move view";
ot->description = "Move the current view.";
ot->idname= "VIEW3D_OT_viewmove";
/* api callbacks */
@@ -828,6 +830,7 @@ void VIEW3D_OT_viewzoom(wmOperatorType *ot)
{
/* identifiers */
ot->name= "Zoom view";
ot->description = "Zoom in/out in the current view.";
ot->idname= "VIEW3D_OT_viewzoom";
/* api callbacks */
@@ -910,6 +913,7 @@ void VIEW3D_OT_viewhome(wmOperatorType *ot)
{
/* identifiers */
ot->name= "View home";
ot->description = "View all objects in scene.";
ot->idname= "VIEW3D_OT_viewhome";
/* api callbacks */
@@ -1048,6 +1052,7 @@ void VIEW3D_OT_viewcenter(wmOperatorType *ot)
/* identifiers */
ot->name= "View center";
ot->description = "Move the view to the world center.";
ot->idname= "VIEW3D_OT_viewcenter";
/* api callbacks */
@@ -1118,6 +1123,7 @@ void VIEW3D_OT_render_border(wmOperatorType *ot)
{
/* identifiers */
ot->name= "Set Render Border";
ot->description = "Set the boundries of the border render.";
ot->idname= "VIEW3D_OT_render_border";
/* api callbacks */
@@ -1291,6 +1297,7 @@ void VIEW3D_OT_border_zoom(wmOperatorType *ot)
/* identifiers */
ot->name= "Border Zoom";
ot->description = "Zoom in the current view to the nearest object contained in the border.";
ot->idname= "VIEW3D_OT_border_zoom";
/* api callbacks */
@@ -1458,6 +1465,7 @@ void VIEW3D_OT_viewnumpad(wmOperatorType *ot)
{
/* identifiers */
ot->name= "View numpad";
ot->description = "Set the current view.";
ot->idname= "VIEW3D_OT_viewnumpad";
/* api callbacks */
@@ -1526,6 +1534,7 @@ void VIEW3D_OT_view_orbit(wmOperatorType *ot)
{
/* identifiers */
ot->name= "View Orbit";
ot->description = "Orbit the current view.";
ot->idname= "VIEW3D_OT_view_orbit";
/* api callbacks */
@@ -1575,6 +1584,7 @@ void VIEW3D_OT_view_pan(wmOperatorType *ot)
{
/* identifiers */
ot->name= "View Pan";
ot->description = "Pan the current view.";
ot->idname= "VIEW3D_OT_view_pan";
/* api callbacks */
@@ -1606,6 +1616,7 @@ void VIEW3D_OT_view_persportho(wmOperatorType *ot)
{
/* identifiers */
ot->name= "View persp/ortho";
ot->description = "Switch the current view from percpective/orthographic.";
ot->idname= "VIEW3D_OT_view_persportho";
/* api callbacks */
@@ -1704,6 +1715,7 @@ void VIEW3D_OT_clipping(wmOperatorType *ot)
/* identifiers */
ot->name= "Clipping Border";
ot->description = "Set the view clipping border.";
ot->idname= "VIEW3D_OT_clipping";
/* api callbacks */
@@ -1757,6 +1769,7 @@ void VIEW3D_OT_drawtype(wmOperatorType *ot)
{
/* identifiers */
ot->name= "Change draw type";
ot->description = "Change the view type of the current view.";
ot->idname= "VIEW3D_OT_drawtype";
/* api callbacks */
@@ -1833,6 +1846,7 @@ void VIEW3D_OT_cursor3d(wmOperatorType *ot)
/* identifiers */
ot->name= "Set 3D Cursor";
ot->description = "Set the location of the 3D cursor.";
ot->idname= "VIEW3D_OT_cursor3d";
/* api callbacks */

View File

@@ -1039,11 +1039,11 @@ static uiBlock *view3d_select_objectmenu(bContext *C, ARegion *ar, void *arg_unu
uiDefMenuSep(block);
uiDefMenuButO(block, "OBJECT_OT_de_select_all", "Select/Deselect All");
uiDefMenuButO(block, "OBJECT_OT_select_invert", "Inverse");
uiDefMenuButO(block, "OBJECT_OT_select_random", "Random");
uiDefMenuButO(block, "OBJECT_OT_select_by_layer", "Select All by Layer");
uiDefMenuButO(block, "OBJECT_OT_select_by_type", "Select All by Type");
uiDefMenuButO(block, "OBJECT_OT_selection_de_select_all", "Select/Deselect All");
uiDefMenuButO(block, "OBJECT_OT_selection_invert", "Inverse");
uiDefMenuButO(block, "OBJECT_OT_selection_random", "Random");
uiDefMenuButO(block, "OBJECT_OT_selection_by_layer", "Select All by Layer");
uiDefMenuButO(block, "OBJECT_OT_selection_by_type", "Select All by Type");
if(ar->alignment==RGN_ALIGN_TOP) {