comparison main/MainWindow.cpp @ 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 aca2c23f0f09
comparison
equal deleted inserted replaced
165:33280c031d19 166:4d762fe10919
150 cdb->addColour(Qt::darkRed, tr("Red")); 150 cdb->addColour(Qt::darkRed, tr("Red"));
151 cdb->addColour(Qt::darkBlue, tr("Blue")); 151 cdb->addColour(Qt::darkBlue, tr("Blue"));
152 cdb->addColour(Qt::darkGreen, tr("Green")); 152 cdb->addColour(Qt::darkGreen, tr("Green"));
153 cdb->addColour(QColor(200, 50, 255), tr("Purple")); 153 cdb->addColour(QColor(200, 50, 255), tr("Purple"));
154 cdb->addColour(QColor(255, 150, 50), tr("Orange")); 154 cdb->addColour(QColor(255, 150, 50), tr("Orange"));
155 cdb->setUseDarkBackground(cdb->addColour(Qt::white, tr("White")), true);
156 cdb->setUseDarkBackground(cdb->addColour(Qt::red, tr("Bright Red")), true);
157 cdb->setUseDarkBackground(cdb->addColour(QColor(30, 150, 255), tr("Bright Blue")), true);
158 cdb->setUseDarkBackground(cdb->addColour(Qt::green, tr("Bright Green")), true);
159 cdb->setUseDarkBackground(cdb->addColour(QColor(225, 74, 255), tr("Bright Purple")), true);
160 cdb->setUseDarkBackground(cdb->addColour(QColor(255, 188, 80), tr("Bright Orange")), true);
155 161
156 connect(CommandHistory::getInstance(), SIGNAL(commandExecuted()), 162 connect(CommandHistory::getInstance(), SIGNAL(commandExecuted()),
157 this, SLOT(documentModified())); 163 this, SLOT(documentModified()));
158 connect(CommandHistory::getInstance(), SIGNAL(documentRestored()), 164 connect(CommandHistory::getInstance(), SIGNAL(documentRestored()),
159 this, SLOT(documentRestored())); 165 this, SLOT(documentRestored()));