Commit 66d069ae0c7722bb7c7eeff66fbfcd7c2e3e742d

Authored by tatiana
1 parent 58af85f1

ENH: Toolbar icons / constants for measurements and annotation

invesalius/constants.py
... ... @@ -441,8 +441,9 @@ VOLUME_STATE_SEED = 2001
441 441 STATE_ANGULAR_MEASURE = 3002
442 442  
443 443  
444   -TOOL_STATES = [ STATE_WL, STATE_SPIN, STATE_ZOOM,
445   - STATE_ZOOM_SL, STATE_PAN]
  444 +TOOL_STATES = [STATE_WL, STATE_SPIN, STATE_ZOOM,
  445 + STATE_ZOOM_SL, STATE_PAN, STATE_MEASURE_DISTANCE,
  446 + STATE_MEASURE_ANGLE, STATE_ANNOTATE]
446 447  
447 448 TOOL_SLICE_STATES = [SLICE_STATE_CROSS, SLICE_STATE_SCROLL]
448 449  
... ...
invesalius/data/viewer_slice.py
... ... @@ -203,6 +203,9 @@ class Viewer(wx.Panel):
203 203 },
204 204 const.STATE_DEFAULT:
205 205 {
  206 + },
  207 + const.STATE_MEASURE_DISTANCE:
  208 + {
206 209 }
207 210 }
208 211 if state == const.SLICE_STATE_CROSS:
... ...
invesalius/gui/frame.py
... ... @@ -813,8 +813,8 @@ class ObjectToolBar(wx.ToolBar):
813 813 """
814 814 d = const.ICON_DIR
815 815 if sys.platform == 'darwin':
816   - path = os.path.join(d, "tool_rotate_original.gif")
817   - BMP_ROTATE = wx.Bitmap(path, wx.BITMAP_TYPE_GIF)
  816 + path = os.path.join(d, "tool_rotate_original.png")
  817 + BMP_ROTATE = wx.Bitmap(path, wx.BITMAP_TYPE_PNG)
818 818  
819 819 path = os.path.join(d, "tool_translate_original.png")
820 820 BMP_MOVE =wx.Bitmap(path, wx.BITMAP_TYPE_PNG)
... ...