::iterator mi =
candidateModels.begin();
@@ -1024,22 +1026,22 @@
bool isDefault = (c == 0);
bool isOnly = (isDefault && (channels == 1));
- if (menuType == 1) {
- if (isDefault) isOnly = true;
- else continue;
- }
-
- if (isOnly && (!plural || menuType == 1)) {
-
- if (menuType == 1 && type != LayerFactory::Waveform) {
- action = new QAction(mainText, this);
- } else {
+// if (menuType == layerMenuType) {
+// if (isDefault) isOnly = true;
+// else continue;
+// }
+
+ if (isOnly && (!plural /*|| menuType == layerMenuType*/)) {
+
+// if (menuType == layerMenuType && type != LayerFactory::Waveform) {
+// action = new QAction(mainText, this);
+// } else {
action = new QAction(icon, mainText, this);
- }
+// }
action->setShortcut(shortcutText);
action->setStatusTip(tipText);
- if (menuType == 0) {
+ if (menuType == paneMenuType) {
connect(action, SIGNAL(triggered()),
this, SLOT(addPane()));
connect(this, SIGNAL(canAddPane(bool)),
@@ -1094,7 +1096,7 @@
action->setStatusTip(tipText);
- if (menuType == 0) {
+ if (menuType == paneMenuType) {
connect(action, SIGNAL(triggered()),
this, SLOT(addPane()));
connect(this, SIGNAL(canAddPane(bool)),
@@ -3445,7 +3447,7 @@
QString aboutText;
aboutText += tr("About Sonic Visualiser
");
- aboutText += tr("Sonic Visualiser is a program for viewing and exploring audio data for
semantic music analysis and annotation.
");
+ aboutText += tr("Sonic Visualiser is a program for viewing and exploring audio data for semantic music analysis and annotation.
");
aboutText += tr("%1 : %2 configuration
")
.arg(version)
.arg(debug ? tr("Debug") : tr("Release"));
@@ -3527,11 +3529,11 @@
#endif
aboutText +=
- "Sonic Visualiser Copyright © 2005 - 2007 Chris Cannam and
"
+ "
Sonic Visualiser Copyright © 2005 - 2008 Chris Cannam and "
"Queen Mary, University of London.
"
- "This program is free software; you can redistribute it and/or
"
- "modify it under the terms of the GNU General Public License as
"
- "published by the Free Software Foundation; either version 2 of the
"
+ "
This program is free software; you can redistribute it and/or "
+ "modify it under the terms of the GNU General Public License as "
+ "published by the Free Software Foundation; either version 2 of the "
"License, or (at your option) any later version.
See the file "
"COPYING included with this distribution for more information.
";
diff -r 1000222cd8f1 -r e8a7a935128e main/main.cpp
--- a/main/main.cpp Wed Jan 09 17:09:44 2008 +0000
+++ b/main/main.cpp Wed Jan 23 11:38:34 2008 +0000
@@ -32,6 +32,7 @@
#include
#include
#include
+#include
#include
#include
@@ -229,6 +230,17 @@
QApplication::setOrganizationDomain("sonicvisualiser.org");
QApplication::setApplicationName(QApplication::tr("Sonic Visualiser"));
+ QPixmap pixmap(":/icons/sv-splash.png");
+ QSplashScreen splash(pixmap);
+
+ QSettings settings;
+ settings.beginGroup("MainWindow");
+
+ if (settings.value("showsplash", true).toBool()) {
+ splash.show();
+ application.processEvents();
+ }
+
QIcon icon;
int sizes[] = { 16, 22, 24, 32, 48, 64, 128 };
for (int i = 0; i < sizeof(sizes)/sizeof(sizes[0]); ++i) {
@@ -277,8 +289,6 @@
if (height < 450) height = available.height() * 2 / 3;
if (width > height * 2) width = height * 2;
- QSettings settings;
- settings.beginGroup("MainWindow");
QSize size = settings.value("size", QSize(width, height)).toSize();
gui->resize(size);
if (settings.contains("position")) {
@@ -351,6 +361,7 @@
settings.endGroup();
#endif
+ splash.finish(gui);
/*
TipDialog tipDialog;
diff -r 1000222cd8f1 -r e8a7a935128e sonic-visualiser.qrc
--- a/sonic-visualiser.qrc Wed Jan 09 17:09:44 2008 +0000
+++ b/sonic-visualiser.qrc Wed Jan 23 11:38:34 2008 +0000
@@ -77,6 +77,7 @@
icons/sv-48x48.png
icons/sv-64x64.png
icons/sv-128x128.png
+ icons/sv-splash.png
samples/bass.wav
samples/beep.wav
samples/bounce.wav