From 32cf82dbb394fa454a2bc0b93d166d1091b3c25e Mon Sep 17 00:00:00 2001 From: Andrea Weikert Date: Mon, 15 Jun 2009 20:28:49 +0000 Subject: 2.5 UI * RNA enum for icons to allow specifying icons as string * example: row.itemR(st, "line_numbers", text="", icon='ICON_LINENUMBERS_OFF') --- release/ui/buttons_scene.py | 4 ++-- release/ui/space_text.py | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'release/ui') diff --git a/release/ui/buttons_scene.py b/release/ui/buttons_scene.py index 1252b9f8c17..df172ea8298 100644 --- a/release/ui/buttons_scene.py +++ b/release/ui/buttons_scene.py @@ -162,8 +162,8 @@ class RENDER_PT_render(RenderButtonsPanel): rd = context.scene.render_data row = layout.row() - row.itemO("SCREEN_OT_render", text="Render Still", icon=109) - row.item_booleanO("SCREEN_OT_render", "anim", True, text="Render Animation", icon=111) + row.itemO("SCREEN_OT_render", text="Render Still", icon='ICON_IMAGE_COL') + row.item_booleanO("SCREEN_OT_render", "anim", True, text="Render Animation", icon='ICON_SEQUENCE') row = layout.row() row.itemR(rd, "do_composite") diff --git a/release/ui/space_text.py b/release/ui/space_text.py index 8daca086111..d347fd7c3b1 100644 --- a/release/ui/space_text.py +++ b/release/ui/space_text.py @@ -30,12 +30,12 @@ class TEXT_HT_header(bpy.types.Header): if text and text.modified: row = layout.row() # row.color(redalert) - row.itemO("TEXT_OT_resolve_conflict", text="", icon=ICON_HELP) + row.itemO("TEXT_OT_resolve_conflict", text="", icon='ICON_HELP') row = layout.row(align=True) - row.itemR(st, "line_numbers", text="", icon=ICON_LINENUMBERS_OFF) - row.itemR(st, "word_wrap", text="", icon=ICON_WORDWRAP_OFF) - row.itemR(st, "syntax_highlight", text="", icon=ICON_SYNTAX_OFF) + row.itemR(st, "line_numbers", text="", icon='ICON_LINENUMBERS_OFF') + row.itemR(st, "word_wrap", text="", icon='ICON_WORDWRAP_OFF') + row.itemR(st, "syntax_highlight", text="", icon='ICON_SYNTAX_OFF') # row.itemR(st, "do_python_plugins", text="", icon=ICON_SCRIPTPLUGINS) layout.template_ID(context, st, "text", new="TEXT_OT_new", open="TEXT_OT_open", unlink="TEXT_OT_unlink") @@ -63,9 +63,9 @@ class TEXT_PT_properties(bpy.types.Panel): layout = self.layout flow = layout.column_flow() - flow.itemR(st, "line_numbers", icon=ICON_LINENUMBERS_OFF) - flow.itemR(st, "word_wrap", icon=ICON_WORDWRAP_OFF) - flow.itemR(st, "syntax_highlight", icon=ICON_SYNTAX_OFF) + flow.itemR(st, "line_numbers", icon='ICON_LINENUMBERS_OFF') + flow.itemR(st, "word_wrap", icon='ICON_WORDWRAP_OFF') + flow.itemR(st, "syntax_highlight", icon='ICON_SYNTAX_OFF') flow.itemR(st, "live_edit") flow = layout.column_flow() @@ -85,14 +85,14 @@ class TEXT_PT_find(bpy.types.Panel): col = layout.column(align=True) row = col.row() row.itemR(st, "find_text", text="") - row.itemO("TEXT_OT_find_set_selected", text="", icon=ICON_TEXT) + row.itemO("TEXT_OT_find_set_selected", text="", icon='ICON_TEXT') col.itemO("TEXT_OT_find") # replace col = layout.column(align=True) row = col.row() row.itemR(st, "replace_text", text="") - row.itemO("TEXT_OT_replace_set_selected", text="", icon=ICON_TEXT) + row.itemO("TEXT_OT_replace_set_selected", text="", icon='ICON_TEXT') col.itemO("TEXT_OT_replace") # mark -- cgit v1.2.3