qspinputdlg.h 793 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef QSPINPUTDLG_H
  2. #define QSPINPUTDLG_H
  3. #include <QWidget>
  4. #include <QString>
  5. #include <QFont>
  6. #include <QColor>
  7. #include "qsptextbox.h"
  8. //TODO: implement this to replace generic QInputDialog
  9. namespace Ui {
  10. class QspInputDlg;
  11. }
  12. class QspInputDlg : public QWidget
  13. {
  14. Q_OBJECT
  15. public:
  16. explicit QspInputDlg(QWidget *parent = 0);
  17. ~QspInputDlg();
  18. QspInputDlg(const QColor& backColor,
  19. const QColor& fontColor,
  20. const QFont& font,
  21. const QString& caption,
  22. const QString& text,
  23. bool isHtml,
  24. const QString& gamePath,
  25. QWidget *parent = 0);
  26. private:
  27. QString GetText() const { return m_text; }
  28. QspTextBox m_desc;
  29. QString m_text;
  30. };
  31. #endif // QSPINPUTDLG_H