Added
Link Here
|
1 |
--- src/Sync/DirtyList.cpp.orig 2022-06-11 16:32:14 UTC |
2 |
+++ src/Sync/DirtyList.cpp |
3 |
@@ -342,7 +342,7 @@ bool DirtyListDescriber::showChanges(QWidget* aParent) |
4 |
|
5 |
bool DirtyListDescriber::addRoad(Way* R) |
6 |
{ |
7 |
- QListWidgetItem* it = new QListWidgetItem(QApplication::translate("DirtyListExecutor","ADD road %1").arg(R->id().numId) + userName(R), theListWidget); |
8 |
+ QListWidgetItem* it = new QListWidgetItem(QApplication::translate("DirtyListExecutor","ADD way %1").arg(R->id().numId) + userName(R), theListWidget); |
9 |
it->setData(Qt::UserRole, QVariant::fromValue(R->id())); |
10 |
++glbAdded; |
11 |
++glbWaysAdded; |
12 |
@@ -351,7 +351,7 @@ bool DirtyListDescriber::addRoad(Way* R) |
13 |
|
14 |
bool DirtyListDescriber::addPoint(Node* Pt) |
15 |
{ |
16 |
- QListWidgetItem* it = new QListWidgetItem(QApplication::translate("DirtyListExecutor","ADD trackpoint %1").arg(Pt->id().numId) + userName(Pt), theListWidget); |
17 |
+ QListWidgetItem* it = new QListWidgetItem(QApplication::translate("DirtyListExecutor","ADD node %1").arg(Pt->id().numId) + userName(Pt), theListWidget); |
18 |
it->setData(Qt::UserRole, QVariant::fromValue(Pt->id())); |
19 |
++glbAdded; |
20 |
++glbNodesAdded; |
21 |
@@ -369,7 +369,7 @@ bool DirtyListDescriber::addRelation(Relation* R) |
22 |
|
23 |
bool DirtyListDescriber::updatePoint(Node* Pt) |
24 |
{ |
25 |
- QListWidgetItem* it = new QListWidgetItem(QApplication::translate("DirtyListExecutor","UPDATE trackpoint %1").arg(Pt->id().numId) + userName(Pt), theListWidget); |
26 |
+ QListWidgetItem* it = new QListWidgetItem(QApplication::translate("DirtyListExecutor","UPDATE node %1").arg(Pt->id().numId) + userName(Pt), theListWidget); |
27 |
it->setData(Qt::UserRole, QVariant::fromValue(Pt->id())); |
28 |
++glbUpdated; |
29 |
++glbNodesUpdated; |
30 |
@@ -387,7 +387,7 @@ bool DirtyListDescriber::updateRelation(Relation* R) |
31 |
|
32 |
bool DirtyListDescriber::updateRoad(Way* R) |
33 |
{ |
34 |
- QListWidgetItem* it = new QListWidgetItem(QApplication::translate("DirtyListExecutor","UPDATE road %1").arg(R->id().numId) + userName(R), theListWidget); |
35 |
+ QListWidgetItem* it = new QListWidgetItem(QApplication::translate("DirtyListExecutor","UPDATE way %1").arg(R->id().numId) + userName(R), theListWidget); |
36 |
it->setData(Qt::UserRole, QVariant::fromValue(R->id())); |
37 |
++glbUpdated; |
38 |
++glbWaysUpdated; |
39 |
@@ -396,7 +396,7 @@ bool DirtyListDescriber::updateRoad(Way* R) |
40 |
|
41 |
bool DirtyListDescriber::erasePoint(Node* Pt) |
42 |
{ |
43 |
- QListWidgetItem* it = new QListWidgetItem(QApplication::translate("DirtyListExecutor","REMOVE trackpoint %1").arg(Pt->id().numId) + userName(Pt), theListWidget); |
44 |
+ QListWidgetItem* it = new QListWidgetItem(QApplication::translate("DirtyListExecutor","REMOVE node %1").arg(Pt->id().numId) + userName(Pt), theListWidget); |
45 |
it->setData(Qt::UserRole, QVariant::fromValue(Pt->id())); |
46 |
++glbDeleted; |
47 |
++glbNodesDeleted; |
48 |
@@ -405,7 +405,7 @@ bool DirtyListDescriber::erasePoint(Node* Pt) |
49 |
|
50 |
bool DirtyListDescriber::eraseRoad(Way* R) |
51 |
{ |
52 |
- QListWidgetItem* it = new QListWidgetItem(QApplication::translate("DirtyListExecutor","REMOVE road %1").arg(R->id().numId) + userName(R), theListWidget); |
53 |
+ QListWidgetItem* it = new QListWidgetItem(QApplication::translate("DirtyListExecutor","REMOVE way %1").arg(R->id().numId) + userName(R), theListWidget); |
54 |
it->setData(Qt::UserRole, QVariant::fromValue(R->id())); |
55 |
++glbDeleted; |
56 |
++glbWaysDeleted; |
57 |
@@ -593,9 +593,9 @@ bool DirtyListExecutor::addRoad(Way *R) |
58 |
{ |
59 |
Progress->setValue(++Done); |
60 |
|
61 |
- qDebug() << QString("ADD road %1").arg(R->id().numId); |
62 |
+ qDebug() << QString("ADD way %1").arg(R->id().numId); |
63 |
|
64 |
- Progress->setLabelText(tr("ADD road %1").arg(R->id().numId) + userName(R)); |
65 |
+ Progress->setLabelText(tr("ADD way %1").arg(R->id().numId) + userName(R)); |
66 |
QEventLoop L; L.processEvents(QEventLoop::ExcludeUserInputEvents); |
67 |
|
68 |
QString DataIn, DataOut; |
69 |
@@ -627,9 +627,9 @@ bool DirtyListExecutor::addPoint(Node* Pt) |
70 |
{ |
71 |
Progress->setValue(++Done); |
72 |
|
73 |
- qDebug() << QString("ADD trackpoint %1").arg(Pt->id().numId); |
74 |
+ qDebug() << QString("ADD node %1").arg(Pt->id().numId); |
75 |
|
76 |
- Progress->setLabelText(tr("ADD trackpoint %1").arg(Pt->id().numId) + userName(Pt)); |
77 |
+ Progress->setLabelText(tr("ADD node %1").arg(Pt->id().numId) + userName(Pt)); |
78 |
QEventLoop L; L.processEvents(QEventLoop::ExcludeUserInputEvents); |
79 |
|
80 |
QString DataIn, DataOut; |
81 |
@@ -693,9 +693,9 @@ bool DirtyListExecutor::updateRoad(Way* R) |
82 |
{ |
83 |
Progress->setValue(++Done); |
84 |
|
85 |
- qDebug() << QString("UPDATE road %1").arg(R->id().numId); |
86 |
+ qDebug() << QString("UPDATE way %1").arg(R->id().numId); |
87 |
|
88 |
- Progress->setLabelText(tr("UPDATE road %1").arg(R->id().numId) + userName(R)); |
89 |
+ Progress->setLabelText(tr("UPDATE way %1").arg(R->id().numId) + userName(R)); |
90 |
QEventLoop L; L.processEvents(QEventLoop::ExcludeUserInputEvents); |
91 |
QString URL = theDownloader->getURLToUpdate("way",stripToOSMId(R->id())); |
92 |
QString DataIn, DataOut; |
93 |
@@ -724,9 +724,9 @@ bool DirtyListExecutor::updatePoint(Node* Pt) |
94 |
{ |
95 |
Progress->setValue(++Done); |
96 |
|
97 |
- qDebug() << QString("UPDATE trackpoint %1").arg(Pt->id().numId); |
98 |
+ qDebug() << QString("UPDATE node %1").arg(Pt->id().numId); |
99 |
|
100 |
- Progress->setLabelText(tr("UPDATE trackpoint %1").arg(Pt->id().numId) + userName(Pt)); |
101 |
+ Progress->setLabelText(tr("UPDATE node %1").arg(Pt->id().numId) + userName(Pt)); |
102 |
QEventLoop L; L.processEvents(QEventLoop::ExcludeUserInputEvents); |
103 |
// QString URL("/api/0.3/node/%1"); |
104 |
// URL = URL.arg(stripToOSMId(Pt->id())); |
105 |
@@ -757,9 +757,9 @@ bool DirtyListExecutor::erasePoint(Node *Pt) |
106 |
{ |
107 |
Progress->setValue(++Done); |
108 |
|
109 |
- qDebug() << QString("REMOVE trackpoint %1").arg(Pt->id().numId); |
110 |
+ qDebug() << QString("REMOVE node %1").arg(Pt->id().numId); |
111 |
|
112 |
- Progress->setLabelText(tr("REMOVE trackpoint %1").arg(Pt->id().numId) + userName(Pt)); |
113 |
+ Progress->setLabelText(tr("REMOVE node %1").arg(Pt->id().numId) + userName(Pt)); |
114 |
QEventLoop L; L.processEvents(QEventLoop::ExcludeUserInputEvents); |
115 |
// QString URL("/api/0.3/node/%1"); |
116 |
// URL = URL.arg(stripToOSMId(Pt->id())); |
117 |
@@ -784,9 +784,9 @@ bool DirtyListExecutor::eraseRoad(Way *R) |
118 |
{ |
119 |
Progress->setValue(++Done); |
120 |
|
121 |
- qDebug() << QString("REMOVE road %1").arg(R->id().numId); |
122 |
+ qDebug() << QString("REMOVE way %1").arg(R->id().numId); |
123 |
|
124 |
- Progress->setLabelText(tr("REMOVE road %1").arg(R->id().numId) + userName(R)); |
125 |
+ Progress->setLabelText(tr("REMOVE way %1").arg(R->id().numId) + userName(R)); |
126 |
QEventLoop L; L.processEvents(QEventLoop::ExcludeUserInputEvents); |
127 |
// QString URL("/api/0.3/way/%1"); |
128 |
// URL = URL.arg(stripToOSMId(R->id())); |