diff options
author | Ken Moore <ken@pcbsd.org> | 2016-10-13 13:10:34 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2016-10-13 13:10:34 -0400 |
commit | 725ca9791ec516f1bb0c5a37ec17fbedd888d928 (patch) | |
tree | 6f8e9ca53b4546c1c16ce04ee25ad5a1d6bfca9b /src-qt5/desktop-utils/lumina-fm/TrayUI.h | |
parent | Add a "launch" option within the context menu for applauncher desktop plugins. (diff) | |
download | lumina-725ca9791ec516f1bb0c5a37ec17fbedd888d928.tar.gz lumina-725ca9791ec516f1bb0c5a37ec17fbedd888d928.tar.bz2 lumina-725ca9791ec516f1bb0c5a37ec17fbedd888d928.zip |
Another large update to lumina-fm:
Have all file operations performed in the background, and show up within a new system tray icon *if* the operation lasts longer than 1 second (automatic cleanup for short ops).
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/TrayUI.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-fm/TrayUI.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/TrayUI.h b/src-qt5/desktop-utils/lumina-fm/TrayUI.h new file mode 100644 index 00000000..38a99f7a --- /dev/null +++ b/src-qt5/desktop-utils/lumina-fm/TrayUI.h @@ -0,0 +1,46 @@ +//=========================================== +// Lumina-DE source code +// Copyright (c) 2016, Ken Moore +// Available under the 3-clause BSD license +// See the LICENSE file for full details +//=========================================== +// This is the system tray icon for queueing/running file operations +//=========================================== +#ifndef _LUMINA_FILE_MANAGER_FILE_OP_SYSTRAY_H +#define _LUMINA_FILE_MANAGER_FILE_OP_SYSTRAY_H + +#include "OPWidget.h" + +#include <QSystemTrayIcon> +#include <QMenu> + +class TrayUI : public QSystemTrayIcon{ + Q_OBJECT +public: + enum FILEOP{MOVE, COPY, DELETE}; //File Operations + + TrayUI(QObject *parent = 0); + ~TrayUI(); + +public slots: + void StartOperation( FILEOP op, QStringList oldF, QStringList newF); + +private: + QList<OPWidget*> OPS; + + void createOP( FILEOP, QStringList oldF, QStringList newF); + +private slots: + + //Operation Widget Responses + void OperationClosed(QString ID); + void OperationStarted(QString ID); + void OperationFinished(QString ID); + + void checkJobs(); //see if any jobs are still active/visible, otherwise hide the tray icon + +signals: + void JobsFinished(); + +}; +#endif |