aboutsummaryrefslogtreecommitdiff
path: root/desktop-utilities/lumina-textedit/MainUI.h
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-utilities/lumina-textedit/MainUI.h')
-rw-r--r--desktop-utilities/lumina-textedit/MainUI.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/desktop-utilities/lumina-textedit/MainUI.h b/desktop-utilities/lumina-textedit/MainUI.h
index 9d16933d..3bb92295 100644
--- a/desktop-utilities/lumina-textedit/MainUI.h
+++ b/desktop-utilities/lumina-textedit/MainUI.h
@@ -9,6 +9,7 @@
#include <QMainWindow>
#include <QStringList>
+#include <QSettings>
#include "PlainTextEditor.h"
@@ -29,6 +30,7 @@ public slots:
private:
Ui::MainUI *ui;
+ QSettings *settings;
//Simplification functions
PlainTextEditor* currentEditor();
@@ -38,17 +40,23 @@ private slots:
//Main Actions
void NewFile();
void OpenFile(QString file = "");
+ void CloseFile(); //current file only
void SaveFile();
void SaveFileAs();
//Other Menu Actions
void UpdateHighlighting(QAction*);
void showLineNumbers(bool);
+ void ModifyColors();
//Tab Interactions
void updateTab(QString);
void tabChanged();
void tabClosed(int);
+protected:
+ void resizeEvent(QResizeEvent *ev){
+ settings->setValue("lastSize", ev->size());
+ }
};
-#endif \ No newline at end of file
+#endif
bgstack15