123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef HELPER_H
- #define HELPER_H
- #include <QString>
- #include <QObject>
- #include <QMap>
- #include <QDir>
- #include <QPushButton>
- #include <QComboBox>
- #include <QCryptographicHash>
- class Helper:public QObject {
- Q_OBJECT
- public:
- Helper();
- Helper( const Helper&) = delete;
- Helper& operator=( Helper& ) = delete;
- int getVersion(QString string);
- QMap <QString, QString> htmlColors;
- void checkTab(QString tabname);
- void loadNews();
- void loadHelp();
- void hideAll();
- void setAbout();
- void findSkins();
- QString getSkinName();
- void setState(QString state);
- void applyShadow(QWidget *obj, QString color, int blur, int offset_x, int offset_y);
- void myDialogBox(QString text, QString info, QString okText, QString cancelText, QString image,
- QString okAnswer, QString cancelAnswer, int w, int h, bool textshadow = false, bool is_cancel = false, bool stop_process = false);
- int dateToTimestamp(QString customDateString, QString format);
- void addComboItem(QComboBox* combo, QString itemName, QIcon* icon);
- void replaceSkin(QString name);
- QString countFormattedElapsedTime(qint64 ticks_elapsed, double average_tick_speed);
- QString dialog_ok_answer;
- QString dialog_cancel_answer;
- QString last_message_msg;
- };
- #endif // HELPER_H
|