Commit a7b633686c4c922885a51d531e1dceed354cd322
1 parent
82dc4855
Exists in
master
and in
56 other branches
Added tooltips to the gui used to config the mips visualization
Showing
1 changed file
with
14 additions
and
2 deletions
Show diff stats
invesalius/data/viewer_slice.py
@@ -62,20 +62,32 @@ class ContourMIPConfig(wx.Panel): | @@ -62,20 +62,32 @@ class ContourMIPConfig(wx.Panel): | ||
62 | wx.Panel.__init__(self, prnt) | 62 | wx.Panel.__init__(self, prnt) |
63 | self.mip_size_spin = wx.SpinCtrl(self, -1, min=1, max=240, | 63 | self.mip_size_spin = wx.SpinCtrl(self, -1, min=1, max=240, |
64 | initial=const.PROJECTION_MIP_SIZE) | 64 | initial=const.PROJECTION_MIP_SIZE) |
65 | + self.mip_size_spin.SetToolTip(wx.ToolTip(_("Number of slices used to compound the visualization"))) | ||
65 | w, h = self.mip_size_spin.GetTextExtent('M') | 66 | w, h = self.mip_size_spin.GetTextExtent('M') |
66 | self.mip_size_spin.SetMinSize((4 * w + 10, -1)) | 67 | self.mip_size_spin.SetMinSize((4 * w + 10, -1)) |
67 | self.mip_size_spin.SetMaxSize((4 * w + 10, -1)) | 68 | self.mip_size_spin.SetMaxSize((4 * w + 10, -1)) |
69 | + | ||
68 | self.border_spin = FS.FloatSpin(self, -1, min_val=0, max_val=10, | 70 | self.border_spin = FS.FloatSpin(self, -1, min_val=0, max_val=10, |
69 | increment=0.1, | 71 | increment=0.1, |
70 | value=const.PROJECTION_BORDER_SIZE, | 72 | value=const.PROJECTION_BORDER_SIZE, |
71 | digits=1, agwStyle=FS.FS_LEFT) | 73 | digits=1, agwStyle=FS.FS_LEFT) |
74 | + self.border_spin.SetToolTip(wx.ToolTip(_("Controls the sharpness of the" | ||
75 | + " contour. The greater the" | ||
76 | + " value, the sharper the" | ||
77 | + " contour"))) | ||
72 | w, h = self.border_spin.GetTextExtent('M') | 78 | w, h = self.border_spin.GetTextExtent('M') |
73 | self.border_spin.SetMinSize((5 * w + 10, -1)) | 79 | self.border_spin.SetMinSize((5 * w + 10, -1)) |
74 | self.border_spin.SetMaxSize((5 * w + 10, -1)) | 80 | self.border_spin.SetMaxSize((5 * w + 10, -1)) |
81 | + | ||
75 | self.inverted = wx.CheckBox(self, -1, "inverted") | 82 | self.inverted = wx.CheckBox(self, -1, "inverted") |
83 | + self.inverted.SetToolTip(wx.ToolTip(_("If checked, the slices are" | ||
84 | + " traversed in descending" | ||
85 | + " order to compound the" | ||
86 | + " visualization instead of" | ||
87 | + " ascending order"))) | ||
76 | 88 | ||
77 | - txt_mip_size = wx.StaticText(self, -1, "MIP size", style=wx.ALIGN_CENTER_HORIZONTAL) | ||
78 | - self.txt_mip_border = wx.StaticText(self, -1, "Border") | 89 | + txt_mip_size = wx.StaticText(self, -1, "Number of slices", style=wx.ALIGN_CENTER_HORIZONTAL) |
90 | + self.txt_mip_border = wx.StaticText(self, -1, "Sharpness") | ||
79 | 91 | ||
80 | sizer = wx.BoxSizer(wx.HORIZONTAL) | 92 | sizer = wx.BoxSizer(wx.HORIZONTAL) |
81 | sizer.Add(txt_mip_size, 0, wx.EXPAND | wx.ALL, 2) | 93 | sizer.Add(txt_mip_size, 0, wx.EXPAND | wx.ALL, 2) |