//=========================================== // Lumina-Desktop 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 #include #include #include #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; QStringList aaFileList; QTimer *delayClose; QTreeWidgetItem* findItem(QString path, QTreeWidgetItem *start = 0); bool cleanItems(QStringList list, QTreeWidgetItem *start = 0); //returns true if anything gets cleaned //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 autoextractFiles(); void autoArchiveFiles(); void extractSelection(); void ViewFile(QTreeWidgetItem *it); void UpdateTree(); void BurnImgToUSB(); //Backend Handling void ProcStarting(); void ProcFinished(bool, QString); void ProcUpdate(int percent, QString txt); //UI Slots void selectionChanged(); }; #endif