1
2
3
4
5 import wx
6 import wx.grid
7
8
9
10
11
12
15
16 from Gnumed.wxpython import gmMeasurementWidgets
17
18
19 kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL
20 wx.ScrolledWindow.__init__(self, *args, **kwds)
21 self.data_grid = gmMeasurementWidgets.cMeasurementsGrid(self, -1, size=(1, 1))
22 self._RBTN_my_unsigned = wx.RadioButton(self, -1, _("&Your unsigned"))
23 self._RBTN_all_unsigned = wx.RadioButton(self, -1, _("&All unsigned"))
24 self._BTN_select = wx.Button(self, -1, _("&Select"))
25 self._BTN_review = wx.Button(self, -1, _("&Actions ... "))
26
27 self.__set_properties()
28 self.__do_layout()
29
30 self.Bind(wx.EVT_BUTTON, self._on_select_button_pressed, self._BTN_select)
31 self.Bind(wx.EVT_BUTTON, self._on_review_button_pressed, self._BTN_review)
32
33
35
36 self.SetScrollRate(10, 10)
37 self._RBTN_my_unsigned.SetToolTipString(_("Apply selection to those unsigned results for which you are to take responsibility."))
38 self._RBTN_all_unsigned.SetToolTipString(_("Apply selection to all unsigned results."))
39 self._BTN_select.SetToolTipString(_("Select results according to your choice on the left."))
40 self._BTN_review.SetToolTipString(_("Invoke actions on the selected measurements."))
41
42
44
45 __szr_main = wx.BoxSizer(wx.VERTICAL)
46 __szr_bottom = wx.BoxSizer(wx.HORIZONTAL)
47 __szr_main.Add(self.data_grid, 1, wx.LEFT|wx.RIGHT|wx.TOP|wx.EXPAND, 5)
48 __hline_buttons = wx.StaticLine(self, -1)
49 __szr_main.Add(__hline_buttons, 0, wx.ALL|wx.EXPAND, 5)
50 __szr_bottom.Add(self._RBTN_my_unsigned, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 3)
51 __szr_bottom.Add(self._RBTN_all_unsigned, 0, wx.RIGHT|wx.ALIGN_CENTER_VERTICAL, 3)
52 __szr_bottom.Add(self._BTN_select, 0, wx.ALIGN_CENTER_VERTICAL, 0)
53 __szr_bottom.Add((20, 20), 1, wx.EXPAND, 0)
54 __szr_bottom.Add(self._BTN_review, 0, wx.ALIGN_CENTER_VERTICAL, 0)
55 __szr_bottom.Add((20, 20), 1, wx.EXPAND, 0)
56 __szr_main.Add(__szr_bottom, 0, wx.LEFT|wx.RIGHT|wx.BOTTOM|wx.EXPAND, 5)
57 self.SetSizer(__szr_main)
58 __szr_main.Fit(self)
59
60
62 print "Event handler `_on_select_unsigned_button_pressed' not implemented!"
63 event.Skip()
64
66 print "Event handler `_on_select_your_unsigned_results_button_pressed' not implemented!"
67 event.Skip()
68
70 print "Event handler `_on_review_button_pressed' not implemented!"
71 event.Skip()
72
74 print "Event handler `_on_select_my_unsigned_results_button_pressed' not implemented"
75 event.Skip()
76
78 print "Event handler `_on_select_all_unsigned_results_button_pressed' not implemented"
79 event.Skip()
80
82 print "Event handler `_on_select_button_pressed' not implemented"
83 event.Skip()
84
85
86