diff options
author | Ken Moore <moorekou@gmail.com> | 2016-04-25 13:08:12 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-04-25 13:08:12 -0400 |
commit | ed5ecf7ea7a482b4649e66ecb35fbc60af680684 (patch) | |
tree | acc0fa17d228259e847f55c678db9fb0a9b50f0c /src-qt5/desktop-utils/lumina-fileinfo/MainUI.h | |
parent | Merge branch 'master' of github.com:pcbsd/lumina (diff) | |
download | lumina-ed5ecf7ea7a482b4649e66ecb35fbc60af680684.tar.gz lumina-ed5ecf7ea7a482b4649e66ecb35fbc60af680684.tar.bz2 lumina-ed5ecf7ea7a482b4649e66ecb35fbc60af680684.zip |
Rearrange the Lumina source tree quite a bit:
Now the utilites are arranged by category (core, core-utils, desktop-utils), so all the -utils may be excluded by a package system (or turned into separate packages) as needed.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fileinfo/MainUI.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-fileinfo/MainUI.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-fileinfo/MainUI.h b/src-qt5/desktop-utils/lumina-fileinfo/MainUI.h new file mode 100644 index 00000000..65349d3e --- /dev/null +++ b/src-qt5/desktop-utils/lumina-fileinfo/MainUI.h @@ -0,0 +1,63 @@ +//=========================================== +// Lumina-DE source code +// Copyright (c) 2015, Ken Moore +// Available under the 3-clause BSD license +// See the LICENSE file for full details +//=========================================== +// Note: Some of this class (particularly parts of the UI), were initially created by: +// William (william-os4y on GitHub: https://github.com/william-os4y) +// March -> April, 2015 +// This utility was re-written by Ken Moore on August 31, 2015 +// Primarily to align the utility with the LWinInfo & XDGDesktop classes +//=========================================== +#ifndef _LUMINA_FILE_INFO_MAIN_UI_H +#define _LUMINA_FILE_INFO_MAIN_UI_H + +#include <QDialog> + +#include <LuminaXDG.h> + +namespace Ui{ + class MainUI; +}; + +class MainUI : public QDialog{ + Q_OBJECT +public: + MainUI(); + ~MainUI(); + + void LoadFile(QString path, QString type=""); //type=[APP, LINK] + +public slots: + void UpdateIcons(); + +private: + Ui::MainUI *ui; + bool canwrite; + bool terminate_thread; //flag for terminating the GetDirSize task + void ReloadAppIcon(); + void GetDirSize(const QString dirname) const; //function to get folder size + +signals: + void folder_size_changed(quint64 size, quint64 files, quint64 folders, bool finished) const; //Signal for updating the folder size asynchronously + +private slots: + //Initialization functions + void SetupConnections(); + + //UI Buttons + void on_push_close_clicked(); + void on_push_save_clicked(); + void on_tool_xdg_getCommand_clicked(QString prev = ""); + void on_tool_xdg_getDir_clicked(); + void on_push_xdg_getIcon_clicked(); + + //XDG Value Changed + void xdgvaluechanged(); + + //Folder size + void refresh_folder_size(quint64 size, quint64 files, quint64 folders, bool finished); //Slot for updating the folder size asynchronously +}; + +#endif |