Commit cdf21028f2524cccf06e3c1d4c2118cfe301da61
1 parent
2857c435
Exists in
master
and in
68 other branches
Tips on toolbar items
Showing
1 changed file
with
37 additions
and
21 deletions
Show diff stats
invesalius/gui/frame.py
... | ... | @@ -712,17 +712,20 @@ class ProjectToolBar(wx.ToolBar): |
712 | 712 | |
713 | 713 | # Create tool items based on bitmaps |
714 | 714 | self.AddLabelTool(const.ID_DICOM_IMPORT, |
715 | - _("Import medical image..."), | |
716 | - BMP_IMPORT) | |
715 | + "", | |
716 | + shortHelp =_("Import DICOM files..."), | |
717 | + bitmap=BMP_IMPORT) | |
717 | 718 | #self.AddLabelTool(const.ID_DICOM_LOAD_NET, |
718 | 719 | # "Load medical image...", |
719 | 720 | # BMP_NET) |
720 | 721 | self.AddLabelTool(const.ID_PROJECT_OPEN, |
721 | - _("Open InVesalius 3 project..."), | |
722 | - BMP_OPEN) | |
722 | + "", | |
723 | + shortHelp =_("Open a InVesalius project..."), | |
724 | + bitmap=BMP_OPEN) | |
723 | 725 | self.AddLabelTool(const.ID_PROJECT_SAVE, |
724 | - _("Save InVesalius project"), | |
725 | - BMP_SAVE) | |
726 | + "", | |
727 | + shortHelp = _("Save InVesalius project"), | |
728 | + bitmap=BMP_SAVE) | |
726 | 729 | #self.AddLabelTool(const.ID_SAVE_SCREENSHOT, |
727 | 730 | # "Take photo of screen", |
728 | 731 | # BMP_PHOTO) |
... | ... | @@ -840,22 +843,30 @@ class ObjectToolBar(wx.ToolBar): |
840 | 843 | |
841 | 844 | # Create tool items based on bitmaps |
842 | 845 | self.AddLabelTool(const.STATE_ZOOM, |
843 | - _("Zoom"), | |
844 | - BMP_ZOOM, | |
845 | - kind = wx.ITEM_CHECK) | |
846 | + "", | |
847 | + shortHelp =_("Zoom"), | |
848 | + bitmap=BMP_ZOOM, | |
849 | + kind = wx.ITEM_CHECK) | |
846 | 850 | self.AddLabelTool(const.STATE_ZOOM_SL, |
847 | - _("Zoom based on selection"), | |
848 | - BMP_ZOOM_SELECT, | |
849 | - kind = wx.ITEM_CHECK) | |
851 | + "", | |
852 | + shortHelp = _("Zoom based on selection"), | |
853 | + bitmap = BMP_ZOOM_SELECT, | |
854 | + kind = wx.ITEM_CHECK) | |
850 | 855 | self.AddLabelTool(const.STATE_SPIN, |
851 | - _("Rotate"), BMP_ROTATE, | |
852 | - kind = wx.ITEM_CHECK) | |
856 | + "", | |
857 | + shortHelp = _("Rotate"), | |
858 | + bitmap = BMP_ROTATE, | |
859 | + kind = wx.ITEM_CHECK) | |
853 | 860 | self.AddLabelTool(const.STATE_PAN, |
854 | - _("Move"), BMP_MOVE, | |
855 | - kind = wx.ITEM_CHECK) | |
861 | + "", | |
862 | + shortHelp = _("Move"), | |
863 | + bitmap = BMP_MOVE, | |
864 | + kind = wx.ITEM_CHECK) | |
856 | 865 | self.AddLabelTool(const.STATE_WL, |
857 | - _("Window and Level"), BMP_CONTRAST, | |
858 | - kind = wx.ITEM_CHECK) | |
866 | + "", | |
867 | + shortHelp = _("Constrast"), | |
868 | + bitmap = BMP_CONTRAST, | |
869 | + kind = wx.ITEM_CHECK) | |
859 | 870 | |
860 | 871 | def _EnableState(self, pubsub_evt): |
861 | 872 | """ |
... | ... | @@ -956,8 +967,13 @@ class SliceToolBar(wx.ToolBar): |
956 | 967 | path = os.path.join(d,"cross.png") |
957 | 968 | BMP_CROSS = wx.Bitmap(path, wx.BITMAP_TYPE_PNG) |
958 | 969 | |
959 | - self.AddCheckTool(const.SLICE_STATE_SCROLL, BMP_SLICE) | |
960 | - self.AddCheckTool(const.SLICE_STATE_CROSS, BMP_CROSS) | |
970 | + self.AddCheckTool(const.SLICE_STATE_SCROLL, | |
971 | + BMP_SLICE, | |
972 | + shortHelp = _("Scroll slices")) | |
973 | + | |
974 | + self.AddCheckTool(const.SLICE_STATE_CROSS, | |
975 | + BMP_CROSS, | |
976 | + shortHelp = _("Cross intersection")) | |
961 | 977 | |
962 | 978 | def __bind_events(self): |
963 | 979 | """ |
... | ... | @@ -1084,7 +1100,7 @@ class LayoutToolBar(wx.ToolBar): |
1084 | 1100 | if sys.platform == 'darwin': |
1085 | 1101 | # Bitmaps for show/hide task panel item |
1086 | 1102 | p = os.path.join(d, "layout_data_only_original.gif") |
1087 | - self.BMP_WITHOUT_MENU = wx.Bitmap(p, wx.BITMAP_TYPE_GIF) | |
1103 | + self.BMP_WITH_MENU = wx.Bitmap(p, wx.BITMAP_TYPE_GIF) | |
1088 | 1104 | |
1089 | 1105 | p = os.path.join(d, "layout_full_original.gif") |
1090 | 1106 | self.BMP_WITHOUT_MENU = wx.Bitmap(p, wx.BITMAP_TYPE_GIF) | ... | ... |