blob: c81922edbef74e0ebf7db2d07c622022dc45ee8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
|
//
// C++ Interface: k9config
//
// Description:
//
//
// Author: Jean-Michel PETIT <k9copy@free.fr>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef K9CONFIG_H
#define K9CONFIG_H
#include "k9common.h"
#include <ksimpleconfig.h>
#include <kstandarddirs.h>
/**
@author Jean-Michel PETIT <k9copy@free.fr>
*/
class k9Config {
private:
KSimpleConfig *m_config;
int m_InputDev;
int m_OutputDev;
bool m_keepMenus;
TQString m_prefOutput;
TQString m_prefVersion;
bool m_useDvdAuthor;
bool m_quickScan;
int m_prefSize;
bool m_prefK3b;
bool m_prefMenu;
bool m_prefAutoBurn;
int m_prefMp4Codec;
int m_prefMp4AudioCodec;
int m_prefMp4AudioGain;
int m_prefMp4Size;
int m_prefMp4NumberCD;
int m_prefAudioBitrate;
int m_prefButtonWidth;
int m_prefButtonHeight;
bool m_prefMp4AspectRatio;
bool m_prefMp42Passes;
bool m_prefDelTmpFiles;
bool m_prefUseCellCache;
TQString m_prefMp4Width;
TQString m_prefMp4Height;
TQString m_prefMp4AudioBitrate;
TQString m_prefMp4VideoBitrate;
TQString m_prefAudioFormat;
TQStringList m_codecAudio;
TQStringList m_codecLabelsAudio;
TQStringList m_codecLabels;
TQStringList m_codecVideo;
TQString m_prefCodecAudio,m_prefCodecVideo,m_prefCodecLabel;
TQStringList m_devices;
TQStringList m_devicesLabels;
TQStringList m_devicesIO;
TQColor m_prefButtonHiliteColor;
TQColor m_prefButtonTextColor;
TQFont m_prefButtonFont;
bool m_useMplayer;
bool m_useGL;
int m_MplayerVout;
int m_MplayerAout;
public:
k9Config();
void read();
void save();
~k9Config();
void setInputDev(const int& _value) {
m_InputDev = _value;
}
int getInputDev() const {
return m_InputDev;
}
void setOutputDev(const int& _value) {
m_OutputDev = _value;
}
int getOutputDev() const {
return m_OutputDev;
}
void setKeepMenus(bool _value) {
m_keepMenus = _value;
}
bool getKeepMenus() const {
return m_keepMenus;
}
void setPrefOutput(const TQString& _value) {
m_prefOutput = _value;
}
TQString getPrefOutput() const {
return m_prefOutput;
}
void setPrefAudioFormat( const TQString &_value) {
m_prefAudioFormat=_value;
}
TQString getPrefAudioFormat() const {
return m_prefAudioFormat;
}
void setPrefVersion(const TQString& _value) {
m_prefVersion = _value;
}
TQString getPrefVersion() const {
return m_prefVersion;
}
void setUseDvdAuthor(bool _value) {
m_useDvdAuthor = _value;
}
bool getUseDvdAuthor() const {
return m_useDvdAuthor;
}
void setPrefDelTmpFiles( bool _value) {
m_prefDelTmpFiles=_value;
}
bool getPrefDelTmpFiles() const {
return m_prefDelTmpFiles;
}
void setPrefUseCellCache( bool _value) {
m_prefUseCellCache=_value;
}
bool getPrefUseCellCache() const {
return m_prefUseCellCache;
}
void setQuickScan(bool _value) {
m_quickScan = _value;
}
bool getQuickScan() const {
return m_quickScan;
}
void setPrefSize(const int& _value) {
m_prefSize = _value;
}
int getPrefSize() const {
return m_prefSize;
}
void setPrefK3b(bool _value) {
m_prefK3b = _value;
}
bool getPrefK3b() const {
return m_prefK3b;
}
void setPrefMenu(bool _value) {
m_prefMenu = _value;
}
bool getPrefMenu() const {
return m_prefMenu;
}
void setPrefAutoBurn(bool _value) {
m_prefAutoBurn = _value;
}
bool getPrefAutoBurn() const {
return m_prefAutoBurn;
}
void setPrefMp4Codec(const int& _value) {
m_prefMp4Codec = _value;
}
int getPrefMp4Codec() const {
return m_prefMp4Codec;
}
void setPrefMp4AudioCodec(const int& _value) {
m_prefMp4AudioCodec = _value;
}
int getPrefMp4AudioCodec() const {
return m_prefMp4AudioCodec;
}
void setPrefMp4Size(const int& _value) {
m_prefMp4Size = _value;
}
int getPrefMp4Size() const {
return m_prefMp4Size;
}
void setPrefMp4AudioGain(const int& _value) {
m_prefMp4AudioGain = _value;
}
int getPrefMp4AudioGain() const {
return m_prefMp4AudioGain;
}
void setPrefMp4NumberCD(const int& _value) {
m_prefMp4NumberCD = _value;
}
int getPrefMp4NumberCD() const {
return m_prefMp4NumberCD;
}
void setPrefMp4Width(const TQString& _value) {
m_prefMp4Width = _value;
}
TQString getPrefMp4Width() const {
return m_prefMp4Width;
}
void setPrefMp4Height(const TQString& _value) {
m_prefMp4Height = _value;
}
TQString getPrefMp4Height() const {
return m_prefMp4Height;
}
void setPrefMp4AudioBitrate(const TQString& _value) {
m_prefMp4AudioBitrate = _value;
}
TQString getPrefMp4AudioBitrate() const {
return m_prefMp4AudioBitrate;
}
void setPrefMp4VideoBitrate(const TQString& _value) {
m_prefMp4VideoBitrate = _value;
}
TQString getPrefMp4VideoBitrate() const {
return m_prefMp4VideoBitrate;
}
void setCodecAudio(const TQStringList& _value) {
m_codecAudio = _value;
}
TQStringList getCodecAudio() const {
return m_codecAudio;
}
void setCodecLabels(const TQStringList& _value) {
m_codecLabels = _value;
}
TQStringList getCodecLabels() const {
return m_codecLabels;
}
void setCodecVideo(const TQStringList& _value) {
m_codecVideo = _value;
}
TQStringList getCodecVideo() const {
return m_codecVideo;
}
void setCodecLabelsAudio(const TQStringList& _value) {
m_codecLabelsAudio = _value;
}
TQStringList getCodecLabelsAudio() const {
return m_codecLabelsAudio;
}
void setDevices(const TQStringList& _value) {
m_devices = _value;
}
TQStringList getDevices() const {
return m_devices;
}
void setDevicesLabels(const TQStringList& _value) {
m_devicesLabels = _value;
}
TQStringList getDevicesLabels() const {
return m_devicesLabels;
}
void setDevicesIO(const TQStringList& _value) {
m_devicesIO = _value;
}
TQStringList getDevicesIO() const {
return m_devicesIO;
}
void setUseMplayer(bool _value) {
m_useMplayer = _value;
}
bool getUseMplayer() const {
return m_useMplayer;
}
void setUseGL(bool _value) {
m_useGL = _value;
}
bool getUseGL() const {
return m_useGL;
}
void setPrefMp4AspectRatio(bool _value) {
m_prefMp4AspectRatio = _value;
}
bool getPrefMp4AspectRatio() const {
return m_prefMp4AspectRatio;
}
void setPrefMp42Passes(bool _value) {
m_prefMp42Passes = _value;
}
bool getPrefMp42Passes() const {
return m_prefMp42Passes;
}
void setMplayerVout(const int& _value) {
m_MplayerVout = _value;
}
int getMplayerVout() const {
return m_MplayerVout;
}
void setMplayerAout(const int& _value) {
m_MplayerAout = _value;
}
int getMplayerAout() const {
return m_MplayerAout;
}
void setPrefAudioBitrate(int _value) {
m_prefAudioBitrate = _value;
}
int getPrefAudioBitrate() const {
return m_prefAudioBitrate;
}
void setPrefButtonWidth(int _value) {
m_prefButtonWidth = _value;
}
int getPrefButtonWidth() const {
return m_prefButtonWidth;
}
void setPrefButtonHeight(int _value) {
m_prefButtonHeight = _value;
}
int getPrefButtonHeight() const {
return m_prefButtonHeight;
}
void setPrefButtonHiliteColor(const TQColor& _value) {
m_prefButtonHiliteColor = _value;
}
TQColor getPrefButtonHiliteColor() const {
return m_prefButtonHiliteColor;
}
void setPrefButtonTextColor(const TQColor& _value) {
m_prefButtonTextColor = _value;
}
TQColor getPrefButtonTextColor() const {
return m_prefButtonTextColor;
}
void setPrefButtonFont(const TQFont& _value) {
m_prefButtonFont = _value;
}
TQFont getPrefButtonFont() const {
return m_prefButtonFont;
}
};
#endif
|