┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/statusbar/spaceinfotoolsmenu.h
diff options
context:
space:
mode:
authorGregor Mi <[email protected]>2015-01-12 16:18:50 +0100
committerGregor Mi <[email protected]>2015-01-12 16:18:50 +0100
commit088b5160576c8ed317619855a4c9dc19a69d025b (patch)
tree888579e40929cf868f5252ce08590494085cbab7 /src/statusbar/spaceinfotoolsmenu.h
parent39b77e9861c1318bff1a26627dde3fd1c9c71861 (diff)
Add disk usage statistics menu to SpaceInfo widget in the status bar:
the menu has the following entries: 1. Filelight location 2. Filelight device 3. Filelight 4. KDiskFree KService is used to find the applications and display proper translations. KRun is used to run the applications. REVIEW: 121478 CHANGELOG: Add a menu on left-click on the SpaceInfo widget in the status bar to show Disk Usage statistics.
Diffstat (limited to 'src/statusbar/spaceinfotoolsmenu.h')
-rw-r--r--src/statusbar/spaceinfotoolsmenu.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/statusbar/spaceinfotoolsmenu.h b/src/statusbar/spaceinfotoolsmenu.h
new file mode 100644
index 000000000..3ca2e184f
--- /dev/null
+++ b/src/statusbar/spaceinfotoolsmenu.h
@@ -0,0 +1,41 @@
+/***************************************************************************
+ * Copyright (C) 2014 by Gregor Mi <[email protected]> *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
+ ***************************************************************************/
+
+#ifndef SPACEINFOTOOLSMENU_H
+#define SPACEINFOTOOLSMENU_H
+
+#include <QObject>
+#include <QMenu>
+
+class QWidget;
+class QUrl;
+
+/**
+ * A menu with tools that help to find out more about free disk space for the given url.
+ */
+class SpaceInfoToolsMenu : public QMenu
+{
+ Q_OBJECT
+
+public:
+ explicit SpaceInfoToolsMenu(QWidget* parent, QUrl url);
+ virtual ~SpaceInfoToolsMenu();
+};
+
+#endif