Sat, 17 May 2014 15:38:20 +0300
- bfc red/green view and random colors are now mutually exclusive, enabling one disables the other.
src/actions.cc | file | annotate | diff | comparison | revisions | |
src/ldObject.cc | file | annotate | diff | comparison | revisions | |
src/mainWindow.cc | file | annotate | diff | comparison | revisions |
--- a/src/actions.cc Sat May 17 02:00:02 2014 +0300 +++ b/src/actions.cc Sat May 17 15:38:20 2014 +0300 @@ -681,6 +681,10 @@ DEFINE_ACTION (BFCView, SHIFT (B)) { cfg::bfcRedGreenView = not cfg::bfcRedGreenView; + + if (cfg::bfcRedGreenView) + cfg::randomColors = false; + updateActions(); R()->refresh(); } @@ -882,5 +886,10 @@ DEFINE_ACTION (RandomColors, CTRL_SHIFT (R)) { cfg::randomColors = not cfg::randomColors; + + if (cfg::randomColors) + cfg::bfcRedGreenView = false; + + updateActions(); R()->refresh(); } \ No newline at end of file
--- a/src/ldObject.cc Sat May 17 02:00:02 2014 +0300 +++ b/src/ldObject.cc Sat May 17 15:38:20 2014 +0300 @@ -80,8 +80,8 @@ void LDObject::chooseID() { // If this is the first pass we can just use a global ID counter for each - // unique object. Let's nobody goes to create 17 million objects anytime - // soon. + // unique object. Let's hope that nobody goes to create 17 million objects + // anytime soon. if (g_idcursor < g_maxID) { setID (g_idcursor++);
--- a/src/mainWindow.cc Sat May 17 02:00:02 2014 +0300 +++ b/src/mainWindow.cc Sat May 17 15:38:20 2014 +0300 @@ -984,6 +984,7 @@ ui->actionRedo->setEnabled (pos < (long) his->getSize() - 1); ui->actionAxes->setChecked (cfg::drawAxes); ui->actionBFCView->setChecked (cfg::bfcRedGreenView); + ui->actionRandomColors->setChecked (cfg::randomColors); ui->actionDrawAngles->setChecked (cfg::drawAngles); }