[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35230] trunk/blender/source/blender: == UI icons ==

Andrea Weikert elubie at gmx.net
Sun Feb 27 19:03:19 CET 2011


Revision: 35230
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35230
Author:   elubie
Date:     2011-02-27 18:03:19 +0000 (Sun, 27 Feb 2011)
Log Message:
-----------
== UI icons ==
* Change ICON_NULL --> ICON_NONE to avoid two #defines with the same meaning.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/animation/anim_channels_defines.c
    trunk/blender/source/blender/editors/animation/fmodifier_ui.c
    trunk/blender/source/blender/editors/animation/keyingsets.c
    trunk/blender/source/blender/editors/armature/editarmature.c
    trunk/blender/source/blender/editors/armature/poselib.c
    trunk/blender/source/blender/editors/armature/poseobject.c
    trunk/blender/source/blender/editors/curve/editcurve.c
    trunk/blender/source/blender/editors/gpencil/gpencil_buttons.c
    trunk/blender/source/blender/editors/include/UI_interface.h
    trunk/blender/source/blender/editors/interface/interface_handlers.c
    trunk/blender/source/blender/editors/interface/interface_icons.c
    trunk/blender/source/blender/editors/interface/interface_layout.c
    trunk/blender/source/blender/editors/interface/interface_regions.c
    trunk/blender/source/blender/editors/interface/interface_templates.c
    trunk/blender/source/blender/editors/interface/interface_utils.c
    trunk/blender/source/blender/editors/interface/interface_widgets.c
    trunk/blender/source/blender/editors/object/object_add.c
    trunk/blender/source/blender/editors/object/object_constraint.c
    trunk/blender/source/blender/editors/object/object_relations.c
    trunk/blender/source/blender/editors/object/object_select.c
    trunk/blender/source/blender/editors/screen/screen_ops.c
    trunk/blender/source/blender/editors/space_buttons/buttons_ops.c
    trunk/blender/source/blender/editors/space_file/file_panels.c
    trunk/blender/source/blender/editors/space_graph/graph_buttons.c
    trunk/blender/source/blender/editors/space_graph/graph_edit.c
    trunk/blender/source/blender/editors/space_image/image_buttons.c
    trunk/blender/source/blender/editors/space_image/image_header.c
    trunk/blender/source/blender/editors/space_image/image_ops.c
    trunk/blender/source/blender/editors/space_info/info_ops.c
    trunk/blender/source/blender/editors/space_info/space_info.c
    trunk/blender/source/blender/editors/space_logic/logic_window.c
    trunk/blender/source/blender/editors/space_nla/nla_buttons.c
    trunk/blender/source/blender/editors/space_nla/nla_edit.c
    trunk/blender/source/blender/editors/space_node/drawnode.c
    trunk/blender/source/blender/editors/space_node/node_draw.c
    trunk/blender/source/blender/editors/space_node/node_header.c
    trunk/blender/source/blender/editors/space_outliner/outliner.c
    trunk/blender/source/blender/editors/space_text/text_header.c
    trunk/blender/source/blender/editors/space_text/text_ops.c
    trunk/blender/source/blender/editors/space_view3d/view3d_buttons.c
    trunk/blender/source/blender/editors/space_view3d/view3d_header.c
    trunk/blender/source/blender/editors/space_view3d/view3d_select.c
    trunk/blender/source/blender/editors/space_view3d/view3d_toolbar.c
    trunk/blender/source/blender/editors/transform/transform_ops.c
    trunk/blender/source/blender/editors/util/ed_util.c
    trunk/blender/source/blender/windowmanager/intern/wm_operators.c

Modified: trunk/blender/source/blender/editors/animation/anim_channels_defines.c
===================================================================
--- trunk/blender/source/blender/editors/animation/anim_channels_defines.c	2011-02-27 17:50:12 UTC (rev 35229)
+++ trunk/blender/source/blender/editors/animation/anim_channels_defines.c	2011-02-27 18:03:19 UTC (rev 35230)
@@ -3364,7 +3364,7 @@
 						uiBut *but;
 						
 						/* create the slider button, and assign relevant callback to ensure keyframes are inserted... */
-						but= uiDefAutoButR(block, &ptr, prop, array_index, "", ICON_NULL, (int)v2d->cur.xmax-offset, ymid, SLIDER_WIDTH, (int)ymaxc-yminc);
+						but= uiDefAutoButR(block, &ptr, prop, array_index, "", ICON_NONE, (int)v2d->cur.xmax-offset, ymid, SLIDER_WIDTH, (int)ymaxc-yminc);
 						
 						/* assign keyframing function according to slider type */
 						if (ale->type == ANIMTYPE_SHAPEKEY)

Modified: trunk/blender/source/blender/editors/animation/fmodifier_ui.c
===================================================================
--- trunk/blender/source/blender/editors/animation/fmodifier_ui.c	2011-02-27 17:50:12 UTC (rev 35229)
+++ trunk/blender/source/blender/editors/animation/fmodifier_ui.c	2011-02-27 18:03:19 UTC (rev 35230)
@@ -227,14 +227,14 @@
 	
 	/* add the settings */
 	col= uiLayoutColumn(layout, 1);
-		uiItemR(col, &ptr, "function_type", 0, "", ICON_NULL);
-		uiItemR(col, &ptr, "use_additive", UI_ITEM_R_TOGGLE, NULL, ICON_NULL);
+		uiItemR(col, &ptr, "function_type", 0, "", ICON_NONE);
+		uiItemR(col, &ptr, "use_additive", UI_ITEM_R_TOGGLE, NULL, ICON_NONE);
 	
 	col= uiLayoutColumn(layout, 0); // no grouping for now
-		uiItemR(col, &ptr, "amplitude", 0, NULL, ICON_NULL);
-		uiItemR(col, &ptr, "phase_multiplier", 0, NULL, ICON_NULL);
-		uiItemR(col, &ptr, "phase_offset", 0, NULL, ICON_NULL);
-		uiItemR(col, &ptr, "value_offset", 0, NULL, ICON_NULL);
+		uiItemR(col, &ptr, "amplitude", 0, NULL, ICON_NONE);
+		uiItemR(col, &ptr, "phase_multiplier", 0, NULL, ICON_NONE);
+		uiItemR(col, &ptr, "phase_offset", 0, NULL, ICON_NONE);
+		uiItemR(col, &ptr, "value_offset", 0, NULL, ICON_NONE);
 }
 
 /* --------------- */
@@ -255,15 +255,15 @@
 	
 	/* before range */
 	col= uiLayoutColumn(split, 1);
-		uiItemL(col, "Before:", ICON_NULL);
-		uiItemR(col, &ptr, "mode_before", 0, "", ICON_NULL);
-		uiItemR(col, &ptr, "cycles_before", 0, NULL, ICON_NULL);
+		uiItemL(col, "Before:", ICON_NONE);
+		uiItemR(col, &ptr, "mode_before", 0, "", ICON_NONE);
+		uiItemR(col, &ptr, "cycles_before", 0, NULL, ICON_NONE);
 		
 	/* after range */
 	col= uiLayoutColumn(split, 1);
-		uiItemL(col, "After:", ICON_NULL);
-		uiItemR(col, &ptr, "mode_after", 0, "", ICON_NULL);
-		uiItemR(col, &ptr, "cycles_after", 0, NULL, ICON_NULL);
+		uiItemL(col, "After:", ICON_NONE);
+		uiItemR(col, &ptr, "mode_after", 0, "", ICON_NONE);
+		uiItemR(col, &ptr, "cycles_after", 0, NULL, ICON_NONE);
 }
 
 /* --------------- */
@@ -278,20 +278,20 @@
 	RNA_pointer_create(id, &RNA_FModifierNoise, fcm, &ptr);
 	
 	/* blending mode */
-	uiItemR(layout, &ptr, "blend_type", 0, NULL, ICON_NULL);
+	uiItemR(layout, &ptr, "blend_type", 0, NULL, ICON_NONE);
 	
 	/* split into 2 columns */
 	split= uiLayoutSplit(layout, 0.5f, 0);
 	
 	/* col 1 */
 	col= uiLayoutColumn(split, 0);
-		uiItemR(col, &ptr, "scale", 0, NULL, ICON_NULL);
-		uiItemR(col, &ptr, "strength", 0, NULL, ICON_NULL);
+		uiItemR(col, &ptr, "scale", 0, NULL, ICON_NONE);
+		uiItemR(col, &ptr, "strength", 0, NULL, ICON_NONE);
 	
 	/* col 2 */
 	col= uiLayoutColumn(split, 0);
-		uiItemR(col, &ptr, "phase", 0, NULL, ICON_NULL);
-		uiItemR(col, &ptr, "depth", 0, NULL, ICON_NULL);
+		uiItemR(col, &ptr, "phase", 0, NULL, ICON_NONE);
+		uiItemR(col, &ptr, "depth", 0, NULL, ICON_NONE);
 }
 
 /* --------------- */
@@ -471,12 +471,12 @@
 	
 	/* general settings */
 	col= uiLayoutColumn(layout, 1);
-		uiItemL(col, "Envelope:", ICON_NULL);
-		uiItemR(col, &ptr, "reference_value", 0, NULL, ICON_NULL);
+		uiItemL(col, "Envelope:", ICON_NONE);
+		uiItemR(col, &ptr, "reference_value", 0, NULL, ICON_NONE);
 		
 		row= uiLayoutRow(col, 1);
-			uiItemR(row, &ptr, "default_min", 0, "Min", ICON_NULL);
-			uiItemR(row, &ptr, "default_max", 0, "Max", ICON_NULL);
+			uiItemR(row, &ptr, "default_min", 0, "Min", ICON_NONE);
+			uiItemR(row, &ptr, "default_max", 0, "Max", ICON_NONE);
 			
 	/* control points header */
 	// TODO: move this control-point control stuff to using the new special widgets for lists
@@ -528,13 +528,13 @@
 		
 		/* x-minimum */
 		col= uiLayoutColumn(split, 1);
-			uiItemR(col, &ptr, "use_min_x", 0, NULL, ICON_NULL);
-			uiItemR(col, &ptr, "min_x", 0, NULL, ICON_NULL);
+			uiItemR(col, &ptr, "use_min_x", 0, NULL, ICON_NONE);
+			uiItemR(col, &ptr, "min_x", 0, NULL, ICON_NONE);
 			
 		/* y-minimum*/
 		col= uiLayoutColumn(split, 1);
-			uiItemR(col, &ptr, "use_min_y", 0, NULL, ICON_NULL);
-			uiItemR(col, &ptr, "min_y", 0, NULL, ICON_NULL);
+			uiItemR(col, &ptr, "use_min_y", 0, NULL, ICON_NONE);
+			uiItemR(col, &ptr, "min_y", 0, NULL, ICON_NONE);
 	}
 	
 	/* row 2: maximum */
@@ -546,13 +546,13 @@
 		
 		/* x-minimum */
 		col= uiLayoutColumn(split, 1);
-			uiItemR(col, &ptr, "use_max_x", 0, NULL, ICON_NULL);
-			uiItemR(col, &ptr, "max_x", 0, NULL, ICON_NULL);
+			uiItemR(col, &ptr, "use_max_x", 0, NULL, ICON_NONE);
+			uiItemR(col, &ptr, "max_x", 0, NULL, ICON_NONE);
 			
 		/* y-minimum*/
 		col= uiLayoutColumn(split, 1);
-			uiItemR(col, &ptr, "use_max_y", 0, NULL, ICON_NULL);
-			uiItemR(col, &ptr, "max_y", 0, NULL, ICON_NULL);
+			uiItemR(col, &ptr, "use_max_y", 0, NULL, ICON_NONE);
+			uiItemR(col, &ptr, "max_y", 0, NULL, ICON_NONE);
 	}
 }
 
@@ -569,24 +569,24 @@
 	
 	/* block 1: "stepping" settings */
 	col= uiLayoutColumn(layout, 0);
-		uiItemR(col, &ptr, "frame_step", 0, NULL, ICON_NULL);
-		uiItemR(col, &ptr, "frame_offset", 0, NULL, ICON_NULL);
+		uiItemR(col, &ptr, "frame_step", 0, NULL, ICON_NONE);
+		uiItemR(col, &ptr, "frame_offset", 0, NULL, ICON_NONE);
 		
 	/* block 2: start range settings */
 	col= uiLayoutColumn(layout, 1);
-		uiItemR(col, &ptr, "use_frame_start", 0, NULL, ICON_NULL);
+		uiItemR(col, &ptr, "use_frame_start", 0, NULL, ICON_NONE);
 		
 		subcol = uiLayoutColumn(col, 1);
 		uiLayoutSetActive(subcol, RNA_boolean_get(&ptr, "use_frame_start"));
-			uiItemR(subcol, &ptr, "frame_start", 0, NULL, ICON_NULL);
+			uiItemR(subcol, &ptr, "frame_start", 0, NULL, ICON_NONE);
 			
 	/* block 3: end range settings */
 	col= uiLayoutColumn(layout, 1);
-		uiItemR(col, &ptr, "use_frame_end", 0, NULL, ICON_NULL);
+		uiItemR(col, &ptr, "use_frame_end", 0, NULL, ICON_NONE);
 		
 		subcol = uiLayoutColumn(col, 1);
 		uiLayoutSetActive(subcol, RNA_boolean_get(&ptr, "use_frame_end"));
-			uiItemR(subcol, &ptr, "frame_end", 0, NULL, ICON_NULL);
+			uiItemR(subcol, &ptr, "frame_end", 0, NULL, ICON_NONE);
 }
 
 /* --------------- */
@@ -618,16 +618,16 @@
 		uiBlockSetEmboss(block, UI_EMBOSSN);
 		
 		/* expand */
-		uiItemR(subrow, &ptr, "show_expanded", UI_ITEM_R_ICON_ONLY, "", ICON_NULL);
+		uiItemR(subrow, &ptr, "show_expanded", UI_ITEM_R_ICON_ONLY, "", ICON_NONE);
 		
 		/* checkbox for 'active' status (for now) */
-		uiItemR(subrow, &ptr, "active", UI_ITEM_R_ICON_ONLY, "", ICON_NULL);
+		uiItemR(subrow, &ptr, "active", UI_ITEM_R_ICON_ONLY, "", ICON_NONE);
 		
 		/* name */
 		if (fmi)
-			uiItemL(subrow, fmi->name, ICON_NULL);
+			uiItemL(subrow, fmi->name, ICON_NONE);
 		else
-			uiItemL(subrow, "<Unknown Modifier>", ICON_NULL);
+			uiItemL(subrow, "<Unknown Modifier>", ICON_NONE);
 		
 		/* right-align ------------------------------------------- */
 		subrow= uiLayoutRow(row, 0);
@@ -635,7 +635,7 @@
 		
 		
 		/* 'mute' button */
-		uiItemR(subrow, &ptr, "mute", UI_ITEM_R_ICON_ONLY, "", ICON_NULL);
+		uiItemR(subrow, &ptr, "mute", UI_ITEM_R_ICON_ONLY, "", ICON_NONE);
 		
 		uiBlockSetEmboss(block, UI_EMBOSSN);
 		

Modified: trunk/blender/source/blender/editors/animation/keyingsets.c
===================================================================
--- trunk/blender/source/blender/editors/animation/keyingsets.c	2011-02-27 17:50:12 UTC (rev 35229)
+++ trunk/blender/source/blender/editors/animation/keyingsets.c	2011-02-27 18:03:19 UTC (rev 35230)
@@ -54,6 +54,7 @@
 #include "ED_screen.h"
 
 #include "UI_interface.h"
+#include "UI_resources.h"
 
 #include "WM_api.h"
 #include "WM_types.h"
@@ -760,14 +761,14 @@
 	uiLayout *layout;
 	int i = 0;
 	
-	pup= uiPupMenuBegin(C, title, ICON_NULL);
+	pup= uiPupMenuBegin(C, title, ICON_NONE);
 	layout= uiPupMenuLayout(pup);
 	
 	/* active Keying Set 
 	 *	- only include entry if it exists
 	 */
 	if (scene->active_keyingset) {
-		uiItemIntO(layout, "Active Keying Set", ICON_NULL, op_name, "type", i++);
+		uiItemIntO(layout, "Active Keying Set", ICON_NONE, op_name, "type", i++);
 		uiItemS(layout);
 	}
 	else
@@ -779,7 +780,7 @@
 	if (scene->keyingsets.first) {
 		for (ks= scene->keyingsets.first; ks; ks= ks->next) {
 			if (ANIM_keyingset_context_ok_poll(C, ks))
-				uiItemIntO(layout, ks->name, ICON_NULL, op_name, "type", i++);
+				uiItemIntO(layout, ks->name, ICON_NONE, op_name, "type", i++);
 		}
 		uiItemS(layout);
 	}
@@ -789,7 +790,7 @@
 	for (ks= builtin_keyingsets.first; ks; ks= ks->next) {
 		/* only show KeyingSet if context is suitable */
 		if (ANIM_keyingset_context_ok_poll(C, ks))
-			uiItemIntO(layout, ks->name, ICON_NULL, op_name, "type", i--);
+			uiItemIntO(layout, ks->name, ICON_NONE, op_name, "type", i--);
 	}
 	
 	uiPupMenuEnd(C, pup);

Modified: trunk/blender/source/blender/editors/armature/editarmature.c
===================================================================
--- trunk/blender/source/blender/editors/armature/editarmature.c	2011-02-27 17:50:12 UTC (rev 35229)
+++ trunk/blender/source/blender/editors/armature/editarmature.c	2011-02-27 18:03:19 UTC (rev 35230)
@@ -82,6 +82,7 @@
 #include "ED_view3d.h"
 
 #include "UI_interface.h"
+#include "UI_resources.h"
 
 #include "armature_intern.h"
 #include "meshlaplacian.h"
@@ -4000,7 +4001,7 @@
 static int armature_parent_set_invoke(bContext *C, wmOperator *UNUSED(op), wmEvent *UNUSED(event))
 {
 	EditBone *actbone = CTX_data_active_bone(C);
-	uiPopupMenu *pup= uiPupMenuBegin(C, "Make Parent ", ICON_NULL);
+	uiPopupMenu *pup= uiPupMenuBegin(C, "Make Parent ", ICON_NONE);
 	uiLayout *layout= uiPupMenuLayout(pup);
 	int allchildbones = 0;
 	

Modified: trunk/blender/source/blender/editors/armature/poselib.c

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list