summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-07-26 00:40:14 (UTC)
committer llornkcor <llornkcor>2002-07-26 00:40:14 (UTC)
commitf3556b164b79fc2a9607681bd6bdf2a4c8522d5e (patch) (unidiff)
tree3f43184feccd2fbd38fcc35e18ff530f72b9752c
parent026766fd2318eedd41098ef86ea4c4d8e3ea03bf (diff)
downloadopie-f3556b164b79fc2a9607681bd6bdf2a4c8522d5e.zip
opie-f3556b164b79fc2a9607681bd6bdf2a4c8522d5e.tar.gz
opie-f3556b164b79fc2a9607681bd6bdf2a4c8522d5e.tar.bz2
fixed layout
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sound/soundsettingsbase.cpp50
1 files changed, 22 insertions, 28 deletions
diff --git a/noncore/settings/sound/soundsettingsbase.cpp b/noncore/settings/sound/soundsettingsbase.cpp
index 4c28ae9..3c98362 100644
--- a/noncore/settings/sound/soundsettingsbase.cpp
+++ b/noncore/settings/sound/soundsettingsbase.cpp
@@ -78,103 +78,97 @@ static const char* const image1_data[] = {
78 */ 78 */
79SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool modal, WFlags fl ) 79SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool modal, WFlags fl )
80 : QMainWindow( parent, name, fl ) 80 : QMainWindow( parent, name, fl )
81{ 81{
82 QPixmap image0( ( const char** ) image0_data ); 82 QPixmap image0( ( const char** ) image0_data );
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);
86 setCaption( tr( "Vmemo Settings" ) ); 87 setCaption( tr( "Vmemo Settings" ) );
87 88
88 SoundSettingsBaseLayout = new QGridLayout( this ); 89 SoundSettingsBaseLayout = new QGridLayout( this );
89 SoundSettingsBaseLayout->setSpacing( 4 ); 90 SoundSettingsBaseLayout->setSpacing( 4 );
90 SoundSettingsBaseLayout->setMargin( 6 ); 91 SoundSettingsBaseLayout->setMargin( 4 );
92
93 QHBoxLayout *Layout11;
94 Layout11 = new QHBoxLayout;
95 Layout11->setSpacing( 4 );
96 Layout11->setMargin( 0 );
91 97
92 stereoCheckBox = new QCheckBox( this, "stereoCheckBox" ); 98 stereoCheckBox = new QCheckBox( this, "stereoCheckBox" );
93 stereoCheckBox->setText( tr( "Stereo" ) ); 99 stereoCheckBox->setText( tr( "Stereo" ) );
94 SoundSettingsBaseLayout->addMultiCellWidget(stereoCheckBox , 0, 0, 0, 0 ); 100 Layout11->addWidget( stereoCheckBox );
95 101
96 sixteenBitCheckBox = new QCheckBox( this, "sixteenBitCheckBox" ); 102 sixteenBitCheckBox = new QCheckBox( this, "sixteenBitCheckBox" );
97 sixteenBitCheckBox->setText( tr( "16 bit" ) ); 103 sixteenBitCheckBox->setText( tr( "16 bit" ) );
98 SoundSettingsBaseLayout->addMultiCellWidget( sixteenBitCheckBox , 0, 0, 1, 1 ); 104 Layout11->addWidget( sixteenBitCheckBox );
99 105
100 AlertCheckBox = new QCheckBox( this, "AlertCheckBox" ); 106 AlertCheckBox = new QCheckBox( this, "AlertCheckBox" );
101 AlertCheckBox->setText( tr( "Visual Alerts" ) ); 107 AlertCheckBox->setText( tr( "Visual Alerts" ) );
102 SoundSettingsBaseLayout->addMultiCellWidget( AlertCheckBox , 0, 0, 2, 2 ); 108 Layout11->addWidget( AlertCheckBox );
103 109
104 QSpacerItem* spacer0 = new QSpacerItem( 20, 20,QSizePolicy::Expanding, QSizePolicy::Expanding ); 110 SoundSettingsBaseLayout->addLayout( Layout11, 0, 0);
105 SoundSettingsBaseLayout->addItem( spacer0, 0, 3 ); 111
106
107 sampleRateLabel = new QLabel(this, "sampleRateLabel" ); 112 sampleRateLabel = new QLabel(this, "sampleRateLabel" );
108 sampleRateLabel->setText( tr( "Sample Rate:" ) ); 113 sampleRateLabel->setText( tr( "Sample Rate:" ) );
109 SoundSettingsBaseLayout->addMultiCellWidget( sampleRateLabel , 1, 1, 0, 0 ); 114 SoundSettingsBaseLayout->addMultiCellWidget( sampleRateLabel , 1, 1, 0, 0, 1);
110 115
111 sampleRate = new QComboBox( FALSE,this, "sampleRate" ); 116 sampleRate = new QComboBox( FALSE,this, "sampleRate" );
117
112 sampleRate->insertItem( tr( "8000" ) ); 118 sampleRate->insertItem( tr( "8000" ) );
113 sampleRate->insertItem( tr( "11025" ) ); 119 sampleRate->insertItem( tr( "11025" ) );
114 sampleRate->insertItem( tr( "22050" ) ); 120 sampleRate->insertItem( tr( "22050" ) );
115 sampleRate->insertItem( tr( "33075" ) ); 121 sampleRate->insertItem( tr( "33075" ) );
116 sampleRate->insertItem( tr( "44100" ) ); 122 sampleRate->insertItem( tr( "44100" ) );
117// sampleRate->setFixedWidth(90); 123 SoundSettingsBaseLayout->addMultiCellWidget( sampleRate, 2, 2, 0, 0, 1 );
118 SoundSettingsBaseLayout->addMultiCellWidget( sampleRate, 2, 2, 0, 2 );
119
120// QSpacerItem* spacer = new QSpacerItem( 20, 20,QSizePolicy::Expanding, QSizePolicy::Expanding );
121// SoundSettingsBaseLayout->addItem( spacer, 1, 3 );
122 124
123 TextLabel1 = new QLabel( this, "TextLabel1" ); 125 TextLabel1 = new QLabel( this, "TextLabel1" );
124 TextLabel1->setText( tr( "Recording Directory:" ) ); 126 TextLabel1->setText( tr( "Recording Directory:" ) );
125 SoundSettingsBaseLayout->addMultiCellWidget( TextLabel1, 3, 3, 0, 0 ); 127 SoundSettingsBaseLayout->addMultiCellWidget( TextLabel1, 3, 3, 0, 0, 1);
126 128
127 129
128 LocationComboBox = new QComboBox( FALSE, this, "LocationComboBox" ); 130 LocationComboBox = new QComboBox( FALSE, this, "LocationComboBox" );
129 SoundSettingsBaseLayout->addMultiCellWidget( LocationComboBox, 4, 4, 0, 2 ); 131 SoundSettingsBaseLayout->addMultiCellWidget( LocationComboBox, 4, 4, 0, 8, 1);
130
131// QSpacerItem* spacer1 = new QSpacerItem( 20, 20,QSizePolicy::Expanding, QSizePolicy::Expanding );
132// SoundSettingsBaseLayout->addItem( spacer1, 2, 3 );
133 132
134 QLabel *TextLabelKey; 133 QLabel *TextLabelKey;
135 TextLabelKey = new QLabel( this, "TextLabelKey" ); 134 TextLabelKey = new QLabel( this, "TextLabelKey" );
136 TextLabelKey->setText( tr( "Recording Key:" ) ); 135 TextLabelKey->setText( tr( "Recording Key:" ) );
137 SoundSettingsBaseLayout->addMultiCellWidget(TextLabelKey , 5, 5, 0, 0 ); 136 SoundSettingsBaseLayout->addMultiCellWidget(TextLabelKey , 5, 5, 0, 0, 1);
138 137
139 keyComboBox = new QComboBox( FALSE, this, "keyComboBox" ); 138 keyComboBox = new QComboBox( FALSE, this, "keyComboBox" );
140 keyComboBox->insertItem( tr( "" ) ); 139 keyComboBox->insertItem( tr( "" ) );
141 keyComboBox->insertItem( tr( "Taskbar Icon" ) ); 140 keyComboBox->insertItem( tr( "Taskbar Icon" ) );
142 keyComboBox->insertItem( tr( "Key_Escape" ) ); 141 keyComboBox->insertItem( tr( "Key_Escape" ) );
143 keyComboBox->insertItem( tr( "Key_Space" ) ); 142 keyComboBox->insertItem( tr( "Key_Space" ) );
144 keyComboBox->insertItem( tr( "Key_Home" ) ); 143 keyComboBox->insertItem( tr( "Key_Home" ) );
145 keyComboBox->insertItem( tr( "Key_Calender" ) ); 144 keyComboBox->insertItem( tr( "Key_Calender" ) );
146 keyComboBox->insertItem( tr( "Key_Contacts" ) ); 145 keyComboBox->insertItem( tr( "Key_Contacts" ) );
147 keyComboBox->insertItem( tr( "Key_Menu" ) ); 146 keyComboBox->insertItem( tr( "Key_Menu" ) );
148 keyComboBox->insertItem( tr( "Key_Mail" ) ); 147 keyComboBox->insertItem( tr( "Key_Mail" ) );
149 SoundSettingsBaseLayout->addMultiCellWidget( keyComboBox , 6, 6, 0, 2 ); 148 SoundSettingsBaseLayout->addMultiCellWidget( keyComboBox , 6, 6, 0, 0 ,1);
150
151// QSpacerItem* spacer2 = new QSpacerItem( 20, 20,QSizePolicy::Expanding, QSizePolicy::Expanding );
152// SoundSettingsBaseLayout->addItem( spacer2, 3, 3 );
153 149
154 QLabel *timeLimitLabel; 150 QLabel *timeLimitLabel;
155 timeLimitLabel= new QLabel( this, "timeLimitLabel" ); 151 timeLimitLabel= new QLabel( this, "timeLimitLabel" );
156 timeLimitLabel->setText( tr( "Recording Limit in seconds:" ) ); 152 timeLimitLabel->setText( tr( "Recording Limit in seconds:" ) );
157 SoundSettingsBaseLayout->addMultiCellWidget( timeLimitLabel , 7, 7, 0, 0 ); 153 SoundSettingsBaseLayout->addMultiCellWidget( timeLimitLabel , 7, 7, 0, 0, 1);
158 154
159 timeLimitComboBox = new QComboBox( FALSE, this, "timeLimitComboBox" ); 155 timeLimitComboBox = new QComboBox( FALSE, this, "timeLimitComboBox" );
160 timeLimitComboBox->insertItem( tr( "30" ) ); 156 timeLimitComboBox->insertItem( tr( "30" ) );
161 timeLimitComboBox->insertItem( tr( "20" ) ); 157 timeLimitComboBox->insertItem( tr( "20" ) );
162 timeLimitComboBox->insertItem( tr( "15" ) ); 158 timeLimitComboBox->insertItem( tr( "15" ) );
163 timeLimitComboBox->insertItem( tr( "10" ) ); 159 timeLimitComboBox->insertItem( tr( "10" ) );
164 timeLimitComboBox->insertItem( tr( "5" ) ); 160 timeLimitComboBox->insertItem( tr( "5" ) );
165 timeLimitComboBox->insertItem( tr( "Unlimited" ) ); 161 timeLimitComboBox->insertItem( tr( "Unlimited" ) );
166 162
167 SoundSettingsBaseLayout->addMultiCellWidget(timeLimitComboBox , 8, 8, 0, 2); 163 SoundSettingsBaseLayout->addMultiCellWidget(timeLimitComboBox , 8, 8, 0, 0, 1);
168 164
169// QSpacerItem* spacer3 = new QSpacerItem( 20, 20,QSizePolicy::Expanding, QSizePolicy::Expanding );
170// SoundSettingsBaseLayout->addItem( spacer3, 4, 3 );
171 165
172 QSpacerItem* spacer4 = new QSpacerItem( 20, 20,QSizePolicy::Expanding, QSizePolicy::Expanding ); 166 QSpacerItem* spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Expanding );
173 SoundSettingsBaseLayout->addItem( spacer4, 9, 0 ); 167 SoundSettingsBaseLayout->addItem( spacer4, 9, 0 );
174} 168}
175 169
176/* 170/*
177 * Destroys the object and frees any allocated resources 171 * Destroys the object and frees any allocated resources
178 */ 172 */
179SoundSettingsBase::~SoundSettingsBase() 173SoundSettingsBase::~SoundSettingsBase()
180{ 174{