Commit 66d069ae0c7722bb7c7eeff66fbfcd7c2e3e742d
1 parent
58af85f1
Exists in
master
and in
6 other branches
ENH: Toolbar icons / constants for measurements and annotation
Showing
3 changed files
with
8 additions
and
4 deletions
Show diff stats
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
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) | ... | ... |