GeoTIFF: Prepare model/view integration.

This commit is contained in:
parouby committed 2025-11-10 17:10:01 +01:00
1 parent 1ed5d69bf4
commit f27b2cc586
2 files changed
+55 -6

No files matched your search

+11 -6
View File
@@ -61,8 +61,12 @@ class EditGeoTIFFWindow(PamhyrWindow):
def setup_values(self):
self.set_check_box("checkBox", self._geotiff.enabled)
self.set_line_edit_text("lineEdit_name", self._geotiff.name)
self.set_line_edit_text("lineEdit_path", self._geotiff.description)
self.set_plaintext_edit_text("plainTextEdit", self._geotiff.text)
self.set_line_edit_text("lineEdit_description", self._geotiff.description)
self.set_double_spin_box("doubleSpinBox_bottom", self._geotiff.coord_bottom)
self.set_double_spin_box("doubleSpinBox_top", self._geotiff.coord_top)
self.set_double_spin_box("doubleSpinBox_left", self._geotiff.coord_left)
self.set_double_spin_box("doubleSpinBox_right", self._geotiff.coord_right)
if self._study.is_read_only():
self.set_check_box_enable("checkBox", False)
@@ -81,10 +85,11 @@ class EditGeoTIFFWindow(PamhyrWindow):
is_enabled = self.get_check_box("checkBox")
name = self.get_line_edit_text("lineEdit_name")
path = self.get_line_edit_text("lineEdit_path")
coord_bottom = self.get_plaintext_edit_text("plainTextEdit")
coord_top = self.get_plaintext_edit_text("plainTextEdit")
coord_left = self.get_plaintext_edit_text("plainTextEdit")
coord_right = self.get_plaintext_edit_text("plainTextEdit")
coord_bottom = self.get_double_spin_box("doubleSpinBox_bottom")
coord_top = self.get_double_spin_box("doubleSpinBox_top")
coord_left = self.get_double_spin_box("doubleSpinBox_left")
coord_right = self.get_double_spin_box("doubleSpinBox_right")
self._undo.push(
SetCommand(