aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-archiver/MainUI.h
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils/lumina-archiver/MainUI.h')
-rw-r--r--src-qt5/desktop-utils/lumina-archiver/MainUI.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-archiver/MainUI.h b/src-qt5/desktop-utils/lumina-archiver/MainUI.h
new file mode 100644
index 00000000..802d241b
--- /dev/null
+++ b/src-qt5/desktop-utils/lumina-archiver/MainUI.h
@@ -0,0 +1,58 @@
+//===========================================
+// Lumina-DE source code
+// Copyright (c) 2016, Ken Moore
+// Available under the 3-clause BSD license
+// See the LICENSE file for full details
+//===========================================
+#ifndef _LUMINA_ARCHIVER_MAIN_UI_H
+#define _LUMINA_ARCHIVER_MAIN_UI_H
+
+#include <QMainWindow>
+#include <QString>
+#include <QTreeWidgetItem>
+
+#include "TarBackend.h"
+
+namespace Ui{
+ class MainUI;
+};
+
+class MainUI : public QMainWindow{
+ Q_OBJECT
+public:
+ MainUI();
+ ~MainUI();
+
+ void LoadArguments(QStringList);
+ void loadIcons();
+
+private:
+ Ui::MainUI *ui;
+ Backend *BACKEND;
+
+ QTreeWidgetItem* findItem(QString path, QTreeWidgetItem *start = 0);
+ void cleanItems(QStringList list, QTreeWidgetItem *start = 0);
+
+ //Functions for setting the valid file extensions ("tar" limitations)
+ QString CreateFileTypes();
+ QString OpenFileTypes();
+
+private slots:
+ void NewArchive();
+ void OpenArchive();
+ void addFiles();
+ void addDirs();
+ void remFiles();
+ void extractFiles();
+
+ void UpdateTree();
+
+
+ //Backend Handling
+ void ProcStarting();
+ void ProcFinished();
+ void ProcUpdate(int percent, QString txt);
+
+};
+
+#endif
bgstack15