-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettingswindow.h
60 lines (46 loc) · 1.07 KB
/
settingswindow.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
54
55
56
57
58
59
60
#ifndef SETTINGSWINDOW_H
#define SETTINGSWINDOW_H
#include <QWidget>
#include <QMainWindow>
#include <QLabel>
#include <QPushButton>
#include <QRadioButton>
#include <QFont>
#include <QSlider>
#include <QList>
#include <QTabWidget>
#include <QTabBar>
#include <QFontDatabase>
#include <QHBoxLayout>
#include <QColor>
#include <QMouseEvent>
#include <QGraphicsDropShadowEffect>
#include <iostream>
#include <string>
#include "customslider.h"
using namespace std;
namespace Ui {
class settingsWindow;
}
class settingsWindow : public QWidget
{
Q_OBJECT
public:
QPushButton * colorBtns[8];
string * mainColorStr = nullptr;
QColor * mainColor = nullptr;
bool * colorChanger = nullptr;
int * colorChangeSpeed = nullptr;
string qcolorToStr (QColor color);
QColor colors[16];
explicit settingsWindow(QWidget *parent = nullptr);
~settingsWindow();
void init();
void reloadStyles();
private slots:
void slot_close() { this->close(); };
private:
Ui::settingsWindow *ui;
CustomSlider * colorSpeedSlider;
};
#endif // SETTINGSWINDOW_H