9#ifndef KISSWATCHGROUP_H
10#define KISSWATCHGROUP_H
14#include "kritapigment_export.h"
16#include <QSharedPointer>
50 void setName(
const QString &name);
53 void setRowCount(
int newRowCount);
56 int colorCount()
const;
57 int slotCount()
const;
73 bool checkSwatchExists(
int column,
int row)
const;
85 KisSwatch getSwatch(
int column,
int row)
const;
96 friend class TestKisSwatchGroup;
97 friend class TestKoColorSet;
111 void setSwatch(
const KisSwatch &e,
int column,
int row);
120 bool removeSwatch(
int column,
int row);
131 QPair<int, int> addSwatch(
const KisSwatch &e);
136 void setColumnCount(
int columnCount);
137 int columnCount()
const;
149 dbg.nospace() <<
"[Group] Name: " << group.
name();
QDebug operator<<(QDebug dbg, const KisSwatchGroup group)
QSharedPointer< KisSwatchGroup > KisSwatchGroupSP
The PaletteEditor class this class manipulates a KisPaletteModel using GUI elements and communicates ...
The KisSwatchGroup class stores a matrix of color swatches swatches can accessed using (x,...
std::experimental::propagate_const< std::unique_ptr< Private > > d
static int DEFAULT_ROW_COUNT
static int DEFAULT_COLUMN_COUNT