Commit d5674936b196a28f160aa963eee180300eaf33f5
1 parent
59db08fa
Exists in
master
and in
68 other branches
ENH: Removed the ugly 'S' button that saves raycasting presets
Showing
1 changed file
with
4 additions
and
10 deletions
Show diff stats
invesalius/gui/default_viewers.py
@@ -344,11 +344,8 @@ class VolumeToolPanel(wx.Panel): | @@ -344,11 +344,8 @@ class VolumeToolPanel(wx.Panel): | ||
344 | button_slice_plane = self.button_slice_plane = pbtn.PlateButton(self, BUTTON_SLICE_PLANE,"", | 344 | button_slice_plane = self.button_slice_plane = pbtn.PlateButton(self, BUTTON_SLICE_PLANE,"", |
345 | BMP_SLICE_PLANE, style=pbtn.PB_STYLE_SQUARE, | 345 | BMP_SLICE_PLANE, style=pbtn.PB_STYLE_SQUARE, |
346 | size=(24,24)) | 346 | size=(24,24)) |
347 | - button_slice_plane.Bind(wx.EVT_LEFT_DOWN, self.OnButtonSlicePlane) | ||
348 | 347 | ||
349 | self.button_raycasting = button_raycasting | 348 | self.button_raycasting = button_raycasting |
350 | - self.button_raycasting.Bind(wx.EVT_LEFT_DOWN, self.OnButtonRaycasting) | ||
351 | - | ||
352 | 349 | ||
353 | # VOLUME VIEW ANGLE BUTTON | 350 | # VOLUME VIEW ANGLE BUTTON |
354 | BMP_FRONT = wx.Bitmap(ID_TO_BMP[const.VOL_FRONT][1], | 351 | BMP_FRONT = wx.Bitmap(ID_TO_BMP[const.VOL_FRONT][1], |
@@ -357,7 +354,6 @@ class VolumeToolPanel(wx.Panel): | @@ -357,7 +354,6 @@ class VolumeToolPanel(wx.Panel): | ||
357 | BMP_FRONT, size=(24,24), | 354 | BMP_FRONT, size=(24,24), |
358 | style=pbtn.PB_STYLE_SQUARE) | 355 | style=pbtn.PB_STYLE_SQUARE) |
359 | self.button_view = button_view | 356 | self.button_view = button_view |
360 | - self.button_view.Bind(wx.EVT_LEFT_DOWN, self.OnButtonView) | ||
361 | 357 | ||
362 | # VOLUME COLOUR BUTTON | 358 | # VOLUME COLOUR BUTTON |
363 | if sys.platform == 'linux2': | 359 | if sys.platform == 'linux2': |
@@ -369,19 +365,14 @@ class VolumeToolPanel(wx.Panel): | @@ -369,19 +365,14 @@ class VolumeToolPanel(wx.Panel): | ||
369 | 365 | ||
370 | button_colour= csel.ColourSelect(self, 111,colour=(0,0,0), | 366 | button_colour= csel.ColourSelect(self, 111,colour=(0,0,0), |
371 | size=size) | 367 | size=size) |
372 | - button_colour.Bind(csel.EVT_COLOURSELECT, self.OnSelectColour) | ||
373 | self.button_colour = button_colour | 368 | self.button_colour = button_colour |
374 | 369 | ||
375 | - save_preset = wx.Button(self, -1, "S", size=size) | ||
376 | - self.save_preset = save_preset | ||
377 | - | ||
378 | # SIZER TO ORGANIZE ALL | 370 | # SIZER TO ORGANIZE ALL |
379 | sizer = wx.BoxSizer(wx.VERTICAL) | 371 | sizer = wx.BoxSizer(wx.VERTICAL) |
380 | sizer.Add(button_colour, 0, wx.ALL, sp) | 372 | sizer.Add(button_colour, 0, wx.ALL, sp) |
381 | sizer.Add(button_raycasting, 0, wx.TOP|wx.BOTTOM, 1) | 373 | sizer.Add(button_raycasting, 0, wx.TOP|wx.BOTTOM, 1) |
382 | sizer.Add(button_view, 0, wx.TOP|wx.BOTTOM, 1) | 374 | sizer.Add(button_view, 0, wx.TOP|wx.BOTTOM, 1) |
383 | sizer.Add(button_slice_plane, 0, wx.TOP|wx.BOTTOM, 1) | 375 | sizer.Add(button_slice_plane, 0, wx.TOP|wx.BOTTOM, 1) |
384 | - sizer.Add(save_preset, 0, wx.TOP|wx.BOTTOM, 1) | ||
385 | 376 | ||
386 | sizer.Fit(self) | 377 | sizer.Fit(self) |
387 | 378 | ||
@@ -399,7 +390,10 @@ class VolumeToolPanel(wx.Panel): | @@ -399,7 +390,10 @@ class VolumeToolPanel(wx.Panel): | ||
399 | 'Change volume viewer gui colour') | 390 | 'Change volume viewer gui colour') |
400 | 391 | ||
401 | def __bind_events_wx(self): | 392 | def __bind_events_wx(self): |
402 | - self.save_preset.Bind(wx.EVT_BUTTON, self.OnSavePreset) | 393 | + self.button_slice_plane.Bind(wx.EVT_LEFT_DOWN, self.OnButtonSlicePlane) |
394 | + self.button_raycasting.Bind(wx.EVT_LEFT_DOWN, self.OnButtonRaycasting) | ||
395 | + self.button_view.Bind(wx.EVT_LEFT_DOWN, self.OnButtonView) | ||
396 | + self.button_colour.Bind(csel.EVT_COLOURSELECT, self.OnSelectColour) | ||
403 | 397 | ||
404 | def OnButtonRaycasting(self, evt): | 398 | def OnButtonRaycasting(self, evt): |
405 | # MENU RELATED TO RAYCASTING TYPES | 399 | # MENU RELATED TO RAYCASTING TYPES |