mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-13 05:01:30 +00:00
Riactivate the very very very, and I underline very, experimental newstuff support we had before the KNS1 -> KNS2 switch:
- install a newstuff rc config, pointing to the NS1 stuff on okular.kde.org - show the download dialog for newstuff, properly (hopefully) initialized - proper linking for the okularpart svn path=/trunk/KDE/kdegraphics/okular/; revision=690047
This commit is contained in:
parent
d57dc437b5
commit
301ab93196
|
@ -150,7 +150,7 @@ kde4_add_ui_files(okularpart_SRCS
|
||||||
|
|
||||||
kde4_add_plugin(okularpart WITH_PREFIX ${okularpart_SRCS})
|
kde4_add_plugin(okularpart WITH_PREFIX ${okularpart_SRCS})
|
||||||
|
|
||||||
target_link_libraries(okularpart okularcore ${KDE4_KNEWSTUFF_LIBS} ${KDE4_KHTML_LIBS} ${MATH_LIB})
|
target_link_libraries(okularpart okularcore ${KDE4_KPARTS_LIBS} ${KDE4_KNEWSTUFF2_LIBS} ${MATH_LIB})
|
||||||
|
|
||||||
install(TARGETS okularpart DESTINATION ${PLUGIN_INSTALL_DIR})
|
install(TARGETS okularpart DESTINATION ${PLUGIN_INSTALL_DIR})
|
||||||
|
|
||||||
|
|
14
part.cpp
14
part.cpp
|
@ -53,6 +53,7 @@
|
||||||
#include <kio/job.h>
|
#include <kio/job.h>
|
||||||
#include <kicon.h>
|
#include <kicon.h>
|
||||||
#include <kfilterdev.h>
|
#include <kfilterdev.h>
|
||||||
|
#include <knewstuff2/engine.h>
|
||||||
|
|
||||||
// local includes
|
// local includes
|
||||||
#include "aboutdata.h"
|
#include "aboutdata.h"
|
||||||
|
@ -62,9 +63,6 @@
|
||||||
#include "ui/thumbnaillist.h"
|
#include "ui/thumbnaillist.h"
|
||||||
#include "ui/side_reviews.h"
|
#include "ui/side_reviews.h"
|
||||||
#include "ui/minibar.h"
|
#include "ui/minibar.h"
|
||||||
#if 0
|
|
||||||
#include "ui/newstuff.h"
|
|
||||||
#endif
|
|
||||||
#include "ui/embeddedfilesdialog.h"
|
#include "ui/embeddedfilesdialog.h"
|
||||||
#include "ui/propertiesdialog.h"
|
#include "ui/propertiesdialog.h"
|
||||||
#include "ui/presentationwidget.h"
|
#include "ui/presentationwidget.h"
|
||||||
|
@ -1202,13 +1200,11 @@ void Part::slotSaveFileAs()
|
||||||
|
|
||||||
void Part::slotGetNewStuff()
|
void Part::slotGetNewStuff()
|
||||||
{
|
{
|
||||||
#if 0
|
KNS::Engine engine;
|
||||||
|
engine.init( "okular.knsrc" );
|
||||||
// show the modal dialog over pageview and execute it
|
// show the modal dialog over pageview and execute it
|
||||||
NewStuffDialog * dialog = new NewStuffDialog( m_pageView );
|
KNS::Entry::List entries = engine.downloadDialogModal( m_pageView );
|
||||||
connect ( dialog , SIGNAL ( loadItemClicked( const KUrl & ) ), this , SLOT ( openUrlFromDocument ( const KUrl & ) ) );
|
Q_UNUSED( entries )
|
||||||
dialog->exec();
|
|
||||||
delete dialog;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -37,3 +37,8 @@ install(FILES
|
||||||
ghns_star_gray.png
|
ghns_star_gray.png
|
||||||
DESTINATION ${DATA_INSTALL_DIR}/okular/pics)
|
DESTINATION ${DATA_INSTALL_DIR}/okular/pics)
|
||||||
|
|
||||||
|
# newstuff
|
||||||
|
install(FILES
|
||||||
|
okular.knsrc
|
||||||
|
DESTINATION ${CONFIG_INSTALL_DIR})
|
||||||
|
|
||||||
|
|
2
ui/data/okular.knsrc
Normal file
2
ui/data/okular.knsrc
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[KNewStuff2]
|
||||||
|
ProvidersUrl=http://okular.kde.org/newstuff/providers.xml
|
Loading…
Reference in a new issue