summaryrefslogtreecommitdiff
path: root/src/main/python/utils/fileWindow.py
diff options
context:
space:
mode:
authorBlaine2020-05-18 19:58:32 +0530
committerBlaine2020-05-18 19:58:32 +0530
commitabbdeffa7260c97188e82ff4d727348aa844ce93 (patch)
treeea2bb143cda3584b36c71e6b7251e2e003246956 /src/main/python/utils/fileWindow.py
parent051af95251fd0f87457322d9bd80ca99309c6c56 (diff)
downloadChemical-PFD-abbdeffa7260c97188e82ff4d727348aa844ce93.tar.gz
Chemical-PFD-abbdeffa7260c97188e82ff4d727348aa844ce93.tar.bz2
Chemical-PFD-abbdeffa7260c97188e82ff4d727348aa844ce93.zip
Undo Framework implemented
Diffstat (limited to 'src/main/python/utils/fileWindow.py')
-rw-r--r--src/main/python/utils/fileWindow.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/python/utils/fileWindow.py b/src/main/python/utils/fileWindow.py
index e549568..8f2fd32 100644
--- a/src/main/python/utils/fileWindow.py
+++ b/src/main/python/utils/fileWindow.py
@@ -18,6 +18,7 @@ class fileWindow(QMdiSubWindow):
canvases. Pre-Defined so that a file can be instantly created without defining the structure again.
"""
fileCloseEvent = pyqtSignal(int)
+ tabChangeEvent = pyqtSignal()
def __init__(self, parent = None, title = 'New Project', size = 'A4', ppi = '72'):
super(fileWindow, self).__init__(parent)
@@ -203,6 +204,7 @@ class fileWindow(QMdiSubWindow):
def changeTab(self, currentIndex):
#placeholder function to detect tab change
self.resizeHandler()
+ self.tabChangeEvent.emit()
def closeTab(self, currentIndex):
#show save alert on tab close