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.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/desktop-utilities/lumina-textedit/MainUI.h b/desktop-utilities/lumina-textedit/MainUI.h
new file mode 100644
index 00000000..6ded613b
--- /dev/null
+++ b/desktop-utilities/lumina-textedit/MainUI.h
@@ -0,0 +1,44 @@
+//===========================================
+// Lumina-DE source code
+// Copyright (c) 2015, Ken Moore
+// Available under the 3-clause BSD license
+// See the LICENSE file for full details
+//===========================================
+#ifndef _LUMINA_PLAIN_TEXT_EDITOR_MAIN_UI_H
+#define _LUMINA_PLAIN_TEXT_EDITOR_MAIN_UI_H
+
+#include <QMainWindow>
+#include <QStringList>
+
+#include "PlainTextEditor.h"
+
+namespace Ui{
+ class MainUI;
+};
+
+class MainUI : public QMainWindow{
+ Q_OBJECT
+public:
+ MainUI();
+ ~MainUI();
+
+ void LoadArguments(QStringList args); //CLI arguments
+
+public slots:
+ void updateIcons();
+
+private:
+ Ui::MainUI *ui;
+ //Simplification functions
+ PlainTextEditor* currentEditor();
+
+private slots:
+ //Main Actions
+ void NewFile();
+ void OpenFile(QString file = "");
+ void SaveFile();
+ void SaveFileAs();
+ void UpdateHighlighting(QAction*);
+
+};
+#endif \ No newline at end of file
bgstack15