Mainwindow: Checker: Add table.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-03-20 12:24:13 +01:00
1 parent 3be4e6c112
commit 30170df1b1
7 files changed
+150 -10

No files matched your search

+31 -1
View File
@@ -36,7 +36,9 @@ class Modules(Flag):
HYDRAULIC_STRUCTURES = auto()
RESERVOIR = auto()
SEDIMENT_LAYER = auto()
RESULT = auto()
# Results
RESULTS = auto()
# Display
WINDOW_LIST = auto()
@@ -44,3 +46,31 @@ class Modules(Flag):
@classmethod
def all(cls):
return ~cls.NONE
@classmethod
def modelling(cls):
return (
cls.NETWORK
| cls.GEOMETRY
| cls.BOUNDARY_CONDITION
| cls.LATERAL_CONTRIBUTION
| cls.FRICTION
| cls.INITIAL_CONDITION
| cls.HYDRAULIC_STRUCTURES
| cls.RESERVOIR
| cls.SEDIMENT_LAYER
)
@classmethod
def modelling_list(cls):
return [
cls.NETWORK,
cls.GEOMETRY,
cls.BOUNDARY_CONDITION,
cls.LATERAL_CONTRIBUTION,
cls.FRICTION,
cls.INITIAL_CONDITION,
cls.HYDRAULIC_STRUCTURES,
cls.RESERVOIR,
cls.SEDIMENT_LAYER,
]