Keine Beschreibung

mainwindow.h 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include <QGraphicsScene>
  5. #include <QTimer>
  6. #include "frog.h"
  7. namespace Ui {
  8. class MainWindow;
  9. }
  10. class MainWindow : public QMainWindow
  11. {
  12. Q_OBJECT
  13. public:
  14. /// \fn MainWindow::MainWindow(QWidget *parent)
  15. /// \~English
  16. /// \brief Default constructor.
  17. /// \~Spanish
  18. /// \brief Constructor por defecto.
  19. ///
  20. explicit MainWindow(QWidget *parent = 0);
  21. /// \fn MainWindow::~MainWindow()
  22. /// \~English
  23. /// \brief Default destructor
  24. /// \~Spanish
  25. /// \brief Destructor por defecto
  26. ///
  27. ~MainWindow();
  28. /// \fn void MainWindow::quadraticFormulaCheck()
  29. /// \~English
  30. /// \brief Function that uses an array of values to determine
  31. /// if the equation written by the student is correct.
  32. /// \~Spanish
  33. /// \brief Funcion que utiliza un arreglo de valores para
  34. /// determinar si la ecuacion que escribio el estudiante
  35. /// esta correcta.
  36. ///
  37. void quadraticFormulaCheck();
  38. private slots:
  39. /// \fn void on_RunPushButton_clicked()
  40. /// \~English
  41. /// \brief Function that is invoked when the jump button is pressed,
  42. /// frog jumps to calculated location.
  43. /// \~Spanish
  44. /// \brief Funcion que se invoca cuando el boton de "jump" es presionado,
  45. /// el sapo brinca a la localizacion calculada.
  46. ///
  47. void on_RunPushButton_clicked();
  48. /// \fn void on_retryButton_clicked()
  49. /// \~English
  50. /// \brief Function that is invoked when the reset button is pressed,
  51. /// returns the window to its original state.
  52. /// \~Spanish
  53. /// \brief Funcion que se invoca cuando el boton de "reset" es presionado,
  54. /// devuelve la ventana a su estado original.
  55. ///
  56. void on_retryButton_clicked();
  57. /// \fn MainWindow::on_alineEdit_textChanged(QString &arg1)
  58. /// \~English
  59. /// \brief Function that is invoked when the text is changed in the
  60. /// alineEdit, enables jump buttton if the other line edits aren't empty.
  61. /// \~Spanish
  62. /// \brief Funcion que se invoca cuando el texto dentro de alineEdit
  63. /// cambia, permite que el button de "jump" sea presionado si los otros
  64. /// "line edits" no estan vacios.
  65. ///
  66. void on_alineEdit_textChanged();
  67. /// \fn MainWindow::on_blineEdit_textChanged(QString &arg1)
  68. /// \~English
  69. /// \brief Function that is invoked when the text is changed in the
  70. /// alineEdit, enables jump buttton if the other line edits aren't empty.
  71. /// \~Spanish
  72. /// \brief Funcion que se invoca cuando el texto dentro de alineEdit
  73. /// cambia, permite que el button de "jump" sea presionado si los otros
  74. /// "line edits" no estan vacios.
  75. ///
  76. void on_blineEdit_textChanged();
  77. /// \fn MainWindow::on_clineEdit_textChanged(QString &arg1)
  78. /// \~English
  79. /// \brief Function that is invoked when the text is changed in the
  80. /// alineEdit, enables jump buttton if the other line edits aren't empty.
  81. /// \~Spanish
  82. /// \brief Funcion que se invoca cuando el texto dentro de alineEdit
  83. /// cambia, permite que el button de "jump" sea presionado si los otros
  84. /// "line edits" no estan vacios.
  85. ///
  86. void on_clineEdit_textChanged();
  87. private:
  88. Ui::MainWindow *ui;
  89. QGraphicsScene*scene;
  90. QTimer *globalTimer;
  91. frog *frogger;
  92. };
  93. #endif // MAINWINDOW_H