Mercurial > hg > sonic-visualiser
changeset 166:4d762fe10919
* Add SingleColourLayer to manage colours for layers that have a single
predominant colour (i.e. most of them).
author | Chris Cannam |
---|---|
date | Thu, 12 Jul 2007 16:14:59 +0000 |
parents | 33280c031d19 |
children | 567df8af372c |
files | main/MainWindow.cpp main/main.cpp |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/main/MainWindow.cpp Wed Jul 11 17:21:37 2007 +0000 +++ b/main/MainWindow.cpp Thu Jul 12 16:14:59 2007 +0000 @@ -152,6 +152,12 @@ cdb->addColour(Qt::darkGreen, tr("Green")); cdb->addColour(QColor(200, 50, 255), tr("Purple")); cdb->addColour(QColor(255, 150, 50), tr("Orange")); + cdb->setUseDarkBackground(cdb->addColour(Qt::white, tr("White")), true); + cdb->setUseDarkBackground(cdb->addColour(Qt::red, tr("Bright Red")), true); + cdb->setUseDarkBackground(cdb->addColour(QColor(30, 150, 255), tr("Bright Blue")), true); + cdb->setUseDarkBackground(cdb->addColour(Qt::green, tr("Bright Green")), true); + cdb->setUseDarkBackground(cdb->addColour(QColor(225, 74, 255), tr("Bright Purple")), true); + cdb->setUseDarkBackground(cdb->addColour(QColor(255, 188, 80), tr("Bright Orange")), true); connect(CommandHistory::getInstance(), SIGNAL(commandExecuted()), this, SLOT(documentModified()));
--- a/main/main.cpp Wed Jul 11 17:21:37 2007 +0000 +++ b/main/main.cpp Thu Jul 12 16:14:59 2007 +0000 @@ -299,6 +299,7 @@ if (i->startsWith('-')) continue; if (i->startsWith("http:") || i->startsWith("ftp:")) { + std::cerr << "opening URL: \"" << i->toStdString() << "\"..." << std::endl; status = gui.openURL(QUrl(*i)); continue; }