diff layer/SingleColourLayer.h @ 293:15b8a4bfe855

* continue to pick "new" colours for coloured layers even when all colours have been used at least once, rather than sticking on the last one * some messing about with application palette settings * when replacing an audio file, retain the previous playback settings for any layers that depended on the old file * re-check plugin program setting when a parameter changes -- so a plugin can decide to reset the program if the parameters no longer match those for the current program * fix failure to update check-boxes for toggled plugin parameters when their parameters are changed by program changes
author Chris Cannam
date Thu, 09 Aug 2007 14:40:03 +0000
parents cd2492c5fe45
children 919740b20cc9
line wrap: on
line diff
--- a/layer/SingleColourLayer.h	Mon Aug 06 14:37:59 2007 +0000
+++ b/layer/SingleColourLayer.h	Thu Aug 09 14:40:03 2007 +0000
@@ -19,6 +19,7 @@
 #include "Layer.h"
 #include <QColor>
 #include <vector>
+#include <map>
 
 class SingleColourLayer : public Layer
 {
@@ -62,8 +63,8 @@
     virtual int getDefaultColourHint(bool /* darkBackground */,
                                      bool & /* impose */) { return -1; }
 
-    typedef std::multiset<int> ColourIndexPool;
-    static ColourIndexPool m_usedColourIndices;
+    typedef std::map<int, int> ColourRefCount;
+    static ColourRefCount m_colourRefCount;
 
     int m_colour;
 };