Commit fcdd28c17d21de85ffe56ccdb169cf2af55fa671

Authored by Paulo Henrique Junqueira Amorim
1 parent eb12230b

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 54 name, kind=wx.ITEM_RADIO)
55 55 submenu_wl.AppendItem(wl_item)
56 56 self.ID_TO_TOOL_ITEM[new_id] = wl_item
57   -
58   -
  57 +
  58 +
59 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 72 #------------ Sub menu of the pseudo colors ----------------
72 73 submenu_pseudo_colours = wx.Menu()
... ... @@ -92,8 +93,8 @@ class SliceMenu(wx.Menu):
92 93 name, kind=wx.ITEM_RADIO)
93 94 submenu_image_tiling.AppendItem(image_tiling_item)
94 95 self.ID_TO_TOOL_ITEM[new_id] = image_tiling_item
95   -
96   -
  96 +
  97 +
97 98  
98 99 # Add sub itens in the menu
99 100 self.AppendMenu(-1, _("Window Width and Level"), submenu_wl)
... ... @@ -133,10 +134,10 @@ class SliceMenu(wx.Menu):
133 134 ps.Publisher().sendMessage('Update window and level text',\
134 135 "WL: %d WW: %d"%(level, window))
135 136 ps.Publisher().sendMessage('Update slice viewer')
136   -
  137 +
137 138 #Necessary update the slice plane in the volume case exists
138 139 ps.Publisher().sendMessage('Render volume viewer')
139   -
  140 +
140 141 elif(key in const.SLICE_COLOR_TABLE.keys()):
141 142 print "b"
142 143 values = const.SLICE_COLOR_TABLE[key]
... ...