Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
digiKam
Commits
3e901c5e
Commit
3e901c5e
authored
Sep 02, 2018
by
Maik Qualmann
Browse files
light table GUI export tools use a new web service starter
CCBUGS: 397972
parent
aed5c59b
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/utilities/lighttable/lighttablewindow_export.cpp
View file @
3e901c5e
...
...
@@ -89,132 +89,14 @@ void LightTableWindow::slotMediaServer()
void
LightTableWindow
::
slotExportTool
()
{
QAction
*
const
tool
=
dynamic_cast
<
QAction
*>
(
sender
());
QAction
*
const
action
=
dynamic_cast
<
QAction
*>
(
sender
());
int
tool
=
actionToWebService
(
action
);
if
(
tool
=
=
m_exportDropboxActio
n
)
if
(
tool
!
=
WSStarter
::
Unknow
n
)
{
QPointer
<
DBWindow
>
w
=
new
DBWindow
(
new
DBInfoIface
(
this
,
d
->
thumbView
->
allUrls
(),
ApplicationSettings
::
ImportExport
),
this
);
w
->
exec
();
delete
w
;
WSStarter
::
exportToWebService
(
tool
,
new
DBInfoIface
(
this
,
QList
<
QUrl
>
(),
ApplicationSettings
::
ImportExport
),
this
);
}
if
(
tool
==
m_exportOnedriveAction
)
{
QPointer
<
ODWindow
>
w
=
new
ODWindow
(
new
DBInfoIface
(
this
,
d
->
thumbView
->
allUrls
(),
ApplicationSettings
::
ImportExport
),
this
);
w
->
exec
();
delete
w
;
}
if
(
tool
==
m_exportPinterestAction
)
{
QPointer
<
PWindow
>
w
=
new
PWindow
(
new
DBInfoIface
(
this
,
d
->
thumbView
->
allUrls
(),
ApplicationSettings
::
ImportExport
),
this
);
w
->
exec
();
delete
w
;
}
if
(
tool
==
m_exportBoxAction
)
{
QPointer
<
BOXWindow
>
w
=
new
BOXWindow
(
new
DBInfoIface
(
this
,
d
->
thumbView
->
allUrls
(),
ApplicationSettings
::
ImportExport
),
this
);
w
->
exec
();
delete
w
;
}
else
if
(
tool
==
m_exportFacebookAction
)
{
QPointer
<
FbWindow
>
w
=
new
FbWindow
(
new
DBInfoIface
(
this
,
d
->
thumbView
->
allUrls
(),
ApplicationSettings
::
ImportExport
),
this
);
w
->
exec
();
delete
w
;
}
else
if
(
tool
==
m_exportFlickrAction
)
{
WSStarter
::
exportToWebService
(
WSStarter
::
Flickr
,
new
DBInfoIface
(
this
,
d
->
thumbView
->
allUrls
(),
ApplicationSettings
::
ImportExport
),
this
);
}
else
if
(
tool
==
m_exportGdriveAction
)
{
QPointer
<
GSWindow
>
w
=
new
GSWindow
(
new
DBInfoIface
(
this
,
QList
<
QUrl
>
(),
ApplicationSettings
::
ImportExport
),
this
,
QLatin1String
(
"googledriveexport"
));
w
->
exec
();
delete
w
;
}
else
if
(
tool
==
m_exportGphotoAction
)
{
QPointer
<
GSWindow
>
w
=
new
GSWindow
(
new
DBInfoIface
(
this
,
d
->
thumbView
->
allUrls
(),
ApplicationSettings
::
ImportExport
),
this
,
QLatin1String
(
"googlephotoexport"
));
w
->
exec
();
delete
w
;
}
else
if
(
tool
==
m_exportImageshackAction
)
{
QPointer
<
ImageShackWindow
>
w
=
new
ImageShackWindow
(
new
DBInfoIface
(
this
,
d
->
thumbView
->
allUrls
(),
ApplicationSettings
::
ImportExport
),
this
);
w
->
exec
();
delete
w
;
}
else
if
(
tool
==
m_exportImgurAction
)
{
QPointer
<
ImgurWindow
>
w
=
new
ImgurWindow
(
new
DBInfoIface
(
this
,
d
->
thumbView
->
allUrls
(),
ApplicationSettings
::
ImportExport
),
this
);
w
->
exec
();
delete
w
;
}
else
if
(
tool
==
m_exportPiwigoAction
)
{
QPointer
<
PiwigoWindow
>
w
=
new
PiwigoWindow
(
new
DBInfoIface
(
this
,
d
->
thumbView
->
allUrls
(),
ApplicationSettings
::
ImportExport
),
this
);
w
->
exec
();
delete
w
;
}
else
if
(
tool
==
m_exportRajceAction
)
{
QPointer
<
RajceWindow
>
w
=
new
RajceWindow
(
new
DBInfoIface
(
this
,
d
->
thumbView
->
allUrls
(),
ApplicationSettings
::
ImportExport
),
this
);
w
->
exec
();
delete
w
;
}
else
if
(
tool
==
m_exportSmugmugAction
)
{
QPointer
<
SmugWindow
>
w
=
new
SmugWindow
(
new
DBInfoIface
(
this
,
d
->
thumbView
->
allUrls
(),
ApplicationSettings
::
ImportExport
),
this
);
w
->
exec
();
delete
w
;
}
else
if
(
tool
==
m_exportYandexfotkiAction
)
{
QPointer
<
YFWindow
>
w
=
new
YFWindow
(
new
DBInfoIface
(
this
,
d
->
thumbView
->
allUrls
(),
ApplicationSettings
::
ImportExport
),
this
);
w
->
exec
();
delete
w
;
}
else
if
(
tool
==
m_exportMediawikiAction
)
{
QPointer
<
MediaWikiWindow
>
w
=
new
MediaWikiWindow
(
new
DBInfoIface
(
this
,
d
->
thumbView
->
allUrls
(),
ApplicationSettings
::
ImportExport
),
this
);
w
->
exec
();
delete
w
;
}
#ifdef HAVE_VKONTAKTE
else
if
(
tool
==
m_exportVkontakteAction
)
{
QPointer
<
VKWindow
>
w
=
new
VKWindow
(
new
DBInfoIface
(
this
,
d
->
thumbView
->
allUrls
(),
ApplicationSettings
::
ImportExport
),
this
);
w
->
exec
();
delete
w
;
}
#endif
#ifdef HAVE_KIO
else
if
(
tool
==
m_exportFileTransferAction
)
{
QPointer
<
FTExportWindow
>
w
=
new
FTExportWindow
(
new
DBInfoIface
(
this
,
d
->
thumbView
->
allUrls
(),
ApplicationSettings
::
ImportExport
),
this
);
w
->
exec
();
delete
w
;
}
#endif
}
}
// namespace Digikam
core/utilities/lighttable/lighttablewindow_p.h
View file @
3e901c5e
...
...
@@ -90,27 +90,11 @@
#include
"mailwizard.h"
#include
"advprintwizard.h"
#include
"dmediaserverdlg.h"
#include
"dbwindow.h"
#include
"odwindow.h"
#include
"pwindow.h"
#include
"boxwindow.h"
#include
"fbwindow.h"
#include
"wsstarter.h"
#include
"gswindow.h"
#include
"imageshackwindow.h"
#include
"imgurwindow.h"
#include
"piwigowindow.h"
#include
"rajcewindow.h"
#include
"smugwindow.h"
#include
"yfwindow.h"
#include
"mediawikiwindow.h"
#ifdef HAVE_VKONTAKTE
# include "vkwindow.h"
#endif
#ifdef HAVE_KIO
# include "ftexportwindow.h"
# include "ftimportwindow.h"
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment