#ifndef BRANCHES_H
#define BRANCHES_H
+#include "Color.h"
+
#include <string>
#include <list>
class Branch {
public:
+ ///
+ Branch();
///
std::string const & getBranch() const;
///
*/
bool setSelected(bool);
///
- std::string const & getColor() const;
+ lyx::RGBColor const & getColor() const;
///
+ void setColor(lyx::RGBColor const &);
+ /**
+ * Set color from a string "#rrggbb".
+ * Use LColor:background if the string is no valid color.
+ * This ensures compatibility with LyX 1.4.0 that had the symbolic
+ * color "none" that was displayed as LColor:background.
+ */
void setColor(std::string const &);
///
bool selected_;
///
- std::string color_;
+ lyx::RGBColor color_;
};
BranchList() : separator_("|") {}
///
- bool empty() { 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(); }