Нет описания

mainwindow.h 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include "bird.h"
  5. #include <QGraphicsScene>
  6. namespace Ui {
  7. class MainWindow;
  8. }
  9. class MainWindow : public QMainWindow
  10. {
  11. Q_OBJECT
  12. public:
  13. /// \fn MainWindow::MainWindow(QWidget *parent)
  14. /// \~English
  15. /// \brief Constructor
  16. /// \~Spanish
  17. /// \brief Constructor
  18. explicit MainWindow(QWidget *parent = 0);
  19. /// \fn MainWindow::~MainWindow(QWidget *parent)
  20. /// \~English
  21. /// \brief Destructor
  22. /// \~Spanish
  23. /// \brief Destructor
  24. ~MainWindow();
  25. /// \fn void MainWindow::addBird(int x, int y, Bird &b)
  26. /// \~English
  27. /// \brief Paints a bird into the MainWindow
  28. /// \param x X coordinate of the Main Window
  29. /// \param y Y coordinate of the Main Window
  30. /// \param b Bird object to be painted
  31. /// \~Spanish
  32. /// \brief Pinta un pajaro en la pantalla principal
  33. /// \param x Coordenada X de la pantalla principal
  34. /// \param y Coordenada Y de la pantalla principal
  35. /// \param b Objecto Bird a ser pintado
  36. void addBird(int x, int y, Bird &b) ;
  37. /// \fn void MainWindow::addBird(Bird &b)
  38. /// \~English
  39. /// \brief Paints a bird into the MainWindow
  40. /// \param b Bird object to be painted
  41. /// \~Spanish
  42. /// \brief Pinta un pajaro en la pantalla principal
  43. /// \param b Objecto Bird a ser pintado
  44. void addBird(Bird &b) ;
  45. private:
  46. Ui::MainWindow *ui;
  47. QGraphicsScene *scene ;
  48. };
  49. #endif // MAINWINDOW_H