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
This commit is contained in:
Pino Toscano 2006-03-28 22:22:10 +00:00
parent 909af316a6
commit 63c18ab06e
13 changed files with 24 additions and 14 deletions

View file

@ -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 )

View file

@ -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;

View file

@ -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

View file

@ -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"

View file

@ -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 )

View file

@ -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))

View file

@ -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"

View file

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

View file

@ -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

View file

@ -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 ),

View file

@ -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"

View file

@ -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

View file

@ -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