Skip to content

Commit

Permalink
Graph Editor - iconize the Select menu
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinerBforartists committed Nov 22, 2017
1 parent b639811 commit 48b841f
Show file tree
Hide file tree
Showing 17 changed files with 233 additions and 23 deletions.
220 changes: 217 additions & 3 deletions release/datafiles/blender_icons.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified release/datafiles/blender_icons16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified release/datafiles/blender_icons32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
18 changes: 9 additions & 9 deletions release/scripts/startup/bl_ui/space_graph.py
Expand Up @@ -186,29 +186,29 @@ def draw(self, context):

layout.separator()

layout.operator("graph.select_column", text="Columns on Selected Keys").mode = 'KEYS'
layout.operator("graph.select_column", text="Column on Current Frame").mode = 'CFRA'
layout.operator("graph.select_column", text="Columns on Selected Keys", icon = "COLUMNS_KEYS").mode = 'KEYS'
layout.operator("graph.select_column", text="Column on Current Frame", icon = "COLUMN_CURRENT_FRAME").mode = 'CFRA'

layout.operator("graph.select_column", text="Columns on Selected Markers").mode = 'MARKERS_COLUMN'
layout.operator("graph.select_column", text="Between Selected Markers").mode = 'MARKERS_BETWEEN'
layout.operator("graph.select_column", text="Columns on Selected Markers", icon = "COLUMNS_MARKERS").mode = 'MARKERS_COLUMN'
layout.operator("graph.select_column", text="Between Selected Markers", icon = "BETWEEN_MARKERS").mode = 'MARKERS_BETWEEN'

layout.separator()

layout.operator("graph.select_linked",text = "Linked")
layout.operator("graph.select_linked",text = "Linked", icon = "CONNECTED")

layout.separator()

props = layout.operator("graph.select_leftright", text="Before Current Frame")
props = layout.operator("graph.select_leftright", text="Before Current Frame", icon = "BEFORE_CURRENT_FRAME")
props.extend = False
props.mode = 'LEFT'
props = layout.operator("graph.select_leftright", text="After Current Frame")
props = layout.operator("graph.select_leftright", text="After Current Frame", icon = "AFTER_CURRENT_FRAME")
props.extend = False
props.mode = 'RIGHT'

layout.separator()

layout.operator("graph.select_more",text = "More")
layout.operator("graph.select_less",text = "Less")
layout.operator("graph.select_more",text = "More", icon = "SELECTMORE")
layout.operator("graph.select_less",text = "Less", icon = "SELECTLESS")



Expand Down
18 changes: 7 additions & 11 deletions source/blender/editors/include/UI_icons.h
Expand Up @@ -226,14 +226,9 @@ DEF_ICON(MARKER_BIND)
DEF_ICON(SET_START)
DEF_ICON(SET_END)
DEF_ICON(VIEW_FRAME)

#ifndef DEF_ICON_BLANK_SKIP

DEF_ICON(extend_038)
DEF_ICON(extend_039)
DEF_ICON(extend_040)

#endif
DEF_ICON(AFTER_CURRENT_FRAME)
DEF_ICON(BEFORE_CURRENT_FRAME)
DEF_ICON(BETWEEN_MARKERS)

/* ------------------------- Row 5 --------------------------*/

Expand Down Expand Up @@ -270,11 +265,12 @@ DEF_ICON(MAXIMIZE_AREA)
DEF_ICON(NEW_WINDOW)
DEF_ICON(QUADVIEW)

DEF_ICON(COLUMN_CURRENT_FRAME)
DEF_ICON(COLUMNS_KEYS)
DEF_ICON(COLUMNS_MARKERS)

#ifndef DEF_ICON_BLANK_SKIP

DEF_ICON(extend_041)
DEF_ICON(extend_042)
DEF_ICON(extend_043)
DEF_ICON(extend_044)
DEF_ICON(extend_045)
DEF_ICON(extend_046)
Expand Down

0 comments on commit 48b841f

Please sign in to comment.