1234567891011121314151617181920212223242526 |
- #ifndef TOOLS_H
- #define TOOLS_H
- #include <QString>
- #include <QColor>
- #include <QHash>
- #include <QColor>
- #include <qsp_default.h>
- class QSPTools
- {
- public:
- static QString GetHexColor(const QColor color);
- static QString HtmlizeWhitespaces(const QString& str);
- static QString ProceedAsPlain(const QString& str);
- static QString GetAppPath();
- static QString GetCaseInsensitiveFilePath(QString searchDir, QString originalPath);
- static QString GetCaseInsensitiveAbsoluteFilePath(QString searchDir, QString originalPath);
- static QString qspStrToQt(const QSP_CHAR *str);
- static QColor wxtoQColor(int wxColor);
- private:
- static QHash<QString, QString> file_list;
- static QString file_path;
- };
- #endif
|