add support for multiple instant recordings
[enigma2.git] / data / skin_default.xml
1 <skin>
2         <screen name="Standby" flags="wfNoBorder" position="0,0" size="720,576" title="Standby">
3         </screen>
4         <screen name="Menu" position="210,150" size="300,235" title="Main menu">
5                 <widget name="title" position="10,10" size="280,35" font="Regular;23" />
6                 <!--<widget name="menu" position="10,55" size="280,150" font="Regular;23" />-->
7                 <widget name="menu" position="10,55" size="290,175" scrollbarMode="showOnDemand" />
8         </screen>
9         <screen name="BouquetSelector" position="210,150" size="300,195" title="Choose bouquet">
10                 <widget name="menu" position="10,10" size="280,175" scrollbarMode="showOnDemand" />
11         </screen>
12         <screen name="ChannelContextMenu" position="210,150" size="300,195" title="Channellist menu">
13                 <widget name="menu" position="10,10" size="280,175" scrollbarMode="showOnDemand" />
14         </screen>
15         <screen name="Scart" position="0,0" size="720,576">
16         </screen>
17         <screen name="ServiceInfo" position="100,120" size="560,370" title="Serviceinfo">
18                 <widget name="red" position="0,0" size="140,40" backgroundColor="red" valign="center" halign="center" font="Regular;21" />
19                 <widget name="green" position="140,0" size="140,40" backgroundColor="green" valign="center" halign="center" font="Regular;21" />
20                 <widget name="yellow" position="280,0" size="140,40" backgroundColor="yellow" valign="center" halign="center" font="Regular;21" />
21                 <widget name="blue" position="420,0" size="140,40" backgroundColor="blue" valign="center" halign="center" font="Regular;21" />
22                 <widget name="infolist" position="20,50" size="560,365" selectionDisabled="1"/>
23         </screen>
24         <screen name="AudioSelection" position="210,150" size="300,170" title="Audio">
25                 <widget name="tracks" position="20,10" size="260,150" scrollbarMode="showOnDemand" />
26         </screen>
27         <screen name="SubserviceSelection" position="210,150" size="300,250" title="Subservices">
28                 <widget name="subservices" position="20,10" size="260,230" scrollbarMode="showOnDemand" />
29         </screen>
30         <screen name="HarddiskWait" position="140,165" size="360,60">
31                 <widget name="wait" position="20,10" size="320,25" font="Regular;23"/>
32         </screen>
33         <screen name="HarddiskSelection" position="140,165" size="360,100" title="Select HDD">
34                 <widget name="hddlist" position="20,10" size="320,75" />
35         </screen>
36         <screen name="HarddiskSetup" position="140,165" size="420,160" title="Harddisk">
37                 <widget name="model" position="20,10" size="380,25" font="Regular;23"  />
38                 <widget name="capacity" position="20,40" size="380,25" font="Regular;23"  />
39                 <widget name="bus" position="20,70" size="380,25" font="Regular;23"  />
40                 <widget name="initialize" position="40,110" size="120,30" zPosition="1" pixmap="init.png" />
41                 <widget name="initializetext" position="40,110" size="120,30" valign="center" halign="center" zPosition="2" font="Regular;20" transparent="1" />
42         </screen>
43         <screen name="Setup" position="100,125" size="540,280" title="Setup">
44                 <widget name="title" position="10,10" size="280,35" font="Regular;23" />
45                 <widget name="config" position="10,50" size="520,175" scrollbarMode="showOnDemand" />
46                 <widget name="ok" position="140,240" size="53,30" pixmap="ok.png" />
47                 <widget name="oktext" position="140,240" size="53,30" valign="center" halign="center" zPosition="2" font="Regular;20" transparent="1" />
48                 <widget name="cancel" position="240,240" size="100,30" pixmap="cancel.png" />
49                 <widget name="canceltext" position="240,240" size="100,30" valign="center" halign="center" zPosition="2" font="Regular;20" transparent="1" />
50         </screen>
51         <screen name="LanguageSelection" position="200,125" size="220,250" title="Language selection">
52                 <widget name="list" position="10,0" size="190,250" scrollbarMode="showOnDemand" />
53         </screen>
54         <screen name="PluginBrowser" position="170,125" size="400,350" title="Plugin browser">
55                 <widget name="red" position="0,0" size="200,40" backgroundColor="red" valign="center" halign="center" font="Regular;20" />
56                 <widget name="green" position="200,0" size="200,40" backgroundColor="green" valign="center" halign="center" font="Regular;20" />
57
58                 <widget name="list" position="10,50" size="380,280" scrollbarMode="showOnDemand" />
59         </screen>
60         <screen name="PluginDownloadBrowser" position="170,125" size="400,350" title="Downloadable plugins">
61                 <widget name="text" position="10,00" size="380,330" zPosition="1" font="Regular;20" />
62                 <widget name="list" position="10,00" size="380,330" zPosition="2" scrollbarMode="showOnDemand" />
63         </screen>
64         <screen name="NimSelection" position="140,165" size="400,100" title="select Slot">
65                 <widget name="nimlist" position="20,10" size="360,75" />
66         </screen>
67         <screen name="CiWait" position="140,165" size="360,50" title="Common Interface">
68                 <widget name="message" position="20,10" size="320,25" font="Regular;23" />
69         </screen>
70         <screen name="CiSelection" position="140,165" size="360,100" title="Common Interface">
71                 <widget name="entries" position="10,10" size="340,75" />
72         </screen>
73         <screen name="CiMmi" position="130,165" size="450,270">
74                 <widget name="title" position="10,10" size="430,25" font="Regular;23" />
75                 <widget name="subtitle" position="10,35" size="430,25" font="Regular;23" />
76                 <widget name="entries" position="10,70" size="430,150" scrollbarMode="showOnDemand" />
77                 <widget name="bottom" position="10,230" size="430,25" font="Regular;23" />
78         </screen>
79         <screen name="NimSetup" position="90,98" size="560,410" title="Satconfig">
80                 <widget name="config" position="0,0" size="560,402" scrollbarMode="showOnDemand" />
81         </screen>
82         <screen name="ScanSetup" position="90,100" size="520,400" title="Service scan">
83                 <widget name="config" position="20,10" size="460,350" scrollbarMode="showOnDemand" />
84                 <widget name="introduction" position="20,360" size="350,30" font="Regular;23" />
85         </screen>
86         <screen name="ScanSimple" position="150,100" size="400,300" title="Service scan">
87                 <widget name="header" position="20,10" size="280,25" font="Regular;23"/>
88                 <widget name="config" position="20,45" size="360,200" scrollbarMode="showOnDemand" />
89                 <widget name="footer" position="20,250" size="360,25" font="Regular;23"/>
90                 <!--<widget name="introduction" position="20,360" size="280,30" font="Regular;23" />-->
91         </screen>
92         <screen name="TimerEntry" position="100,100" size="500,400" title="Timer entry">
93                 <widget name="config" position="5,10" size="480,350" />
94                 <widget name="ok" position="140,365" size="53,30" pixmap="ok.png" />
95                 <widget name="oktext" position="140,365" size="53,30" valign="center" halign="center" zPosition="2" font="Regular;20" transparent="1" />
96                 <widget name="cancel" position="240,365" size="100,30" pixmap="cancel.png" />
97                 <widget name="canceltext" position="240,365" size="100,30" valign="center" halign="center" zPosition="2" font="Regular;20" transparent="1" />
98         </screen>
99         <screen name="NetworkSetup" position="140,125" size="460,280" title="Network Setup">
100                 <widget name="config" position="10,50" size="420,175" scrollbarMode="showOnDemand" />
101                 <widget name="introduction" position="10,230" size="400,30" font="Regular;23" />
102         </screen>
103         <screen name="About" position="140,125" size="360,250" title="About">
104                 <widget name="text" position="10,30" size="420,20" font="Regular;18"/>
105                 <widget name="fpVersion" position="10,50" size="420,20" font="Regular;18"/>
106                 <widget name="tuner" position="10,80" size="420,20" font="Regular;18"/>
107                 <widget name="tuner0" position="10,100" size="420,20" font="Regular;18"/>
108                 <widget name="tuner1" position="10,120" size="420,20" font="Regular;18"/>
109                 <widget name="hdd" position="10,170" size="420,20" font="Regular;18"/>
110                 <widget name="hddA" position="10,190" size="420,40" font="Regular;18"/>
111         </screen>
112         <screen name="configOSD" position="140,125" size="460,350" title="OSD Settings">
113                 <widget name="okbutton" position="20,270" size="205,40" />
114                 <widget name="txt_alpha" position="20,20" size="110,20" />
115                 <widget name="sld_alpha" position="150,20" size="290,20" />
116                 <widget name="txt_brightness" position="20,60" size="120,20" />
117                 <widget name="sld_brightness" position="150,20" size="290,20" />
118                 <widget name="txt_gamma" position="20,100" size="120,20" />
119                 <widget name="sld_gamma" position="150,100" size="290,20" />
120         </screen>
121         <screen name="configTest" position="300,100" size="300,300" title="config menu">
122                 <widget name="config" position="10,30" size="420,220" />
123         </screen>
124         <screen name="TimerEditList" position="70,100" size="560,400" title="Timer Editor">
125                 <widget name="timerlist" position="0,45" size="560,350" scrollbarMode="showOnDemand" />
126                 <widget name="key_red" position="0,0" size="140,40" backgroundColor="red" font="Regular;21" />
127                 <widget name="key_green" position="140,0" size="140,40" backgroundColor="green" font="Regular;21" />
128                 <widget name="key_yellow" position="280,0" size="140,40" backgroundColor="yellow" font="Regular;21" />
129                 <widget name="key_blue" position="420,0" size="140,40" backgroundColor="blue" font="Regular;21" />
130         </screen>
131         <screen name="TimerSelection" position="70,100" size="560,400" title="Timer selection">
132                 <widget name="timerlist" position="0,45" size="560,350" scrollbarMode="showOnDemand" />
133         </screen>
134         <screen name="TimerSanityConflict" position="70,100" size="600,400" title="Timer sanity error">
135                 <widget name="timer1" position="0,45" size="290,80" scrollbarMode="showOnDemand" />
136                 <widget name="timer2" position="310,45" size="280,80" scrollbarMode="showOnDemand" />
137                 <widget name="list" position="0,160" size="250,240" scrollbarMode="showOnDemand" />
138                 <widget name="key_red" position="0,0" size="145,40" backgroundColor="red" font="Regular;21" />
139                 <widget name="key_green" position="145,0" size="145,40" backgroundColor="green" font="Regular;21" />
140                 <widget name="key_yellow" position="310,0" size="145,40" backgroundColor="yellow" font="Regular;21" />
141                 <widget name="key_blue" position="455,0" size="145,40" backgroundColor="blue" font="Regular;21" />
142         </screen>
143         <screen name="TimerLog" position="70,100" size="560,400" title="Timer log">
144                 <widget name="loglist" position="0,45" size="560,250" scrollbarMode="showOnDemand" />
145                 <widget name="logentry" position="0,300" size="560,140" font="Regular;20" />
146                 <widget name="key_red" position="0,0" size="140,40" backgroundColor="red" font="Regular;21" />
147                 <widget name="key_green" position="140,0" size="140,40" backgroundColor="green" font="Regular;21" />
148                 <widget name="key_yellow" position="280,0" size="140,40" backgroundColor="yellow" font="Regular;21" />
149                 <widget name="key_blue" position="420,0" size="140,40" backgroundColor="blue" font="Regular;21" />
150         </screen>
151         <screen name="clockDisplay" position="300,100" size="300,300">
152                 <widget name="okbutton" position="10,10" size="280,40" />
153                 <widget name="title" position="10,120" size="280,50" />
154                 <widget name="theClock" position="10,60" size="280,50" />
155         </screen>
156
157         <screen name="NumberZap" position="200,140" size="280,60" title="Channel">
158                 <widget name="channel" position="50,15" size="110,25" font="Regular;23" />
159                 <widget name="number" position="160,15" size="80,25" halign="right" font="Regular;23" />
160         </screen>
161         <screen name="MinuteInput" position="200,140" size="280,60" title="Seek">
162                 <widget name="minutes" position="80,15" size="160,25" halign="right" font="Regular;23" />
163         </screen>
164         <screen name="Volume" flags="wfNoBorder" position="450,50" size="180,60" title="Volume" zPosition="1" >
165                 <ePixmap position="0,0" zPosition="0" size="180,60" pixmap="volumeslider-fs8.png" />
166                 <widget name="Volume" zPosition="1" position="8,38" size="164,11" backgroundColor="dark" />
167         </screen>
168         <screen name="Mute" flags="wfNoBorder" position="100,100" size="59,80" title="Mute" zPosition="-1">
169                 <ePixmap position="0,0" size="59,80" pixmap="mute-fs8.png" />
170         </screen>
171         <screen name="Dish" flags="wfNoBorder" position="300,100" size="100,107" title="Dish" zPosition="-10" >
172                 <widget name="transparent" zPosition="-1" position="0,0" size="100,107" backgroundColor="transparent" />
173                 <widget name="Dishpixmap" pixmap="dish.png" position="0,0" size="100,107" />
174         </screen>
175                 <screen name="ChannelSelection" position="90,98" size="560,417" title="Channel Selection">
176                 <widget name="list" position="00,45" size="560,364" scrollbarMode="showOnDemand" />
177                 <widget name="key_red" position="0,0" size="140,40" backgroundColor="red" font="Regular;21" />
178                 <widget name="key_green" position="140,0" size="140,40" backgroundColor="green" font="Regular;21" />
179                 <widget name="key_yellow" position="280,0" size="140,40" backgroundColor="yellow" font="Regular;21" />
180                 <widget name="key_blue" position="420,0" size="140,40" backgroundColor="blue" font="Regular;21" />
181         </screen>
182         <screen name="ChannelSelectionRadio" position="90,98" size="560,307" title="Channel Selection">
183                 <widget name="key_red" position="0,0" size="140,40" backgroundColor="red" font="Regular;21" />
184                 <widget name="key_green" position="140,0" size="140,40" backgroundColor="green" font="Regular;21" />
185                 <widget name="key_yellow" position="280,0" size="140,40" backgroundColor="yellow" font="Regular;21" />
186                 <widget name="key_blue" position="420,0" size="140,40" backgroundColor="blue" font="Regular;21" />
187                 <widget name="list" position="0,45" size="560,252" scrollbarMode="showOnDemand" />
188         </screen>
189         <screen name="RadioInfoBar" position="90,420" size="560,105" zPosition="-1">
190                 <widget name="ServiceName" position="0,0" size="390,26" font="Regular;22" backgroundColor="dark" />
191                 <widget name="BlinkingPoint" pixmap="record.png" position="400,0" zPosition="2" size="58,25" />
192                 <widget name="Clock" position="465,0" size="95,28" font="Regular;22" backgroundColor="dark" />
193                 <widget name="Now_ProgressBar" position="465,27" size="90,9" zPosition="1" borderWidth="2" />
194                 <widget name="Event_Now_StartTime" position="0,44" size="60,22" font="Regular;20" backgroundColor="dark" />
195                 <widget name="Event_Next_StartTime" position="0,74" size="60,22" font="Regular;20" backgroundColor="dark" />
196                 <widget name="Event_Now" position="80,44" size="380,22" font="Regular;20" backgroundColor="dark" />
197                 <widget name="Event_Next" position="80,74" size="380,22" font="Regular;20" backgroundColor="dark" />
198                 <widget name="Event_Now_Duration" position="470,44" size="150,22" font="Regular;20" backgroundColor="dark" />
199                 <widget name="Event_Next_Duration" position="470,74" size="150,22" font="Regular;20" backgroundColor="dark" />
200         </screen>
201         <screen name="SimpleChannelSelection" position="90,98" size="560,417" title="Channel Selection">
202                 <widget name="list" position="00,45" size="560,364" scrollbarMode="showOnDemand" />
203                 <widget name="key_red" position="0,0" size="140,40" backgroundColor="red" font="Regular;21" />
204                 <widget name="key_green" position="140,0" size="140,40" backgroundColor="green" font="Regular;21" />
205                 <widget name="key_yellow" position="280,0" size="140,40" backgroundColor="yellow" font="Regular;21" />
206                 <widget name="key_blue" position="420,0" size="140,40" backgroundColor="blue" font="Regular;21" />
207         </screen>
208         <screen name="EPGSelection" position="90,100" size="560,420" title="EPG Selection">
209                 <widget name="key_red" position="0,0" size="140,30" backgroundColor="red" font="Regular;21" />
210                 <widget name="key_green" position="140,0" size="140,30" backgroundColor="green" font="Regular;21" />
211                 <widget name="key_yellow" position="280,0" size="140,30" backgroundColor="yellow" font="Regular;21" />
212                 <widget name="key_blue" position="420,0" size="140,30" backgroundColor="blue" font="Regular;21" />
213                 <widget name="list" position="0,40" size="560,375" scrollbarMode="showOnDemand" />
214         </screen>
215         <screen name="EPGSelectionMulti" position="90,100" size="560,420" title="EPG Selection">
216                 <widget name="key_red" position="0,0" size="140,30" backgroundColor="red" font="Regular;21" />
217                 <widget name="key_green" position="140,0" size="140,30" backgroundColor="green" font="Regular;21" />
218                 <widget name="key_yellow" position="280,0" size="140,30" backgroundColor="yellow" font="Regular;21" />
219                 <widget name="key_blue" position="420,0" size="140,30" backgroundColor="blue" font="Regular;21" />
220                 <widget name="now_button" position="10,40" size="123,40" pixmap="button-fs8.png" />
221                 <widget name="next_button" position="143,40" size="123,40" pixmap="button-fs8.png" />
222                 <widget name="more_button" position="276,40" size="123,40" pixmap="button-fs8.png" />
223                 <widget name="now_button_sel" position="10,40" size="123,40" pixmap="button-selected-fs8.png" />
224                 <widget name="next_button_sel" position="143,40" size="123,40" pixmap="button-selected-fs8.png" />
225                 <widget name="more_button_sel" position="276,40" size="123,40" pixmap="button-selected-fs8.png" />
226                 <widget name="now_text" text="NOW" zPosition="2" position="10,40" size="123,40" transparent="1" halign="center" valign="center" font="Regular;21" />
227                 <widget name="next_text" text="NEXT" zPosition="2" position="143,40" size="123,40" transparent="1" halign="center" valign="center" font="Regular;21" />
228                 <widget name="more_text" text="MORE" zPosition="2" position="276,40" size="123,40" transparent="1" halign="center" valign="center" font="Regular;21" />
229                 <widget name="date" position="410,40" size="140,40" valign="center" halign="right" font="Regular;24" />
230                 <widget name="list" position="00,85" size="560,325" scrollbarMode="showOnDemand" />
231         </screen>
232         <screen name="EventView" position="100,100" size="520,380" title="Eventview">
233                 <widget name="key_red" position="0,0" size="130,30" backgroundColor="red" font="Regular;21" />
234                 <widget name="key_green" position="130,0" size="130,30" backgroundColor="green" font="Regular;21" />
235                 <widget name="key_yellow" position="260,0" size="130,30" backgroundColor="yellow" font="Regular;21" />
236                 <widget name="key_blue" position="390,0" size="130,30" backgroundColor="blue" font="Regular;21" />
237                 <widget name="epg_description" position="10,40" size="500,305" font="Regular;22" />
238                 <widget name="datetime" position="10,345" size="130,30" font="Regular;22" />
239                 <widget name="duration" position="140,345" size="100,30" font="Regular;22" />
240                 <widget name="channel" position="240,345" size="270,30" font="Regular;22" />
241         </screen>
242         <screen name="MovieSelection" position="90,98" size="560,415" title="Select a movie">
243                 <widget name="waitingtext" position="0,0" size="500,335" zPosition="2" font="Regular;22" />
244                 <widget name="list" position="0,0" size="560,375" zPosition="1" scrollbarMode="showOnDemand" />
245                 <widget name="freeDiskSpace" position="10,380" size="540,30" font="Regular;25" />
246         </screen>
247         <screen name="ServiceScan" position="200,100" size="300,330" title="Service Scan">
248                 <widget name="pass" position="10,10" size="280,30" font="Regular;20" />
249                 <widget name="scan_progress" position="10,45" size="280,20" />
250                 <widget name="scan_state" position="10,65" size="280,60" font="Regular;20" />
251                 <widget name="servicelist" position="10,135" size="280,175" selectionDisabled="1" />
252         </screen>
253         <screen name="InputBox" position="100,100" size="550,60" title="Input" >
254                 <widget name="text" position="0,0" size="550,25" font="Regular;20" />
255                 <widget name="input" position="0,30" size="550,25" font="Regular;20" />
256         </screen>
257         <screen name="ChoiceBox" position="150,100" size="550,400" title="Input" >
258                 <widget name="text" position="0,0" size="550,25" font="Regular;20" />
259                 <widget name="list" position="0,30" size="550,335" scrollbarMode="showOnDemand" />
260                 <applet type="onLayoutFinish">
261 # this should be factored out into some helper code, but currently demonstrates applets.
262 from enigma import eSize, ePoint
263
264 orgwidth = self.instance.size().width()
265 orgpos = self.instance.position()
266 textsize = self["text"].getSize()
267
268 # y size still must be fixed in font stuff...
269 textsize = (textsize[0] + 50, textsize[1] + 50)
270 count = len(self.list)
271 if count > 6:
272         count = 6
273 offset = 30 * count
274 wsizex = textsize[0] + 60
275 wsizey = textsize[1] + offset
276 if (400 > wsizex):
277         wsizex = 400
278 wsize = (wsizex, wsizey)
279
280
281 # resize
282 self.instance.resize(eSize(*wsize))
283
284 # resize label
285 self["text"].instance.resize(eSize(*textsize))
286
287 # move list
288 listsize = (wsizex, 30 * len(self.list))
289 self["list"].instance.move(ePoint(0, textsize[1]))
290 self["list"].instance.resize(eSize(*listsize))
291
292 # center window
293 newwidth = wsize[0]
294 #self.instance.move(ePoint(orgpos.x() + (orgwidth - newwidth)/2, orgpos.y()))
295                 </applet>                       
296         </screen>
297         <screen name="TimerEdit" position="70,100" size="590,335" title="Timer Edit">
298                 <widget name="description" position="10,10" size="580,40" font="Regular;25" />
299                 <widget name="lbegin" position="405,102" size="103,30" font="Regular;25" foregroundColor="red" />
300                 <widget name="lend" position="405,158" size="103,30" font="Regular;25" foregroundColor="green" />
301                 <widget name="begin" position="508,105" size="72,35" font="Regular;25" />
302                 <widget name="end" position="508,150" size="72,35" font="Regular;25" />
303                 <widget name="apply" position="10,240" size="250,35" />
304         </screen>
305         <screen name="HelpMenu" flags="wfNoBorder" position="0,0" size="720,576" title="Menu">
306                 <widget name="list" position="50,100" size="450,375" scrollbarMode="showOnDemand" />
307                 <widget name="rc" pixmap="rc.png" position="540,50" zPosition="10" size="154,475" transparent="1" alphatest="on"/>
308                 <widget name="arrowup" pixmap="arrowup.png" position="585,425" zPosition="11" size="37,70" transparent="1" alphatest="on"/>
309                 <eLabel position="400,40" size="220,60" text="help..." font="Regular;50" />
310         </screen>
311         <screen name="PVRState" flags="wfNoBorder" position="70,70" size="150,30" backgroundColor="transpBlack" zPosition="2">
312                 <widget name="state" position="0,0" size="150,30" font="Regular;25" halign="center" 
313                         backgroundColor="transpBlack" foregroundColor="white" />
314         </screen>
315         <screen name="TimeshiftState" flags="wfNoBorder" position="70,70" size="150,60" backgroundColor="transpBlack" zPosition="2">
316                 <widget name="state" position="0,0" size="150,30" font="Regular;25" halign="center" 
317                         backgroundColor="transpBlack" foregroundColor="white" />
318                 <widget name="timeshift" position="0,30" size="150,30" font="Regular;25" halign="center" 
319                         backgroundColor="transpBlack" foregroundColor="white" />
320         </screen>
321         <screen name="MessageBox" position="60,300" size="600,10" title="Message">
322                 <widget name="text" position="60,10" size="520,0" font="Regular;22" />
323                 <widget name="ErrorPixmap" pixmap="error.png" position="0,0" zPosition="3" size="53,53" alphatest="on" transparent="1" />
324                 <widget name="QuestionPixmap" pixmap="question.png" position="0,0" zPosition="3" size="53,53" alphatest="on" transparent="1" />
325                 <widget name="InfoPixmap" pixmap="info.png" position="0,0" zPosition="3" size="53,53" alphatest="on" transparent="1" />
326                 <widget name="list" position="100,100" size="480,375" />
327                 <applet type="onLayoutFinish">
328 # this should be factored out into some helper code, but currently demonstrates applets.
329 from enigma import eSize, ePoint
330
331 orgwidth = self.instance.size().width()
332 orgpos = self.instance.position()
333 textsize = self["text"].getSize()
334
335 # y size still must be fixed in font stuff...
336 textsize = (textsize[0] + 50, textsize[1] + 50)
337 offset = 0
338 if self.type == self.TYPE_YESNO:
339         offset = 60
340 wsizex = textsize[0] + 60
341 wsizey = textsize[1] + offset
342 if (280 > wsizex):
343         wsizex = 280
344 wsize = (wsizex, wsizey)
345
346
347 # resize
348 self.instance.resize(eSize(*wsize))
349
350 # resize label
351 self["text"].instance.resize(eSize(*textsize))
352
353 # move list
354 listsize = (wsizex, 50)
355 self["list"].instance.move(ePoint(0, textsize[1]))
356 self["list"].instance.resize(eSize(*listsize))
357
358 # center window
359 newwidth = wsize[0]
360 self.instance.move(ePoint(orgpos.x() + (orgwidth - newwidth)/2, orgpos.y()))
361                 </applet>
362         </screen>
363 </skin>