]> git.lyx.org Git - lyx.git/blobdiff - src/BranchList.h
Allow semantic colors in branches and use semantic background color by default
[lyx.git] / src / BranchList.h
index e3e18e1c71f49ba2ae9f305a43633052545318cd..c7dd19603e791171224ca8b35e0cd03f3aee9267 100644 (file)
@@ -61,9 +61,7 @@ public:
        /// Select/deselect filename suffix property.
        void setFileNameSuffix(bool);
        ///
-       RGBColor const & color() const;
-       ///
-       void setColor(RGBColor const &);
+       std::string const & color() const;
        /**
         * Set color from a string "#rrggbb".
         * Use Color:background if the string is no valid color.
@@ -80,7 +78,7 @@ private:
        ///
        bool filenameSuffix_;
        ///
-       RGBColor color_;
+       std::string color_;
 };
 
 
@@ -97,12 +95,12 @@ public:
        docstring separator() const { return separator_; }
 
        ///
-       bool empty() const { return list.empty(); }
+       bool empty() const { return list_.empty(); }
        ///
-       void clear() { list.clear(); }
+       void clear() { list_.clear(); }
        ///
-       const_iterator begin() const { return list.begin(); }
-       const_iterator end() const { return list.end(); }
+       const_iterator begin() const { return list_.begin(); }
+       const_iterator end() const { return list_.end(); }
 
        /** \returns the Branch with \c name. If not found, returns 0.
         */
@@ -128,7 +126,7 @@ public:
 
 private:
        ///
-       List list;
+       List list_;
        ///
        docstring separator_;
 };