summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/Prefs.cpp
authorgroucho <groucho>2003-05-07 09:20:31 (UTC)
committer groucho <groucho>2003-05-07 09:20:31 (UTC)
commit6fc02cae4bd1fe3478e6e34575f481236ce5ede8 (patch) (unidiff)
tree1ef986f52464733a7ea7f58c03d25d7e3524f542 /noncore/apps/opie-reader/Prefs.cpp
parent118d03d815a7615b9c53363218a7ac45b3f4c514 (diff)
downloadopie-6fc02cae4bd1fe3478e6e34575f481236ce5ede8.zip
opie-6fc02cae4bd1fe3478e6e34575f481236ce5ede8.tar.gz
opie-6fc02cae4bd1fe3478e6e34575f481236ce5ede8.tar.bz2
Hopefully, everything is in place now
Diffstat (limited to 'noncore/apps/opie-reader/Prefs.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/Prefs.cpp636
1 files changed, 636 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/Prefs.cpp b/noncore/apps/opie-reader/Prefs.cpp
new file mode 100644
index 0000000..825608e
--- a/dev/null
+++ b/noncore/apps/opie-reader/Prefs.cpp
@@ -0,0 +1,636 @@
1/****************************************************************************
2** Form implementation generated from reading ui file 'Prefs.ui'
3**
4** Created: Tue Feb 11 23:53:35 2003
5** by: The User Interface Compiler (uic)
6**
7** WARNING! All changes made in this file will be lost!
8****************************************************************************/
9#include "useqpe.h"
10#include "Prefs.h"
11
12#include <qcheckbox.h>
13#include <qlabel.h>
14#include <qpushbutton.h>
15#include <qspinbox.h>
16#include <qlayout.h>
17#include <qvariant.h>
18#include <qtooltip.h>
19#include <qwhatsthis.h>
20#include <qcombobox.h>
21#include <qbuttongroup.h>
22#include <qlineedit.h>
23#ifdef USEQPE
24#include <qpe/menubutton.h>
25#include <qpe/fontdatabase.h>
26#else
27#include <qfontdatabase.h>
28#endif
29
30CLayoutPrefs::CLayoutPrefs( QWidget* parent, const char* name, WFlags fl )
31 : QWidget( parent, name, fl )
32{
33 QHBoxLayout* hb = new QHBoxLayout(this);
34 QButtonGroup* bg = new QButtonGroup(2, Qt::Horizontal, "Text", this);
35 hb->addWidget(bg);
36
37 StripCR = new QCheckBox( bg );
38 StripCR->setText( tr( "Strip CR" ) );
39
40 Dehyphen = new QCheckBox( bg );
41 Dehyphen->setText( tr( "Dehyphen" ) );
42
43 SingleSpace = new QCheckBox( bg );
44 SingleSpace->setText( tr( "Single Space" ) );
45
46 Unindent = new QCheckBox( bg );
47 Unindent->setText( tr( "Unindent" ) );
48
49 Reparagraph = new QCheckBox( bg );
50 Reparagraph->setText( tr( "Reparagraph" ) );
51
52 DoubleSpace = new QCheckBox( bg );
53 DoubleSpace->setText( tr( "Double Space" ) );
54
55 Remap = new QCheckBox( bg );
56 Remap->setText( tr( "Remap" ) );
57
58 Embolden = new QCheckBox( bg );
59 Embolden->setText( tr( "Embolden" ) );
60
61 FullJustify = new QCheckBox( bg );
62 FullJustify->setText( tr( "Full Justify" ) );
63
64}
65
66/*
67 * Destroys the object and frees any allocated resources
68 */
69CLayoutPrefs::~CLayoutPrefs()
70{
71 // no need to delete child widgets, Qt does it all for us
72}
73
74
75
76CLayoutPrefs2::CLayoutPrefs2( QWidget* parent, const char* name, WFlags fl )
77 : QWidget( parent, name, fl )
78{
79
80 QVBoxLayout* vb = new QVBoxLayout(this);
81 QGridLayout* gl = new QGridLayout(vb, 4, 3);
82
83 QLabel *TextLabel;
84
85 TextLabel = new QLabel( this, "TextLabel1" );
86 TextLabel->setText( tr( "Indent" ) );
87 gl->addWidget(TextLabel, 0, 0);
88
89
90 TextLabel = new QLabel( this );
91 TextLabel->setText( tr( "Page\nOverlap" ) );
92 gl->addWidget(TextLabel, 0, 1);
93
94 TextLabel = new QLabel( this );
95 TextLabel->setText( tr( "Graphics\nZoom" ) );
96 gl->addWidget(TextLabel, 0, 2);
97
98 Indent = new QSpinBox( this, "Indent" );
99 Indent->setRange(0,20);
100 gl->addWidget(Indent, 1, 0);
101
102 pageoverlap = new QSpinBox( this );
103 pageoverlap->setRange(0,20);
104 gl->addWidget(pageoverlap, 1, 1);
105
106 gfxzoom = new QSpinBox( this );
107 gfxzoom->setRange(0,100);
108 gl->addWidget(gfxzoom, 1, 2);
109
110 TextLabel = new QLabel( this, "TextLabel4" );
111 TextLabel->setText( tr( "Margin" ) );
112 gl->addWidget(TextLabel, 2, 0);
113
114 TextLabel = new QLabel( this );
115 TextLabel->setText( tr( "Paragraph\nLeading" ) );
116 gl->addWidget(TextLabel, 2, 1);
117
118 TextLabel = new QLabel( this );
119 TextLabel->setText( tr( "Line\nLeading" ) );
120 gl->addWidget(TextLabel, 2, 2);
121
122 Margin = new QSpinBox( this, "Margin" );
123 Margin->setRange(0, 100);
124 gl->addWidget(Margin, 3, 0);
125
126 ParaLead = new QSpinBox( this );
127 ParaLead->setRange(-5, 50);
128 gl->addWidget(ParaLead, 3, 1);
129
130 LineLead = new QSpinBox( this );
131 LineLead->setRange(-5, 50);
132 gl->addWidget(LineLead, 3, 2);
133
134 gl = new QGridLayout(vb, 2, 2);
135
136 TextLabel = new QLabel( this);
137 TextLabel->setText( tr( "Markup" ) );
138 gl->addWidget(TextLabel, 0, 0, Qt::AlignBottom);
139 TextLabel = new QLabel( this);
140 TextLabel->setText( tr( "Font" ) );
141 gl->addWidget(TextLabel, 0, 1, Qt::AlignBottom);
142
143
144#ifdef USECOMBO
145 Markup = new QComboBox( this);
146#else
147 Markup = new MenuButton( this);
148#endif
149 Markup->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
150 Markup->insertItem("Auto");
151 Markup->insertItem("None");
152 Markup->insertItem("Text");
153 Markup->insertItem("HTML");
154 Markup->insertItem("PML");
155 gl->addWidget(Markup, 1, 0, Qt::AlignTop);
156
157#ifdef USECOMBO
158 fontselector = new QComboBox( this);
159#else
160 fontselector = new MenuButton( this);
161#endif
162 fontselector->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
163 {
164#ifdef USEQPE
165 FontDatabase f;
166#else
167 QFontDatabase f;
168#endif
169 QStringList flist = f.families();
170 for (QStringList::Iterator nm = flist.begin(); nm != flist.end(); nm++)
171 {
172 fontselector->insertItem(*nm);
173 }
174 } // delete the FontDatabase!!!
175 gl->addWidget(fontselector, 1, 1, Qt::AlignTop);
176}
177/*
178CLayoutPrefs2::CLayoutPrefs2( QWidget* parent, const char* name, WFlags fl )
179 : QWidget( parent, name, fl )
180{
181 QHBoxLayout* hb = new QHBoxLayout(this);
182
183 QVBoxLayout* vb = new QVBoxLayout;
184 hb->addLayout(vb);
185
186 QLabel *TextLabel;
187
188 TextLabel = new QLabel( this, "TextLabel1" );
189 TextLabel->setText( tr( "Indent" ) );
190 vb->addWidget( TextLabel, 0, Qt::AlignBottom );
191 Indent = new QSpinBox( this, "Indent" );
192 Indent->setRange(0,20);
193 vb->addWidget( Indent, 0, Qt::AlignLeft );
194
195 TextLabel = new QLabel( this );
196 TextLabel->setText( tr( "Page\nOverlap" ) );
197 vb->addWidget( TextLabel, 0, Qt::AlignBottom );
198 pageoverlap = new QSpinBox( this );
199 pageoverlap->setRange(0,20);
200 vb->addWidget( pageoverlap, 0, Qt::AlignLeft );
201
202 TextLabel = new QLabel( this );
203 TextLabel->setText( tr( "Graphics\nZoom" ) );
204 vb->addWidget( TextLabel, 0, Qt::AlignBottom );
205 gfxzoom = new QSpinBox( this );
206 gfxzoom->setRange(0,100);
207 vb->addWidget( gfxzoom, 0, Qt::AlignLeft );
208
209 vb->addStretch();
210
211 vb = new QVBoxLayout;
212 hb->addLayout(vb);
213
214 TextLabel = new QLabel( this, "TextLabel4" );
215 TextLabel->setText( tr( "Margin" ) );
216 vb->addWidget( TextLabel, 0, Qt::AlignBottom );
217 Margin = new QSpinBox( this, "Margin" );
218 Margin->setRange(0, 100);
219 vb->addWidget( Margin, 0, Qt::AlignLeft );
220
221 TextLabel = new QLabel( this );
222 TextLabel->setText( tr( "Paragraph\nLeading" ) );
223 vb->addWidget( TextLabel, 0, Qt::AlignBottom );
224 ParaLead = new QSpinBox( this );
225 ParaLead->setRange(-5, 50);
226 vb->addWidget( ParaLead, 0, Qt::AlignLeft );
227
228 TextLabel = new QLabel( this );
229 TextLabel->setText( tr( "Line\nLeading" ) );
230 vb->addWidget( TextLabel, 0, Qt::AlignBottom );
231 LineLead = new QSpinBox( this );
232 LineLead->setRange(-5, 50);
233 vb->addWidget( LineLead, 0, Qt::AlignLeft );
234
235 vb->addStretch();
236
237 vb = new QVBoxLayout;
238 hb->addLayout(vb);
239
240
241 TextLabel = new QLabel( this);
242 TextLabel->setText( tr( "Markup" ) );
243 vb->addWidget( TextLabel, 0, Qt::AlignBottom );
244 Markup = new MenuButton( this);
245 Markup->insertItem("Auto");
246 Markup->insertItem("None");
247 Markup->insertItem("Text");
248 Markup->insertItem("HTML");
249 Markup->insertItem("PML");
250 vb->addWidget( Markup, 0, Qt::AlignLeft );
251
252 TextLabel = new QLabel( this);
253 TextLabel->setText( tr( "Font" ) );
254 vb->addWidget( TextLabel, 0, Qt::AlignBottom );
255 fontselector = new MenuButton( this);
256 fontselector->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
257 {
258 FontDatabase f;
259 QStringList flist = f.families();
260 for (QStringList::Iterator nm = flist.begin(); nm != flist.end(); nm++)
261 {
262 fontselector->insertItem(*nm);
263 }
264 } // delete the FontDatabase!!!
265 vb->addWidget( fontselector, 0, Qt::AlignLeft );
266
267 vb->addStretch();
268}
269*/
270/*
271 * Destroys the object and frees any allocated resources
272 */
273CLayoutPrefs2::~CLayoutPrefs2()
274{
275 // no need to delete child widgets, Qt does it all for us
276}
277
278/*
279CPluckerPrefs::CPluckerPrefs( QWidget* parent, const char* name, WFlags fl )
280 : QWidget( parent, name, fl )
281{
282 Layout11 = new QVBoxLayout(this);
283 Layout11->setMargin( 0 );
284
285 Depluck = new QCheckBox( this, "Depluck" );
286 Depluck->setText( tr( "Depluck" ) );
287 Layout11->addWidget( Depluck );
288
289 Dejpluck = new QCheckBox( this, "Dejpluck" );
290 Dejpluck->setText( tr( "Dejpluck" ) );
291 Layout11->addWidget( Dejpluck );
292
293 Continuous = new QCheckBox( this, "Continuous" );
294 Continuous->setText( tr( "Continuous" ) );
295 Layout11->addWidget( Continuous );
296
297}
298
299CPluckerPrefs::~CPluckerPrefs()
300{
301 // no need to delete child widgets, Qt does it all for us
302}
303*/
304/*
305CMiscPrefs::CMiscPrefs( QWidget* parent, const char* name, WFlags fl )
306 : QWidget( parent, name, fl )
307{
308
309 QVBoxLayout* Layout11 = new QVBoxLayout(this);
310 Layout11->setMargin( 0 );
311
312
313 QHBoxLayout* hl = new QHBoxLayout;
314
315 QLabel* TextLabel = new QLabel( this );
316 TextLabel->setText( tr( "Action for\nSelect Button" ) );
317 hl->addWidget(TextLabel);
318
319 action = new QComboBox( this );
320 action->insertItem("Open file");
321 action->insertItem("Autoscroll");
322 action->insertItem("Mark");
323 action->insertItem("Annotate");
324 action->insertItem("Fullscreen");
325 hl->addWidget( action );
326
327 Layout11->addLayout(hl);
328
329 hl = new QHBoxLayout;
330
331 TextLabel = new QLabel( this );
332 TextLabel->setText( tr( "Dictionary\nApplication" ) );
333 hl->addWidget(TextLabel);
334 target = new QLineEdit(this);
335 hl->addWidget( target );
336
337 Layout11->addLayout(hl);
338
339
340 QButtonGroup* bg = new QButtonGroup(1, Qt::Horizontal, "Selection Target", this);
341 Layout11->addWidget( bg );
342
343 annotation = new QCheckBox( bg );
344 annotation->setText( tr( "Annotation" ) );
345
346 dictionary = new QCheckBox( bg );
347 dictionary->setText( tr( "Dictionary" ) );
348
349 clipboard = new QCheckBox( bg );
350 clipboard->setText( tr( "Clipboard" ) );
351
352}
353
354CMiscPrefs::~CMiscPrefs()
355{
356 // no need to delete child widgets, Qt does it all for us
357}
358*/
359
360CMiscPrefs::CMiscPrefs( QWidget* parent, const char* name, WFlags fl )
361 : QWidget( parent, name, fl )
362{
363
364 QGridLayout* hl = new QGridLayout(this,1,2);
365
366 hl->setMargin( 0 );
367
368 QGroupBox* gb = new QGroupBox(1, Qt::Horizontal, "Select Action", this);
369 hl->addWidget( gb, 0, 0 );
370
371 annotation = new QCheckBox( gb );
372 annotation->setText( tr( "Annotation" ) );
373
374 dictionary = new QCheckBox( gb );
375 dictionary->setText( tr( "Dictionary" ) );
376
377 clipboard = new QCheckBox( gb );
378 clipboard->setText( tr( "Clipboard" ) );
379
380 QButtonGroup* bg = new QButtonGroup(1, Qt::Horizontal, "Plucker", this);
381 hl->addWidget( bg, 0 , 1 );
382
383 Depluck = new QCheckBox( bg );
384 Depluck->setText( tr( "Depluck" ) );
385
386 Dejpluck = new QCheckBox( bg );
387 Dejpluck->setText( tr( "Dejpluck" ) );
388
389 Continuous = new QCheckBox( bg );
390 Continuous->setText( tr( "Continuous" ) );
391
392
393/*
394
395 QGroupBox* gb = new QGroupBox(1, Qt::Horizontal, "Navigation", this);
396 TextLabel = new QLabel( gb );
397 TextLabel->setText( tr( "Overlap" ) );
398 QSpinBox* sb = new QSpinBox( gb );
399
400 Internationalisation
401 Ideogram/Word
402 Set Width
403 Set Encoding
404 Set Font
405*/
406}
407
408CMiscPrefs::~CMiscPrefs()
409{
410 // no need to delete child widgets, Qt does it all for us
411}
412
413CPrefs::CPrefs(bool fs, QWidget* parent, const char* name) : QDialog(parent, name, true)
414{
415 setCaption(tr( "OpieReader Settings" ) );
416 QTabWidget* td = new QTabWidget(this);
417 layout = new CLayoutPrefs(this);
418 layout2 = new CLayoutPrefs2(this);
419 misc = new CMiscPrefs(this);
420 button = new CButtonPrefs(this);
421 inter = new CInterPrefs(this);
422 td->addTab(layout, tr("Layout"));
423 td->addTab(layout2, tr("Layout(2)"));
424 td->addTab(inter, tr("Locale"));
425 td->addTab(misc, tr("Misc"));
426 td->addTab(button, tr("Buttons"));
427 QVBoxLayout* v = new QVBoxLayout(this);
428 v->addWidget(td);
429
430 if (fs) showMaximized();
431}
432
433
434/*
435
436Unicode
437 Ideo/Word
438 Width
439 Encoding
440
441*/
442
443#include "CEncoding_tables.h"
444
445CInterPrefs::CInterPrefs( QWidget* parent, const char* name, WFlags fl )
446 : QWidget( parent, name, fl )
447{
448 QHBoxLayout* hb = new QHBoxLayout(this);
449
450 QGroupBox* gb = new QGroupBox(1, Qt::Horizontal, tr("International"), this);
451
452 hb->addWidget(gb);
453
454 QLabel *TextLabel;
455
456 ideogram = new QCheckBox( gb );
457 ideogram->setText( tr( "Ideograms" ) );
458
459 TextLabel = new QLabel( gb );
460 TextLabel->setText( tr( "Ideogram Width" ) );
461 ideogramwidth = new QSpinBox( gb );
462 ideogramwidth->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
463 ideogramwidth->setRange(1,200);
464
465 propfontchange = new QCheckBox( gb );
466 propfontchange->setText( tr( "Apply font\nto dialogs" ) );
467
468 TextLabel = new QLabel( gb );
469 TextLabel->setText( tr( "Encoding" ) );
470#ifdef USECOMBO
471 encoding = new QComboBox(gb);
472#else
473 encoding = new MenuButton(gb);
474#endif
475 encoding->insertItem("Ascii");
476 encoding->insertItem("UTF-8");
477 encoding->insertItem("UCS-2(BE)");
478 encoding->insertItem("USC-2(LE)");
479 encoding->insertItem("Palm");
480 for (unicodetable::iterator iter = unicodetable::begin(); iter != unicodetable::end(); iter++)
481 {
482 encoding->insertItem(iter->mime);
483 }
484
485 QVBoxLayout* vb = new QVBoxLayout;
486
487 gb = new QGroupBox(1, Qt::Horizontal, "Dictionary", this);
488
489 TextLabel = new QLabel( gb );
490 TextLabel->setText( tr( "Application" ) );
491 application = new QLineEdit(gb);
492 application->setFixedWidth(80);
493
494 TextLabel = new QLabel( gb );
495 TextLabel->setText( tr( "Message" ) );
496 message = new QLineEdit(gb);
497 message->setFixedWidth(80);
498// message->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
499 twotouch = new QCheckBox( gb );
500 twotouch->setText( tr( "Two/One\nTouch" ) );
501
502 SwapMouse = new QCheckBox( gb );
503 SwapMouse->setText("Swap Tap\nActions");
504
505
506 vb->addWidget(gb);
507
508// vb->addStretch();
509 hb->addLayout(vb);
510}
511
512CInterPrefs::~CInterPrefs()
513{
514 // no need to delete child widgets, Qt does it all for us
515}
516
517
518
519#ifdef USECOMBO
520void CButtonPrefs::populate(QComboBox *mb)
521#else
522void CButtonPrefs::populate(MenuButton *mb)
523#endif
524{
525 mb->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
526 mb->insertItem("<Nothing>");
527 mb->insertItem("Open file");
528 mb->insertItem("Autoscroll");
529 mb->insertItem("Bookmark");
530 mb->insertItem("Annotate");
531 mb->insertItem("Fullscreen");
532
533 mb->insertItem("Zoom in");
534 mb->insertItem("Zoom out");
535 mb->insertItem("Back");
536 mb->insertItem("Forward");
537 mb->insertItem("Home");
538 mb->insertItem("Page up");
539 mb->insertItem("Page down");
540 mb->insertItem("Line up");
541 mb->insertItem("Line down");
542 mb->insertItem("Beginning");
543 mb->insertItem("End");
544}
545
546CButtonPrefs::CButtonPrefs( QWidget* parent, const char* name, WFlags fl )
547 : QWidget( parent, name, fl )
548{
549
550 QGridLayout* hl = new QGridLayout(this,10,2);
551
552 hl->setMargin( 0 );
553
554 QLabel* ql = new QLabel("Escape Button", this);
555 hl->addWidget(ql, 0, 0, Qt::AlignBottom);
556#ifdef USECOMBO
557 escapeAction = new QComboBox( this );
558#else
559 escapeAction = new MenuButton( this );
560#endif
561 populate(escapeAction);
562 hl->addWidget(escapeAction, 1, 0, Qt::AlignTop | Qt::AlignLeft);
563
564 ql = new QLabel("Space Button", this);
565 hl->addWidget(ql, 2, 0, Qt::AlignBottom);
566#ifdef USECOMBO
567 spaceAction = new QComboBox( this );
568#else
569 spaceAction = new MenuButton( this );
570#endif
571 populate(spaceAction);
572 hl->addWidget(spaceAction, 3, 0, Qt::AlignTop | Qt::AlignLeft);
573
574 ql = new QLabel("Return Button", this);
575 hl->addWidget(ql, 2, 1, Qt::AlignBottom);
576#ifdef USECOMBO
577 returnAction = new QComboBox( this );
578#else
579 returnAction = new MenuButton( this );
580#endif
581 populate(returnAction);
582 hl->addWidget(returnAction, 3, 1, Qt::AlignTop | Qt::AlignLeft);
583
584 ql = new QLabel("Left Arrow", this);
585 hl->addWidget(ql, 4, 0, Qt::AlignBottom);
586#ifdef USECOMBO
587 leftAction = new QComboBox( this );
588#else
589 leftAction = new MenuButton( this );
590#endif
591 populate(leftAction);
592 hl->addWidget(leftAction, 5, 0, Qt::AlignTop | Qt::AlignLeft);
593 leftScroll = new QCheckBox( tr("Scroll Speed"), this );
594 hl->addWidget(leftScroll, 6, 0, Qt::AlignTop | Qt::AlignLeft);
595
596 ql = new QLabel("Right Arrow", this);
597 hl->addWidget(ql, 4, 1, Qt::AlignBottom);
598#ifdef USECOMBO
599 rightAction = new QComboBox( this );
600#else
601 rightAction = new MenuButton( this );
602#endif
603 populate(rightAction);
604 hl->addWidget(rightAction, 5, 1, Qt::AlignTop | Qt::AlignLeft);
605 rightScroll = new QCheckBox( tr("Scroll Speed"), this );
606 hl->addWidget(rightScroll, 6, 1, Qt::AlignTop | Qt::AlignLeft);
607
608 ql = new QLabel("Down Arrow", this);
609 hl->addWidget(ql, 7, 0, Qt::AlignBottom);
610#ifdef USECOMBO
611 downAction = new QComboBox( this );
612#else
613 downAction = new MenuButton( this );
614#endif
615 populate(downAction);
616 hl->addWidget(downAction, 8, 0, Qt::AlignTop | Qt::AlignLeft);
617 downScroll = new QCheckBox( tr("Scroll Speed"), this );
618 hl->addWidget(downScroll, 9, 0, Qt::AlignTop | Qt::AlignLeft);
619
620 ql = new QLabel("Up Arrow", this);
621 hl->addWidget(ql, 7, 1, Qt::AlignBottom);
622#ifdef USECOMBO
623 upAction = new QComboBox( this );
624#else
625 upAction = new MenuButton( this );
626#endif
627 populate(upAction);
628 hl->addWidget(upAction, 8, 1, Qt::AlignTop | Qt::AlignLeft);
629 upScroll = new QCheckBox( tr("Scroll Speed"), this );
630 hl->addWidget(upScroll, 9, 1, Qt::AlignTop | Qt::AlignLeft);
631}
632
633CButtonPrefs::~CButtonPrefs()
634{
635 // no need to delete child widgets, Qt does it all for us
636}