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
wilder-5.14
Bhushan Shah 11 years ago
parent 53b0397992
commit 4f198425da
  1. 1
      containmentactions/CMakeLists.txt
  2. 17
      containmentactions/minimalcontextmenu/CMakeLists.txt
  3. 63
      containmentactions/minimalcontextmenu/menu.cpp
  4. 40
      containmentactions/minimalcontextmenu/menu.h
  5. 80
      containmentactions/minimalcontextmenu/plasma-containmentactions-minimalcontextmenu.desktop

@ -4,4 +4,3 @@ add_subdirectory(switchactivity)
add_subdirectory(paste)
add_subdirectory(switchwindow)
add_subdirectory(applauncher)
add_subdirectory(minimalcontextmenu)

@ -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})

@ -1,63 +0,0 @@
/*
* Copyright 2009 by Chani Armitage <chani@kde.org>
*
* 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 <QAction>
#include <QGraphicsSceneMouseEvent>
#include <QGraphicsSceneWheelEvent>
#include <QDebug>
#include <QMenu>
#include <KActionCollection>
#include <Plasma/Containment>
#include <Plasma/Corona>
ContextMenu::ContextMenu(QObject *parent, const QVariantList &args)
: Plasma::ContainmentActions(parent, args)
{
m_separator = new QAction(this);
m_separator->setSeparator(true);
}
ContextMenu::~ContextMenu()
{
}
QList<QAction*> ContextMenu::contextualActions()
{
Plasma::Containment *c = containment();
Q_ASSERT(c);
QList<QAction*> actions;
actions << c->contextualActions();
actions << c->actions()->action("configure");
if (!c->wallpaper().isEmpty()) {
QObject *wallpaperGraphicsObject = c->property("wallpaperGraphicsObject").value<QObject *>();
if (wallpaperGraphicsObject) {
actions << wallpaperGraphicsObject->property("contextualActions").value<QList<QAction *> >();
}
}
return actions;
}
K_EXPORT_PLASMA_CONTAINMENTACTIONS_WITH_JSON(minimalcontextmenu, ContextMenu, "plasma-containmentactions-minimalcontextmenu.json")
#include "menu.moc"

@ -1,40 +0,0 @@
/*
* Copyright 2009 by Chani Armitage <chani@kde.org>
*
* 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 <QButtonGroup>
#include <plasma/containmentactions.h>
class ContextMenu : public Plasma::ContainmentActions
{
Q_OBJECT
public:
ContextMenu(QObject* parent, const QVariantList& args);
~ContextMenu();
QList<QAction*> contextualActions();
private:
QAction *m_separator;
};
#endif

@ -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
Loading…
Cancel
Save