1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 import wx
20
21 from timelinelib.wxgui.framework import Dialog
22 from timelinelib.wxgui.dialogs.importics.controller import ImportIcsDialogController
23
24
26 """
27 <BoxSizerVertical>
28 <StaticText
29 name="VeventLocation"
30 label="VEVENT.LOCATION"
31 border="LEFT|TOP"
32 />
33 <CheckBox
34 name="import_location"
35 label="$(import_location_label)"
36 border="ALL"
37 />
38 <StaticText
39 name="ValarmTrigger"
40 label="VALARM.TRIGGER"
41 border="LEFT|TOP"
42 />
43 <CheckBox
44 name ="trigger_as_start_time"
45 label="$(trigger_as_start_time_label)"
46 border="ALL"
47 />
48 <CheckBox
49 name="trigger_as_alarm"
50 label="$(trigger_as_alarm)"
51 border="LEFT|BOTTOM"
52 />
53 <DialogButtonsCloseSizer
54 border="ALL"
55 />
56 </BoxSizerVertical>
57 """
58
60 Dialog.__init__(self, ImportIcsDialogController, parent, {
61 "import_location_label": _("Import in event description"),
62 "trigger_as_start_time_label": _("Use as start date of event"),
63 "trigger_as_alarm": _("Use as event alarm time"),
64 }, title=_("Options for ICS import"))
65 self.controller.on_init()
66 self._make_static_texts_bold()
67
69 return self.import_location.GetValue()
70
72 return self.trigger_as_start_time.GetValue()
73
75 return self.trigger_as_alarm.GetValue()
76
78 f = self.VeventLocation.GetFont()
79 f.SetWeight(wx.FONTWEIGHT_BOLD)
80 self.VeventLocation.SetFont(f)
81 self.ValarmTrigger.SetFont(f)
82