-
Notifications
You must be signed in to change notification settings - Fork 0
/
util.h
48 lines (35 loc) · 1.14 KB
/
util.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
#ifndef UTIL_H
#define UTIL_H
#include <QList>
#include <QColor>
#include <QString>
#include <QMap>
class Util
{
public:
Util();
static QString guessPlural(const QString& str);
static QString lowerFirst(const QString& str);
static QString upperFirst(const QString& str);
static QList<QString> getCoreClasses();
static QMap<QString, QString> getCoreClassesMap();
static QStringList getKnownTypes();
static QStringList& getUserDefinedTypes();
static QString getErrorStyleSheet();
static QString getClassColor();
static QString getEnumColor();
static QString getExtensionColor();
static QString getEnumPrefix();
static QString getExecutableFilter();
static QString getLibFilter();
static QString getHeaderFilter();
static QString getImplementationFilter();
static bool isWindows();
static bool removeDir(const QString &dirPath, const QString& filter = "");
static bool copyDir(const QString &srcPath, const QString &dstPath, bool overwrite = true);
static QString toARgbString(const QColor& color);
static QString byteToHex(int oByte);
static QColor parseColor(const QString& sColor);
protected:
};
#endif // UTIL_H