Commit 955fc31c authored by George  CK's avatar George CK Committed by Heiko Becker
Browse files

Delete flashexport plugin

Since Adobe no longer supports Flash Player after December 31, 2020 and blocked Flash content from running in Flash Player beginning January 12, 2021, Adobe strongly recommends all users immediately uninstall Flash Player to help protect their systems.
parent 5fe710f5
Pipeline #78105 skipped
......@@ -102,9 +102,6 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
I18n
)
find_package(KF5Archive ${KF5_MIN_VERSION})
set_package_properties(KF5Archive PROPERTIES PURPOSE "Required to build the FlashExport plugin")
find_package(KF5KIO ${KF5_MIN_VERSION})
set_package_properties(KF5IO PROPERTIES PURPOSE "Required to build the RemoteStorage plugin")
......@@ -230,11 +227,6 @@ if(ENABLE_LEGACY)
add_subdirectory(kmlexport)
add_subdirectory(sendimages)
add_subdirectory(jalbum)
if(KF5Archive_FOUND)
add_subdirectory(flashexport)
endif()
endif()
if(KF5Vkontakte_FOUND)
......
#
# Copyright (c) 2010-2014, Gilles Caulier, <caulier dot gilles at gmail dot com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
add_subdirectory(icons)
add_subdirectory(data)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/importWizard)
add_definitions(-DTRANSLATION_DOMAIN=\"kipiplugin_flashexport\")
set(kipiplugin_flashexport_PART_SRCS plugin_flashexport.cpp
simpleviewer.cpp
flashmanager.cpp
importWizard/intropage.cpp
importWizard/generalpage.cpp
importWizard/lookpage.cpp
importWizard/selectionpage.cpp
importWizard/firstrunpage.cpp
importWizard/importwizarddlg.cpp
importWizard/progresspage.cpp
)
add_library(kipiplugin_flashexport MODULE ${kipiplugin_flashexport_PART_SRCS})
target_link_libraries(kipiplugin_flashexport
PRIVATE
KF5::Archive
KF5::Kipi
KF5::I18n
KF5kipiplugins
)
configure_file(kipiplugin_flashexport.desktop.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/kipiplugin_flashexport.desktop)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kipiplugin_flashexport.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(TARGETS kipiplugin_flashexport DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES kipiplugin_flashexportui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/kipi)
#! /bin/sh
$EXTRACTRC `find . -name "*.ui" -o -name "*.rc" -o -name "*.kcfg" ` >> rc.cpp
$XGETTEXT `find . -name "*.cpp" -o -name "*.h"` -o $podir/kipiplugin_flashexport.pot
rm -f rc.cpp
FlashExport TODO List:
adding multithreading support
1. Look into SendImages tool how thread manager is implemented
2. Implement a similar multithreaded queue to resize image for flash export
3. Look if code can be factored into libkipi-plugins to reduce code duplication
/* ============================================================
*
* This file is a part of KDE project
*
*
* Date : 2011-09-19
* Description : a plugin to export images to flash
*
* Copyright (C) 2011-2013 by Veaceslav Munteanu <slavuttici at gmail dot com>
* Copyright (C) 2009-2018 by Gilles Caulier <caulier dot gilles at gmail dot com>
*
* 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.
*
* ============================================================ */
#ifndef ABOUTDATA_H
#define ABOUTDATA_H
// Local includes
#include "kpaboutdata.h"
using namespace KIPIPlugins;
namespace KIPIFlashExportPlugin
{
class FlashExportAboutData : public KPAboutData
{
public:
FlashExportAboutData()
: KPAboutData(ki18n("Flash Export"),
ki18n("A tool to export images to Flash using the SimpleViewer's components."),
ki18n("(c) 2005-2006, Joern Ahrens\n"
"(c) 2008-2016, Gilles Caulier\n"
"(c) 2011-2013, Veaceslav Munteanu"))
{
setHandbookEntry(QLatin1String("flashexport"));
addAuthor(i18n("Joern Ahrens"),
i18n("Author"),
QLatin1String("joern dot ahrens at kdemail dot net"));
addAuthor(i18n("Gilles Caulier"),
i18n("Developer and maintainer"),
QLatin1String("caulier dot gilles at gmail dot com"));
addAuthor(i18n("Veaceslav Munteanu"),
i18n("Developer and maintainer"),
QLatin1String("slavuttici at gmail dot com"));
addAuthor(i18n("Mikkel B. Stegmann"),
i18n("Basis for the index.html template"),
QString());
}
~FlashExportAboutData()
{
}
};
} // namespace KIPIFlashExportPlugin
#endif // ABOUTDATA_H
#
# Copyright (c) 2010-2014, Gilles Caulier, <caulier dot gilles at gmail dot com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
install(FILES space.png DESTINATION ${DATA_INSTALL_DIR}/kipiplugin_flashexport/simpleviewer_html)
install(FILES index.template DESTINATION ${DATA_INSTALL_DIR}/kipiplugin_flashexport)
install(FILES index2.template DESTINATION ${DATA_INSTALL_DIR}/kipiplugin_flashexport)
install(FILES index3.template DESTINATION ${DATA_INSTALL_DIR}/kipiplugin_flashexport)
install(FILES index4.template DESTINATION ${DATA_INSTALL_DIR}/kipiplugin_flashexport)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="kipiplugin flashexport">
<meta name="description" content="Web photo album generated by Flash Export kipi-plugin and displayed by SimpleViewer - http://www.airtightinteractive.com/simpleviewer">
<title>{TITLE}</title>
<style type="text/css">
<!--
html, body {
height:100%;
color: {COLOR};
background-color: {BGCOLOR};
margin: 0;
padding: 0;
border: 0;
overflow-y: auto;
overflow-x: auto;
}
td {
font-size: 70%;
color: {COLOR};
font-family: Verdana, Arial, Helvetica, Lucida, sans-serif;
}
a {
color: {COLOR};
text-decoration: underline;
}
a:hover {
color: #555555;
text-decoration: underline;
}
span.title {
font-size: 160%;
font-weight: bold;
padding-bottom: 0em;
padding-top: .6em;
margin-bottom: 0em;
margin-top: 0em;
}
-->
</style>
</head>
<body>
<div id="mainlayer" style="visibility: visible; position:absolute; top: 0; left: 0; width: 100%; height: 100%; z-index:1;">
<table style="width:100%;height:100%;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2">
<table style="width:100%;height:100%;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="space.png" width="1" height="624" alt="">
</td>
<td valign="middle" align="center">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="100%" height="100%" align="middle">
<param name="movie" value="simpleviewer.swf">
<param name="quality" value="high">
<param name="scale" value="noscale">
<param name="bgcolor" value="{BGCOLOR}">
<embed src="simpleviewer.swf" width="100%" height="100%" align="middle" quality="high" scale="noscale" bgcolor="{BGCOLOR}" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</object>
</td>
<td>
<img src="space.png" width="1" height="624" alt="">
</td>
</tr>
<tr style="height:1px;">
<td></td>
<td align="center">
<img src="space.png" width="842" height="1" alt="">
</td>
<td></td>
</tr>
</table>
</td>
</tr>
<tr style="height:3ex">
<td align="left" valign="top">
<img src="space.png" width="31" height="1" alt="">
</td>
<td align="right" valign="top">
Created with
<a target="_blank" href="{HOSTURL}">{HOSTNAME}</a>
</td>
</tr>
</table>
</div>
</body>
</html>
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>{TITLE}</title>
<!-- Download AutoViewer at www.airtightinteractive.com/projects/autoviewer -->
<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">
/* hide from ie on mac \*/
html {
height: 100%;
overflow: hidden;
}
#flashcontent {
height: 100%;
}
/* end hide */
body {
height: 100%;
margin: 0;
padding: 0;
background-color: {BGCOLOR};
color: {COLOR};
font-family:sans-serif;
font-size:40;
}
a {
color:#cccccc;
}
</style>
</head>
<body>
<div id="flashcontent">AutoViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a> </div>
<script type="text/javascript">
var fo = new SWFObject("autoviewer.swf", "autoviewer", "100%", "100%", "8", "{BGCOLOR}");
//Optional Configuration
//fo.addVariable("langOpenImage", "Open Image in New Window");
//fo.addVariable("langAbout", "About");
//fo.addVariable("xmlURL", "gallery.xml");
fo.write("flashcontent");
</script>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>TiltViewer</title>
<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">
/* hide from ie on mac \*/
html {
height: 100%;
overflow: hidden;
}
#flashcontent {
height: 100%;
}
/* end hide */
body {
height: 100%;
margin: 0;
padding: 0;
background-color: #181818;
color: {COLOR};
font-family:sans-serif;
font-size:40;
}
a {
color:#cccccc;
}
</style>
</head>
<body>
<div id="flashcontent">TiltViewer requires JavaScript and the latest Flash player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a></div>
<script type="text/javascript">
var fo = new SWFObject("TiltViewer.swf", "viewer", "100%", "100%", "9.0.28", "#181818");
// TILTVIEWER CONFIGURATION OPTIONS
// To use an option, uncomment it by removing the "//" at the start of the line
// For a description of config options, go to:
// http://www.airtightinteractive.com/projects/tiltviewer/config_options.html
//FLICKR GALLERY OPTIONS
// To use images from Flickr, uncomment this block
//fo.addVariable("useFlickr", "true");
//fo.addVariable("user_id", "48508968@N00");
//fo.addVariable("tags", "jump,smile");
//fo.addVariable("tag_mode", "all");
//fo.addVariable("showTakenByText", "true");
// XML GALLERY OPTIONS
// To use local images defined in an XML document, use this block
fo.addVariable("useFlickr", "false");
fo.addVariable("xmlURL", "gallery.xml");
fo.addVariable("maxJPGSize","{SIZE}");
//GENERAL OPTIONS
fo.addVariable("useReloadButton", "{RELOADBUTTON}");
fo.addVariable("columns", "{COLUMN}");
fo.addVariable("rows", "{ROW}");
fo.addVariable("showFlipButton", "{FLIPBUTTON}");
//fo.addVariable("showLinkButton", "true");
//fo.addVariable("linkLabel", "View image info");
fo.addVariable("frameColor", "{FRAMECOLOR}");
fo.addVariable("backColor", "{BACKCOLOR}");
fo.addVariable("bkgndInnerColor", "{BACKINCOLOR}");
fo.addVariable("bkgndOuterColor", "{BACKOUTCOLOR}");
//fo.addVariable("langGoFull", "Go Fullscreen");
//fo.addVariable("langExitFull", "Exit Fullscreen");
//fo.addVariable("langAbout", "About");
// END TILTVIEWER CONFIGURATION OPTIONS
fo.addParam("allowFullScreen","true");
fo.write("flashcontent");
</script>
</body>
</html>
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>{TITLE}</title>
<!-- Download PostcardViewer at www.airtightinteractive.com/projects/postcardviewer -->
<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">
/* hide from ie on mac \*/
html {
height: 100%;
overflow: hidden;
}
#flashcontent {
height: 100%;
}
/* end hide */
body {
height: 100%;
margin: 0;
padding: 0;
background-color: {BGCOLOR};
color:{COLOR};
font-family:sans-serif;
font-size:40;
}
a {
color:#cccccc;
}
</style>
</head>
<body>
<div id="flashcontent">PostcardViewer requires JavaScript and the Flash Player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a> </div>
<script type="text/javascript">
var fo = new SWFObject("viewer.swf", "viewer", "100%", "100%", "8", "{BGCOLOR}");
//Optional Configuration
//fo.addVariable("langOpenImage", "Open Image in New Window");
//fo.addVariable("langAbout", "About");
//fo.addVariable("xmlURL", "gallery.xml");
fo.write("flashcontent");
</script>
</body>
</html>
/* ============================================================
*
* This file is a part of KDE project
*
*
* Date : 2009-11-13
* Description : a plugin to export images to flash
*
* Copyright (C) 2009-2018 by Gilles Caulier <caulier dot gilles at gmail dot com>
* Copyright (C) 2011-2013 by Veaceslav Munteanu <slavuttici at gmail dot com>
*
* 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 "flashmanager.h"
// Qt includes
#include <QApplication>
// Libkipi includes
#include <KIPI/Interface>
// Local includes
#include "aboutdata.h"
#include "importwizarddlg.h"
#include "simpleviewer.h"
#include "kipiplugins_debug.h"
using namespace KIPIPlugins;
namespace KIPIFlashExportPlugin
{
class FlashManager::Private
{
public:
Private()
{
iface = nullptr;
wizard = nullptr;
simple = nullptr;
containerSettings = nullptr;
}
SimpleViewerSettingsContainer* containerSettings;
Interface* iface;
ImportWizardDlg* wizard;
SimpleViewer* simple;
};
FlashManager::FlashManager(QObject* const parent)
: QObject(parent),
d(new Private)
{
}
FlashManager::~FlashManager()
{
delete d->wizard;
delete d->simple;
delete d;
}
void FlashManager::initSimple()
{
// it cannot be initialized in main function because interface pointer is null.
delete d->simple;
d->simple = new SimpleViewer(d->iface,this);
qCDebug(KIPIPLUGINS_LOG) << "simpleview Initialized...";
}
void FlashManager::setIface(Interface* const iface)
{
d->iface = iface;
}
Interface* FlashManager::iface() const
{
return d->iface;
}
bool FlashManager::installPlugin(const QUrl& url)
{
if (d->simple->unzip(url.toLocalFile()))
return true;
else
return false;
}
SimpleViewer* FlashManager::simpleView() const
{
return d->simple;
}
void FlashManager::run()
{
startWizard();
}
void FlashManager::startWizard()
{
delete d->wizard;
d->wizard = new ImportWizardDlg(this, QApplication::activeWindow());
d->wizard->show();
}
} // namespace KIPIExpoBlendingPlugin
/* ============================================================
*
* This file is a part of KDE project
*
*
* Date : 2009-11-13
* Description : a plugin to blend bracketed images.
*
* Copyright (C) 2009-2018 by Gilles Caulier <caulier dot gilles at gmail dot com>
*
* 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.
*
* ============================================================ */
#ifndef FLASHMANAGER_H
#define FLASHMANAGER_H
// Qt includes
#include <QObject>
// KDE includes
#include <QUrl>
// Local includes
#include "simpleviewersettingscontainer.h"
#include "simpleviewer.h"
namespace KIPI
{
class Interface;
}
using namespace KIPI;
namespace KIPIFlashExportPlugin
{
class SimpleViewer;
class FlashManager: public QObject
{
Q_OBJECT
public:
explicit FlashManager(QObject* const parent = nullptr);