aboutsummaryrefslogtreecommitdiff
path: root/desktop-utilities/lumina-textedit/MainUI.h
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-04-19 10:11:44 -0400
committerKen Moore <moorekou@gmail.com>2016-04-19 10:11:44 -0400
commitfbfc3e91cc6efa39a174b4cc65a14c89440844a3 (patch)
treec88bcaa66708f7d109b08e34a2d8424c041007d0 /desktop-utilities/lumina-textedit/MainUI.h
parentGet almost everything else setup and functional. Now tabs can be closed/opene... (diff)
downloadlumina-fbfc3e91cc6efa39a174b4cc65a14c89440844a3.tar.gz
lumina-fbfc3e91cc6efa39a174b4cc65a14c89440844a3.tar.bz2
lumina-fbfc3e91cc6efa39a174b4cc65a14c89440844a3.zip
Get a lot more of lumina-textedit done. Almost everything is complete now except for the color-selection dialog.
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