mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-25 02:45:38 +00:00
![Pino Toscano](/assets/img/avatar_default.png)
start a basic system for the annotation properties editing. Add a base class that will act as "interface", and a factory to create the right subclass depending on the annotation type. Adapt the Annotation Properties dialog to interact with the annotation widget. Add the editing support for Stamp Annotation (but the artwork are missing, grrr) svn path=/trunk/playground/graphics/okular/; revision=583620
115 lines
2.8 KiB
CMake
115 lines
2.8 KiB
CMake
project(okular)
|
|
|
|
option(
|
|
OKULAR_FORCE_DRM
|
|
"Forces okular to check for DRM to decide if you can copy/print protected pdf. (default=no)"
|
|
OFF
|
|
)
|
|
if(OKULAR_FORCE_DRM STREQUAL "ON")
|
|
set(_OKULAR_FORCE_DRM 1)
|
|
else(OKULAR_FORCE_DRM STREQUAL "ON")
|
|
set(_OKULAR_FORCE_DRM 0)
|
|
endif(OKULAR_FORCE_DRM STREQUAL "ON")
|
|
|
|
configure_file(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/config-okular.h.cmake
|
|
${CMAKE_CURRENT_BINARY_DIR}/config-okular.h
|
|
)
|
|
|
|
add_subdirectory( conf )
|
|
add_subdirectory( core )
|
|
add_subdirectory( ui )
|
|
add_subdirectory( shell )
|
|
add_subdirectory( generators )
|
|
|
|
add_definitions (-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS)
|
|
|
|
include_directories(
|
|
${CMAKE_SOURCE_DIR}/okular/ui/painter_agg2/
|
|
)
|
|
|
|
|
|
# okularcore
|
|
|
|
set(okularcore_SRCS
|
|
conf/preferencesdialog.cpp
|
|
conf/dlgaccessibility.cpp
|
|
conf/dlggeneral.cpp
|
|
conf/dlgperformance.cpp
|
|
conf/dlgpresentation.cpp
|
|
core/annotations.cpp
|
|
core/area.cpp
|
|
core/chooseenginedialog.cpp
|
|
core/document.cpp
|
|
core/generator.cpp
|
|
core/link.cpp
|
|
core/page.cpp
|
|
core/pagetransition.cpp
|
|
core/textpage.cpp
|
|
core/utils.cpp
|
|
)
|
|
|
|
kde4_add_ui_files(okularcore_SRCS
|
|
conf/dlgaccessibilitybase.ui
|
|
conf/dlggeneralbase.ui
|
|
conf/dlgperformancebase.ui
|
|
conf/dlgpresentationbase.ui
|
|
core/chooseenginewidget.ui
|
|
)
|
|
|
|
kde4_add_kcfg_files(okularcore_SRCS conf/settings.kcfgc )
|
|
|
|
kde4_automoc(${okularcore_SRCS})
|
|
|
|
kde4_add_library(okularcore SHARED ${okularcore_SRCS})
|
|
|
|
target_link_libraries(okularcore ${KDE4_KPARTS_LIBS} ${QT_QTCORE_LIBRARY} ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} m )
|
|
|
|
install(TARGETS okularcore DESTINATION ${LIB_INSTALL_DIR} )
|
|
|
|
# okularpart
|
|
|
|
set(okularpart_SRCS
|
|
part.cpp
|
|
ui/embeddedfilesdialog.cpp
|
|
ui/annotwindow.cpp
|
|
ui/annotationpropertiesdialog.cpp
|
|
ui/annotationwidgets.cpp
|
|
ui/minibar.cpp
|
|
ui/newstuff.cpp
|
|
ui/pagepainter.cpp
|
|
ui/pageviewannotator.cpp
|
|
ui/pageview.cpp
|
|
ui/pageviewutils.cpp
|
|
ui/presentationwidget.cpp
|
|
ui/propertiesdialog.cpp
|
|
ui/searchwidget.cpp
|
|
ui/side_reviews.cpp
|
|
ui/thumbnaillist.cpp
|
|
ui/toc.cpp
|
|
ui/painter_agg2/agg_bezier_arc.cpp
|
|
ui/painter_agg2/agg_path_storage.cpp
|
|
ui/painter_agg2/agg_rasterizer_scanline_aa.cpp
|
|
ui/painter_agg2/agg_trans_affine.cpp
|
|
ui/painter_agg2/agg_vcgen_stroke.cpp
|
|
)
|
|
|
|
kde4_automoc(${okularpart_SRCS})
|
|
|
|
kde4_add_plugin(okularpart WITH_PREFIX ${okularpart_SRCS})
|
|
|
|
kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} okularpart )
|
|
|
|
target_link_libraries(okularpart okularcore ${KDE4_KPARTS_LIBS} ${KDE4_KDEPRINT_LIBS} ${KDE4_KNEWSTUFF_LIBS} ${KDE4_KHTML_LIBS} m ${X11_Xrender_LIB} )
|
|
|
|
install(TARGETS okularpart DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
|
|
|
|
########### install files ###############
|
|
|
|
install( FILES okular_part.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
install( FILES part.rc DESTINATION ${DATA_INSTALL_DIR}/okularpart )
|
|
|
|
kde4_install_icons( ${ICON_INSTALL_DIR} )
|
|
|