Go to the documentation of this file.
11 #ifndef COLOR_EDIT_DLG_HPP
12 #define COLOR_EDIT_DLG_HPP
20 #include <QAbstractListModel>
24 class QAbstractButton;
32 int rowCount(
const QModelIndex& parent = QModelIndex())
const;
33 int columnCount(
const QModelIndex& = QModelIndex())
const {
return 1; }
35 Qt::ItemFlags
flags(
const QModelIndex& index)
const;
37 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const;
38 bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole);
49 bool insertRows(
int row,
int count,
const QModelIndex& parent = QModelIndex());
50 bool removeRows(
int row,
int count,
const QModelIndex& parent = QModelIndex());
75 void on_buttonBox_clicked(QAbstractButton* btn);
76 void on_setNbColors_clicked();
77 void on_importColors_clicked();
78 void on_exportColors_clicked();
79 void on_presetColors_currentIndexChanged(QString);
80 void on_colorsView_doubleClicked(
const QModelIndex &idx);
82 void on_minBounds_valueChanged(
double d);
83 void on_maxBounds_valueChanged(
double d);
mgx::Point2f & boundsDest
int rowCount(const QModelIndex &parent=QModelIndex()) const
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
void setBoundsMax(float a)
std::vector< mgx::Colorb > & colorsDest
void loadPresetColors(const QString &preset)
bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
mgx_EXPORT IntCellMap * cMap
void presetColors(const QString &preset)
int columnCount(const QModelIndex &=QModelIndex()) const
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
void setBoundsMin(float a)
std::vector< mgx::Colorb > colorsLocal
ColorModel(std::vector< mgx::Colorb > &colors, mgx::Point2f &bounds)
Namespace containing all the utility classes.
QAction * interpolateAction
bool insertRows(int row, int count, const QModelIndex &parent=QModelIndex())
Qt::ItemFlags flags(const QModelIndex &index) const