~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to aktion/aktionConf.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "aktionConf.h"
 
2
 
 
3
#include <klocale.h>
 
4
#include <kconfig.h>
 
5
#include <kapp.h>
 
6
#include <kfiledialog.h>
 
7
#include <kmessagebox.h>
 
8
 
 
9
#include <qimage.h>
 
10
#include <qlineedit.h>
 
11
#include <qcheckbox.h>
 
12
#include <qradiobutton.h>
 
13
#include <qbuttongroup.h>
 
14
#include <qwidget.h>
 
15
#include <qgroupbox.h>
 
16
#include <qpushbutton.h>
 
17
#include <qspinbox.h>
 
18
#include <qlistbox.h>
 
19
#include <qcombobox.h>
 
20
#include <qlayout.h>
 
21
#include <qlabel.h>
 
22
 
 
23
Setup::Setup( QWidget *parent, const char *name )
 
24
    : QTabDialog( parent, name, true )
 
25
{
 
26
    setCaption( i18n("aKtion! Setup" ));
 
27
 
 
28
    config = kapp->config();
 
29
 
 
30
    addTab( audio(), i18n("Audio" ));
 
31
    addTab( color(), i18n("Color") );
 
32
    addTab( scaling(), i18n("Scaling" ));
 
33
    addTab( capture(), i18n("Capture" ));
 
34
    addTab( others(), i18n("Others" ));
 
35
 
 
36
    setCancelButton( i18n("&Cancel") );
 
37
    connect( this, SIGNAL(cancelButtonPressed()), SLOT(quit()) );
 
38
    
 
39
    setOkButton( i18n("&OK" ));
 
40
    connect( this, SIGNAL(applyButtonPressed()), SLOT(save()) );
 
41
}
 
42
 
 
43
QWidget *Setup::audio()
 
44
{
 
45
    QWidget *base = new QWidget( this, "Audio" );
 
46
    config->setGroup("audio");
 
47
 
 
48
    QBoxLayout *l = new QVBoxLayout(base, 10, 0);
 
49
 
 
50
    checkBox[0] = new QCheckBox( base );
 
51
    checkBox[0]->setText( i18n("Audio enable") );
 
52
    checkBox[0]->setMinimumSize( checkBox[0]->sizeHint() );
 
53
    checkBox[0]->setChecked(config->readBoolEntry("enable"));
 
54
    l->addWidget( checkBox[0] );
 
55
 
 
56
    checkBox[1] = new QCheckBox( base );
 
57
    checkBox[1]->setText( i18n("Skip frames for audio sync") );
 
58
    checkBox[1]->setMinimumSize( checkBox[1]->sizeHint() );
 
59
    checkBox[1]->setChecked(config->readBoolEntry("audioSync"));
 
60
    l->addWidget( checkBox[1] );
 
61
 
 
62
    checkBox[8] = new QCheckBox( base );
 
63
    checkBox[8]->setText( i18n("Show volume slider") );
 
64
    checkBox[8]->setMinimumSize( checkBox[8]->sizeHint() );
 
65
    checkBox[8]->setChecked(config->readBoolEntry("showVolumeSlider"));
 
66
    l->addWidget( checkBox[8] );
 
67
 
 
68
    label[0] = new QLabel( base );
 
69
    label[0]->setText( i18n("Initial volume (0-100):" ));
 
70
    label[0]->setMinimumSize( label[0]->sizeHint() );
 
71
    l->addWidget( label[0] );
 
72
 
 
73
    spin[0] = new QSpinBox( base );
 
74
    spin[0]->setRange(0,100);
 
75
    spin[0]->setValue(config->readNumEntry("audioInitialVolume"));
 
76
    spin[0]->setMinimumSize( spin[0]->sizeHint() );
 
77
    spin[0]->setFixedWidth(50);
 
78
    QBoxLayout *l1 = new QHBoxLayout();
 
79
    l->addLayout(l1);
 
80
    l1->addWidget( spin[0] );
 
81
    l1->addStretch(1);
 
82
 
 
83
    l->addStretch(1);
 
84
 
 
85
    l->activate();
 
86
    return base;
 
87
}
 
88
 
 
89
QWidget *Setup::color()
 
90
{
 
91
    QWidget *base = new QWidget( this, "Color" );
 
92
    config->setGroup("color");
 
93
 
 
94
    QBoxLayout *l = new QVBoxLayout(base,10,0);
 
95
 
 
96
    grupo[0] = new QGroupBox(base);
 
97
    grupo[0]->setTitle( i18n("Color mapping (non TrueColor displays)"));
 
98
 
 
99
    QBoxLayout *l1 = new QVBoxLayout(grupo[0],10,0);
 
100
 
 
101
    botonRadio[0] = new QRadioButton( grupo[0] );
 
102
    botonRadio[0]->setText( i18n("TrueColor to 322 (static color)") );
 
103
    botonRadio[0]->setMinimumSize( botonRadio[0]->sizeHint() );
 
104
    l1->addSpacing(10);
 
105
    l1->addWidget(botonRadio[0]);
 
106
 
 
107
    botonRadio[1] = new QRadioButton( grupo[0] );
 
108
    botonRadio[1]->setText( i18n("Color lookup table") );
 
109
    botonRadio[1]->setMinimumSize( botonRadio[1]->sizeHint() );
 
110
    l1->addWidget(botonRadio[1]);
 
111
 
 
112
    label[1] = new QLabel( grupo[0] );
 
113
    label[1]->setText( i18n("Numer of frames to look ahead:" ));
 
114
    label[1]->setMinimumSize(label[1]->sizeHint());
 
115
 
 
116
    lined[0] = new QLineEdit( grupo[0] );
 
117
    lined[0]->setText(config->readEntry("colorAhead"));
 
118
    lined[0]->setMinimumSize( lined[0]->sizeHint() );
 
119
    lined[0]->setFixedWidth( 40 );
 
120
 
 
121
    QBoxLayout *l2 = new QHBoxLayout();
 
122
    l1->addLayout(l2);
 
123
    l2->addSpacing(20);
 
124
    l2->addWidget( label[1] );
 
125
    l2->addSpacing(10);
 
126
    l2->addWidget( lined[0] );
 
127
    l2->addStretch(1);
 
128
 
 
129
    botonRadio[2] = new QRadioButton( grupo[0] );
 
130
    botonRadio[2]->setText( i18n("TrueColor to grayscale") );
 
131
    botonRadio[2]->setMinimumSize(botonRadio[2]->sizeHint());
 
132
    l1->addWidget(botonRadio[2]);
 
133
 
 
134
    botonRadio[3] = new QRadioButton( grupo[0] );
 
135
    botonRadio[3]->setText( i18n("None") );
 
136
    botonRadio[3]->setMinimumSize(botonRadio[3]->sizeHint());
 
137
    l1->addWidget(botonRadio[3]);
 
138
 
 
139
    botones[0] = new QButtonGroup( base );
 
140
    botones[0]->hide();
 
141
    botones[0]->insert(botonRadio[0]);
 
142
    botones[0]->insert(botonRadio[1]);
 
143
    botones[0]->insert(botonRadio[2]);
 
144
    botones[0]->insert(botonRadio[3]);
 
145
//    botones[0]->setButton(config->readNumEntry("colorMapping"));
 
146
    /* patch for Qt 1.32 */
 
147
    botonRadio[config->readNumEntry("colorMapping")]->setChecked(true);
 
148
    connect(botones[0], SIGNAL(clicked(int)), SLOT(actualizeDialog1(int)) );
 
149
    if (config->readNumEntry("colorMapping")!=1)
 
150
    {
 
151
       label[1]->setEnabled(false);
 
152
       lined[0]->setEnabled(false);
 
153
    }
 
154
 
 
155
    l->addWidget(grupo[0]);
 
156
    l->addSpacing(10);
 
157
 
 
158
    label[2] = new QLabel( base );
 
159
    label[2]->setText( i18n("Gamma of display:" ));
 
160
    label[2]->setMinimumSize(label[2]->sizeHint());
 
161
    l->addWidget(label[2]);
 
162
 
 
163
    lined[1] = new QLineEdit( base );
 
164
    lined[1]->setText(config->readEntry("gammaDisp"));
 
165
    lined[1]->setMinimumSize(lined[1]->sizeHint());
 
166
    l->addWidget(lined[1]);
 
167
 
 
168
    l->addStretch(1);
 
169
 
 
170
    l->activate();
 
171
    return base;
 
172
}
 
173
 
 
174
QWidget *Setup::scaling()
 
175
{
 
176
    QWidget *base = new QWidget( this, "Scaling" );
 
177
    config->setGroup("scaling");
 
178
 
 
179
    QBoxLayout *l = new QVBoxLayout(base, 10);
 
180
 
 
181
    label[3] = new QLabel( base );
 
182
    label[3]->setText( i18n("Display scale" ));
 
183
    label[3]->setMinimumSize( label[3]->sizeHint() );
 
184
    l->addWidget(label[3]);
 
185
 
 
186
    combo[0] = new QComboBox( base );
 
187
    combo[0]->insertItem( i18n("Original size") );
 
188
    combo[0]->insertItem( i18n("Half size") );
 
189
    combo[0]->insertItem( i18n("Double size") );
 
190
    combo[0]->insertItem( i18n("Maximized") );
 
191
    combo[0]->insertItem( i18n("Full screen") );
 
192
    combo[0]->setCurrentItem(config->readNumEntry("scale"));
 
193
    combo[0]->setMinimumSize( combo[0]->sizeHint() );
 
194
    l->addWidget(combo[0]);
 
195
 
 
196
    botones[2] = new QButtonGroup( base );
 
197
    botones[2]->setTitle( i18n("Full screen") );
 
198
 
 
199
    QBoxLayout *l1 = new QVBoxLayout(botones[2], 10, 0);
 
200
    l1->addSpacing(10);
 
201
 
 
202
    checkBox[9] = new QCheckBox( botones[2] );
 
203
    checkBox[9]->setText( i18n("Use XFree86-VidModeExtensions (if available)") );
 
204
    checkBox[9]->setMinimumSize( checkBox[9]->sizeHint() );
 
205
    checkBox[9]->setChecked(config->readBoolEntry("usevm"));
 
206
    l1->addWidget( checkBox[9] );
 
207
 
 
208
    checkBox[10] = new QCheckBox( botones[2] );
 
209
    checkBox[10]->setText( i18n("Grab the mouse") );
 
210
    checkBox[10]->setMinimumSize( checkBox[10]->sizeHint() );
 
211
    checkBox[10]->setChecked(config->readBoolEntry("grabmouse"));
 
212
    l1->addWidget( checkBox[10] );
 
213
 
 
214
    l->addWidget( botones[2] );
 
215
 
 
216
    l->addStretch(1);
 
217
 
 
218
    l->activate();
 
219
    return base;
 
220
}
 
221
 
 
222
QWidget *Setup::capture()
 
223
{
 
224
    QWidget *base = new QWidget( this, "Capture" );
 
225
    config->setGroup("capture");
 
226
 
 
227
    QBoxLayout *l = new QVBoxLayout(base, 10);
 
228
 
 
229
    label[7] = new QLabel( base );
 
230
    label[7]->setText( i18n("Output file format:" ));
 
231
    label[7]->setMinimumSize( label[7]->sizeHint() );
 
232
    l->addWidget(label[7]);
 
233
 
 
234
    QStrList formats=QImage::outputFormats();
 
235
    combo[1] = new QComboBox( base );
 
236
    combo[1]->insertStrList( &formats );
 
237
    QString configFormat;
 
238
    int c=0;
 
239
    configFormat=config->readEntry("outputFormat");
 
240
    combo[1]->setCurrentItem(c);
 
241
    while ( combo[1]->currentText() != configFormat )
 
242
    {
 
243
       c++;
 
244
       combo[1]->setCurrentItem(c);
 
245
    }
 
246
    combo[1]->setMinimumSize( combo[1]->sizeHint() );
 
247
    l->addWidget(combo[1]);
 
248
 
 
249
    label[8] = new QLabel( base );
 
250
    label[8]->setText( i18n("Output file directory:" ));
 
251
    label[8]->setMinimumSize( label[8]->sizeHint() );
 
252
    l->addWidget(label[8]);
 
253
 
 
254
    QBoxLayout *l2 = new QHBoxLayout();
 
255
    l->addLayout(l2);
 
256
 
 
257
    lined[5] = new QLineEdit( base );
 
258
    lined[5]->setText( config->readEntry("outputDir"));
 
259
    lined[5]->setMinimumSize( lined[5]->sizeHint() );
 
260
    l2->addWidget( lined[5] );
 
261
 
 
262
    dirButton[1] = new QPushButton( base );
 
263
    dirButton[1]->setText("...");
 
264
    dirButton[1]->setFixedSize( dirButton[1]->sizeHint() );
 
265
    l2->addWidget( dirButton[1] );
 
266
    connect( dirButton[1], SIGNAL(clicked()), SLOT(getCaptureDir()) );
 
267
 
 
268
    label[9] = new QLabel( base );
 
269
    label[9]->setText( i18n("Press 'c' during playback to capture a single frame." ));
 
270
    label[9]->setMinimumSize( label[9]->sizeHint() );
 
271
    l->addWidget(label[9]);
 
272
 
 
273
    l->addStretch(1);
 
274
 
 
275
    l->activate();
 
276
    return base;
 
277
}
 
278
 
 
279
QWidget *Setup::others()
 
280
{
 
281
    QWidget *base = new QWidget( this, "Others" );
 
282
    config->setGroup("others");
 
283
 
 
284
    QBoxLayout *l = new QVBoxLayout(base, 10, 0);
 
285
 
 
286
    botones[1] = new QButtonGroup( base );
 
287
    botones[1]->setTitle( i18n("Video loading") );
 
288
    //botones[1]->setMinimumSize(10,10,max,90);
 
289
 
 
290
    QBoxLayout *l1 = new QVBoxLayout(botones[1], 10, 0);
 
291
    l1->addSpacing(10);
 
292
 
 
293
    botonRadio[4] = new QRadioButton( botones[1] );
 
294
    botonRadio[4]->setText( i18n("Preload animation into memory") );
 
295
    botonRadio[4]->setMinimumSize( botonRadio[4]->sizeHint() );
 
296
    l1->addWidget( botonRadio[4] );
 
297
 
 
298
    botonRadio[5] = new QRadioButton( botones[1] );
 
299
    botonRadio[5]->setText( i18n("Preload and uncompress animation") );
 
300
    botonRadio[5]->setMinimumSize( botonRadio[5]->sizeHint() );
 
301
    l1->addWidget( botonRadio[5] );
 
302
 
 
303
    botonRadio[6] = new QRadioButton( botones[1] );
 
304
    botonRadio[6]->setText( i18n("Read each sector only when needed") );
 
305
    botonRadio[6]->setMinimumSize( botonRadio[6]->sizeHint() );
 
306
    l1->addWidget( botonRadio[6] );
 
307
 
 
308
//  botones[1]->setButton( config->readNumEntry("loading") );
 
309
    /* patch for Qt 1.32 */
 
310
    botonRadio[config->readNumEntry("loading")+4]->setChecked(true);
 
311
    connect(botones[1], SIGNAL(clicked(int)), SLOT(actualizeDialog(int)) );
 
312
 
 
313
    l->addWidget( botones[1] );
 
314
    l->addSpacing(10);
 
315
 
 
316
    checkBox[3] = new QCheckBox( base );
 
317
    checkBox[3]->setText( i18n("Use X11 shared memory") );
 
318
    checkBox[3]->setMinimumSize( checkBox[3]->sizeHint() );
 
319
    checkBox[3]->setChecked(config->readBoolEntry("x11shared"));
 
320
    if (config->readNumEntry("loading")==1)
 
321
       checkBox[3]->setEnabled(false);
 
322
    l->addWidget( checkBox[3] );
 
323
 
 
324
    checkBox[4] = new QCheckBox( base );
 
325
    checkBox[4]->setText( i18n("Use X11 multi buffering") );
 
326
    checkBox[4]->setMinimumSize( checkBox[4]->sizeHint() );
 
327
    checkBox[4]->setChecked(config->readBoolEntry("multiBuffer"));
 
328
    l->addWidget( checkBox[4] );
 
329
 
 
330
    checkBox[5] = new QCheckBox( base );
 
331
    checkBox[5]->setText( i18n("Use Pixmap instead of Image in X11") );
 
332
    checkBox[5]->setMinimumSize( checkBox[5]->sizeHint() );
 
333
    checkBox[5]->setChecked(config->readBoolEntry("pixmap"));
 
334
    l->addWidget( checkBox[5] );
 
335
/*
 
336
    label[7] = new QLabel( base );
 
337
    label[7]->setMinimumSize(10,90,max,20);
 
338
    label[7]->setText( i18n("X11 Visual of class:" ));
 
339
    combo[0] = new QComboBox( base );
 
340
    combo[0]->setMinimumSize(10,110,150,20);
 
341
    combo[0]->insertItem("(default)");
 
342
    combo[0]->insertItem("Static gray");
 
343
    combo[0]->insertItem("Gray scale");
 
344
    combo[0]->insertItem("Static color");
 
345
    combo[0]->insertItem("Pseudo color");
 
346
    combo[0]->insertItem("True color");
 
347
    combo[0]->insertItem("Direct color");
 
348
    combo[0]->setCurrentItem(config->readNumEntry("visualClass"));
 
349
*/
 
350
    label[4] = new QLabel( base );
 
351
    label[4]->setText( i18n("Initial directory:" ));
 
352
    label[4]->setMinimumSize( label[4]->sizeHint() );
 
353
    l->addWidget( label[4] );
 
354
 
 
355
    QBoxLayout *l2 = new QHBoxLayout();
 
356
    l->addLayout(l2);
 
357
 
 
358
    lined[3] = new QLineEdit( base );
 
359
    lined[3]->setText( config->readEntry("initialDirectory"));
 
360
    lined[3]->setMinimumSize( lined[3]->sizeHint() );
 
361
    l2->addWidget( lined[3] );
 
362
 
 
363
    dirButton[0] = new QPushButton( base );
 
364
    dirButton[0]->setText("...");
 
365
    dirButton[0]->setFixedSize( dirButton[0]->sizeHint() );
 
366
    l2->addWidget( dirButton[0] );
 
367
    connect( dirButton[0], SIGNAL(clicked()), SLOT(getDir()) );
 
368
 
 
369
    checkBox[6] = new QCheckBox( base );
 
370
    checkBox[6]->setText( i18n("Loop animation") );
 
371
    checkBox[6]->setMinimumSize( checkBox[6]->sizeHint() );
 
372
    checkBox[6]->setChecked(config->readBoolEntry("loop"));
 
373
    l->addWidget( checkBox[6] );
 
374
 
 
375
    checkBox[7] = new QCheckBox( base );
 
376
    checkBox[7]->setText( i18n("Automatically start playing video") );
 
377
    checkBox[7]->setMinimumSize( checkBox[7]->sizeHint() );
 
378
    checkBox[7]->setChecked(config->readBoolEntry("autoplay"));
 
379
    l->addWidget( checkBox[7] );
 
380
 
 
381
    label[5] = new QLabel( base );
 
382
    label[5]->setText( i18n("Extra XAnim parameters:" ));
 
383
    label[5]->setMinimumSize( label[5]->sizeHint() );
 
384
    l->addWidget( label[5] );
 
385
 
 
386
    lined[2] = new QLineEdit( base );
 
387
    lined[2]->setText( config->readEntry("extras"));
 
388
    lined[2]->setMinimumSize( lined[2]->sizeHint() );
 
389
    l->addWidget( lined[2] );
 
390
 
 
391
    label[6] = new QLabel( base );
 
392
    label[6]->setText( i18n("xanim executable:" ));
 
393
    label[6]->setMinimumSize( label[6]->sizeHint() );
 
394
    l->addWidget( label[6] );
 
395
 
 
396
    QBoxLayout *l3 = new QHBoxLayout();
 
397
    l->addLayout(l3);
 
398
 
 
399
    lined[4] = new QLineEdit( base );
 
400
    lined[4]->setText( config->readEntry("executable"));
 
401
    lined[4]->setMinimumSize( lined[4]->sizeHint() );
 
402
    l3->addWidget( lined[4] );
 
403
 
 
404
    executableButton = new QPushButton( base );
 
405
    executableButton->setText("...");
 
406
    executableButton->setFixedSize( executableButton->sizeHint() );
 
407
    l3->addWidget( executableButton );
 
408
    connect( executableButton, SIGNAL(clicked()), SLOT(getXanimExecutable()) );
 
409
 
 
410
    l->activate();
 
411
    return base;
 
412
}
 
413
void Setup::quit()
 
414
{
 
415
    done(0);
 
416
}
 
417
 
 
418
void Setup::save()
 
419
{
 
420
    config->setGroup("audio");
 
421
    config->writeEntry("enable",checkBox[0]->isChecked() );
 
422
    config->writeEntry("audioSync",checkBox[1]->isChecked() );
 
423
    config->writeEntry("showVolumeSlider",checkBox[8]->isChecked() );
 
424
    config->writeEntry("audioInitialVolume",spin[0]->value() );
 
425
 
 
426
    config->setGroup("color");
 
427
    config->writeEntry("colorAhead", lined[0]->text() );
 
428
    if (botonRadio[0]->isChecked()) config->writeEntry("colorMapping", 0);
 
429
    if (botonRadio[1]->isChecked()) config->writeEntry("colorMapping", 1);
 
430
    if (botonRadio[2]->isChecked()) config->writeEntry("colorMapping", 2);
 
431
    if (botonRadio[3]->isChecked()) config->writeEntry("colorMapping", 3);
 
432
    config->writeEntry("gammaDisp",lined[1]->text() );
 
433
 
 
434
    config->setGroup("scaling");
 
435
    config->writeEntry("scale",combo[0]->currentItem() );
 
436
    config->writeEntry("usevm",checkBox[9]->isChecked() );
 
437
    config->writeEntry("grabmouse",checkBox[10]->isChecked() );
 
438
 
 
439
    config->setGroup("capture");
 
440
    config->writeEntry("outputFormat",combo[1]->currentText() );
 
441
    config->writeEntry("outputDir",lined[5]->text() );
 
442
 
 
443
    config->setGroup("others");
 
444
    if (botonRadio[4]->isChecked()) config->writeEntry("loading", 0);
 
445
    if (botonRadio[5]->isChecked()) config->writeEntry("loading", 1);
 
446
    if (botonRadio[6]->isChecked()) config->writeEntry("loading", 2);
 
447
    config->writeEntry("x11shared",checkBox[3]->isChecked() );
 
448
    config->writeEntry("multiBuffer",checkBox[4]->isChecked() );
 
449
    config->writeEntry("pixmap",checkBox[5]->isChecked() );
 
450
//    config->writeEntry("visualClass",combo[0]->currentItem() );
 
451
    config->writeEntry("initialDirectory", lined[3]->text() );
 
452
    config->writeEntry("loop",checkBox[6]->isChecked() );
 
453
    config->writeEntry("extras",lined[2]->text());
 
454
    config->writeEntry("executable",lined[4]->text());
 
455
    config->writeEntry("autoplay",checkBox[7]->isChecked() );
 
456
 
 
457
    config->sync();
 
458
    done(1);
 
459
}
 
460
 
 
461
Setup::~Setup()
 
462
{
 
463
}
 
464
 
 
465
void Setup::getDir()
 
466
{
 
467
   QString s;
 
468
   
 
469
   s=KFileDialog::getExistingDirectory("",0L);
 
470
   if (!s.isEmpty())
 
471
      lined[3]->setText(s);
 
472
}
 
473
 
 
474
void Setup::getCaptureDir()
 
475
{
 
476
   QString s;
 
477
   
 
478
   s=KFileDialog::getExistingDirectory("",0L);
 
479
   if (!s.isEmpty())
 
480
      lined[5]->setText(s);
 
481
}
 
482
 
 
483
void Setup::getXanimExecutable()
 
484
{
 
485
   KURL url = KFileDialog::getOpenURL("","*|All files (*)",0L,i18n("xanim executable:" ));
 
486
   
 
487
   if( url.isEmpty() )
 
488
     return;
 
489
   
 
490
   if( !url.isLocalFile() )
 
491
   {
 
492
     KMessageBox::sorry( 0L, i18n( "Only local executables allowed." ) );
 
493
     return;
 
494
   }  
 
495
   
 
496
   lined[4]->setText(url.path());
 
497
}
 
498
 
 
499
void Setup::actualizeDialog(int rButton)
 
500
{
 
501
    if (rButton==1)
 
502
       checkBox[3]->setEnabled(false);
 
503
    else
 
504
       checkBox[3]->setEnabled(true);
 
505
}
 
506
 
 
507
void Setup::actualizeDialog1(int rButton)
 
508
{
 
509
    if (rButton==1)
 
510
    {
 
511
       label[1]->setEnabled(true);
 
512
       lined[0]->setEnabled(true);
 
513
    }
 
514
    else
 
515
    {
 
516
       label[1]->setEnabled(false);
 
517
       lined[0]->setEnabled(false);
 
518
    }
 
519
}
 
520
 
 
521
#include "aktionConf.moc"