Commit fcdd28c17d21de85ffe56ccdb169cf2af55fa671
1 parent
eb12230b
Exists in
master
and in
68 other branches
ENH: Temporarily removed save custom window and level 2D presets
Showing
1 changed file
with
17 additions
and
16 deletions
Show diff stats
invesalius/gui/widgets/slice_menu.py
@@ -54,19 +54,20 @@ class SliceMenu(wx.Menu): | @@ -54,19 +54,20 @@ class SliceMenu(wx.Menu): | ||
54 | name, kind=wx.ITEM_RADIO) | 54 | name, kind=wx.ITEM_RADIO) |
55 | submenu_wl.AppendItem(wl_item) | 55 | submenu_wl.AppendItem(wl_item) |
56 | self.ID_TO_TOOL_ITEM[new_id] = wl_item | 56 | self.ID_TO_TOOL_ITEM[new_id] = wl_item |
57 | - | ||
58 | - | 57 | + |
58 | + | ||
59 | #----------- Sub menu of the save and load options --------- | 59 | #----------- Sub menu of the save and load options --------- |
60 | - submenu_wl.AppendSeparator() | ||
61 | - options = [_("Save current values"), | ||
62 | - _("Save current values as..."),_("Load values")] | ||
63 | - | ||
64 | - for name in options: | ||
65 | - new_id = wx.NewId() | ||
66 | - wl_item = wx.MenuItem(submenu_wl, new_id,\ | ||
67 | - name) | ||
68 | - submenu_wl.AppendItem(wl_item) | ||
69 | - self.ID_TO_TOOL_ITEM[new_id] = wl_item | 60 | + #submenu_wl.AppendSeparator() |
61 | + #options = [_("Save current values"), | ||
62 | + # _("Save current values as..."),_("Load values")] | ||
63 | + | ||
64 | + #for name in options: | ||
65 | + # new_id = wx.NewId() | ||
66 | + # wl_item = wx.MenuItem(submenu_wl, new_id,\ | ||
67 | + # name) | ||
68 | + # submenu_wl.AppendItem(wl_item) | ||
69 | + # self.ID_TO_TOOL_ITEM[new_id] = wl_item | ||
70 | + | ||
70 | 71 | ||
71 | #------------ Sub menu of the pseudo colors ---------------- | 72 | #------------ Sub menu of the pseudo colors ---------------- |
72 | submenu_pseudo_colours = wx.Menu() | 73 | submenu_pseudo_colours = wx.Menu() |
@@ -92,8 +93,8 @@ class SliceMenu(wx.Menu): | @@ -92,8 +93,8 @@ class SliceMenu(wx.Menu): | ||
92 | name, kind=wx.ITEM_RADIO) | 93 | name, kind=wx.ITEM_RADIO) |
93 | submenu_image_tiling.AppendItem(image_tiling_item) | 94 | submenu_image_tiling.AppendItem(image_tiling_item) |
94 | self.ID_TO_TOOL_ITEM[new_id] = image_tiling_item | 95 | self.ID_TO_TOOL_ITEM[new_id] = image_tiling_item |
95 | - | ||
96 | - | 96 | + |
97 | + | ||
97 | 98 | ||
98 | # Add sub itens in the menu | 99 | # Add sub itens in the menu |
99 | self.AppendMenu(-1, _("Window Width and Level"), submenu_wl) | 100 | self.AppendMenu(-1, _("Window Width and Level"), submenu_wl) |
@@ -133,10 +134,10 @@ class SliceMenu(wx.Menu): | @@ -133,10 +134,10 @@ class SliceMenu(wx.Menu): | ||
133 | ps.Publisher().sendMessage('Update window and level text',\ | 134 | ps.Publisher().sendMessage('Update window and level text',\ |
134 | "WL: %d WW: %d"%(level, window)) | 135 | "WL: %d WW: %d"%(level, window)) |
135 | ps.Publisher().sendMessage('Update slice viewer') | 136 | ps.Publisher().sendMessage('Update slice viewer') |
136 | - | 137 | + |
137 | #Necessary update the slice plane in the volume case exists | 138 | #Necessary update the slice plane in the volume case exists |
138 | ps.Publisher().sendMessage('Render volume viewer') | 139 | ps.Publisher().sendMessage('Render volume viewer') |
139 | - | 140 | + |
140 | elif(key in const.SLICE_COLOR_TABLE.keys()): | 141 | elif(key in const.SLICE_COLOR_TABLE.keys()): |
141 | print "b" | 142 | print "b" |
142 | values = const.SLICE_COLOR_TABLE[key] | 143 | values = const.SLICE_COLOR_TABLE[key] |