No Description

mainwindow.h 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include "map.h"
  5. namespace Ui {
  6. class MainWindow;
  7. }
  8. /// \brief The mainwindow for the prMap application.
  9. class MainWindow : public QMainWindow
  10. {
  11. Q_OBJECT
  12. public:
  13. // data members, I will declare as public for now
  14. Map *myMap;
  15. /// \fn MainWindow(QWidget *parent = 0)
  16. /// \~English
  17. /// \brief default constructor
  18. /// \param parent a pointer to this object's parent
  19. /// \~Spanish
  20. /// \brief constructor por defecto
  21. /// \param parent puntero al padre de este objeto
  22. ///
  23. explicit MainWindow(QWidget *parent = 0);
  24. /// \fn void drawPoints(GISPOI* gisLocations, unsigned int size)
  25. /// \~English
  26. /// \brief receives an array of points and its size, assigns it to
  27. /// an array inside the myMap object.
  28. /// \param gisLocations an array of GISPOI objects in which we would
  29. /// like to draw points
  30. /// \param size size of the array
  31. /// \~Spanish
  32. /// \brief recibe un arreglo de puntos y su tamañano y lo asigna
  33. /// a un arreglo dentro del objeto myMap.
  34. /// \param gisLocations un arreglo de objetos de clase GISPOI de los que
  35. /// desearíamos dibujar puntos.
  36. /// \param size tamaño del array
  37. ///
  38. void drawPoints(GISPOI* gisLocations, unsigned int size);
  39. /// \fn void drawLine(const GISPOI &city01, const GISPOI &city02)
  40. /// \~English
  41. /// \brief receives reference to two objects of class GISPOIO and
  42. /// registers that a segment shall be painted between them in the map.
  43. /// \param poi01 one of the two GISPOI object ends of the segment
  44. /// \param poi02 the other of the two GISPOI object ends of the segment
  45. /// \~Spanish
  46. /// \brief recibe referencia a dos objetos de clase GISPOI y registra que
  47. /// que se pintará una linea entre ellos dentro del mapa.
  48. /// \param poi01 uno de los dos puntos extremos del segmento.
  49. /// \param poi02 el otro de los dos puntos extremos del segmento.
  50. ///
  51. void drawLine(const GISPOI &poi01, const GISPOI &poi02);
  52. /// \fn ~MainWindow()
  53. /// \~English
  54. /// \brief destructor
  55. /// \~Spanish
  56. /// \brief destructor
  57. ///
  58. ~MainWindow();
  59. private:
  60. Ui::MainWindow *ui;
  61. protected:
  62. };
  63. #endif // MAINWINDOW_H