-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathapp_settings.h
63 lines (44 loc) · 1.09 KB
/
app_settings.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
61
62
63
#ifndef _CAPPSETTINGS_H
#define _CAPPSETTINGS_H
#include <ctime>
#include <map>
#include <iterator>
#include <QApplication>
#include <QDesktopWidget>
#include <QDir>
#include <QAction>
#include <QString>
#include <QStringList>
#include <QColor>
#include <QByteArray>
#include <QMap>
#include "platform_specific.h"
#include "cpp_utilities.h"
#include "string_utilities.h"
#include "file_utilities.h"
class _CAppSettings
{
public:
_CPairVector<QString, QColor> m_vColorsList;
QStringList m_vMruFiles;
bool m_bDlgScale_KeepAspectRatio;
bool m_bFindTextWithCase;
bool m_bFindTextWholeWord;
bool m_bFindTextHighlightAll;
bool m_bFindTextRegExp;
QString m_sPathToOpenFile;
QString m_sPathToExportFile;
QString m_sPathToInsImage;
QSize m_szIconSize;
protected:
void _init(void);
void _ddx(_CKeyValEntries& xKV, bool bGet);
void _validate_settings(void);
public:
_CAppSettings();
void load(const QString& sIniFn);
void saveIni(const QString& sIniFn);
QIcon getIconForToolBar(const QString& sFilename);
};
extern _CAppSettings g_xOpt;
#endif // _CAPPSETTINGS_H