mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
add Reservoirs
This commit is contained in:
1 parent
12e3d779c6
commit
92eb729a39
18 files changed
+1791
-11
No files matched your search
+13
-1
@@ -47,6 +47,7 @@ from View.About.Window import AboutWindow
|
||||
from View.Network.Window import NetworkWindow
|
||||
from View.Geometry.Window import GeometryWindow
|
||||
from View.BoundaryCondition.Window import BoundaryConditionWindow
|
||||
from View.Reservoir.Window import ReservoirWindow
|
||||
from View.LateralContribution.Window import LateralContributionWindow
|
||||
from View.InitialConditions.Window import InitialConditionsWindow
|
||||
from View.Stricklers.Window import StricklersWindow
|
||||
@@ -101,7 +102,7 @@ define_model_action = [
|
||||
"action_menu_boundary_conditions", "action_menu_initial_conditions",
|
||||
"action_menu_edit_friction", "action_menu_edit_lateral_contribution",
|
||||
"action_menu_run_solver", "action_menu_sediment_layers",
|
||||
"action_menu_edit_reach_sediment_layers"
|
||||
"action_menu_edit_reach_sediment_layers", "action_menu_edit_reservoirs"
|
||||
]
|
||||
|
||||
action = (
|
||||
@@ -191,6 +192,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
"action_menu_edit_network": self.open_network,
|
||||
"action_menu_edit_geometry": self.open_geometry,
|
||||
"action_menu_boundary_conditions": self.open_boundary_cond,
|
||||
"action_menu_edit_reservoirs": self.open_reservoir,
|
||||
"action_menu_initial_conditions": self.open_initial_conditions,
|
||||
"action_menu_edit_friction": self.open_frictions,
|
||||
"action_menu_edit_lateral_contribution": self.open_lateral_contrib,
|
||||
@@ -616,6 +618,16 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
bound = BoundaryConditionWindow(study=self._study, parent=self)
|
||||
bound.show()
|
||||
|
||||
def open_reservoir(self):
|
||||
if self.sub_window_exists(
|
||||
ReservoirWindow,
|
||||
data=[self._study, None]
|
||||
):
|
||||
return
|
||||
|
||||
reservoir = ReservoirWindow(study=self._study, parent=self)
|
||||
reservoir.show()
|
||||
|
||||
def open_lateral_contrib(self):
|
||||
if self.sub_window_exists(
|
||||
LateralContributionWindow,
|
||||
|
||||
Reference in new issue
Block a user