some more ugly hacks for renamed services (so much hasssle for something that useless...)
[vuplus_dvbapp-plugin] / autotimer / src / autotimerwizard.xml
1 <wizard>
2                 <step id="welcome">
3                         <text value="Welcome.\n\nThis Wizard will help you to create a new AutoTimer by providing descriptions for common settings." />
4                         <list>
5                                 <listentry caption="Create a new AutoTimer." step="conf1" />
6                                 <listentry caption="Abort this Wizard." step="abort" />
7                         </list>
8                         <code>
9 self.clearSelectedKeys()
10 self.selectKey("OK")
11                         </code>
12                 </step>
13
14                 <!-- Name / Match / Enabled / Justplay -->
15                 <step id="conf1" nextstep="conf2">
16                         <text value="You can set the basic properties of an AutoTimer here.\nWhile 'Name' is just a human-readable name displayed in the Overview, 'Match in title' is what is looked for in the EPG." />
17                         <config type="dynamic" source="getConfigList" evaluation="selectionMade" />
18                         <code>
19 self.clearSelectedKeys()
20 self.selectKey("OK")
21                         </code>
22                         <!-- A sanity check is done in selectionMade combined with some helper versions of conf2 -->
23                 </step>
24
25                 <!-- Sanity check basic properties
26                         They ruin the wizards history for now but better than nothing :D -->
27                 <step id="conf2" nextstep="conf1">
28                         <condition>
29 self.condition = self.emptyMatch
30                         </condition>
31                         <text value="You did not provide a valid 'Match in title' Attribute for your new AutoTimer.\nAs this is a mandatory Attribute you cannot continue without doing so." />
32                         <code>
33 self.clearSelectedKeys()
34 self.selectKey("OK")
35                         </code>
36                 </step>
37
38                 <step id="conf2">
39                         <condition>
40 self.condition = self.trailingWhitespacesMatch
41                         </condition>
42                         <text value="Your 'Match in title' Attribute ends with a Whitespace.\nPlease confirm if this was intentional, if not they will be removed." />
43                         <list>
44                                 <listentry caption="Yes, keep them." step="conf2" />
45                                 <listentry caption="No, remove them." step="removeTrailingWhitespaces" />
46                         </list>
47                         <code>
48 self.clearSelectedKeys()
49 self.selectKey("OK")
50                         </code>
51                         <code pos="after">
52 self.maybeRemoveWhitespaces()
53                         </code>
54                 </step>
55
56                 <!-- Timespan -->
57                 <step id="conf2" nextstep="conf4">
58                         <condition>
59 self.condition = not self.emptyMatch and not self.trailingWhitespacesMatch
60                         </condition>
61                         <text value="The Timespan of an AutoTimer is the first 'advanced' attribute. If a timespan is specified an event will only match this AutoTimer if it lies inside of this timespan." />
62                         <config type="dynamic" source="getConfigList" evaluation="selectionMade" />
63                         <code>
64 self.clearSelectedKeys()
65 self.selectKey("OK")
66 self.selectKey("LEFT")
67 self.selectKey("RIGHT")
68                         </code>
69                 </step>
70
71                 <!-- Offset / AfterEvent / Match --> <!-- CURRENTLY INACTIVE -->
72                 <step id="conf3" nextstep="conf4">
73                         <text value="" />
74                         <config type="dynamic" source="getConfigList" evaluation="selectionMade" />
75                         <code>
76 self.clearSelectedKeys()
77 self.selectKey("OK")
78                         </code>
79                 </step>
80
81                 <!-- Services/Bouquets -->
82                 <step id="conf4" nextstep="conf5">
83                         <text value="It's possible to restrict an AutoTimer to certain Services or Bouquets or to deny specific ones.\nAn Event will only match this AutoTimer if it's on a specific and not denied Service (inside a Bouquet).\nPress BLUE to add a new restriction and YELLOW to remove the selected one." />
84                         <config type="dynamic" source="getConfigList" evaluation="selectionMade" />
85                         <code>
86 self.clearSelectedKeys()
87 self.selectKey("LEFT")
88 self.selectKey("RIGHT")
89 self.selectKey("BLUE")
90 self.selectKey("YELLOW")
91                         </code>
92                 </step>
93
94                 <!-- Include / Exclude -->
95                 <step id="conf5" nextstep="justbeforeend">
96                         <text value="Filters are another powerful tool when matching events. An AutoTimer can be restricted to certain Weekdays or only match an event with a text inside eg it's Description.\nPress BLUE to add a new restriction and YELLOW to remove the selected one." />
97                         <config type="dynamic" source="getConfigList" evaluation="selectionMade" />
98                         <code>
99 self.clearSelectedKeys()
100 self.selectKey("LEFT")
101 self.selectKey("RIGHT")
102 self.selectKey("BLUE")
103 self.selectKey("YELLOW")
104                         </code>
105                 </step>
106
107                 <!-- Maxduration / avoidDuplicate / Destination ?! -->
108                 <!--
109                 <step id="conf6" nextstep="end">
110                         <text value="" />
111                         <config type="dynamic" source="getConfigList" evaluation="selectionMade" />
112                         <code>
113 self.clearSelectedKeys()
114 self.selectKey("OK")
115                         </code>
116                 </step>
117                 -->
118
119                 <step id="justbeforeend">
120                         <text value="You successfully configured a new AutoTimer. Do you want to add it to the list?\n\nYou can go back a step by pressing EXIT on your remote." />
121                         <list>
122                                 <listentry caption="Yes" step="end" />
123                                 <listentry caption="No" step="abort" />
124                         </list>
125                         <code>
126 self.clearSelectedKeys()
127 self.selectKey("OK")
128 self.selectKey("EXIT")
129                         </code>
130                 </step>
131
132                 <step id="abort">
133                         <text value="The Timer will not be added to the List.\nPlease press OK to close this Wizard." />
134                         <code>
135 self.clearSelectedKeys()
136 self.selectKey("OK")
137                         </code>
138                         <code pos="after">
139 self.cancel()
140                         </code>
141                 </step>
142
143                 <step id="end">
144                         <text value="Thank you for using the wizard. Your new AutoTimer has been added to the List.\nPlease press OK to continue." />
145                         <code>
146 self.clearSelectedKeys()
147 self.selectKey("OK")
148                         </code>
149                 </step>
150 </wizard>
151