diff options
author | Ken Moore <ken@ixsystems.com> | 2017-11-01 15:13:52 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-11-01 15:13:52 -0400 |
commit | b82e9b864dc3f5321fc47f3e4b0e1e6fdca9f1fc (patch) | |
tree | e98d421855e3d77b9887e79bd060867a3b745e6c /src-qt5/desktop-utils/lumina-fileinfo/MainUI.h | |
parent | Quick cleanup of input parsing in lumina-archiver. (diff) | |
download | lumina-b82e9b864dc3f5321fc47f3e4b0e1e6fdca9f1fc.tar.gz lumina-b82e9b864dc3f5321fc47f3e4b0e1e6fdca9f1fc.tar.bz2 lumina-b82e9b864dc3f5321fc47f3e4b0e1e6fdca9f1fc.zip |
Rework quite a bit of the lumina-fileinfo backend.
Still not quite finished yet, but it is already much more stable/reliable. Just need to add new features.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fileinfo/MainUI.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-fileinfo/MainUI.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/src-qt5/desktop-utils/lumina-fileinfo/MainUI.h b/src-qt5/desktop-utils/lumina-fileinfo/MainUI.h index 089dbe6c..f45e15d7 100644 --- a/src-qt5/desktop-utils/lumina-fileinfo/MainUI.h +++ b/src-qt5/desktop-utils/lumina-fileinfo/MainUI.h @@ -13,17 +13,19 @@ #ifndef _LUMINA_FILE_INFO_MAIN_UI_H #define _LUMINA_FILE_INFO_MAIN_UI_H -#include <QDialog> +#include <QMainWindow> #include <QMediaPlayer> -#include <LuminaXDG.h> #include <LVideoSurface.h> #include <LVideoLabel.h> #include <QElapsedTimer> -namespace Ui{ class MainUI; +#include <LuminaXDG.h> + +namespace Ui{ + class MainUI; }; -class MainUI : public QDialog{ +class MainUI : public QMainWindow{ Q_OBJECT public: MainUI(); @@ -34,6 +36,7 @@ public: public slots: void UpdateIcons(); void ReloadAppIcon(); + private: Ui::MainUI *ui; LFileInfo *INFO; @@ -46,16 +49,23 @@ private: bool terminate_thread; //flag for terminating the GetDirSize task void GetDirSize(const QString dirname) const; //function to get folder size + void SyncFileInfo(); + + void syncXdgStruct(XDGDesktop*); + + bool saveFile(QString path); + signals: void folder_size_changed(quint64 size, quint64 files, quint64 folders, bool finished) const; //Signal for updating the folder size asynchronously private slots: + void SetupNewFile(); //Initialization functions void SetupConnections(); //UI Buttons - void on_push_close_clicked(); - void on_push_save_clicked(); + void closeApplication(); + void save_clicked(); void getXdgCommand(QString prev = ""); //void on_tool_xdg_getCommand_clicked(QString prev = ""); void on_tool_xdg_getDir_clicked(); |