diff --git a/sendimages/kipiplugin_sendimages.desktop.cmake.in b/sendimages/kipiplugin_sendimages.desktop.cmake.in index bc2a67395..d0bb3995d 100644 --- a/sendimages/kipiplugin_sendimages.desktop.cmake.in +++ b/sendimages/kipiplugin_sendimages.desktop.cmake.in @@ -1,101 +1,101 @@ [Desktop Entry] UntranslatedGenericName=SendImages Name=SendImages Name[ast]=SendImages Name[bg]=Изпращане на изображения Name[bs]=Pošalji slike Name[ca]=SendImages Name[ca@valencia]=SendImages Name[cs]=Odeslání obrázků Name[da]=SendImages Name[de]=Bilder senden Name[el]=SendImages Name[en_GB]=SendImages Name[es]=Enviar imágenes Name[et]=Piltide saatmine Name[eu]=Bidali irudiak Name[fi]=Sähköpostilähetys Name[fr]=SendImages Name[ga]=SeolÍomhánna Name[gl]=SendImages Name[he]=שלח תמונות Name[hne]=सेंड-इमेज Name[hu]=Képek küldése Name[is]=SendaMyndir Name[it]=Invia immagini Name[ja]=SendImages Name[km]=ផ្ញើ​រូបភាព Name[ko]=SendImages Name[lv]=Sūtīt attēlus Name[nb]=Send bilder Name[nds]=Biller loosstüern Name[nl]=AfbeeldingenVerzenden Name[pa]=ਚਿੱਤਰ ਭੇਜੋ Name[pl]=WyślijObrazy Name[pt]=Envio de Imagens Name[pt_BR]=Enviar imagens Name[ro]=Trimitere imagini Name[ru]=Отправка изображений Name[sk]=Poslať obrázky Name[sl]=SendImages Name[sq]=SendImages Name[sv]=Skicka bilder Name[th]=ส่งภาพทางเมล Name[tr]=Resim Gönder Name[uk]=SendImages Name[x-test]=xxSendImagesxx Name[zh_CN]=发送图像 Name[zh_TW]=郵寄影像 Comment=A tool to send images by e-mail Comment[ast]=Una ferramienta pa unviar imáxenes per corréu electrónicu Comment[bg]=Инструмент за изпращане на изображения по е-поща Comment[bs]=Alat za slanje slika putem e-pošte Comment[ca]=Una eina per a enviar imatges per correu electrònic Comment[ca@valencia]=Una eina per a enviar imatges per correu electrònic Comment[cs]=Nástroj pro odeslání obrázků e-mailem Comment[da]=Et værktøj til at sende billeder med e-mail Comment[de]=Ein Werkzeug, um Bilder per E-Mail zu senden. Comment[el]=Εργαλείο αποστολής εικόνων μέσω ηλ. ταχυδρομείου Comment[en_GB]=A tool to send images by e-mail Comment[es]=Una herramienta para el envío de imágenes por correo Comment[et]=Tööriist piltide saatmiseks e-postiga Comment[eu]=Irudiak posta elektronikoz bidaltzeko tresna Comment[fi]=Kuvien lähetys sähköpostitse Comment[fr]=Un outil d'envoi d'images par courrier électronique Comment[ga]=Uirlis a sheolann íomhánna trí ríomhphost Comment[gl]=Unha ferramenta para enviar imaxes por correo electrónico Comment[he]=כלי לשליחת תמונות בדואר אלקטרוני Comment[hne]=फोटू ल ईमेल से भेजे के एक औजार Comment[hu]=Egy eszköz képek e-mailben való küldéséhez Comment[is]=Verkfæri til að senda myndir með tölvupósti Comment[it]=Uno strumento per inviare immagini per posta elettronica Comment[ja]=画像をメールで送信するツール Comment[km]=ឧបករណ៍​ត្រូវ​ផ្ញើ​រូបភាព​តាម​អ៊ីមែល Comment[lv]=Rīks attēlu nosūtīšanai pa e-pastu Comment[nb]=Et verktøy for å sende bilder med e-post Comment[nds]=En Warktüüch, mit dat sik Biller per Nettpost loosstüern laat Comment[nl]=Een hulpmiddel voor het verzenden van afbeeldingen per e-mail Comment[pa]=ਈਮੇਲ ਰਾਹੀਂ ਚਿੱਤਰ ਭੇਜਣ ਵਾਸਤੇ ਇੱਕ ਟੂਲ Comment[pl]=Narzędzie do przesyłania obrazów przez e-maila Comment[pt]=Uma ferramenta para enviar imagens por e-mail Comment[pt_BR]=Uma ferramenta para enviar imagens por e-mail Comment[ro]=O unealtă de trimis imagini prin e-mail Comment[ru]=Инструмент для отправки изображений по электронной почте Comment[sk]=Nástroj na posielanie obrázkov cez e-mail Comment[sl]=Orodje za pošiljanje slik po e-pošti Comment[sq]=Një mjet për të dërguar imazhet me e-mail Comment[sv]=Ett verktyg för att skicka bilder via e-post Comment[th]=เครื่องมือในการส่งภาพต่าง ๆ ทางอีเมล Comment[tr]=Dosyaları e-posta ile göndermek için bir araç Comment[uk]=Інструмент для надсилання зображень електронною поштою Comment[x-test]=xxA tool to send images by e-mailxx Comment[zh_CN]=一个通过电子邮件发送图像的工具 Comment[zh_TW]=用電子信箱郵寄影像的工具 ServiceTypes=KIPI/Plugin Type=Service Icon=mail-send X-KDE-Library=kipiplugin_sendimages author=Gilles Caulier, caulier dot gilles at gmail dot com X-KIPI-MergeMenu=true X-KIPI-BinaryVersion=${KIPI_LIB_SO_CUR_VERSION} -X-KIPI-PluginCategories=Tools +X-KIPI-PluginCategories=Export diff --git a/sendimages/kipiplugin_sendimagesui.rc b/sendimages/kipiplugin_sendimagesui.rc index fbe6fe431..b75d67947 100644 --- a/sendimages/kipiplugin_sendimagesui.rc +++ b/sendimages/kipiplugin_sendimagesui.rc @@ -1,16 +1,16 @@ - + - &Tools - + &Export + Main Toolbar diff --git a/sendimages/plugin_sendimages.cpp b/sendimages/plugin_sendimages.cpp index d48622c22..10ae087f4 100644 --- a/sendimages/plugin_sendimages.cpp +++ b/sendimages/plugin_sendimages.cpp @@ -1,167 +1,167 @@ /* ============================================================ * * This file is a part of digiKam project * http://www.digikam.org * * Date : 2003-10-01 * Description : a kipi plugin to e-mailing images * * Copyright (C) 2003-2017 by Gilles Caulier * * 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, 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. * * ============================================================ */ #include "plugin_sendimages.h" // Qt includes #include #include // KDE includes #include #include // Libkipi includes #include #include // Local includes #include "kputil.h" #include "sendimages.h" #include "sendimagesdialog.h" #include "kipiplugins_debug.h" namespace KIPISendimagesPlugin { K_PLUGIN_FACTORY(SendImagesFactory, registerPlugin();) class Plugin_SendImages::Private { public: Private() { dialog = 0; action_sendimages = 0; sendImagesOperation = 0; } QAction* action_sendimages; SendImagesDialog* dialog; SendImages* sendImagesOperation; }; Plugin_SendImages::Plugin_SendImages(QObject* const parent, const QVariantList&) : Plugin(parent, "SendImages"), d(new Private) { qCDebug(KIPIPLUGINS_LOG) << "Plugin_SendImages plugin loaded"; setUiBaseName("kipiplugin_sendimagesui.rc"); setupXML(); } Plugin_SendImages::~Plugin_SendImages() { delete d->sendImagesOperation; delete d->dialog; delete d; removeTemporaryDir("sendimages"); } void Plugin_SendImages::setup(QWidget* const widget) { Plugin::setup(widget); setupActions(); Interface* const iface = interface(); if (!iface) { qCCritical(KIPIPLUGINS_LOG) << "Kipi interface is null!"; return; } //ImageCollection selection = iface->currentSelection(); //d->action_sendimages->setEnabled(selection.isValid() && !selection.images().isEmpty() ); connect(iface, SIGNAL(selectionChanged(bool)), d->action_sendimages, SLOT(setEnabled(bool))); } void Plugin_SendImages::setupActions() { - setDefaultCategory(ToolsPlugin); + setDefaultCategory(ExportPlugin); d->action_sendimages = new QAction(this); d->action_sendimages->setText(i18n("Email Images...")); d->action_sendimages->setIcon(QIcon::fromTheme(QLatin1String("mail-send"))); connect(d->action_sendimages, SIGNAL(triggered(bool)), this, SLOT(slotActivate())); addAction(QLatin1String("sendimages"), d->action_sendimages); } void Plugin_SendImages::slotActivate() { Interface* const iface = interface(); if (!iface) { qCCritical(KIPIPLUGINS_LOG) << "Kipi interface is null!"; return; } ImageCollection images = iface->currentSelection(); if (!images.isValid() || images.images().isEmpty()) return; delete d->dialog; d->dialog = new SendImagesDialog(QApplication::activeWindow(), images.images()); d->dialog->show(); connect(d->dialog, SIGNAL(accepted()), this, SLOT(slotPrepareEmail())); } void Plugin_SendImages::slotPrepareEmail() { Interface* const interface = dynamic_cast(parent()); if (!interface) { qCCritical(KIPIPLUGINS_LOG) << "Kipi interface is null!"; return; } delete d->sendImagesOperation; EmailSettings settings = d->dialog->emailSettings(); d->sendImagesOperation = new SendImages(settings, this); d->sendImagesOperation->firstStage(); } } // namespace KIPISendimagesPlugin #include "plugin_sendimages.moc"