-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.h
More file actions
51 lines (40 loc) · 1.14 KB
/
Copy pathstyle.h
File metadata and controls
51 lines (40 loc) · 1.14 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
// ===========================================================================
/// <summary>
/// style.h
/// QtIntroduction
/// created by Mehrdad Soleimanimajd on 12.09.2019
/// </summary>
/// <created>ʆϒʅ, 12.09.2019</created>
/// <changed>ʆϒʅ, 27.06.2023</changed>
// ===========================================================================
#ifndef STYLE_H
#define STYLE_H
#include <string>
#include <exception>
#include <fstream>
#include <sstream>
#include <qstring.h>
enum Sphare { enumForm = 0, enumMenu, enumStatusBar };
struct Style
{
QString form;
QString menu;
QString status;
};
class AppStyle
{
private:
std::string paths [2]; // paths to application theme files
unsigned short current; // current application theme index
bool loaded; // true when loading of theme file was successful
bool load ( void ); // theme files loader
public:
Style theme; // current theme
AppStyle ();
//~AppStyle ( void );
void setDefaults ( void ); // defaults
void set ( unsigned char ); // set theme index
const bool getLoaded ( void ); // get the status of loading procedure
};
#endif // STYLE_H