comtools.h 758 B

1234567891011121314151617181920212223242526
  1. #ifndef TOOLS_H
  2. #define TOOLS_H
  3. #include <QString>
  4. #include <QColor>
  5. #include <QHash>
  6. #include <QColor>
  7. #include <qsp_default.h>
  8. class QSPTools
  9. {
  10. public:
  11. static QString GetHexColor(const QColor color);
  12. static QString HtmlizeWhitespaces(const QString& str);
  13. static QString ProceedAsPlain(const QString& str);
  14. static QString GetAppPath();
  15. static QString GetCaseInsensitiveFilePath(QString searchDir, QString originalPath);
  16. static QString GetCaseInsensitiveAbsoluteFilePath(QString searchDir, QString originalPath);
  17. static QString qspStrToQt(const QSP_CHAR *str);
  18. static QColor wxtoQColor(int wxColor);
  19. private:
  20. static QHash<QString, QString> file_list;
  21. static QString file_path;
  22. };
  23. #endif