summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sound/soundsettingsbase.cpp14
-rw-r--r--noncore/settings/sound/soundsettingsbase.h4
2 files changed, 9 insertions, 9 deletions
diff --git a/noncore/settings/sound/soundsettingsbase.cpp b/noncore/settings/sound/soundsettingsbase.cpp
index 563b438..7c2123a 100644
--- a/noncore/settings/sound/soundsettingsbase.cpp
+++ b/noncore/settings/sound/soundsettingsbase.cpp
@@ -50,65 +50,65 @@ static const char* const image1_data[] = {
50"a c #ff0000", 50"a c #ff0000",
51"................", 51"................",
52"................", 52"................",
53"................", 53"................",
54".....#..........", 54".....#..........",
55"....##..........", 55"....##..........",
56"...###...a...a..", 56"...###...a...a..",
57"######..aaa.aaa.", 57"######..aaa.aaa.",
58"######...aaaaa..", 58"######...aaaaa..",
59"######....aaa...", 59"######....aaa...",
60"######...aaaaa..", 60"######...aaaaa..",
61"######..aaa.aaa.", 61"######..aaa.aaa.",
62"...###...a...a..", 62"...###...a...a..",
63"....##..........", 63"....##..........",
64".....#..........", 64".....#..........",
65"................", 65"................",
66"................"}; 66"................"};
67 67
68 68
69/* 69/*
70 * Constructs a SoundSettingsBase which is a child of 'parent', with the 70 * Constructs a SoundSettingsBase which is a child of 'parent', with the
71 * name 'name' and widget flags set to 'f' 71 * name 'name' and widget flags set to 'f'
72 * 72 *
73 * The dialog will by default be modeless, unless you set 'modal' to 73 * The dialog will by default be modeless, unless you set 'modal' to
74 * TRUE to construct a modal dialog. 74 * TRUE to construct a modal dialog.
75 */ 75 */
76SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool modal, WFlags fl ) 76SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool modal, WFlags fl )
77 : QDialog( parent, name, modal, fl ) 77 : QDialog( parent, name, modal, fl )
78{ 78{
79 QPixmap image0( ( const char** ) image0_data ); 79 QPixmap image0( ( const char** ) image0_data );
80 QPixmap image1( ( const char** ) image1_data ); 80 QPixmap image1( ( const char** ) image1_data );
81 if ( !name ) 81 if ( !name )
82 setName( "SoundSettingsBase" ); 82 setName( "SoundSettingsBase" );
83 resize( 255, 301 ); 83 resize( 255, 301 );
84 setCaption( tr( "Sound Settings" ) ); 84 setCaption( tr( "Sound Settings" ) );
85 SoundSettingsBaseLayout = new QGridLayout( this ); 85 SoundSettingsBaseLayout = new QGridLayout( this );
86 SoundSettingsBaseLayout->setSpacing( 6 ); 86 SoundSettingsBaseLayout->setSpacing( 6 );
87 SoundSettingsBaseLayout->setMargin( 11 ); 87 SoundSettingsBaseLayout->setMargin( 11 );
88 88
89 GroupBox3 = new QGroupBox( this, "GroupBox3" ); 89 GroupBox3 = new QGroupBox( this, "GroupBox3" );
90 GroupBox3->setFrameShape( QGroupBox::Box ); 90 GroupBox3->setFrameShape( QGroupBox::Box );
91 GroupBox3->setFrameShadow( QGroupBox::Sunken ); 91 GroupBox3->setFrameShadow( QGroupBox::Sunken );
92 GroupBox3->setTitle( tr( "Levels" ) ); 92 GroupBox3->setTitle( tr( "Levels" ) );
93 GroupBox3->setColumnLayout(0, Qt::Vertical ); 93 GroupBox3->setColumnLayout(0, Qt::Vertical );
94 GroupBox3->layout()->setSpacing( 0 ); 94 GroupBox3->layout()->setSpacing( 0 );
95 GroupBox3->layout()->setMargin( 0 ); 95 GroupBox3->layout()->setMargin( 0 );
96 GroupBox3Layout = new QVBoxLayout( GroupBox3->layout() ); 96 GroupBox3Layout = new QVBoxLayout( GroupBox3->layout() );
97 GroupBox3Layout->setAlignment( Qt::AlignTop ); 97 GroupBox3Layout->setAlignment( Qt::AlignTop );
98 GroupBox3Layout->setSpacing( 6 ); 98 GroupBox3Layout->setSpacing( 6 );
99 GroupBox3Layout->setMargin( 11 ); 99 GroupBox3Layout->setMargin( 11 );
100 100
101 Layout10 = new QVBoxLayout; 101 Layout10 = new QVBoxLayout;
102 Layout10->setSpacing( 6 ); 102 Layout10->setSpacing( 6 );
103 Layout10->setMargin( 0 ); 103 Layout10->setMargin( 0 );
104 104
105 Layout16 = new QHBoxLayout; 105 Layout16 = new QHBoxLayout;
106 Layout16->setSpacing( 6 ); 106 Layout16->setSpacing( 6 );
107 Layout16->setMargin( 0 ); 107 Layout16->setMargin( 0 );
108 QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); 108 QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
109 Layout16->addItem( spacer ); 109 Layout16->addItem( spacer );
110 110
111 PixmapLabel1_2 = new QLabel( GroupBox3, "PixmapLabel1_2" ); 111 PixmapLabel1_2 = new QLabel( GroupBox3, "PixmapLabel1_2" );
112 PixmapLabel1_2->setPixmap( image0 ); 112 PixmapLabel1_2->setPixmap( image0 );
113 PixmapLabel1_2->setScaledContents( FALSE ); 113 PixmapLabel1_2->setScaledContents( FALSE );
114 Layout16->addWidget( PixmapLabel1_2 ); 114 Layout16->addWidget( PixmapLabel1_2 );
@@ -198,53 +198,53 @@ SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool m
198 198
199 sampleRateLabel = new QLabel( privateLayoutWidget, "sampleRateLabel" ); 199 sampleRateLabel = new QLabel( privateLayoutWidget, "sampleRateLabel" );
200 sampleRateLabel->setText( tr( "Sample Rate" ) ); 200 sampleRateLabel->setText( tr( "Sample Rate" ) );
201 Layout11->addWidget( sampleRateLabel ); 201 Layout11->addWidget( sampleRateLabel );
202 202
203 sampleRate = new QComboBox( FALSE, privateLayoutWidget, "sampleRate" ); 203 sampleRate = new QComboBox( FALSE, privateLayoutWidget, "sampleRate" );
204 sampleRate->insertItem( tr( "11025" ) ); 204 sampleRate->insertItem( tr( "11025" ) );
205 sampleRate->insertItem( tr( "22050" ) ); 205 sampleRate->insertItem( tr( "22050" ) );
206 sampleRate->insertItem( tr( "32000" ) ); 206 sampleRate->insertItem( tr( "32000" ) );
207 sampleRate->insertItem( tr( "44100" ) ); 207 sampleRate->insertItem( tr( "44100" ) );
208 Layout11->addWidget( sampleRate ); 208 Layout11->addWidget( sampleRate );
209 209
210 stereoCheckBox = new QCheckBox( privateLayoutWidget, "stereoCheckBox" ); 210 stereoCheckBox = new QCheckBox( privateLayoutWidget, "stereoCheckBox" );
211 stereoCheckBox->setText( tr( "Stereo" ) ); 211 stereoCheckBox->setText( tr( "Stereo" ) );
212 Layout11->addWidget( stereoCheckBox ); 212 Layout11->addWidget( stereoCheckBox );
213 213
214 sixteenBitCheckBox = new QCheckBox( privateLayoutWidget, "sixteenBitCheckBox" ); 214 sixteenBitCheckBox = new QCheckBox( privateLayoutWidget, "sixteenBitCheckBox" );
215 sixteenBitCheckBox->setText( tr( "16 bit" ) ); 215 sixteenBitCheckBox->setText( tr( "16 bit" ) );
216 Layout11->addWidget( sixteenBitCheckBox ); 216 Layout11->addWidget( sixteenBitCheckBox );
217 217
218 AlertCheckBox = new QCheckBox( privateLayoutWidget, "AlertCheckBox" ); 218 AlertCheckBox = new QCheckBox( privateLayoutWidget, "AlertCheckBox" );
219 AlertCheckBox->setText( tr( "Visual Alerts" ) ); 219 AlertCheckBox->setText( tr( "Visual Alerts" ) );
220 Layout11->addWidget( AlertCheckBox ); 220 Layout11->addWidget( AlertCheckBox );
221 221
222 TextLabel1 = new QLabel( privateLayoutWidget, "TextLabel1" ); 222 TextLabel1 = new QLabel( privateLayoutWidget, "TextLabel1" );
223 TextLabel1->setText( tr( "Location" ) ); 223 TextLabel1->setText( tr( "Location" ) );
224 Layout11->addWidget( TextLabel1 ); 224 Layout11->addWidget( TextLabel1 );
225 225
226 LocationComboBox = new QComboBox( FALSE, privateLayoutWidget, "LocationComboBox" ); 226 LocationComboBox = new QComboBox( FALSE, privateLayoutWidget, "LocationComboBox" );
227 Layout11->addWidget( LocationComboBox ); 227 Layout11->addWidget( LocationComboBox );
228 Layout12_2->addWidget( GroupBox1 ); 228 Layout12_2->addWidget( GroupBox1 );
229 229
230 touchsound = new QCheckBox( this, "touchsound" ); 230// touchsound = new QCheckBox( this, "touchsound" );
231 touchsound->setText( tr( "Screen sounds" ) ); 231// touchsound->setText( tr( "Screen sounds" ) );
232 Layout12_2->addWidget( touchsound ); 232// Layout12_2->addWidget( touchsound );
233 233
234 keysound = new QCheckBox( this, "keysound" ); 234// keysound = new QCheckBox( this, "keysound" );
235 keysound->setText( tr( "Keyboard sounds" ) ); 235// keysound->setText( tr( "Keyboard sounds" ) );
236 Layout12_2->addWidget( keysound ); 236// Layout12_2->addWidget( keysound );
237 QSpacerItem* spacer_9 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); 237 QSpacerItem* spacer_9 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
238 Layout12_2->addItem( spacer_9 ); 238 Layout12_2->addItem( spacer_9 );
239 239
240 SoundSettingsBaseLayout->addLayout( Layout12_2, 0, 1 ); 240 SoundSettingsBaseLayout->addLayout( Layout12_2, 0, 1 );
241} 241}
242 242
243/* 243/*
244 * Destroys the object and frees any allocated resources 244 * Destroys the object and frees any allocated resources
245 */ 245 */
246SoundSettingsBase::~SoundSettingsBase() 246SoundSettingsBase::~SoundSettingsBase()
247{ 247{
248 // no need to delete child widgets, Qt does it all for us 248 // no need to delete child widgets, Qt does it all for us
249} 249}
250 250
diff --git a/noncore/settings/sound/soundsettingsbase.h b/noncore/settings/sound/soundsettingsbase.h
index 66ba34a..e65c813 100644
--- a/noncore/settings/sound/soundsettingsbase.h
+++ b/noncore/settings/sound/soundsettingsbase.h
@@ -16,48 +16,48 @@ class QHBoxLayout;
16class QGridLayout; 16class QGridLayout;
17class QCheckBox; 17class QCheckBox;
18class QComboBox; 18class QComboBox;
19class QGroupBox; 19class QGroupBox;
20class QLabel; 20class QLabel;
21class QSlider; 21class QSlider;
22 22
23class SoundSettingsBase : public QDialog 23class SoundSettingsBase : public QDialog
24{ 24{
25 Q_OBJECT 25 Q_OBJECT
26 26
27public: 27public:
28 SoundSettingsBase( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); 28 SoundSettingsBase( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
29 ~SoundSettingsBase(); 29 ~SoundSettingsBase();
30 30
31 QGroupBox* GroupBox3; 31 QGroupBox* GroupBox3;
32 QLabel* PixmapLabel1_2; 32 QLabel* PixmapLabel1_2;
33 QLabel* TextLabel1_2; 33 QLabel* TextLabel1_2;
34 QLabel* volLabel; 34 QLabel* volLabel;
35 QLabel* micLabel; 35 QLabel* micLabel;
36 QSlider* volume; 36 QSlider* volume;
37 QSlider* mic; 37 QSlider* mic;
38 QLabel* PixmapLabel2_2; 38 QLabel* PixmapLabel2_2;
39 QLabel* TextLabel2_2; 39 QLabel* TextLabel2_2;
40 QGroupBox* GroupBox1; 40 QGroupBox* GroupBox1;
41 QLabel* sampleRateLabel; 41 QLabel* sampleRateLabel;
42 QComboBox* sampleRate; 42 QComboBox* sampleRate;
43 QCheckBox* stereoCheckBox; 43 QCheckBox* stereoCheckBox;
44 QCheckBox* sixteenBitCheckBox; 44 QCheckBox* sixteenBitCheckBox;
45 QCheckBox* AlertCheckBox; 45 QCheckBox* AlertCheckBox;
46 QLabel* TextLabel1; 46 QLabel* TextLabel1;
47 QComboBox* LocationComboBox; 47 QComboBox* LocationComboBox;
48 QCheckBox* touchsound; 48/* QCheckBox* touchsound; */
49 QCheckBox* keysound; 49/* QCheckBox* keysound; */
50 50
51protected: 51protected:
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}; 61};
62 62
63#endif // SOUNDSETTINGSBASE_H 63#endif // SOUNDSETTINGSBASE_H