Make the oKular part and its shell compile and link.

Created a oKularcore lib, so the generators ca link to it, and made the oKularpart link to it too, of course.
Adapted the sources of the Okularpart to the new location for the generated settings.h.

svn path=/branches/work/kde4/playground/graphics/okular/; revision=523729
remotes/origin/old/work/newpageview
Pino Toscano 20 years ago
parent 909af316a6
commit 63c18ab06e
  1. 14
      CMakeLists.txt
  2. 2
      core/document.cpp
  3. 2
      core/page.cpp
  4. 2
      part.cpp
  5. 2
      ui/pagepainter.cpp
  6. 2
      ui/pageview.cpp
  7. 2
      ui/pageviewannotator.cpp
  8. 2
      ui/pageviewutils.cpp
  9. 2
      ui/presentationwidget.cpp
  10. 2
      ui/searchwidget.cpp
  11. 2
      ui/side_reviews.cpp
  12. 2
      ui/thumbnaillist.cpp
  13. 2
      ui/toc.cpp

@ -62,7 +62,17 @@ set(oKularagg2_SRCS
)
kde4_add_kcfg_files(oKularconf_SRCS ${CMAKE_SOURCE_DIR}/okular/conf/settings.kcfgc )
set(oKularpart_PART_SRCS part.cpp ${oKularconf_SRCS} ${oKularcore_SRCS} ${oKularui_SRCS} ${oKularagg2_SRCS} )
set(oKularcore_SRCS ${oKularconf_SRCS} ${oKularcore_SRCS} )
kde4_automoc(${oKularcore_SRCS})
kde4_add_plugin(oKularcore WITH_PREFIX ${oKularcore_SRCS})
target_link_libraries(oKularcore ${KDE4_KDECORE_LIBS} ${KDE4_KPARTS_LIBS} m )
install_targets(${LIB_INSTALL_DIR} oKularcore )
set(oKularpart_PART_SRCS part.cpp ${oKularui_SRCS} ${oKularagg2_SRCS} )
kde4_automoc(${oKularpart_PART_SRCS})
@ -72,7 +82,7 @@ kde4_add_plugin(oKularpart WITH_PREFIX ${oKularpart_PART_SRCS})
kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} oKularpart )
target_link_libraries(oKularpart ${KDE4_KDECORE_LIBS} ${KDE4_KPARTS_LIBS} ${KDE4_KDEPRINT_LIBS} ${KDE4_KUTILS_LIBS} ${KDE4_KNEWSTUFF_LIBS} ${KDE4_KHTML_LIBS} m ${X11_Xrender_LIB} )
target_link_libraries(oKularpart oKularcore ${KDE4_KDECORE_LIBS} ${KDE4_KPARTS_LIBS} ${KDE4_KDEPRINT_LIBS} ${KDE4_KUTILS_LIBS} ${KDE4_KNEWSTUFF_LIBS} ${KDE4_KHTML_LIBS} m ${X11_Xrender_LIB} )
install_targets(${LIB_INSTALL_DIR}/kde4 oKularpart )

@ -40,7 +40,7 @@
#include "link.h"
#include "chooseenginedialog.h"
#include "conf/settings.h"
#include "settings.h"
// structures used internally by KPDFDocument for local variables storage
class AllocatedPixmap;

@ -18,7 +18,7 @@
#include "pagetransition.h"
#include "link.h"
#include "annotations.h"
#include "conf/settings.h"
#include "settings.h"
#include "area.h"
// temp includes

@ -69,7 +69,7 @@
#include "ui/propertiesdialog.h"
#include "ui/presentationwidget.h"
#include "conf/preferencesdialog.h"
#include "conf/settings.h"
#include "settings.h"
#include "core/document.h"
#include "core/generator.h"
#include "core/page.h"

@ -25,7 +25,7 @@
#include "core/area.h"
#include "core/page.h"
#include "core/annotations.h"
#include "conf/settings.h"
#include "settings.h"
void PagePainter::paintPageOnPainter( QPainter * destPainter, const KPDFPage * page,
int pixID, int flags, int scaledWidth, int scaledHeight, const QRect & limits )

@ -57,7 +57,7 @@
#include "core/misc.h"
#include "core/link.h"
#include "core/generator.h"
#include "conf/settings.h"
#include "settings.h"
#define ROUND(x) (int(x + 0.5))

@ -26,7 +26,7 @@
#include "core/document.h"
#include "core/page.h"
#include "core/annotations.h"
#include "conf/settings.h"
#include "settings.h"
#include "pageview.h"
#include "pageviewutils.h"
#include "pageviewannotator.h"

@ -27,7 +27,7 @@
// local includes
#include "pageviewutils.h"
#include "core/page.h"
#include "conf/settings.h"
#include "settings.h"
/*********************/
/** PageViewItem */

@ -36,7 +36,7 @@
#include "core/generator.h"
#include "core/page.h"
#include "core/link.h"
#include "conf/settings.h"
#include "settings.h"
// comment this to disable the top-right progress indicator

@ -22,7 +22,7 @@
// local includes
#include "searchwidget.h"
#include "core/document.h"
#include "conf/settings.h"
#include "settings.h"
SearchWidget::SearchWidget( QWidget * parent, KPDFDocument * document )
: KToolBar( parent, "iSearchBar" ), m_document( document ),

@ -24,7 +24,7 @@
#include "core/annotations.h"
#include "core/document.h"
#include "core/page.h"
#include "conf/settings.h"
#include "settings.h"
#include "side_reviews.h"

@ -27,7 +27,7 @@
#include "core/document.h"
#include "core/generator.h"
#include "core/page.h"
#include "conf/settings.h"
#include "settings.h"
// ThumbnailWidget represents a single thumbnail in the ThumbnailList
class ThumbnailWidget : public QWidget

@ -14,7 +14,7 @@
#include "toc.h"
#include "core/document.h"
#include "core/page.h"
#include "conf/settings.h"
#include "settings.h"
#include "core/link.h"
// uncomment following to enable a 2nd column showing the page referred

Loading…
Cancel
Save