aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm-dev/TrayUI.h
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2017-08-19 14:59:53 +0000
committerWeblate <noreply@weblate.org>2017-08-19 14:59:53 +0000
commit7d3372ae81249c3f69f886df99fa7eb885d0757d (patch)
treeecad7dc336a43d4e2fcc61f7a58635c6455b6cc2 /src-qt5/desktop-utils/lumina-fm-dev/TrayUI.h
parentTranslated using Weblate (Danish) (diff)
parentTranslated using Weblate (Danish) (diff)
downloadlumina-7d3372ae81249c3f69f886df99fa7eb885d0757d.tar.gz
lumina-7d3372ae81249c3f69f886df99fa7eb885d0757d.tar.bz2
lumina-7d3372ae81249c3f69f886df99fa7eb885d0757d.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm-dev/TrayUI.h')
-rw-r--r--src-qt5/desktop-utils/lumina-fm-dev/TrayUI.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm-dev/TrayUI.h b/src-qt5/desktop-utils/lumina-fm-dev/TrayUI.h
new file mode 100644
index 00000000..4210784a
--- /dev/null
+++ b/src-qt5/desktop-utils/lumina-fm-dev/TrayUI.h
@@ -0,0 +1,47 @@
+//===========================================
+// 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:
+ void TrayActivated();
+
+ //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
bgstack15