Translate: Rename KP to RK (River Kilometric).

This commit is contained in:
Pierre-Antoine Rouby committed 2024-07-05 15:27:18 +02:00
1 parent b83494888b
commit 46dc527222
66 files changed
+668 -614

No files matched your search

+6 -6
View File
@@ -55,8 +55,8 @@ class GeometryReachTableModel(PamhyrTableModel):
return self._data.profile(index.row()).name
if role == Qt.DisplayRole and index.column() == 1:
kp = self._data.profile(index.row()).kp
return f"{kp:.4f}"
rk = self._data.profile(index.row()).rk
return f"{rk:.4f}"
if role == Qt.DisplayRole and index.column() == 2:
return str(self._data.profile(index.row()).nb_points)
@@ -94,9 +94,9 @@ class GeometryReachTableModel(PamhyrTableModel):
if index.column() == 1:
self._undo.push(
SetKPCommand(
SetRKCommand(
self._data, index.row(),
self._data.profile(index.row()).kp,
self._data.profile(index.row()).rk,
value
)
)
@@ -247,12 +247,12 @@ class GeometryReachTableModel(PamhyrTableModel):
self.layoutAboutToBeChanged.emit()
self.layoutChanged.emit()
def update_kp(self, mesher, data):
def update_rk(self, mesher, data):
self.layoutAboutToBeChanged.emit()
self._undo.push(
MeshingCommand(
self._data, mesher, data, "update_kp"
self._data, mesher, data, "update_rk"
)
)