mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
doc: Keep doc html and add doc window in Pamhyr2.
This commit is contained in:
1 parent
1a47bbe19d
commit
559d7dc006
6 files changed
+169
-2
No files matched your search
@@ -56,6 +56,7 @@ from View.SolverParameters.Window import SolverParametersWindow
|
||||
from View.RunSolver.Window import SelectSolverWindow, SolverLogWindow
|
||||
from View.CheckList.Window import CheckListWindow
|
||||
from View.Results.Window import ResultsWindow
|
||||
from View.Doc.Window import DocWindow
|
||||
from View.Debug.Window import ReplWindow
|
||||
|
||||
from Model.Study import Study
|
||||
@@ -183,6 +184,8 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
"action_menu_sediment_layers": self.open_sediment_layers,
|
||||
"action_menu_edit_reach_sediment_layers": self.open_reach_sediment_layers,
|
||||
"action_menu_results_last": self.open_last_results,
|
||||
"action_menu_Pamhyr": self.open_doc_user,
|
||||
"action_menu_Pamhyr_dev": self.open_doc_dev,
|
||||
## Help
|
||||
"action_menu_about": self.open_about,
|
||||
# ToolBar action
|
||||
@@ -715,6 +718,20 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||
|
||||
self.open_solver_results(self._last_solver, self._last_results)
|
||||
|
||||
def open_doc(self, filename):
|
||||
doc = DocWindow(
|
||||
filename = filename,
|
||||
parent = self
|
||||
)
|
||||
doc.show()
|
||||
|
||||
|
||||
def open_doc_user(self):
|
||||
self.open_doc("Pamhyr2-users.html")
|
||||
|
||||
def open_doc_dev(self):
|
||||
self.open_doc("Pamhyr2-dev.html")
|
||||
|
||||
#########
|
||||
# DEBUG #
|
||||
#########
|
||||
|
||||
Reference in new issue
Block a user