aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-textedit/MainUI.h
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-12-06 08:50:50 -0500
committerKen Moore <ken@ixsystems.com>2017-12-06 08:50:50 -0500
commit0731b3a309f48ec0202e50d8d034b0723a20f8eb (patch)
tree19785e7eff64d3a85d9f792a00699e301820ae16 /src-qt5/desktop-utils/lumina-textedit/MainUI.h
parentMerge pull request #521 from ktullavik/lumina-textedit-ui (diff)
downloadlumina-0731b3a309f48ec0202e50d8d034b0723a20f8eb.tar.gz
lumina-0731b3a309f48ec0202e50d8d034b0723a20f8eb.tar.bz2
lumina-0731b3a309f48ec0202e50d8d034b0723a20f8eb.zip
Make sure that on closing, it attempts to save *all* files with pending changes.
If popup warnings are disabled just close the app (never automatically change the underlying file(s) - this can be disastrous) Add status reporting to all the "Save" functions so that it returns false if the user cancelled it.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/MainUI.h')
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/MainUI.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/MainUI.h b/src-qt5/desktop-utils/lumina-textedit/MainUI.h
index 8a3812a1..5d10f21b 100644
--- a/src-qt5/desktop-utils/lumina-textedit/MainUI.h
+++ b/src-qt5/desktop-utils/lumina-textedit/MainUI.h
@@ -51,8 +51,9 @@ private slots:
void NewFile();
void OpenFile(QString file = "");
void CloseFile(); //current file only
- void SaveFile();
- void SaveFileAs();
+ bool SaveFile();
+ bool SaveFileAs();
+ bool SaveAllFiles();
void Print();
void fontChanged(const QFont &font);
void updateStatusTip();
bgstack15