1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #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 prevent_dublicates = true);
- int dateToTimestamp(QString customDateString, QString format);
- void addComboItem(QComboBox* combo, QString itemName, QIcon* icon);
- const char *stringToChar(QString val);
- void replaceSkin(QString name);
- QString dialog_ok_answer;
- QString dialog_cancel_answer;
- QString last_message_msg;
- };
- #endif // HELPER_H
|