dialogform.h 545 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef DIALOGFORM_H
  2. #define DIALOGFORM_H
  3. #include <QWidget>
  4. #include "gui/scene.h"
  5. namespace Ui {
  6. class DialogForm;
  7. }
  8. class DialogForm : public Scene
  9. {
  10. Q_OBJECT
  11. public:
  12. explicit DialogForm(QWidget *parent = 0);
  13. void exec();
  14. bool isOk();
  15. void setTitle(QString title);
  16. void setText(QString text);
  17. void setShowCancel(bool show);
  18. ~DialogForm();
  19. private slots:
  20. void on_cancel_button_clicked();
  21. void on_ok_button_clicked();
  22. private:
  23. bool ok;
  24. Ui::DialogForm *ui;
  25. };
  26. #endif // DIALOGFORM_H