ConfigChanged Part 1 of 3

.. introduce concept of configChanged(what) to
   pass details of what config has been changed

.. fixed zones changes to re-read after write
   to correct the save twice to get changes to
   zones bug.

.. next parts need to spot changes (part 2) and
   then action appropriately (part 3)
This commit is contained in:
Mark Liversedge
2014-12-29 12:37:17 +00:00
parent 1e7a26ee1f
commit 255f69c1ad
113 changed files with 388 additions and 332 deletions

View File

@@ -250,11 +250,11 @@ ErgFilePlot::ErgFilePlot(Context *context) : context(context)
setAutoReplot(false);
setData(ergFile);
connect(context, SIGNAL(configChanged()), this, SLOT(configChanged()));
connect(context, SIGNAL(configChanged(qint32)), this, SLOT(configChanged(qint32)));
}
void
ErgFilePlot::configChanged()
ErgFilePlot::configChanged(qint32)
{
setCanvasBackground(GColor(CTRAINPLOTBACKGROUND));
replot();