-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpalette.h
53 lines (42 loc) · 893 Bytes
/
palette.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
46
47
48
49
50
51
52
53
#ifndef PALETTE_H
#define PALETTE_H
#include "common.h"
#include <QObject>
#include <QFrame>
class Palette : public QFrame
{
Q_OBJECT
public:
explicit Palette(QWidget *parent = nullptr);
int fgcolor = 7;
int bgcolor = 0;
QList<int> getColors();
protected:
void paintEvent(QPaintEvent *e) override;
public slots:
void attrsPicked(int at);
private:
bool fgflg=true, bgflg=false;
void setColor(int);
signals:
private slots:
void tbfgClick();
void tbbgClick();
void col0Click();
void col1Click();
void col2Click();
void col3Click();
void col4Click();
void col5Click();
void col6Click();
void col7Click();
void col8Click();
void col9Click();
void col10Click();
void col11Click();
void col12Click();
void col13Click();
void col14Click();
void col15Click();
};
#endif // PALETTE_H