mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
pamhyr: Rename Network, Geometry and BC files.
This commit is contained in:
1 parent
fc0595a8b3
commit
33923a8e58
15 files changed
+38
-34
No files matched your search
@@ -358,7 +358,9 @@ class Reach:
|
|||||||
for i, data in enumerate(list_header[ind]):
|
for i, data in enumerate(list_header[ind]):
|
||||||
d[profile_header[i]] = data
|
d[profile_header[i]] = data
|
||||||
|
|
||||||
prof = ProfileXYZ(**d, reach=self)
|
prof = ProfileXYZ(
|
||||||
|
**d, reach=self, status=self._status
|
||||||
|
)
|
||||||
prof.import_points(profile)
|
prof.import_points(profile)
|
||||||
self._profiles.append(prof)
|
self._profiles.append(prof)
|
||||||
self._update_profile_numbers()
|
self._update_profile_numbers()
|
||||||
|
|||||||
+2
-1
@@ -43,7 +43,7 @@ class RiverReach(Edge):
|
|||||||
status = status
|
status = status
|
||||||
)
|
)
|
||||||
|
|
||||||
self._reach = Reach(self)
|
self._reach = Reach(status=self._status, parent=self)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def reach(self):
|
def reach(self):
|
||||||
@@ -52,6 +52,7 @@ class RiverReach(Edge):
|
|||||||
|
|
||||||
class River(Graph):
|
class River(Graph):
|
||||||
def __init__(self, status=None):
|
def __init__(self, status=None):
|
||||||
|
print(status)
|
||||||
super(River, self).__init__(status=status)
|
super(River, self).__init__(status=status)
|
||||||
|
|
||||||
# Replace Node and Edge ctor by custom ctor
|
# Replace Node and Edge ctor by custom ctor
|
||||||
|
|||||||
+2
-2
@@ -9,9 +9,9 @@ class SavedStatus(object):
|
|||||||
return self._saved
|
return self._saved
|
||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
print(" * save")
|
# print(" * save")
|
||||||
self._saved = True
|
self._saved = True
|
||||||
|
|
||||||
def modified(self):
|
def modified(self):
|
||||||
print(" * modified ...")
|
# print(" * modified ...")
|
||||||
self._saved = False
|
self._saved = False
|
||||||
@@ -15,16 +15,16 @@ from PyQt5.QtWidgets import (
|
|||||||
QComboBox,
|
QComboBox,
|
||||||
)
|
)
|
||||||
|
|
||||||
from View.BoundaryCondition.BCUndoCommand import (
|
|
||||||
SetNameCommand, SetNodeCommand, SetTypeCommand,
|
|
||||||
AddCommand, DelCommand, SortCommand,
|
|
||||||
MoveCommand, PasteCommand, DuplicateCommand,
|
|
||||||
)
|
|
||||||
|
|
||||||
from Model.BoundaryCondition.BoundaryConditionTypes import (
|
from Model.BoundaryCondition.BoundaryConditionTypes import (
|
||||||
NotDefined, PonctualContribution,
|
NotDefined, PonctualContribution,
|
||||||
TimeOverZ, TimeOverDebit, ZOverDebit
|
TimeOverZ, TimeOverDebit, ZOverDebit
|
||||||
)
|
)
|
||||||
|
|
||||||
|
from View.BoundaryCondition.UndoCommand import (
|
||||||
|
SetNameCommand, SetNodeCommand, SetTypeCommand,
|
||||||
|
AddCommand, DelCommand, SortCommand,
|
||||||
|
MoveCommand, PasteCommand, DuplicateCommand,
|
||||||
|
)
|
||||||
from View.BoundaryCondition.translate import *
|
from View.BoundaryCondition.translate import *
|
||||||
|
|
||||||
_translate = QCoreApplication.translate
|
_translate = QCoreApplication.translate
|
||||||
|
|||||||
File renamed without changes.
+6
-6
@@ -22,17 +22,17 @@ from PyQt5.QtWidgets import (
|
|||||||
QComboBox, QVBoxLayout, QHeaderView, QTabWidget,
|
QComboBox, QVBoxLayout, QHeaderView, QTabWidget,
|
||||||
)
|
)
|
||||||
|
|
||||||
from View.BoundaryCondition.BCUndoCommand import (
|
|
||||||
SetNameCommand, SetNodeCommand, SetTypeCommand,
|
|
||||||
AddCommand, DelCommand, SortCommand,
|
|
||||||
MoveCommand, PasteCommand, DuplicateCommand,
|
|
||||||
)
|
|
||||||
|
|
||||||
from Model.BoundaryCondition.BoundaryConditionTypes import (
|
from Model.BoundaryCondition.BoundaryConditionTypes import (
|
||||||
NotDefined, PonctualContribution,
|
NotDefined, PonctualContribution,
|
||||||
TimeOverZ, TimeOverDebit, ZOverDebit
|
TimeOverZ, TimeOverDebit, ZOverDebit
|
||||||
)
|
)
|
||||||
|
|
||||||
|
from View.BoundaryCondition.UndoCommand import (
|
||||||
|
SetNameCommand, SetNodeCommand, SetTypeCommand,
|
||||||
|
AddCommand, DelCommand, SortCommand,
|
||||||
|
MoveCommand, PasteCommand, DuplicateCommand,
|
||||||
|
)
|
||||||
|
|
||||||
from View.BoundaryCondition.Table import (
|
from View.BoundaryCondition.Table import (
|
||||||
TableModel, ComboBoxDelegate
|
TableModel, ComboBoxDelegate
|
||||||
)
|
)
|
||||||
+1
-1
@@ -18,7 +18,7 @@ from PyQt5.QtCore import (
|
|||||||
from Model.Geometry.PointXYZ import PointXYZ
|
from Model.Geometry.PointXYZ import PointXYZ
|
||||||
from Model.Geometry.ProfileXYZ import ProfileXYZ
|
from Model.Geometry.ProfileXYZ import ProfileXYZ
|
||||||
|
|
||||||
from View.Geometry.Profile.ProfileUndoCommand import *
|
from View.Geometry.Profile.UndoCommand import *
|
||||||
|
|
||||||
_translate = QCoreApplication.translate
|
_translate = QCoreApplication.translate
|
||||||
|
|
||||||
File renamed without changes.
@@ -18,12 +18,13 @@ from PyQt5.QtWidgets import (
|
|||||||
QUndoStack, QShortcut,
|
QUndoStack, QShortcut,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
from Model.Geometry.Reach import Reach
|
||||||
|
from Model.Geometry.ProfileXYZ import ProfileXYZ
|
||||||
|
|
||||||
from View.ASubWindow import WindowToolKit
|
from View.ASubWindow import WindowToolKit
|
||||||
from View.Geometry.Profile.mainwindow_ui_profile import Ui_MainWindow
|
from View.Geometry.Profile.mainwindow_ui_profile import Ui_MainWindow
|
||||||
from View.Geometry.Profile.Plot import Plot
|
from View.Geometry.Profile.Plot import Plot
|
||||||
from View.Geometry.Profile.qtableview_profile import *
|
from View.Geometry.Profile.Table import *
|
||||||
from Model.Geometry.Reach import Reach
|
|
||||||
from Model.Geometry.ProfileXYZ import ProfileXYZ
|
|
||||||
|
|
||||||
_translate = QCoreApplication.translate
|
_translate = QCoreApplication.translate
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ from PyQt5.QtWidgets import (
|
|||||||
|
|
||||||
from Model.Geometry import Reach
|
from Model.Geometry import Reach
|
||||||
from Model.Geometry.ProfileXYZ import ProfileXYZ
|
from Model.Geometry.ProfileXYZ import ProfileXYZ
|
||||||
from View.Geometry.ReachUndoCommand import *
|
from View.Geometry.UndoCommand import *
|
||||||
|
|
||||||
|
|
||||||
_translate = QCoreApplication.translate
|
_translate = QCoreApplication.translate
|
||||||
File renamed without changes.
@@ -27,8 +27,8 @@ from View.Geometry.PlotAC import PlotAC
|
|||||||
|
|
||||||
from View.ASubWindow import WindowToolKit
|
from View.ASubWindow import WindowToolKit
|
||||||
from View.Geometry.mainwindow_ui_reach import Ui_MainWindow
|
from View.Geometry.mainwindow_ui_reach import Ui_MainWindow
|
||||||
from View.Geometry.qtableview_reach import *
|
from View.Geometry.Table import *
|
||||||
from View.Geometry.Profile.ProfileWindow import ProfileWindow
|
from View.Geometry.Profile.Window import ProfileWindow
|
||||||
|
|
||||||
_translate = QCoreApplication.translate
|
_translate = QCoreApplication.translate
|
||||||
|
|
||||||
@@ -20,9 +20,9 @@ from View.DummyWindow import DummyWindow
|
|||||||
from View.Main.ConfigureWindow import ConfigureWindow
|
from View.Main.ConfigureWindow import ConfigureWindow
|
||||||
from View.Main.NewStudyWindow import NewStudyWindow
|
from View.Main.NewStudyWindow import NewStudyWindow
|
||||||
from View.Main.AboutWindow import AboutWindow
|
from View.Main.AboutWindow import AboutWindow
|
||||||
from View.Network.NetworkWindow import NetworkWindow
|
from View.Network.Window import NetworkWindow
|
||||||
from View.Geometry.GeometryWindow import GeometryWindow
|
from View.Geometry.Window import GeometryWindow
|
||||||
from View.BoundaryCondition.BoundaryConditionWindow import BoundaryConditionWindow
|
from View.BoundaryCondition.Window import BoundaryConditionWindow
|
||||||
from View.LateralContribution.Window import LateralContributionWindow
|
from View.LateralContribution.Window import LateralContributionWindow
|
||||||
|
|
||||||
from Model.Study import Study
|
from Model.Study import Study
|
||||||
|
|||||||
File renamed without changes.
@@ -1,13 +1,5 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from Model.River import RiverNode, RiverReach, River
|
|
||||||
|
|
||||||
from View.ASubWindow import ASubMainWindow
|
|
||||||
from View.Network.GraphWidget import GraphWidget
|
|
||||||
from View.Network.TableModel import (
|
|
||||||
GraphTableModel, ComboBoxDelegate, TrueFalseComboBoxDelegate,
|
|
||||||
)
|
|
||||||
|
|
||||||
from PyQt5.QtCore import (
|
from PyQt5.QtCore import (
|
||||||
Qt, QRect, QVariant, QAbstractTableModel, pyqtSlot, pyqtSignal,
|
Qt, QRect, QVariant, QAbstractTableModel, pyqtSlot, pyqtSignal,
|
||||||
QEvent,
|
QEvent,
|
||||||
@@ -19,6 +11,14 @@ from PyQt5.QtWidgets import (
|
|||||||
QApplication, QToolBar, QAction,
|
QApplication, QToolBar, QAction,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
from Model.River import RiverNode, RiverReach, River
|
||||||
|
|
||||||
|
from View.ASubWindow import ASubMainWindow
|
||||||
|
from View.Network.GraphWidget import GraphWidget
|
||||||
|
from View.Network.Table import (
|
||||||
|
GraphTableModel, ComboBoxDelegate, TrueFalseComboBoxDelegate,
|
||||||
|
)
|
||||||
|
|
||||||
class NetworkWindow(ASubMainWindow):
|
class NetworkWindow(ASubMainWindow):
|
||||||
def __init__(self, model=None, title="River network", parent=None):
|
def __init__(self, model=None, title="River network", parent=None):
|
||||||
super(NetworkWindow, self).__init__(name=title, ui="Network", parent=parent)
|
super(NetworkWindow, self).__init__(name=title, ui="Network", parent=parent)
|
||||||
Reference in new issue
Block a user