Przeglądaj źródła

Todavia Limpiando el código, documentando

Rafael Arce Nazario 9 lat temu
rodzic
commit
2a2c5ae847
5 zmienionych plików z 11 dodań i 7 usunięć
  1. 1
    1
      country.h
  2. 2
    2
      doublepoint.h
  3. 3
    1
      mainwindow.h
  4. 3
    3
      map.h
  5. 2
    0
      prMap.pro

+ 1
- 1
country.h Wyświetl plik

@@ -6,7 +6,7 @@
6 6
 #include <QMap>
7 7
 
8 8
 
9
-/// A class to display a map of a country, given the coordinates
9
+/// \brief A class to display a map of a country, given the coordinates
10 10
 /// that define its limits.
11 11
 
12 12
 class Country {

+ 2
- 2
doublepoint.h Wyświetl plik

@@ -1,8 +1,8 @@
1 1
 #ifndef DOUBLEPOINT_H
2 2
 #define DOUBLEPOINT_H
3 3
 
4
-/// A class to display to store an x, y coordinate of type double.
5
-///
4
+/// \brief A class to display to represent a point in the x,y plane.
5
+
6 6
 class DoublePoint {
7 7
 public:
8 8
     double x, y;

+ 3
- 1
mainwindow.h Wyświetl plik

@@ -2,12 +2,14 @@
2 2
 #define MAINWINDOW_H
3 3
 
4 4
 #include <QMainWindow>
5
-// #include <census.h>
6 5
 #include "map.h"
7 6
 namespace Ui {
8 7
 class MainWindow;
9 8
 }
10 9
 
10
+/// \brief The mainwindow for the prMap application.
11
+
12
+
11 13
 class MainWindow : public QMainWindow
12 14
 {
13 15
     Q_OBJECT

+ 3
- 3
map.h Wyświetl plik

@@ -35,13 +35,13 @@ public:
35 35
     
36 36
     /// \fn drawLine(const GISPOI &city01, const GISPOI &city02)
37 37
     /// \~English
38
-    /// \brief adds a line from city01 to city02
38
+    /// \brief adds a line from poi01 to poi02
39 39
     /// \~Spanish
40 40
     /// \brief añade una linea entre los centroides de city01 a city02
41 41
     ///
42
-    void drawLine(const GISPOI &city01, const GISPOI &city02) {
42
+    void drawLine(const GISPOI &poi01, const GISPOI &poi02) {
43 43
         this->cityLines.push_back(
44
-            QPair<const GISPOI *, const GISPOI *> (&city01, &city02));
44
+            QPair<const GISPOI *, const GISPOI *> (&poi01, &poi02));
45 45
     }
46 46
     
47 47
     /// \fn ~Map)()

+ 2
- 0
prMap.pro Wyświetl plik

@@ -32,3 +32,5 @@ FORMS    += mainwindow.ui
32 32
 
33 33
 RESOURCES += \
34 34
     prmap.qrc
35
+
36
+DEFINES += QT_NO_DEBUG_OUTPUT