Commit 3a2baebc authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Sections: Add stricklers edit shortcut.

Showing with 11 additions and 0 deletions
+11 -0
...@@ -35,6 +35,8 @@ from View.Geometry.PlotKPC import PlotKPC ...@@ -35,6 +35,8 @@ from View.Geometry.PlotKPC import PlotKPC
from View.Sections.PlotStricklers import PlotStricklers from View.Sections.PlotStricklers import PlotStricklers
from View.Sections.translate import * from View.Sections.translate import *
from View.Stricklers.Window import StricklersWindow
_translate = QCoreApplication.translate _translate = QCoreApplication.translate
class SectionsWindow(ASubMainWindow, ListedSubWindow): class SectionsWindow(ASubMainWindow, ListedSubWindow):
...@@ -129,6 +131,7 @@ class SectionsWindow(ASubMainWindow, ListedSubWindow): ...@@ -129,6 +131,7 @@ class SectionsWindow(ASubMainWindow, ListedSubWindow):
self.find(QAction, "action_add").triggered.connect(self.add) self.find(QAction, "action_add").triggered.connect(self.add)
self.find(QAction, "action_del").triggered.connect(self.delete) self.find(QAction, "action_del").triggered.connect(self.delete)
self.find(QAction, "action_sort").triggered.connect(self.sort) self.find(QAction, "action_sort").triggered.connect(self.sort)
self.find(QAction, "action_edit_stricklers").triggered.connect(self.edit_stricklers)
self.undo_sc.activated.connect(self.undo) self.undo_sc.activated.connect(self.undo)
self.redo_sc.activated.connect(self.redo) self.redo_sc.activated.connect(self.redo)
...@@ -219,3 +222,11 @@ class SectionsWindow(ASubMainWindow, ListedSubWindow): ...@@ -219,3 +222,11 @@ class SectionsWindow(ASubMainWindow, ListedSubWindow):
def redo(self): def redo(self):
self._table.redo() self._table.redo()
def edit_stricklers(self):
self.strick = StricklersWindow(
study = self._study,
config = self.parent.conf,
parent = self
)
self.strick.show()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment