comparison main/MainWindow.cpp @ 129:20ec0c6d4a97

* Experiment with sizing the property stacks and using a frame on the overview widget with an eye to making the default empty window look a bit nicer
author Chris Cannam
date Mon, 16 Apr 2007 12:20:27 +0000
parents fbd09fcda469
children 47b5b6952189
comparison
equal deleted inserted replaced
128:6caf27d1e5e8 129:20ec0c6d4a97
165 this, SLOT(contextHelpChanged(const QString &))); 165 this, SLOT(contextHelpChanged(const QString &)));
166 166
167 m_overview = new Overview(frame); 167 m_overview = new Overview(frame);
168 m_overview->setViewManager(m_viewManager); 168 m_overview->setViewManager(m_viewManager);
169 m_overview->setFixedHeight(40); 169 m_overview->setFixedHeight(40);
170 m_overview->setFrameStyle(QFrame::StyledPanel | QFrame::Sunken);
170 connect(m_overview, SIGNAL(contextHelpChanged(const QString &)), 171 connect(m_overview, SIGNAL(contextHelpChanged(const QString &)),
171 this, SLOT(contextHelpChanged(const QString &))); 172 this, SLOT(contextHelpChanged(const QString &)));
172 173
173 m_panLayer = new WaveformLayer; 174 m_panLayer = new WaveformLayer;
174 m_panLayer->setChannelMode(WaveformLayer::MergeChannels); 175 m_panLayer->setChannelMode(WaveformLayer::MergeChannels);
234 settings.beginGroup("MainWindow"); 235 settings.beginGroup("MainWindow");
235 m_playSharpen->setChecked(settings.value("playsharpen", true).toBool()); 236 m_playSharpen->setChecked(settings.value("playsharpen", true).toBool());
236 m_playMono->setChecked(settings.value("playmono", false).toBool()); 237 m_playMono->setChecked(settings.value("playmono", false).toBool());
237 settings.endGroup(); 238 settings.endGroup();
238 239
240 layout->setSpacing(4);
239 layout->addWidget(m_paneStack, 0, 0, 1, 5); 241 layout->addWidget(m_paneStack, 0, 0, 1, 5);
240 layout->addWidget(m_overview, 1, 0); 242 layout->addWidget(m_overview, 1, 0);
241 layout->addWidget(m_fader, 1, 1); 243 layout->addWidget(m_fader, 1, 1);
242 layout->addWidget(m_playSpeed, 1, 2); 244 layout->addWidget(m_playSpeed, 1, 2);
243 layout->addWidget(m_playSharpen, 1, 3); 245 layout->addWidget(m_playSharpen, 1, 3);
244 layout->addWidget(m_playMono, 1, 4); 246 layout->addWidget(m_playMono, 1, 4);
247
248 m_paneStack->setPropertyStackMinWidth
249 (m_fader->width() + m_playSpeed->width() + m_playSharpen->width() +
250 m_playMono->width() + layout->spacing() * 4);
245 251
246 layout->setColumnStretch(0, 10); 252 layout->setColumnStretch(0, 10);
247 253
248 frame->setLayout(layout); 254 frame->setLayout(layout);
249 255