changeset 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 6caf27d1e5e8
children 47b5b6952189
files main/MainWindow.cpp main/main.cpp
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/main/MainWindow.cpp	Mon Apr 02 12:12:36 2007 +0000
+++ b/main/MainWindow.cpp	Mon Apr 16 12:20:27 2007 +0000
@@ -167,6 +167,7 @@
     m_overview = new Overview(frame);
     m_overview->setViewManager(m_viewManager);
     m_overview->setFixedHeight(40);
+    m_overview->setFrameStyle(QFrame::StyledPanel | QFrame::Sunken);
     connect(m_overview, SIGNAL(contextHelpChanged(const QString &)),
             this, SLOT(contextHelpChanged(const QString &)));
 
@@ -236,6 +237,7 @@
     m_playMono->setChecked(settings.value("playmono", false).toBool());
     settings.endGroup();
 
+    layout->setSpacing(4);
     layout->addWidget(m_paneStack, 0, 0, 1, 5);
     layout->addWidget(m_overview, 1, 0);
     layout->addWidget(m_fader, 1, 1);
@@ -243,6 +245,10 @@
     layout->addWidget(m_playSharpen, 1, 3);
     layout->addWidget(m_playMono, 1, 4);
 
+    m_paneStack->setPropertyStackMinWidth
+        (m_fader->width() + m_playSpeed->width() + m_playSharpen->width() +
+         m_playMono->width() + layout->spacing() * 4);
+
     layout->setColumnStretch(0, 10);
 
     frame->setLayout(layout);
--- a/main/main.cpp	Mon Apr 02 12:12:36 2007 +0000
+++ b/main/main.cpp	Mon Apr 16 12:20:27 2007 +0000
@@ -51,7 +51,9 @@
  curve extracted from it): Transform and subclasses
 
  - Creating the plugins used by transforms: RealTimePluginFactory,
- FeatureExtractionPluginFactory
+ FeatureExtractionPluginFactory.  See also the API documentation for
+ Vamp feature extraction plugins at
+ http://www.vamp-plugins.org/code-doc/.
 
  - File reading and writing code: AudioFileReader and subclasses,
  WavFileWriter, DataFileReader, SVFileReader