Go to the documentation of this file.
11 #ifndef LABELEDITORDLG_HPP
12 #define LABELEDITORDLG_HPP
19 #include <QAbstractListModel>
23 class QAbstractButton;
31 int rowCount(
const QModelIndex& parent = QModelIndex())
const;
36 Qt::ItemFlags
flags(
const QModelIndex& index)
const;
38 QVariant
data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const;
39 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());
88 void selectLabel(
int label,
int repeat,
bool replaceSelection);
94 Ui::LabelEditorDlg*
ui;
99 #endif // LABELEDITORDLG_HPP
void on_makeRandom_clicked()
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
void on_labelsView_customContextMenuRequested(const QPoint &pos)
int columnCount(const QModelIndex &=QModelIndex()) const
Qt::ItemFlags flags(const QModelIndex &index) const
QPushButton * importButton
int rowCount(const QModelIndex &parent=QModelIndex()) const
bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
void on_buttonBox_clicked(QAbstractButton *btn)
void on_setNbColors_clicked()
std::vector< mgx::Colorf > * toChange
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
LabelEditorDlg(std::vector< mgx::Colorf > *colors, QWidget *parent)
void setCurrentLabel(int label)
std::vector< mgx::Colorf > localCopy
bool insertRows(int row, int count, const QModelIndex &parent=QModelIndex())
void on_showCurrent_clicked()
QAction * makeLabelCurrentAction
void on_labelsView_doubleClicked(const QModelIndex &idx)
QAction * selectLabelAction
void on_makeGray_clicked()
LabelModel(std::vector< mgx::Colorf > *colors)
QPushButton * exportButton