1 #ifndef LABELEDITORDLG_HPP
2 #define LABELEDITORDLG_HPP
9 #include <QAbstractListModel>
36 void setNbColors(
int n);
42 std::vector<mgx::Colorf>* toChange;
43 std::vector<mgx::Colorf> localCopy;
59 bool importLabels(
QString filename);
60 bool exportLabels(
QString filename);
61 void makeLabelCurrent();
63 void setCurrentLabel(
int label);
67 void on_setNbColors_clicked();
68 void on_labelsView_doubleClicked(
const QModelIndex& idx);
69 void on_labelsView_customContextMenuRequested(
const QPoint& pos);
70 void on_showCurrent_clicked();
71 void on_makeGray_clicked();
72 void on_makeRandom_clicked();
77 void selectLabel(
int label,
int repeat,
bool replaceSelection);
78 void makeLabelCurrent(
int label);
81 int currentLabel, selectedLabel;
83 Ui::LabelEditorDlg* ui;
85 QAction* selectLabelAction, *makeLabelCurrentAction;
88 #endif // LABELEDITORDLG_HPP
index(int row, int column=0, const QModelIndex &parent=QModelIndex()
Defines the Color class template.
Definition: LabelEditorDlg.hpp:50
Definition: LabelEditorDlg.hpp:16