peony-extensions/ 0000775 0001750 0001750 00000000000 15156143275 013040 5 ustar feng feng peony-extensions/common.json 0000664 0001750 0001750 00000000033 15156143137 015214 0 ustar feng feng {
"version": "3.2.2"
}
peony-extensions/peony-engrampa-menu-plugin/ 0000775 0001750 0001750 00000000000 15156143275 020220 5 ustar feng feng peony-extensions/peony-engrampa-menu-plugin/peony-engrampa-menu-plugin_global.h 0000664 0001750 0001750 00000002212 15156143137 027063 0 ustar feng feng /*
* Peony-Qt's Library
*
* Copyright (C) 2019, Tianjin KYLIN Information Technology Co., Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this library. If not, see .
*
* Authors: Meihong
*
*/
#ifndef PEONYQTENGRAMPAMENUPLUGIN_GLOBAL_H
#define PEONYQTENGRAMPAMENUPLUGIN_GLOBAL_H
#include
#if defined(PEONYENGRAMPAMENUPLUGIN_LIBRARY)
# define PEONYQTENGRAMPAMENUPLUGINSHARED_EXPORT Q_DECL_EXPORT
#else
# define PEONYQTENGRAMPAMENUPLUGINSHARED_EXPORT Q_DECL_IMPORT
#endif
#endif // PEONYQTENGRAMPAMENUPLUGIN_GLOBAL_H
peony-extensions/peony-engrampa-menu-plugin/translations/ 0000775 0001750 0001750 00000000000 15156143275 022741 5 ustar feng feng peony-extensions/peony-engrampa-menu-plugin/translations/peony-engrampa-menu_zh_HK.ts 0000664 0001750 0001750 00000004664 15156143275 030272 0 ustar feng feng
Peony::EngrampaMenuPlugincompress...压缩...compress壓縮uncompress to current path解壓縮到當前路徑uncompress to specific path...解壓縮到特定路徑...uncompress to specific path解压缩到...Peony-Qt KArchive Menu Extension文件压缩插件KArchive Menu Extension.压缩菜单扩展。Peony-Qt engrampa ExtensionPeony-Qt 工程擴展Engrampa Menu ExtensionEngrampa 功能表擴展engrampa Menu Extension归档菜单扩展engrampa Menu Extension.归档菜单扩展。Compress壓縮Uncompress to current path解壓縮到當前路徑Uncompress to specific path...解压缩到...
peony-extensions/peony-engrampa-menu-plugin/translations/peony-engrampa-menu_ug.ts 0000664 0001750 0001750 00000003731 15156143137 027671 0 ustar feng feng
Peony::EngrampaMenuPlugincompress...压缩...compressپىرېسلاشuncompress to current pathمۇشۇ جايغا پىرېسلاشuncompress to specific path...غا پىرېسلاش....uncompress to specific path解压缩到...Peony-Qt KArchive Menu Extension文件压缩插件KArchive Menu Extension.压缩菜单扩展。Peony-Qt engrampa Extensionپىرېسلاش قوشۇمچە سىستېما ھۆججىتىengrampa Menu Extensionئارخىپقا سېلىش تىزىملىكىنى كېڭەيتىشengrampa Menu Extension.归档菜单扩展。
peony-extensions/peony-engrampa-menu-plugin/translations/peony-engrampa-menu_ky_KG.ts 0000664 0001750 0001750 00000004426 15156143275 030267 0 ustar feng feng
Peony::EngrampaMenuPlugincompress...кысуу...uncompress to current pathۇشۇل جايعا تىعىزدووuncompress to specific path...عا تىعىزدوو....uncompress to specific path解压缩到...Peony-Qt KArchive Menu Extension文件压缩插件KArchive Menu Extension.压缩菜单扩展。Peony-Qt engrampa Extensionتىعىزدوو قوشۇمچا ساامالىق ۅجۅتۉۉEngrampa Menu ExtensionEngrampa تىزىمدىك كەڭەيتمەسىengrampa Menu Extension.меню кеңейтүү энграммасы.CompressتىعىزدووUncompress to current pathUncompress to specific path...
peony-extensions/peony-engrampa-menu-plugin/translations/peony-engrampa-menu_fr.ts 0000664 0001750 0001750 00000004736 15156143275 027676 0 ustar feng feng
Peony::EngrampaMenuPlugincompress...压缩...compresscompresseuncompress to current pathDécompresser sur le chemin actueluncompress to specific path...décompresser sur un chemin spécifique...uncompress to specific path解压缩到...Peony-Qt KArchive Menu Extension文件压缩插件KArchive Menu Extension.压缩菜单扩展。Peony-Qt engrampa ExtensionPeony-Qt engrampa ExtensionEngrampa Menu Extensionengrampa Menu Extensionengrampa Menu Extensionengrampa Menu Extension.归档菜单扩展。CompressUncompress to current pathUncompress to specific path...
peony-extensions/peony-engrampa-menu-plugin/translations/peony-engrampa-menu_bo_CN.ts 0000664 0001750 0001750 00000005210 15156143275 030233 0 ustar feng feng
Peony::EngrampaMenuPlugincompress...压缩...compressསྡུད་སྒྲིལ།uncompress to current pathའདིར་ཇེ་ཉུང་དུ་བཏང་།uncompress to specific path...ཇེ་ཉུང་དུ་བཏང་།uncompress to specific path解压缩到...Peony-Qt KArchive Menu Extension文件压缩插件KArchive Menu Extension.压缩菜单扩展。Peony-Qt engrampa Extensionབསྒར་ལྷུ་སྡུད་སྒྲིལ།Engrampa Menu ExtensionEngrampa Menu Extensionengrampa Menu Extension归档菜单扩展engrampa Menu Extension.归档菜单扩展。Compressགནོན་བཙིར།Uncompress to current pathའདིར་ཇེ་ཉུང་དུ་བཏང་།Uncompress to specific path...ཇེ་ཉུང་དུ་བཏང་།
peony-extensions/peony-engrampa-menu-plugin/translations/peony-engrampa-menu_ug_CN.ts 0000664 0001750 0001750 00000004405 15156143275 030253 0 ustar feng feng
Peony::EngrampaMenuPlugincompress...قىسقىرا...uncompress to current pathنۆۋەتتىكى يولنى قىستۇرمايuncompress to specific path...كونكېرت يولنى قىستۇرماي...uncompress to specific path解压缩到...Peony-Qt KArchive Menu Extension文件压缩插件KArchive Menu Extension.压缩菜单扩展。Peony-Qt engrampa Extensionمودەن-Qt engrampa ExtensionEngrampa Menu Extensionengrampa Menu Extension.engrampa تىزىملىكىنى ئۇزارتىش.CompressUncompress to current pathUncompress to specific path...
peony-extensions/peony-engrampa-menu-plugin/translations/peony-engrampa-menu_de.ts 0000664 0001750 0001750 00000004767 15156143275 027663 0 ustar feng feng
Peony::EngrampaMenuPlugincompress...压缩...compresskomprimierenuncompress to current pathDekomprimieren Sie auf den aktuellen Pfaduncompress to specific path...Dekomprimieren Sie auf einen bestimmten Pfad...uncompress to specific path解压缩到...Peony-Qt KArchive Menu Extension文件压缩插件KArchive Menu Extension.压缩菜单扩展。Peony-Qt engrampa ExtensionPfingstrose-Qt engrampa ErweiterungEngrampa Menu Extensionengrampa Menu Extensionengrampa Menüerweiterungengrampa Menu Extension.归档菜单扩展。CompressUncompress to current pathUncompress to specific path...
peony-extensions/peony-engrampa-menu-plugin/translations/peony-engrampa-menu_mn.ts 0000664 0001750 0001750 00000005254 15156143275 027675 0 ustar feng feng
Peony::EngrampaMenuPlugincompress...ᠠᠪᠴᠢᠭᠤᠯᠬᠤ...compressᠪᠠᠭᠠᠰᠬᠠ ᠃uncompress to current pathᠡᠨᠡ ᠬᠡᠰᠡᠭ ᠤ᠋ᠨ ᠠᠪᠴᠢᠭᠤᠯᠤᠯ ᠢ᠋ ᠳᠠᠢᠯᠬᠤuncompress to specific path...ᠠᠪᠴᠢᠭᠤᠯᠤᠯ ᠢ᠋ ᠳᠠᠢᠯᠬᠤ...uncompress to specific path解压缩到...Peony-Qt KArchive Menu Extension文件压缩插件KArchive Menu Extension.压缩菜单扩展。Peony-Qt engrampa Extensionᠠᠪᠴᠢᠭᠤᠯᠬᠤ ᠤᠭᠯᠤᠷᠭᠠ ᠲᠤᠨᠤᠭEngrampa Menu ExtensionMATEᠰᠢᠷᠡᠬᠡᠨ ᠨᠢᠭᠤᠷ ᠤ᠋ᠨ ᠣᠷᠴᠢᠨengrampa Menu Extension.ᠳᠠᠩᠰᠠᠨ ᠳ᠋ᠤ᠌ ᠤᠷᠤᠭᠤᠯᠬᠤ ᠲᠤᠪᠶᠤᠭ ᠤ᠋ᠨ ᠦᠷᠭᠡᠳᠭᠡᠯ.CompressᠠᠪᠴᠢᠭᠤᠯᠬᠤUncompress to current pathᠡᠨᠳᠡ ᠬᠦᠷᠲᠡᠯᠡ ᠠᠯᠭᠤᠷᠬᠠᠨᠠ ᠃Uncompress to specific path...ᠠᠭᠰᠢᠭᠠᠬᠤ ᠁
peony-extensions/peony-engrampa-menu-plugin/translations/peony-engrampa-menu_zh_CN.ts 0000664 0001750 0001750 00000004620 15156143275 030260 0 ustar feng feng
Peony::EngrampaMenuPlugincompress...压缩...compress压缩uncompress to current path解压缩到此处uncompress to specific path...解压缩到...uncompress to specific path解压缩到...Peony-Qt KArchive Menu Extension文件压缩插件KArchive Menu Extension.压缩菜单扩展。Peony-Qt engrampa Extension压缩插件Engrampa Menu Extension归档菜单扩展engrampa Menu Extension归档菜单扩展engrampa Menu Extension.归档菜单扩展。Compress压缩Uncompress to current path解压缩到此处Uncompress to specific path...解压缩到...
peony-extensions/peony-engrampa-menu-plugin/translations/peony-engrampa-menu_es.ts 0000664 0001750 0001750 00000004736 15156143275 027676 0 ustar feng feng
Peony::EngrampaMenuPlugincompress...压缩...compresscomprimiruncompress to current pathDescomprimir a la ruta actualuncompress to specific path...descomprimir a una ruta específica...uncompress to specific path解压缩到...Peony-Qt KArchive Menu Extension文件压缩插件KArchive Menu Extension.压缩菜单扩展。Peony-Qt engrampa ExtensionExtensión de engrampa Peony-QtEngrampa Menu Extensionengrampa Menu Extensionengrampa Extensión de menúengrampa Menu Extension.归档菜单扩展。CompressUncompress to current pathUncompress to specific path...
peony-extensions/peony-engrampa-menu-plugin/translations/peony-engrampa-menu_kk_KZ.ts 0000664 0001750 0001750 00000004426 15156143275 030274 0 ustar feng feng
Peony::EngrampaMenuPlugincompress...сығымдағыш...uncompress to current pathوسى جايغا نىعىزداۋuncompress to specific path...عا نىعىزداۋ....uncompress to specific path解压缩到...Peony-Qt KArchive Menu Extension文件压缩插件KArchive Menu Extension.压缩菜单扩展。Peony-Qt engrampa Extensionنىعىزداۋ قوسىمشا سەستيما حۇجاتىEngrampa Menu ExtensionEngrampa تٸزٸمدٸك كەڭەيتپەسىengrampa Menu Extension.engrampa мәзірін кеңейту.CompressرازينكەلەۋUncompress to current pathUncompress to specific path...
peony-extensions/peony-engrampa-menu-plugin/engrampa-menu-plugin.cpp 0000664 0001750 0001750 00000013201 15156143275 024751 0 ustar feng feng /*
* Peony-Qt's Library
*
* Copyright (C) 2019, Tianjin KYLIN Information Technology Co., Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this library. If not, see .
*
* Authors: Meihong
*
*/
#include "engrampa-menu-plugin.h"
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace Peony;
EngrampaMenuPlugin::EngrampaMenuPlugin(QObject *parent) : QObject (parent)
{
QTranslator *t = new QTranslator(this);
qDebug()<<"system().name:"<load(":/translations/peony-engrampa-menu_"+QLocale::system().name());
QApplication::installTranslator(t);
}
QList EngrampaMenuPlugin::menuActions(Types types, const QString &uri, const QStringList &selectionUris)
{
QList actions;
if (types == MenuPluginInterface::DirectoryView || types == MenuPluginInterface::DesktopWindow)
{
//fix uninstall engrampa still has options issue, link to bug#119964
if (! QFile::exists("/usr/bin/engrampa"))
return actions;
if (! selectionUris.isEmpty()) {
QUrl url = selectionUris.first();
if (url.path() == QStandardPaths::writableLocation(QStandardPaths::HomeLocation)) {
if (types == MenuPluginInterface::DesktopWindow) {
return actions;
}
}
auto info = FileInfo::fromUri(selectionUris.first());
//special type mountable, return
qDebug()<<"info isVirtual:"<isVirtual()<mimeType();
if (selectionUris.first().startsWith("computer:///") ||
selectionUris.first().startsWith("trash:///") ||
selectionUris.first().startsWith("recent:///") ||
selectionUris.first().startsWith("filesafe:///") ||
info->isVirtual())
return actions;
QFileInfo file(selectionUris.first());
QAction *compress = new QAction(QIcon::fromTheme("application-zip"), tr("Compress"), nullptr);
actions<