-rw-r--r-- | noncore/settings/sound/soundsettings.cpp | 121 | ||||
-rw-r--r-- | noncore/settings/sound/soundsettings.h | 6 | ||||
-rw-r--r-- | noncore/settings/sound/soundsettingsbase.cpp | 3 | ||||
-rw-r--r-- | noncore/settings/sound/soundsettingsbase.h | 8 |
4 files changed, 82 insertions, 56 deletions
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp index ed601cf..40b8b87 100644 --- a/noncore/settings/sound/soundsettings.cpp +++ b/noncore/settings/sound/soundsettings.cpp | |||
@@ -11,45 +11,47 @@ | |||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #include "soundsettings.h" | 21 | #include "soundsettings.h" |
22 | 22 | ||
23 | #include <qpe/qpeapplication.h> | ||
23 | #include <qpe/config.h> | 24 | #include <qpe/config.h> |
24 | #include <qpe/qcopenvelope_qws.h> | 25 | #include <qpe/qcopenvelope_qws.h> |
25 | #include <qpe/storage.h> | 26 | #include <qpe/storage.h> |
26 | 27 | ||
27 | #include <qapplication.h> | 28 | #include <qapplication.h> |
28 | #include <qslider.h> | 29 | #include <qslider.h> |
29 | #include <qcheckbox.h> | 30 | #include <qcheckbox.h> |
30 | #include <qlineedit.h> | 31 | #include <qlineedit.h> |
31 | #include <qcombobox.h> | 32 | #include <qcombobox.h> |
32 | 33 | ||
33 | 34 | ||
34 | SoundSettings::SoundSettings( QWidget* parent, const char* name, WFlags fl ) | 35 | SoundSettings::SoundSettings( QWidget* parent, const char* name, WFlags fl ) |
35 | : SoundSettingsBase( parent, name, TRUE, fl ) | 36 | : SoundSettingsBase( parent, name, TRUE, fl ) |
36 | { | 37 | { |
37 | Config config( "qpe"); | 38 | Config config( "qpe"); |
38 | config.setGroup( "Volume" ); | 39 | config.setGroup( "Volume" ); |
39 | volume->setValue(100-config.readNumEntry("VolumePercent")); | 40 | volume->setValue(100-config.readNumEntry("VolumePercent")); |
40 | mic->setValue(100-config.readNumEntry("Mic")); | 41 | mic->setValue(100-config.readNumEntry("Mic")); |
41 | // touchsound->setChecked(config.readBoolEntry("TouchSound")); | 42 | // touchsound->setChecked(config.readBoolEntry("TouchSound")); |
42 | // keysound->setChecked(config.readBoolEntry("KeySound")); | 43 | // keysound->setChecked(config.readBoolEntry("KeySound")); |
43 | Config cfg("Vmemo"); | 44 | Config cfg("Vmemo"); |
45 | connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); | ||
44 | AlertCheckBox->setChecked(cfg.readBoolEntry("Alert")); | 46 | AlertCheckBox->setChecked(cfg.readBoolEntry("Alert")); |
45 | 47 | ||
46 | cfg.setGroup("Record"); | 48 | cfg.setGroup("Record"); |
47 | int rate=config.readNumEntry("SampleRate", 22050); | 49 | int rate=config.readNumEntry("SampleRate", 22050); |
48 | if(rate == 8000) | 50 | if(rate == 8000) |
49 | sampleRate->setCurrentItem(0); | 51 | sampleRate->setCurrentItem(0); |
50 | else if(rate == 11025) | 52 | else if(rate == 11025) |
51 | sampleRate->setCurrentItem(1); | 53 | sampleRate->setCurrentItem(1); |
52 | else if(rate == 22050) | 54 | else if(rate == 22050) |
53 | sampleRate->setCurrentItem(2); | 55 | sampleRate->setCurrentItem(2); |
54 | else if(rate == 33075) | 56 | else if(rate == 33075) |
55 | sampleRate->setCurrentItem(3); | 57 | sampleRate->setCurrentItem(3); |
@@ -59,73 +61,74 @@ SoundSettings::SoundSettings( QWidget* parent, const char* name, WFlags fl ) | |||
59 | stereoCheckBox->setChecked(cfg.readNumEntry("Stereo", 0)); | 61 | stereoCheckBox->setChecked(cfg.readNumEntry("Stereo", 0)); |
60 | sixteenBitCheckBox->setChecked(cfg.readNumEntry("SixteenBit", 1)); | 62 | sixteenBitCheckBox->setChecked(cfg.readNumEntry("SixteenBit", 1)); |
61 | 63 | ||
62 | updateStorageCombo(); | 64 | updateStorageCombo(); |
63 | connect(volume, SIGNAL(valueChanged(int)), this, SLOT(setVolume(int))); | 65 | connect(volume, SIGNAL(valueChanged(int)), this, SLOT(setVolume(int))); |
64 | connect(mic, SIGNAL(valueChanged(int)), this, SLOT(setMic(int))); | 66 | connect(mic, SIGNAL(valueChanged(int)), this, SLOT(setMic(int))); |
65 | connect(qApp, SIGNAL( volumeChanged(bool) ), this, SLOT( volumeChanged(bool) ) ); | 67 | connect(qApp, SIGNAL( volumeChanged(bool) ), this, SLOT( volumeChanged(bool) ) ); |
66 | connect(qApp, SIGNAL( micChanged(bool) ), this, SLOT ( micChanged(bool) ) ); | 68 | connect(qApp, SIGNAL( micChanged(bool) ), this, SLOT ( micChanged(bool) ) ); |
67 | connect( LocationComboBox,SIGNAL(activated(const QString &)),this,SLOT( setLocation(const QString &))); | 69 | connect( LocationComboBox,SIGNAL(activated(const QString &)),this,SLOT( setLocation(const QString &))); |
68 | // connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); | 70 | // connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); |
69 | } | 71 | } |
70 | 72 | ||
71 | void SoundSettings::reject() | 73 | // void SoundSettings::reject() |
72 | { | 74 | // { |
73 | qDebug("here"); | 75 | // qDebug("reject"); |
74 | Config config( "qpe"); | 76 | // Config config( "qpe"); |
75 | config.setGroup( "Volume"); | 77 | // config.setGroup( "Volume"); |
76 | 78 | ||
77 | setVolume(100-config.readNumEntry("VolumePercent")); | 79 | // setVolume(100-config.readNumEntry("VolumePercent")); |
78 | setMic(100-config.readNumEntry("Mic")); | 80 | // setMic(100-config.readNumEntry("Mic")); |
79 | 81 | ||
80 | // config.setGroup("Record"); | 82 | // // config.setGroup("Record"); |
81 | // int rate=config.readNumEntry("SampleRate", 11025); | 83 | // // int rate=config.readNumEntry("SampleRate", 11025); |
82 | // if(rate == 11025) | 84 | // // if(rate == 11025) |
83 | // sampleRate->setCurrentItem(0); | 85 | // // sampleRate->setCurrentItem(0); |
84 | // else if(rate == 22050) | 86 | // // else if(rate == 22050) |
85 | // sampleRate->setCurrentItem(1); | 87 | // // sampleRate->setCurrentItem(1); |
86 | // else if(rate == 32000) | 88 | // // else if(rate == 32000) |
87 | // sampleRate->setCurrentItem(2); | 89 | // // sampleRate->setCurrentItem(2); |
88 | // else if(rate==44100) | 90 | // // else if(rate==44100) |
89 | // sampleRate->setCurrentItem(3); | 91 | // // sampleRate->setCurrentItem(3); |
90 | // stereoCheckBox->setChecked(config.readNumEntry("Stereo", 0)); | 92 | // // stereoCheckBox->setChecked(config.readNumEntry("Stereo", 0)); |
91 | // sixteenBitCheckBox->setChecked(config.readNumEntry("SixteenBit", 0)); | 93 | // // sixteenBitCheckBox->setChecked(config.readNumEntry("SixteenBit", 0)); |
92 | ::exit(-1); | 94 | // qDebug("QDialog::reject();"); |
93 | // QDialog::reject(); | 95 | // ::exit(-1); |
94 | } | 96 | // } |
95 | 97 | ||
96 | void SoundSettings::accept() | 98 | // void SoundSettings::accept() |
97 | { | 99 | // { |
98 | Config config( "qpe" ); | 100 | // qDebug("accept"); |
99 | config.setGroup( "Volume" ); | 101 | // Config config( "qpe" ); |
100 | config.writeEntry("VolumePercent",100-volume->value()); | 102 | // config.setGroup( "Volume" ); |
101 | config.writeEntry("Mic",100-mic->value()); | 103 | // config.writeEntry("VolumePercent",100-volume->value()); |
102 | // config.writeEntry("TouchSound",touchsound->isChecked()); | 104 | // config.writeEntry("Mic",100-mic->value()); |
103 | // config.writeEntry("KeySound",keysound->isChecked()); | 105 | // // config.writeEntry("TouchSound",touchsound->isChecked()); |
104 | 106 | // // config.writeEntry("KeySound",keysound->isChecked()); | |
105 | Config cfg("Vmemo"); | 107 | |
106 | cfg.writeEntry("Alert",AlertCheckBox->isChecked()); | 108 | // Config cfg("Vmemo"); |
107 | setVolume(volume->value()); | 109 | // cfg.writeEntry("Alert",AlertCheckBox->isChecked()); |
108 | setMic(mic->value()); | 110 | // setVolume(volume->value()); |
109 | 111 | // setMic(mic->value()); | |
110 | cfg.setGroup("Record"); | 112 | |
111 | cfg.writeEntry("SampleRate",sampleRate->currentText()); | 113 | // cfg.setGroup("Record"); |
112 | cfg.writeEntry("Stereo",stereoCheckBox->isChecked()); | 114 | // cfg.writeEntry("SampleRate",sampleRate->currentText()); |
113 | cfg.writeEntry("SixteenBit",sixteenBitCheckBox->isChecked()); | 115 | // cfg.writeEntry("Stereo",stereoCheckBox->isChecked()); |
114 | // Config cfg( "VMemo" ); | 116 | // cfg.writeEntry("SixteenBit",sixteenBitCheckBox->isChecked()); |
115 | // cfg.setGroup( "Defaults" ); | 117 | // // Config cfg( "VMemo" ); |
116 | // cfg.writeEntry( "hideIcon", HideIcon_CheckBox->isChecked()); | 118 | // // cfg.setGroup( "Defaults" ); |
117 | // QDialog::accept(); | 119 | // // cfg.writeEntry( "hideIcon", HideIcon_CheckBox->isChecked()); |
118 | ::exit(0); | 120 | // qDebug("QDialog::accept();"); |
119 | } | 121 | // ::exit(0); |
122 | // } | ||
120 | 123 | ||
121 | void SoundSettings::setVolume(int v) | 124 | void SoundSettings::setVolume(int v) |
122 | { | 125 | { |
123 | Config config( "qpe" ); | 126 | Config config( "qpe" ); |
124 | config.setGroup( "Volume" ); | 127 | config.setGroup( "Volume" ); |
125 | config.writeEntry("VolumePercent",100-v); | 128 | config.writeEntry("VolumePercent",100-v); |
126 | #if ( defined Q_WS_QWS || defined(_WS_QWS_) ) && !defined(QT_NO_COP) | 129 | #if ( defined Q_WS_QWS || defined(_WS_QWS_) ) && !defined(QT_NO_COP) |
127 | QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << FALSE; | 130 | QCopEnvelope( "QPE/System", "volumeChange(bool)" ) << FALSE; |
128 | #endif | 131 | #endif |
129 | } | 132 | } |
130 | 133 | ||
131 | void SoundSettings::setMic(int m) | 134 | void SoundSettings::setMic(int m) |
@@ -166,12 +169,32 @@ void SoundSettings::updateStorageCombo() { | |||
166 | list << name + ": " +path; | 169 | list << name + ": " +path; |
167 | // if(dit.current()->file().find(path) != -1 ) storage=name; | 170 | // if(dit.current()->file().find(path) != -1 ) storage=name; |
168 | } | 171 | } |
169 | LocationComboBox->insertStringList(list); | 172 | LocationComboBox->insertStringList(list); |
170 | } | 173 | } |
171 | 174 | ||
172 | void SoundSettings::setLocation(const QString & string) { | 175 | void SoundSettings::setLocation(const QString & string) { |
173 | Config config( "Vmemo" ); | 176 | Config config( "Vmemo" ); |
174 | config.setGroup( "System" ); | 177 | config.setGroup( "System" ); |
175 | config.writeEntry("RecLocation",string); | 178 | config.writeEntry("RecLocation",string); |
176 | 179 | ||
177 | } | 180 | } |
181 | |||
182 | void SoundSettings::cleanUp() { | ||
183 | qDebug("cleanup"); | ||
184 | Config config( "qpe" ); | ||
185 | config.setGroup( "Volume" ); | ||
186 | config.writeEntry("VolumePercent",100-volume->value()); | ||
187 | config.writeEntry("Mic",100-mic->value()); | ||
188 | // config.writeEntry("TouchSound",touchsound->isChecked()); | ||
189 | // config.writeEntry("KeySound",keysound->isChecked()); | ||
190 | |||
191 | Config cfg("Vmemo"); | ||
192 | cfg.writeEntry("Alert",AlertCheckBox->isChecked()); | ||
193 | setVolume(volume->value()); | ||
194 | setMic(mic->value()); | ||
195 | |||
196 | cfg.setGroup("Record"); | ||
197 | cfg.writeEntry("SampleRate",sampleRate->currentText()); | ||
198 | cfg.writeEntry("Stereo",stereoCheckBox->isChecked()); | ||
199 | cfg.writeEntry("SixteenBit",sixteenBitCheckBox->isChecked()); | ||
200 | } | ||
diff --git a/noncore/settings/sound/soundsettings.h b/noncore/settings/sound/soundsettings.h index aec7614..cbec724 100644 --- a/noncore/settings/sound/soundsettings.h +++ b/noncore/settings/sound/soundsettings.h | |||
@@ -23,29 +23,29 @@ | |||
23 | 23 | ||
24 | #include "soundsettingsbase.h" | 24 | #include "soundsettingsbase.h" |
25 | 25 | ||
26 | 26 | ||
27 | class SoundSettings : public SoundSettingsBase | 27 | class SoundSettings : public SoundSettingsBase |
28 | { | 28 | { |
29 | Q_OBJECT | 29 | Q_OBJECT |
30 | 30 | ||
31 | public: | 31 | public: |
32 | SoundSettings( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 32 | SoundSettings( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
33 | 33 | ||
34 | protected: | 34 | protected: |
35 | void accept(); | 35 | /* void accept(); */ |
36 | void reject(); | 36 | /* void reject(); */ |
37 | void updateStorageCombo(); | 37 | void updateStorageCombo(); |
38 | 38 | ||
39 | private slots: | 39 | private slots: |
40 | void setLocation(const QString &); | 40 | void setLocation(const QString &); |
41 | 41 | void cleanUp(); | |
42 | void setVolume(int); | 42 | void setVolume(int); |
43 | void setMic(int); | 43 | void setMic(int); |
44 | 44 | ||
45 | void volumeChanged( bool muted ); | 45 | void volumeChanged( bool muted ); |
46 | void micChanged( bool muted ); | 46 | void micChanged( bool muted ); |
47 | }; | 47 | }; |
48 | 48 | ||
49 | 49 | ||
50 | #endif // SOUNDSETTINGS_H | 50 | #endif // SOUNDSETTINGS_H |
51 | 51 | ||
diff --git a/noncore/settings/sound/soundsettingsbase.cpp b/noncore/settings/sound/soundsettingsbase.cpp index f86db78..727d202 100644 --- a/noncore/settings/sound/soundsettingsbase.cpp +++ b/noncore/settings/sound/soundsettingsbase.cpp | |||
@@ -4,24 +4,25 @@ | |||
4 | ** Created: Sun May 19 12:11:35 2002 | 4 | ** Created: Sun May 19 12:11:35 2002 |
5 | ** by: The User Interface Compiler (uic) | 5 | ** by: The User Interface Compiler (uic) |
6 | ** | 6 | ** |
7 | ** WARNING! All changes made in this file will be lost! | 7 | ** WARNING! All changes made in this file will be lost! |
8 | ****************************************************************************/ | 8 | ****************************************************************************/ |
9 | #include "soundsettingsbase.h" | 9 | #include "soundsettingsbase.h" |
10 | 10 | ||
11 | #include <qcheckbox.h> | 11 | #include <qcheckbox.h> |
12 | #include <qcombobox.h> | 12 | #include <qcombobox.h> |
13 | #include <qgroupbox.h> | 13 | #include <qgroupbox.h> |
14 | #include <qmainwindow.h> | 14 | #include <qmainwindow.h> |
15 | 15 | ||
16 | #include <qpe/qpeapplication.h> | ||
16 | #include <qlabel.h> | 17 | #include <qlabel.h> |
17 | #include <qpushbutton.h> | 18 | #include <qpushbutton.h> |
18 | #include <qslider.h> | 19 | #include <qslider.h> |
19 | #include <qlayout.h> | 20 | #include <qlayout.h> |
20 | #include <qvariant.h> | 21 | #include <qvariant.h> |
21 | #include <qtooltip.h> | 22 | #include <qtooltip.h> |
22 | #include <qwhatsthis.h> | 23 | #include <qwhatsthis.h> |
23 | #include <qimage.h> | 24 | #include <qimage.h> |
24 | #include <qpixmap.h> | 25 | #include <qpixmap.h> |
25 | 26 | ||
26 | static const char* const image0_data[] = { | 27 | static const char* const image0_data[] = { |
27 | "16 16 3 1", | 28 | "16 16 3 1", |
@@ -75,24 +76,25 @@ static const char* const image1_data[] = { | |||
75 | * The dialog will by default be modeless, unless you set 'modal' to | 76 | * The dialog will by default be modeless, unless you set 'modal' to |
76 | * TRUE to construct a modal dialog. | 77 | * TRUE to construct a modal dialog. |
77 | */ | 78 | */ |
78 | SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool modal, WFlags fl ) | 79 | SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool modal, WFlags fl ) |
79 | : QMainWindow( parent, name, fl ) | 80 | : QMainWindow( parent, name, fl ) |
80 | { | 81 | { |
81 | QPixmap image0( ( const char** ) image0_data ); | 82 | QPixmap image0( ( const char** ) image0_data ); |
82 | QPixmap image1( ( const char** ) image1_data ); | 83 | QPixmap image1( ( const char** ) image1_data ); |
83 | if ( !name ) | 84 | if ( !name ) |
84 | setName( "SoundSettingsBase" ); | 85 | setName( "SoundSettingsBase" ); |
85 | resize( 255, 301 ); | 86 | resize( 255, 301 ); |
86 | setCaption( tr( "Vmemo Settings" ) ); | 87 | setCaption( tr( "Vmemo Settings" ) ); |
88 | |||
87 | SoundSettingsBaseLayout = new QGridLayout( this ); | 89 | SoundSettingsBaseLayout = new QGridLayout( this ); |
88 | SoundSettingsBaseLayout->setSpacing( 6 ); | 90 | SoundSettingsBaseLayout->setSpacing( 6 ); |
89 | SoundSettingsBaseLayout->setMargin( 11 ); | 91 | SoundSettingsBaseLayout->setMargin( 11 ); |
90 | 92 | ||
91 | GroupBox3 = new QGroupBox( this, "GroupBox3" ); | 93 | GroupBox3 = new QGroupBox( this, "GroupBox3" ); |
92 | GroupBox3->setFrameShape( QGroupBox::Box ); | 94 | GroupBox3->setFrameShape( QGroupBox::Box ); |
93 | GroupBox3->setFrameShadow( QGroupBox::Sunken ); | 95 | GroupBox3->setFrameShadow( QGroupBox::Sunken ); |
94 | GroupBox3->setTitle( tr( "Levels" ) ); | 96 | GroupBox3->setTitle( tr( "Levels" ) ); |
95 | GroupBox3->setColumnLayout(0, Qt::Vertical ); | 97 | GroupBox3->setColumnLayout(0, Qt::Vertical ); |
96 | GroupBox3->layout()->setSpacing( 0 ); | 98 | GroupBox3->layout()->setSpacing( 0 ); |
97 | GroupBox3->layout()->setMargin( 0 ); | 99 | GroupBox3->layout()->setMargin( 0 ); |
98 | GroupBox3Layout = new QVBoxLayout( GroupBox3->layout() ); | 100 | GroupBox3Layout = new QVBoxLayout( GroupBox3->layout() ); |
@@ -242,13 +244,12 @@ SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool m | |||
242 | Layout12_2->addItem( spacer_9 ); | 244 | Layout12_2->addItem( spacer_9 ); |
243 | 245 | ||
244 | SoundSettingsBaseLayout->addLayout( Layout12_2, 0, 1 ); | 246 | SoundSettingsBaseLayout->addLayout( Layout12_2, 0, 1 ); |
245 | } | 247 | } |
246 | 248 | ||
247 | /* | 249 | /* |
248 | * Destroys the object and frees any allocated resources | 250 | * Destroys the object and frees any allocated resources |
249 | */ | 251 | */ |
250 | SoundSettingsBase::~SoundSettingsBase() | 252 | SoundSettingsBase::~SoundSettingsBase() |
251 | { | 253 | { |
252 | // no need to delete child widgets, Qt does it all for us | 254 | // no need to delete child widgets, Qt does it all for us |
253 | } | 255 | } |
254 | |||
diff --git a/noncore/settings/sound/soundsettingsbase.h b/noncore/settings/sound/soundsettingsbase.h index e65c813..7a939ea 100644 --- a/noncore/settings/sound/soundsettingsbase.h +++ b/noncore/settings/sound/soundsettingsbase.h | |||
@@ -2,62 +2,64 @@ | |||
2 | ** Form interface generated from reading ui file 'soundsettingsbase.ui' | 2 | ** Form interface generated from reading ui file 'soundsettingsbase.ui' |
3 | ** | 3 | ** |
4 | ** Created: Thu May 23 11:23:38 2002 | 4 | ** Created: Thu May 23 11:23:38 2002 |
5 | ** by: The User Interface Compiler (uic) | 5 | ** by: The User Interface Compiler (uic) |
6 | ** | 6 | ** |
7 | ** WARNING! All changes made in this file will be lost! | 7 | ** WARNING! All changes made in this file will be lost! |
8 | ****************************************************************************/ | 8 | ****************************************************************************/ |
9 | #ifndef SOUNDSETTINGSBASE_H | 9 | #ifndef SOUNDSETTINGSBASE_H |
10 | #define SOUNDSETTINGSBASE_H | 10 | #define SOUNDSETTINGSBASE_H |
11 | 11 | ||
12 | #include <qvariant.h> | 12 | #include <qvariant.h> |
13 | #include <qdialog.h> | 13 | #include <qdialog.h> |
14 | #include <qmainwindow.h> | ||
15 | |||
14 | class QVBoxLayout; | 16 | class QVBoxLayout; |
15 | class QHBoxLayout; | 17 | class QHBoxLayout; |
16 | class QGridLayout; | 18 | class QGridLayout; |
17 | class QCheckBox; | 19 | class QCheckBox; |
18 | class QComboBox; | 20 | class QComboBox; |
19 | class QGroupBox; | 21 | class QGroupBox; |
20 | class QLabel; | 22 | class QLabel; |
21 | class QSlider; | 23 | class QSlider; |
22 | 24 | ||
23 | class SoundSettingsBase : public QDialog | 25 | class SoundSettingsBase : public QMainWindow |
24 | { | 26 | { |
25 | Q_OBJECT | 27 | Q_OBJECT |
26 | 28 | ||
27 | public: | 29 | public: |
28 | SoundSettingsBase( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); | 30 | SoundSettingsBase( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); |
29 | ~SoundSettingsBase(); | 31 | ~SoundSettingsBase(); |
30 | 32 | ||
31 | QGroupBox* GroupBox3; | 33 | QGroupBox* GroupBox3; |
32 | QLabel* PixmapLabel1_2; | 34 | QLabel* PixmapLabel1_2; |
33 | QLabel* TextLabel1_2; | 35 | QLabel* TextLabel1_2; |
34 | QLabel* volLabel; | 36 | QLabel* volLabel; |
35 | QLabel* micLabel; | 37 | QLabel* micLabel; |
36 | QSlider* volume; | 38 | QSlider* volume; |
37 | QSlider* mic; | 39 | QSlider* mic; |
38 | QLabel* PixmapLabel2_2; | 40 | QLabel* PixmapLabel2_2; |
39 | QLabel* TextLabel2_2; | 41 | QLabel* TextLabel2_2; |
40 | QGroupBox* GroupBox1; | 42 | QGroupBox* GroupBox1; |
41 | QLabel* sampleRateLabel; | 43 | QLabel* sampleRateLabel; |
42 | QComboBox* sampleRate; | 44 | QComboBox* sampleRate; |
43 | QCheckBox* stereoCheckBox; | 45 | QCheckBox* stereoCheckBox; |
44 | QCheckBox* sixteenBitCheckBox; | 46 | QCheckBox* sixteenBitCheckBox; |
45 | QCheckBox* AlertCheckBox; | 47 | QCheckBox* AlertCheckBox; |
46 | QLabel* TextLabel1; | 48 | QLabel* TextLabel1; |
47 | QComboBox* LocationComboBox; | 49 | QComboBox* LocationComboBox; |
48 | /* QCheckBox* touchsound; */ | ||
49 | /* QCheckBox* keysound; */ | ||
50 | 50 | ||
51 | protected: | 51 | protected: |
52 | QGridLayout* SoundSettingsBaseLayout; | 52 | QGridLayout* SoundSettingsBaseLayout; |
53 | QVBoxLayout* GroupBox3Layout; | 53 | QVBoxLayout* GroupBox3Layout; |
54 | QVBoxLayout* Layout10; | 54 | QVBoxLayout* Layout10; |
55 | QHBoxLayout* Layout16; | 55 | QHBoxLayout* Layout16; |
56 | QHBoxLayout* Layout13; | 56 | QHBoxLayout* Layout13; |
57 | QHBoxLayout* Layout12; | 57 | QHBoxLayout* Layout12; |
58 | QHBoxLayout* Layout17; | 58 | QHBoxLayout* Layout17; |
59 | QVBoxLayout* Layout12_2; | 59 | QVBoxLayout* Layout12_2; |
60 | QVBoxLayout* Layout11; | 60 | QVBoxLayout* Layout11; |
61 | protected slots: | ||
62 | |||
61 | }; | 63 | }; |
62 | 64 | ||
63 | #endif // SOUNDSETTINGSBASE_H | 65 | #endif // SOUNDSETTINGSBASE_H |