qspmsgdlg.h 920 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef QSPMSGDLG_H
  2. #define QSPMSGDLG_H
  3. #include <QWidget>
  4. #include <QDialog>
  5. #include <QPushButton>
  6. #include <QVBoxLayout>
  7. #include <QString>
  8. #include <QFont>
  9. #include <QColor>
  10. #include "qsptextbox.h"
  11. namespace Ui {
  12. class QspMsgDlg;
  13. }
  14. class QspMsgDlg : public QDialog
  15. {
  16. Q_OBJECT
  17. public:
  18. explicit QspMsgDlg(QWidget *parent = 0);
  19. QspMsgDlg(const QString &caption = "", const QString &text = "", QWidget *parent = 0);
  20. QspMsgDlg(const QColor& backColor,
  21. const QColor& fontColor,
  22. const QFont& new_font,
  23. const QString& caption,
  24. const QString& text,
  25. bool isHtml,
  26. const QString& gamePath,
  27. QWidget *parent = 0);
  28. ~QspMsgDlg();
  29. private:
  30. // Events
  31. void OnLinkClicked(const QUrl &url);
  32. // Fields
  33. QspTextBox m_desc;
  34. QVBoxLayout layout;
  35. QPushButton okButton;
  36. };
  37. #endif // QSPMSGDLG_H