summaryrefslogtreecommitdiff
path: root/src/main/python/utils/dialogs.py
diff options
context:
space:
mode:
authorpravindalve2020-05-19 12:22:05 +0530
committerGitHub2020-05-19 12:22:05 +0530
commitf1a75684e63a1afecb1e16a00fc776a1a5e91036 (patch)
treec4f4e72e54fb11e9ad511a66a439d56c5317fbc5 /src/main/python/utils/dialogs.py
parent151ffe398218f8d46b07f9ea12b4af897b4ed81b (diff)
parent955175aea39b4ed1d3bf3309b63cfc74e7e91ae5 (diff)
downloadChemical-PFD-f1a75684e63a1afecb1e16a00fc776a1a5e91036.tar.gz
Chemical-PFD-f1a75684e63a1afecb1e16a00fc776a1a5e91036.tar.bz2
Chemical-PFD-f1a75684e63a1afecb1e16a00fc776a1a5e91036.zip
Merge pull request #2 from Blakeinstein/master
[Important] Helper commit to help merge shape branch with master
Diffstat (limited to 'src/main/python/utils/dialogs.py')
-rw-r--r--src/main/python/utils/dialogs.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main/python/utils/dialogs.py b/src/main/python/utils/dialogs.py
index e008aa5..3791599 100644
--- a/src/main/python/utils/dialogs.py
+++ b/src/main/python/utils/dialogs.py
@@ -99,4 +99,12 @@ def saveEvent(parent = None):
if alert == QMessageBox.Save:
if not parent.saveProject(): #the parent's saveProject method is called which returns false if saving was cancelled by the user
return False
- return True \ No newline at end of file
+ return True
+
+def showUndoDialog(undoView, parent):
+ dialogBox = QDialog(parent)
+ dialogBox.resize(400, 400)
+ layout = QFormLayout(dialogBox)
+ layout.addWidget(undoView)
+ dialogBox.setWindowTitle("Undo Stack")
+ dialogBox.show() \ No newline at end of file