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
|
/***************************************************************************
kplayersettingsdialog.h
-----------------------
begin : Tue Apr 22 2003
copyright : (C) 2003-2007 by kiriuja
email : http://kplayer.sourceforge.net/email.html
***************************************************************************/
/***************************************************************************
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
***************************************************************************/
#ifndef KPLAYERSETTINGSDIALOG_H
#define KPLAYERSETTINGSDIALOG_H
#include <kdialogbase.h>
#include "kplayersettingsadvanced.h"
#include "kplayersettingsaudio.h"
#include "kplayersettingscontrols.h"
#include "kplayersettingsgeneral.h"
#include "kplayersettingssliders.h"
#include "kplayersettingssubtitles.h"
#include "kplayersettingsvideo.h"
#include "kplayersettingsprogress.h"
#include "kplayersettingsvolume.h"
#include "kplayersettingscontrast.h"
#include "kplayersettingsbrightness.h"
#include "kplayersettingshue.h"
#include "kplayersettingssaturation.h"
#include "kplayerproperties.h"
TQString listEntry (TQComboBox* combo, bool hasDefault = false);
class KPlayerSettingsAdvanced : public KPlayerSettingsAdvancedPage
{
TQ_OBJECT
public:
KPlayerSettingsAdvanced (TQWidget* parent = 0, const char* name = 0);
KPlayerEngine* engine (void)
{ return KPlayerEngine::engine(); }
KPlayerConfiguration* configuration (void)
{ return engine() -> configuration(); }
void load (void);
void save (void);
void refreshLists (void);
public slots:
void refresh (void);
protected:
void loadLists (void);
virtual void cacheChanged (int);
};
class KPlayerSettingsAudio : public KPlayerSettingsAudioPage
{
TQ_OBJECT
public:
KPlayerSettingsAudio (TQWidget* parent = 0, const char* name = 0);
KPlayerEngine* engine (void)
{ return KPlayerEngine::engine(); }
KPlayerConfiguration* configuration (void)
{ return engine() -> configuration(); }
void load (void);
void save (void);
public slots:
void refresh (void);
protected slots:
/** Processes an amixer output line. */
void amixerOutput (KPlayerLineOutputProcess*, char*, int);
/** Finishes refreshing ALSA mixer channel list. */
void amixerExited (TDEProcess*);
protected:
void loadLists (void);
void runAmixer (void);
void defaultAlsaChannels (void);
virtual void driverChanged (int);
virtual void deviceChanged (const TQString&);
virtual void mixerChanged (const TQString&);
virtual void softvolChanged (bool);
/** Last selected driver. */
TQString m_driver;
/** Last entered device. */
TQString m_device;
/** Last software volume setting. */
bool m_softvol;
/** Amixer tracking flags. */
bool m_amixer_running, m_rerun_amixer;
};
class KPlayerSettingsControls : public KPlayerSettingsControlsPage
{
TQ_OBJECT
public:
KPlayerSettingsControls (TQWidget* parent = 0, const char* name = 0);
KPlayerConfiguration* configuration (void)
{ return KPlayerEngine::engine() -> configuration(); }
void load (void);
void save (void);
protected:
virtual void rememberSizeChanged (bool);
};
class KPlayerSettingsSliders : public KPlayerSettingsSlidersPage
{
TQ_OBJECT
public:
KPlayerSettingsSliders (TQWidget* parent = 0, const char* name = 0);
KPlayerConfiguration* configuration (void)
{ return KPlayerEngine::engine() -> configuration(); }
void load (void);
void save (void);
protected:
virtual void showMarksChanged (bool);
};
class KPlayerSettingsGeneral : public KPlayerSettingsGeneralPage
{
TQ_OBJECT
public:
KPlayerSettingsGeneral (TQWidget* parent = 0, const char* name = 0);
KPlayerConfiguration* configuration (void)
{ return KPlayerEngine::engine() -> configuration(); }
void load (void);
void save (void);
protected:
void resizeAutomaticallyChanged (bool);
};
class KPlayerSettingsSubtitles : public KPlayerSettingsSubtitlesPage
{
TQ_OBJECT
public:
KPlayerSettingsSubtitles (TQWidget* parent = 0, const char* name = 0);
KPlayerConfiguration* configuration (void)
{ return KPlayerEngine::engine() -> configuration(); }
void loadLists (void);
void load (void);
void save (void);
protected:
virtual void widthSliderChanged (int);
virtual void widthEditChanged (const TQString&);
virtual void outlineSliderChanged (int);
virtual void outlineEditChanged (const TQString&);
virtual void autoexpandChanged (bool);
virtual void autoloadSubtitlesChanged (bool);
/** Recursion prevention. */
bool m_recursion;
/** Leave focus alone. */
bool m_initialized;
};
class KPlayerSettingsVideo : public KPlayerSettingsVideoPage
{
TQ_OBJECT
public:
KPlayerSettingsVideo (TQWidget* parent = 0, const char* name = 0);
KPlayerEngine* engine (void)
{ return KPlayerEngine::engine(); }
KPlayerConfiguration* configuration (void)
{ return engine() -> configuration(); }
void load (void);
void save (void);
public slots:
void refresh (void);
protected:
void loadLists (void);
virtual void driverChanged (int);
};
class KPlayerSettingsProgress : public KPlayerSettingsProgressPage
{
TQ_OBJECT
public:
KPlayerSettingsProgress (TQWidget* parent = 0, const char* name = 0);
KPlayerConfiguration* configuration (void)
{ return KPlayerEngine::engine() -> configuration(); }
void load (void);
void save (void);
};
class KPlayerSettingsVolume : public KPlayerSettingsVolumePage
{
TQ_OBJECT
public:
KPlayerSettingsVolume (TQWidget* parent = 0, const char* name = 0);
KPlayerConfiguration* configuration (void)
{ return KPlayerEngine::engine() -> configuration(); }
void load (void);
void save (void);
protected:
virtual void resetChanged (bool);
};
class KPlayerSettingsContrast : public KPlayerSettingsContrastPage
{
TQ_OBJECT
public:
KPlayerSettingsContrast (TQWidget* parent = 0, const char* name = 0);
KPlayerConfiguration* configuration (void)
{ return KPlayerEngine::engine() -> configuration(); }
void load (void);
void save (void);
protected:
virtual void resetChanged (bool);
};
class KPlayerSettingsBrightness : public KPlayerSettingsBrightnessPage
{
TQ_OBJECT
public:
KPlayerSettingsBrightness (TQWidget* parent = 0, const char* name = 0);
KPlayerConfiguration* configuration (void)
{ return KPlayerEngine::engine() -> configuration(); }
void load (void);
void save (void);
protected:
virtual void resetChanged (bool);
};
class KPlayerSettingsHue : public KPlayerSettingsHuePage
{
TQ_OBJECT
public:
KPlayerSettingsHue (TQWidget* parent = 0, const char* name = 0);
KPlayerConfiguration* configuration (void)
{ return KPlayerEngine::engine() -> configuration(); }
void load (void);
void save (void);
protected:
virtual void resetChanged (bool);
};
class KPlayerSettingsSaturation : public KPlayerSettingsSaturationPage
{
TQ_OBJECT
public:
KPlayerSettingsSaturation (TQWidget* parent = 0, const char* name = 0);
KPlayerConfiguration* configuration (void)
{ return KPlayerEngine::engine() -> configuration(); }
void load (void);
void save (void);
protected:
virtual void resetChanged (bool);
};
/** The KPlayer settings dialog.
*@author kiriuja
*/
class KPlayerSettingsDialog : public KDialogBase
{
TQ_OBJECT
public:
KPlayerSettingsDialog (TQWidget*);
virtual ~KPlayerSettingsDialog();
/** Configuration. */
KPlayerConfiguration* configuration (void) const
{ return KPlayerEngine::engine() -> configuration(); }
protected:
/*virtual void moveEvent (TQMoveEvent*);
virtual void resizeEvent (TQResizeEvent*);
virtual void showEvent (TQShowEvent*);
virtual void windowActivationChange (bool);
bool m_initial_move;*/
KPlayerSettingsAdvanced* m_advanced;
KPlayerSettingsAudio* m_audio;
KPlayerSettingsControls* m_controls;
KPlayerSettingsGeneral* m_general;
KPlayerSettingsSliders* m_sliders;
KPlayerSettingsSubtitles* m_subtitles;
KPlayerSettingsVideo* m_video;
KPlayerSettingsProgress* m_progress;
KPlayerSettingsVolume* m_volume;
KPlayerSettingsContrast* m_contrast;
KPlayerSettingsBrightness* m_brightness;
KPlayerSettingsHue* m_hue;
KPlayerSettingsSaturation* m_saturation;
virtual void slotOk (void);
virtual void slotApply (void);
virtual void slotDefault (void);
protected slots:
void pageAboutToShow (TQWidget*);
};
#endif
|