3 #ifndef __zqb_palette_hpp
4 #define __zqb_palette_hpp
26 ZqbPalette (
int n,
const QColor& c1,
const QColor& c2);
31 ZqbPalette (
int n,
const QColor& c1,
const QColor& c2,
const QColor& c3);
54 virtual const QColor&
color (
int index)
const;
65 virtual QColor&
color (
int index);
76 virtual int colorIndex (
const QColor& c)
const;
87 Qt::Orientation eOrient)
const;
91 virtual int addColor (
const QColor& c);
117 int addColors (
int n,
const QColor& c1,
const QColor& c2) {
125 const QColor& c2,
const QColor& c3) {
133 std::vector<QColor*> m_Colors;
virtual void revertColorsOrder()
int addColors(int n, const QColor &c1, const QColor &c2)
Definition: zqb_palette.hpp:117
ZqbPalette & operator+=(const QColor &c)
Definition: zqb_palette.hpp:95
virtual int addColor(const QColor &c)
virtual const QColor & color(int index) const
ZqbPalette & operator=(const ZqbPalette &zpal)
void expandToColor(int n, const QColor &c)
virtual void drawPalette(QPixmap &pixmap, Qt::Orientation eOrient) const
ZqbPalette(const QColor &c=Qt::black)
virtual int addPalette(const ZqbPalette &pal)
const QColor & operator[](int index) const
Definition: zqb_palette.hpp:58
virtual int numberOfColors() const
int addColors(int n, const QColor &c1, const QColor &c2, const QColor &c3)
Definition: zqb_palette.hpp:124
Definition: zqb_palette.hpp:17
virtual int colorIndex(const QColor &c) const