From 4f198425da37118b0affd6eaffcb1984ba987715 Mon Sep 17 00:00:00 2001 From: Bhushan Shah Date: Sun, 1 Mar 2015 22:22:07 +0530 Subject: [PATCH] Remove minimalcontextmenu containmentaction plugin minimalcontextmenu was meant to be used for the screensavers, see kde-workspace:27d19ac6d96aff1993fae951f9f996ad1cb6f31e for reference, since we don't have screensavers in Plasma 5, this is not useful now. BUG: 343599 FIXED-IN: 5.3 --- containmentactions/CMakeLists.txt | 1 - .../minimalcontextmenu/CMakeLists.txt | 17 ---- .../minimalcontextmenu/menu.cpp | 63 --------------- containmentactions/minimalcontextmenu/menu.h | 40 ---------- ...tainmentactions-minimalcontextmenu.desktop | 80 ------------------- 5 files changed, 201 deletions(-) delete mode 100644 containmentactions/minimalcontextmenu/CMakeLists.txt delete mode 100644 containmentactions/minimalcontextmenu/menu.cpp delete mode 100644 containmentactions/minimalcontextmenu/menu.h delete mode 100644 containmentactions/minimalcontextmenu/plasma-containmentactions-minimalcontextmenu.desktop diff --git a/containmentactions/CMakeLists.txt b/containmentactions/CMakeLists.txt index 35c7b875b..a3749a197 100644 --- a/containmentactions/CMakeLists.txt +++ b/containmentactions/CMakeLists.txt @@ -4,4 +4,3 @@ add_subdirectory(switchactivity) add_subdirectory(paste) add_subdirectory(switchwindow) add_subdirectory(applauncher) -add_subdirectory(minimalcontextmenu) diff --git a/containmentactions/minimalcontextmenu/CMakeLists.txt b/containmentactions/minimalcontextmenu/CMakeLists.txt deleted file mode 100644 index 005cd15ac..000000000 --- a/containmentactions/minimalcontextmenu/CMakeLists.txt +++ /dev/null @@ -1,17 +0,0 @@ -project(plasma-containmentactions-minimalcontextmenu) - -set(contextmenu_SRCS - menu.cpp -) - -add_library(plasma_containmentactions_minimalcontextmenu MODULE ${contextmenu_SRCS}) - -kcoreaddons_desktop_to_json(plasma_containmentactions_minimalcontextmenu plasma-containmentactions-minimalcontextmenu.desktop) - -target_link_libraries(plasma_containmentactions_minimalcontextmenu - KF5::Plasma - KF5::KIOCore - KF5::XmlGui) - -install(TARGETS plasma_containmentactions_minimalcontextmenu DESTINATION ${PLUGIN_INSTALL_DIR}) -install(FILES plasma-containmentactions-minimalcontextmenu.desktop DESTINATION ${SERVICES_INSTALL_DIR}) diff --git a/containmentactions/minimalcontextmenu/menu.cpp b/containmentactions/minimalcontextmenu/menu.cpp deleted file mode 100644 index 9a1bbcaa9..000000000 --- a/containmentactions/minimalcontextmenu/menu.cpp +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009 by Chani Armitage - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Library General Public License as - * published by the Free Software Foundation; either version 2, 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 Library 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. - */ - -#include "menu.h" - -#include -#include -#include - -#include -#include - -#include -#include -#include - -ContextMenu::ContextMenu(QObject *parent, const QVariantList &args) - : Plasma::ContainmentActions(parent, args) -{ - m_separator = new QAction(this); - m_separator->setSeparator(true); -} - -ContextMenu::~ContextMenu() -{ -} - -QList ContextMenu::contextualActions() -{ - Plasma::Containment *c = containment(); - Q_ASSERT(c); - QList actions; - actions << c->contextualActions(); - actions << c->actions()->action("configure"); - - if (!c->wallpaper().isEmpty()) { - QObject *wallpaperGraphicsObject = c->property("wallpaperGraphicsObject").value(); - if (wallpaperGraphicsObject) { - actions << wallpaperGraphicsObject->property("contextualActions").value >(); - } - } - return actions; -} - -K_EXPORT_PLASMA_CONTAINMENTACTIONS_WITH_JSON(minimalcontextmenu, ContextMenu, "plasma-containmentactions-minimalcontextmenu.json") - -#include "menu.moc" diff --git a/containmentactions/minimalcontextmenu/menu.h b/containmentactions/minimalcontextmenu/menu.h deleted file mode 100644 index c847d50ba..000000000 --- a/containmentactions/minimalcontextmenu/menu.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2009 by Chani Armitage - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Library General Public License as - * published by the Free Software Foundation; either version 2, 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 Library 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 CONTEXTMENU_HEADER -#define CONTEXTMENU_HEADER - -#include -#include - -class ContextMenu : public Plasma::ContainmentActions -{ - Q_OBJECT -public: - ContextMenu(QObject* parent, const QVariantList& args); - ~ContextMenu(); - - QList contextualActions(); - -private: - QAction *m_separator; - -}; - -#endif diff --git a/containmentactions/minimalcontextmenu/plasma-containmentactions-minimalcontextmenu.desktop b/containmentactions/minimalcontextmenu/plasma-containmentactions-minimalcontextmenu.desktop deleted file mode 100644 index 82c10f079..000000000 --- a/containmentactions/minimalcontextmenu/plasma-containmentactions-minimalcontextmenu.desktop +++ /dev/null @@ -1,80 +0,0 @@ -[Desktop Entry] -Name=Minimal Menu -Name[ar]=قائمة دنيا -Name[ast]=Menú mínimu -Name[bg]=Малко меню -Name[bs]=Najmanji meni -Name[ca]=Menú mínim -Name[ca@valencia]=Menú mínim -Name[cs]=Minimální nabídka -Name[da]=Minimal menu -Name[de]=Minimales Menü -Name[el]=Ελάχιστο μενού -Name[en_GB]=Minimal Menu -Name[es]=Menú mínimo -Name[et]=Minimaalne menüü -Name[eu]=Menu minimoa -Name[fi]=Minimaalinen valikko -Name[fr]=Menu minimum -Name[ga]=Roghchlár Íosta -Name[gl]=Menú mínimo -Name[he]=תפריט מינימלי -Name[hi]=न्युतम मीनु -Name[hr]=Minimalni izbornik -Name[hu]=Minimális menü -Name[ia]=Menu minime -Name[id]=Menu Minimal -Name[is]=Lágmarksvalmynd -Name[it]=Menu minimo -Name[ja]=最小メニュー -Name[ka]=მინიმალური მენიუ -Name[kk]=Minimal Menu -Name[km]=ម៉ឺនុយ​អប្បបរមា -Name[kn]=ಅತ್ಯಲ್ಪ ಪರಿವಿಡಿ -Name[ko]=최소 메뉴 -Name[lt]=Minimalistinis meniu -Name[lv]=Minimāla izvēlne -Name[mk]=Минимално мени -Name[mr]=किमान मेन्यू -Name[nb]=Minimal meny -Name[nds]=Minimaalmenü -Name[nl]=Minimaal menu -Name[nn]=Liten meny -Name[pa]=ਘੱਟੋ-ਘੱਟ ਮੈਨੂ -Name[pl]=Menu minimalistyczne -Name[pt]=Menu Mínimo -Name[pt_BR]=Menu Minimalista -Name[ro]=Meniu minim -Name[ru]=Минимальное меню -Name[si]=අවම මෙනුව -Name[sk]=Minimálne menu -Name[sl]=Minimalen meni -Name[sr]=најмањи мени -Name[sr@ijekavian]=најмањи мени -Name[sr@ijekavianlatin]=najmanji meni -Name[sr@latin]=najmanji meni -Name[sv]=Minimal meny -Name[tg]=Менюи хурдтарин -Name[th]=เมนูย่อ -Name[tr]=Basit Menü -Name[ug]=ئەڭ كىچىك تىزىملىك -Name[uk]=Мінімальне меню -Name[wa]=Dressêye å pus ptit -Name[x-test]=xxMinimal Menuxx -Name[zh_CN]=最小化菜单 -Name[zh_TW]=最小化選單 -Type=Service -Icon=help-contextual -ServiceTypes=Plasma/ContainmentActions -NoDisplay=true - -X-KDE-Library=plasma_containmentactions_minimalcontextmenu -X-KDE-PluginInfo-Author=Chani -X-KDE-PluginInfo-Email=chani@kde.org -X-KDE-PluginInfo-Name=minimalcontextmenu -X-KDE-PluginInfo-Version=pre0.1 -X-KDE-PluginInfo-Website=http://plasma.kde.org/ -X-KDE-PluginInfo-Depends= -X-KDE-PluginInfo-License=GPL - -X-Plasma-HasConfigurationInterface=false