forked from segfault87/stitchy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoloreditor.h
45 lines (36 loc) · 976 Bytes
/
coloreditor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef _COLOREDITOR_H_
#define _COLOREDITOR_H_
#include <QDialog>
#include <QItemSelectionModel>
#include "ui_coloreditor.h"
class ColorManager;
class MetaColorManager;
class PaletteModel;
class ColorEditor : public QDialog, public Ui::ColorEditor
{
Q_OBJECT;
public:
ColorEditor(MetaColorManager *cm, QWidget *parent = NULL);
~ColorEditor();
private:
void commit();
private slots:
void addColor();
void removeColor();
void moveUp();
void moveDown();
void selectColorSet(int index);
void leftPaneDeselected();
void rightPaneDeselected();
void leftPaneSelected(const QItemSelection &selected,
const QItemSelection &deselected);
void rightPaneSelected(const QItemSelection &selected,
const QItemSelection &deselected);
private:
MetaColorManager *colorManager_;
ColorManager *myColors_;
ColorManager *foreignColors_;
PaletteModel *myModel_;
PaletteModel *foreignModel_;
};
#endif