-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStyleSheet.h
More file actions
78 lines (64 loc) · 1.97 KB
/
Copy pathStyleSheet.h
File metadata and controls
78 lines (64 loc) · 1.97 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#ifndef STYLESHEET_H
#define STYLESHEET_H
#include <QString>
class StyleSheet
{
private:
int currentCSS;
QString CssInside;
QString CssOutside;
QString YellowButtonCss;
QString GreenButtonCss;
QString RedButtonCss;
QString ButtonSelectedCss;
QString ButtonUnSelectedCss;
QString ButtonCheckedCss;
QString ButtonUnCheckedCss;
QString ButtonPressedLastCss;
QString CssOutsideButtonSelected;
QString CssOutsideButtonUnSelected;
QString CssOutsideButtonChecked;
QString CssOutsideButtonUnChecked;
QString CssOutsideButtonPressedLast;
QString CssInsideButtonSelected;
QString CssInsideButtonUnSelected;
QString CssInsideButtonChecked;
QString CssInsideButtonUnChecked;
QString CssInsideButtonPressedLast;
int fontSizeForLabels;
int fontSizeForButtons;
int fontSizeForRadioButtons;
int fontSizeForFileNames;
int fontSizeForTableHeaders;
int fontSizeForTableWidget;
QString qLabelFont;
QString qToolButtonFont;
QString qPushButtonFont;
QString qRadioButtonFont;
QString qFileNameFont;
QString qTableWidgetFont;
QString qTableHeaderFont;
void setSpecials(int value);
void calculateFontSizes();
public:
StyleSheet();
//used by whoever calls to set the mode
const int CssLight = 1;
const int CssDark = 2;
QString getButtonSelectedCss() const;
QString getButtonUnSelectedCss() const;
QString getButtonCheckedCss() const;
QString getButtonUnCheckedCss() const;
QString getButtonPressedLastCss() const;
QString getCurrentCSSstring() const;
int getCurrentCSS() const;
void setCurrentCSS(int value);
QString getYellowButtonCss() const;
QString getGreenButtonCss() const;
QString getRedButtonCss() const;
void setFontSizes();
void updateStyleSheet();
int getFontSizeForFileNames() const;
};
extern StyleSheet myStyleSheet;
#endif // STYLESHEET_H