11 #ifndef LABELEDITORDLG_HPP 12 #define LABELEDITORDLG_HPP 19 #include <QAbstractListModel> 46 void setNbColors(
int n);
52 std::vector<mgx::Colorf>* toChange;
53 std::vector<mgx::Colorf> localCopy;
69 bool importLabels(
QString filename);
70 bool exportLabels(
QString filename);
71 void makeLabelCurrent();
73 void setCurrentLabel(
int label);
77 void on_setNbColors_clicked();
78 void on_labelsView_doubleClicked(
const QModelIndex& idx);
79 void on_labelsView_customContextMenuRequested(
const QPoint& pos);
80 void on_showCurrent_clicked();
81 void on_makeGray_clicked();
82 void on_makeRandom_clicked();
87 void selectLabel(
int label,
int repeat,
bool replaceSelection);
88 void makeLabelCurrent(
int label);
91 int currentLabel, selectedLabel;
93 Ui::LabelEditorDlg* ui;
95 QAction* selectLabelAction, *makeLabelCurrentAction;
98 #endif // LABELEDITORDLG_HPP
Definition: LabelEditorDlg.hpp:56
index(int row, int column=0, const QModelIndex &parent=QModelIndex()
Defines the Color class template.
Definition: LabelEditorDlg.hpp:60
Definition: LabelEditorDlg.hpp:26