Skip to content

Commit

Permalink
merge manually 76c1ac5
Browse files Browse the repository at this point in the history
  • Loading branch information
landam committed Mar 2, 2024
1 parent 610d042 commit 4f45ead
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
10 changes: 9 additions & 1 deletion gui/wxpython/gmodeler/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,15 @@ def OnProperties(self, event=None):
)

elif isinstance(shape, ModelData):
if shape.GetPrompt() in ("raster", "vector", "raster_3d"):
if shape.GetPrompt() in (
"raster",
"vector",
"raster_3d",
"stds",
"strds",
"stvds",
"str3ds",
):
dlg = ModelDataDialog(parent=self.frame, shape=shape)
shape.SetPropDialog(dlg)
dlg.CentreOnParent()
Expand Down
11 changes: 10 additions & 1 deletion gui/wxpython/gmodeler/panels.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,10 @@ def GetOptData(self, dcmd, layer, params, propwin):
"vector",
"raster_3d",
"dbtable",
"stds",
"strds",
"stvds",
"str3ds",
):
continue

Expand Down Expand Up @@ -473,7 +477,12 @@ def GetOptData(self, dcmd, layer, params, propwin):
data.Update()
continue

data = ModelData(
dataClass = (
ModelDataSeries
if p.get("prompt", "").startswith("st")
else ModelDataSingle
)
data = dataClass(
self,
value=p.get("value", ""),
prompt=p.get("prompt", ""),
Expand Down

0 comments on commit 4f45ead

Please sign in to comment.