summaryrefslogtreecommitdiff
path: root/noncore/settings/sound/soundsettingsbase.cpp
Unidiff
Diffstat (limited to 'noncore/settings/sound/soundsettingsbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sound/soundsettingsbase.cpp201
1 files changed, 46 insertions, 155 deletions
diff --git a/noncore/settings/sound/soundsettingsbase.cpp b/noncore/settings/sound/soundsettingsbase.cpp
index 8be1b3d..4c28ae9 100644
--- a/noncore/settings/sound/soundsettingsbase.cpp
+++ b/noncore/settings/sound/soundsettingsbase.cpp
@@ -83,163 +83,60 @@ SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool m
83 QPixmap image1( ( const char** ) image1_data ); 83 QPixmap image1( ( const char** ) image1_data );
84 if ( !name ) 84 if ( !name )
85 setName( "SoundSettingsBase" ); 85 setName( "SoundSettingsBase" );
86 resize( 255, 301 );
87 setCaption( tr( "Vmemo Settings" ) ); 86 setCaption( tr( "Vmemo Settings" ) );
88 87
89 SoundSettingsBaseLayout = new QGridLayout( this ); 88 SoundSettingsBaseLayout = new QGridLayout( this );
90 SoundSettingsBaseLayout->setSpacing( 6 ); 89 SoundSettingsBaseLayout->setSpacing( 4 );
91 SoundSettingsBaseLayout->setMargin( 11 ); 90 SoundSettingsBaseLayout->setMargin( 6 );
92 91
93 GroupBox3 = new QGroupBox( this, "GroupBox3" ); 92 stereoCheckBox = new QCheckBox( this, "stereoCheckBox" );
94 GroupBox3->setFrameShape( QGroupBox::Box ); 93 stereoCheckBox->setText( tr( "Stereo" ) );
95 GroupBox3->setFrameShadow( QGroupBox::Sunken ); 94 SoundSettingsBaseLayout->addMultiCellWidget(stereoCheckBox , 0, 0, 0, 0 );
96 GroupBox3->setTitle( tr( "Levels" ) );
97 GroupBox3->setColumnLayout(0, Qt::Vertical );
98 GroupBox3->layout()->setSpacing( 0 );
99 GroupBox3->layout()->setMargin( 0 );
100 GroupBox3Layout = new QVBoxLayout( GroupBox3->layout() );
101 GroupBox3Layout->setAlignment( Qt::AlignTop );
102 GroupBox3Layout->setSpacing( 2 );
103 GroupBox3Layout->setMargin( 2 );
104
105 Layout10 = new QVBoxLayout;
106 Layout10->setSpacing( 2 );
107 Layout10->setMargin( 2 );
108
109 Layout16 = new QHBoxLayout;
110 Layout16->setSpacing( 2 );
111 Layout16->setMargin( 2 );
112 QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
113 Layout16->addItem( spacer );
114
115 PixmapLabel1_2 = new QLabel( GroupBox3, "PixmapLabel1_2" );
116 PixmapLabel1_2->setPixmap( image0 );
117 PixmapLabel1_2->setScaledContents( FALSE );
118 Layout16->addWidget( PixmapLabel1_2 );
119
120 TextLabel1_2 = new QLabel( GroupBox3, "TextLabel1_2" );
121 TextLabel1_2->setText( tr( "Loud" ) );
122 Layout16->addWidget( TextLabel1_2 );
123 QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
124 Layout16->addItem( spacer_2 );
125 Layout10->addLayout( Layout16 );
126
127 Layout13 = new QHBoxLayout;
128 Layout13->setSpacing( 2 );
129 Layout13->setMargin( 2 );
130
131 volLabel = new QLabel( GroupBox3, "volLabel" );
132 volLabel->setText( tr( "Output" ) );
133 Layout13->addWidget( volLabel );
134 QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
135 Layout13->addItem( spacer_3 );
136
137 micLabel = new QLabel( GroupBox3, "micLabel" );
138 micLabel->setText( tr( "Mic" ) );
139 Layout13->addWidget( micLabel );
140 QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
141 Layout13->addItem( spacer_4 );
142 Layout10->addLayout( Layout13 );
143
144 Layout12 = new QHBoxLayout;
145 Layout12->setSpacing( 2 );
146 Layout12->setMargin( 2 );
147
148 volume = new QSlider( GroupBox3, "volume" );
149 volume->setMaxValue( 100 );
150 volume->setValue( 50 );
151 volume->setOrientation( QSlider::Vertical );
152 volume->setTickmarks( QSlider::Right );
153 volume->setTickInterval( 5 );
154 Layout12->addWidget( volume );
155 QSpacerItem* spacer_5 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
156 Layout12->addItem( spacer_5 );
157
158 mic = new QSlider( GroupBox3, "mic" );
159 mic->setMaxValue( 100 );
160 mic->setValue( 50 );
161 mic->setOrientation( QSlider::Vertical );
162 mic->setTickmarks( QSlider::Right );
163 mic->setTickInterval( 5 );
164 Layout12->addWidget( mic );
165 QSpacerItem* spacer_6 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
166 Layout12->addItem( spacer_6 );
167 Layout10->addLayout( Layout12 );
168
169 Layout17 = new QHBoxLayout;
170 Layout17->setSpacing( 2 );
171 Layout17->setMargin( 2 );
172 QSpacerItem* spacer_7 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
173 Layout17->addItem( spacer_7 );
174
175 PixmapLabel2_2 = new QLabel( GroupBox3, "PixmapLabel2_2" );
176 PixmapLabel2_2->setPixmap( image1 );
177 PixmapLabel2_2->setScaledContents( FALSE );
178 Layout17->addWidget( PixmapLabel2_2 );
179
180 TextLabel2_2 = new QLabel( GroupBox3, "TextLabel2_2" );
181 TextLabel2_2->setText( tr( "Silent" ) );
182 Layout17->addWidget( TextLabel2_2 );
183 QSpacerItem* spacer_8 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
184 Layout17->addItem( spacer_8 );
185 Layout10->addLayout( Layout17 );
186 GroupBox3Layout->addLayout( Layout10 );
187
188 SoundSettingsBaseLayout->addWidget( GroupBox3, 0, 0 );
189
190 Layout12_2 = new QVBoxLayout;
191 Layout12_2->setSpacing( 2 );
192 Layout12_2->setMargin( 2 );
193
194 GroupBox1 = new QGroupBox( this, "GroupBox1" );
195 GroupBox1->setTitle( tr( "Vmemo" ) );
196 95
197 QWidget* privateLayoutWidget = new QWidget( GroupBox1, "Layout11" ); 96 sixteenBitCheckBox = new QCheckBox( this, "sixteenBitCheckBox" );
198 privateLayoutWidget->setGeometry( QRect( 5, 16, 96, 230 ) ); 97 sixteenBitCheckBox->setText( tr( "16 bit" ) );
98 SoundSettingsBaseLayout->addMultiCellWidget( sixteenBitCheckBox , 0, 0, 1, 1 );
199 99
200 Layout11 = new QVBoxLayout( privateLayoutWidget ); 100 AlertCheckBox = new QCheckBox( this, "AlertCheckBox" );
201 Layout11->setSpacing( 2 ); 101 AlertCheckBox->setText( tr( "Visual Alerts" ) );
202 Layout11->setMargin( 0 ); 102 SoundSettingsBaseLayout->addMultiCellWidget( AlertCheckBox , 0, 0, 2, 2 );
203 103
204 sampleRateLabel = new QLabel( privateLayoutWidget, "sampleRateLabel" ); 104 QSpacerItem* spacer0 = new QSpacerItem( 20, 20,QSizePolicy::Expanding, QSizePolicy::Expanding );
205 sampleRateLabel->setText( tr( "Sample Rate" ) ); 105 SoundSettingsBaseLayout->addItem( spacer0, 0, 3 );
206 Layout11->addWidget( sampleRateLabel ); 106
107 sampleRateLabel = new QLabel(this, "sampleRateLabel" );
108 sampleRateLabel->setText( tr( "Sample Rate:" ) );
109 SoundSettingsBaseLayout->addMultiCellWidget( sampleRateLabel , 1, 1, 0, 0 );
207 110
208 sampleRate = new QComboBox( FALSE, privateLayoutWidget, "sampleRate" ); 111 sampleRate = new QComboBox( FALSE,this, "sampleRate" );
209 sampleRate->insertItem( tr( "8000" ) ); 112 sampleRate->insertItem( tr( "8000" ) );
210 sampleRate->insertItem( tr( "11025" ) ); 113 sampleRate->insertItem( tr( "11025" ) );
211 sampleRate->insertItem( tr( "22050" ) ); 114 sampleRate->insertItem( tr( "22050" ) );
212 sampleRate->insertItem( tr( "33075" ) ); 115 sampleRate->insertItem( tr( "33075" ) );
213 sampleRate->insertItem( tr( "44100" ) ); 116 sampleRate->insertItem( tr( "44100" ) );
214 sampleRate->setFixedWidth(90); 117// sampleRate->setFixedWidth(90);
215 Layout11->addWidget( sampleRate ); 118 SoundSettingsBaseLayout->addMultiCellWidget( sampleRate, 2, 2, 0, 2 );
216
217 stereoCheckBox = new QCheckBox( privateLayoutWidget, "stereoCheckBox" );
218 stereoCheckBox->setText( tr( "Stereo" ) );
219 Layout11->addWidget( stereoCheckBox );
220 119
221 sixteenBitCheckBox = new QCheckBox( privateLayoutWidget, "sixteenBitCheckBox" ); 120// QSpacerItem* spacer = new QSpacerItem( 20, 20,QSizePolicy::Expanding, QSizePolicy::Expanding );
222 sixteenBitCheckBox->setText( tr( "16 bit" ) ); 121// SoundSettingsBaseLayout->addItem( spacer, 1, 3 );
223 Layout11->addWidget( sixteenBitCheckBox );
224 122
225 AlertCheckBox = new QCheckBox( privateLayoutWidget, "AlertCheckBox" ); 123 TextLabel1 = new QLabel( this, "TextLabel1" );
226 AlertCheckBox->setText( tr( "Visual Alerts" ) ); 124 TextLabel1->setText( tr( "Recording Directory:" ) );
227 Layout11->addWidget( AlertCheckBox ); 125 SoundSettingsBaseLayout->addMultiCellWidget( TextLabel1, 3, 3, 0, 0 );
228 126
229 TextLabel1 = new QLabel( privateLayoutWidget, "TextLabel1" );
230 TextLabel1->setText( tr( "Location:" ) );
231 Layout11->addWidget( TextLabel1 );
232 127
128 LocationComboBox = new QComboBox( FALSE, this, "LocationComboBox" );
129 SoundSettingsBaseLayout->addMultiCellWidget( LocationComboBox, 4, 4, 0, 2 );
233 130
234 LocationComboBox = new QComboBox( FALSE, privateLayoutWidget, "LocationComboBox" ); 131// QSpacerItem* spacer1 = new QSpacerItem( 20, 20,QSizePolicy::Expanding, QSizePolicy::Expanding );
235 Layout11->addWidget( LocationComboBox ); 132// SoundSettingsBaseLayout->addItem( spacer1, 2, 3 );
236 133
237 QLabel *TextLabelKey; 134 QLabel *TextLabelKey;
238 TextLabelKey = new QLabel( privateLayoutWidget, "TextLabelKey" ); 135 TextLabelKey = new QLabel( this, "TextLabelKey" );
239 TextLabelKey->setText( tr( "Record Key:" ) ); 136 TextLabelKey->setText( tr( "Recording Key:" ) );
240 Layout11->addWidget( TextLabelKey ); 137 SoundSettingsBaseLayout->addMultiCellWidget(TextLabelKey , 5, 5, 0, 0 );
241 138
242 keyComboBox = new QComboBox( FALSE, privateLayoutWidget, "keyComboBox" ); 139 keyComboBox = new QComboBox( FALSE, this, "keyComboBox" );
243 keyComboBox->insertItem( tr( "" ) ); 140 keyComboBox->insertItem( tr( "" ) );
244 keyComboBox->insertItem( tr( "Taskbar Icon" ) ); 141 keyComboBox->insertItem( tr( "Taskbar Icon" ) );
245 keyComboBox->insertItem( tr( "Key_Escape" ) ); 142 keyComboBox->insertItem( tr( "Key_Escape" ) );
@@ -249,37 +146,31 @@ SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool m
249 keyComboBox->insertItem( tr( "Key_Contacts" ) ); 146 keyComboBox->insertItem( tr( "Key_Contacts" ) );
250 keyComboBox->insertItem( tr( "Key_Menu" ) ); 147 keyComboBox->insertItem( tr( "Key_Menu" ) );
251 keyComboBox->insertItem( tr( "Key_Mail" ) ); 148 keyComboBox->insertItem( tr( "Key_Mail" ) );
149 SoundSettingsBaseLayout->addMultiCellWidget( keyComboBox , 6, 6, 0, 2 );
252 150
253 Layout11->addWidget( keyComboBox ); 151// QSpacerItem* spacer2 = new QSpacerItem( 20, 20,QSizePolicy::Expanding, QSizePolicy::Expanding );
152// SoundSettingsBaseLayout->addItem( spacer2, 3, 3 );
254 153
255 QLabel *timeLimitLabel; 154 QLabel *timeLimitLabel;
256 timeLimitLabel= new QLabel( privateLayoutWidget, "timeLimitLabel" ); 155 timeLimitLabel= new QLabel( this, "timeLimitLabel" );
257 timeLimitLabel->setText( tr( "Recording Limit:" ) ); 156 timeLimitLabel->setText( tr( "Recording Limit in seconds:" ) );
258 Layout11->addWidget( timeLimitLabel ); 157 SoundSettingsBaseLayout->addMultiCellWidget( timeLimitLabel , 7, 7, 0, 0 );
259 158
260 timeLimitComboBox = new QComboBox( FALSE, privateLayoutWidget, "timeLimitComboBox" ); 159 timeLimitComboBox = new QComboBox( FALSE, this, "timeLimitComboBox" );
261 timeLimitComboBox->insertItem( tr( "30" ) ); 160 timeLimitComboBox->insertItem( tr( "30" ) );
262 timeLimitComboBox->insertItem( tr( "20" ) ); 161 timeLimitComboBox->insertItem( tr( "20" ) );
263 timeLimitComboBox->insertItem( tr( "15" ) ); 162 timeLimitComboBox->insertItem( tr( "15" ) );
264 timeLimitComboBox->insertItem( tr( "10" ) ); 163 timeLimitComboBox->insertItem( tr( "10" ) );
265 timeLimitComboBox->insertItem( tr( "5" ) ); 164 timeLimitComboBox->insertItem( tr( "5" ) );
165 timeLimitComboBox->insertItem( tr( "Unlimited" ) );
266 166
267 Layout11->addWidget(timeLimitComboBox); 167 SoundSettingsBaseLayout->addMultiCellWidget(timeLimitComboBox , 8, 8, 0, 2);
268 QLabel *timeLimitLabel2;
269 timeLimitLabel2= new QLabel( privateLayoutWidget, "timeLimitLabel2" );
270 timeLimitLabel2->setText( tr( "seconds" ) );
271 Layout11->addWidget( timeLimitLabel2 );
272
273 Layout12_2->addWidget( GroupBox1 );
274// // touchsound = new QCheckBox( this, "touchsound" );
275// // touchsound->setText( tr( "Screen sounds" ) );
276// // Layout12_2->addWidget( touchsound );
277 168
278// // keysound = new QCheckBox( this, "keysound" ); 169// QSpacerItem* spacer3 = new QSpacerItem( 20, 20,QSizePolicy::Expanding, QSizePolicy::Expanding );
279// // keysound->setText( tr( "Keyboard sounds" ) ); 170// SoundSettingsBaseLayout->addItem( spacer3, 4, 3 );
280// // Layout12_2->addWidget( keysound );
281 171
282 SoundSettingsBaseLayout->addLayout( Layout12_2, 0, 1 ); 172 QSpacerItem* spacer4 = new QSpacerItem( 20, 20,QSizePolicy::Expanding, QSizePolicy::Expanding );
173 SoundSettingsBaseLayout->addItem( spacer4, 9, 0 );
283} 174}
284 175
285/* 176/*