2014-02-06 19:29:09 +00:00
|
|
|
macro_optional_find_package(Baloo)
|
|
|
|
set_package_properties(Baloo PROPERTIES DESCRIPTION "Baloo Core libraries"
|
2012-12-30 10:59:35 +00:00
|
|
|
URL "http://www.kde.org"
|
|
|
|
TYPE OPTIONAL
|
2014-02-06 19:29:09 +00:00
|
|
|
PURPOSE "For adding desktop-wide search and tagging support to dolphin"
|
2012-12-30 10:59:35 +00:00
|
|
|
)
|
|
|
|
|
2014-02-06 19:29:09 +00:00
|
|
|
macro_optional_find_package(BalooWidgets)
|
|
|
|
set_package_properties(BalooWidgets PROPERTIES DESCRIPTION "Baloos Widgets"
|
2013-01-07 17:22:28 +00:00
|
|
|
URL "http://www.kde.org"
|
|
|
|
TYPE OPTIONAL
|
|
|
|
)
|
|
|
|
|
2014-02-06 19:29:09 +00:00
|
|
|
macro_optional_find_package(KFileMetaData)
|
|
|
|
set_package_properties(KFileMetaData PROPERTIES
|
|
|
|
URL "https://projects.kde.org/kfilemetadata"
|
|
|
|
TYPE OPTIONAL
|
|
|
|
PURPOSE "For accessing file metadata labels"
|
|
|
|
)
|
|
|
|
|
|
|
|
if (Baloo_FOUND AND BalooWidgets_FOUND AND KFileMetaData_FOUND)
|
|
|
|
set(HAVE_BALOO TRUE)
|
2013-01-07 08:54:47 +00:00
|
|
|
endif()
|
|
|
|
|
2014-02-06 19:29:09 +00:00
|
|
|
configure_file(config-baloo.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-baloo.h )
|
2013-01-02 14:28:43 +00:00
|
|
|
|
2011-07-30 18:13:09 +00:00
|
|
|
macro_bool_to_01(X11_Xrender_FOUND HAVE_XRENDER)
|
|
|
|
configure_file(config-X11.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-X11.h )
|
|
|
|
|
2014-02-06 19:29:09 +00:00
|
|
|
include_directories( ${KACTIVITIES_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR} )
|
2008-03-21 21:05:05 +00:00
|
|
|
|
2014-02-06 19:29:09 +00:00
|
|
|
if(HAVE_BALOO)
|
2014-02-07 14:41:48 +00:00
|
|
|
include_directories(${BALOO_INCLUDE_DIR} ${BALOO_WIDGETS_INCLUDE_DIR} ${KFILEMETADATA_INCLUDE_DIR})
|
2013-01-07 17:11:07 +00:00
|
|
|
endif()
|
2006-11-21 06:02:05 +00:00
|
|
|
|
2011-04-23 14:12:15 +00:00
|
|
|
add_subdirectory(tests)
|
|
|
|
|
2006-11-21 06:02:05 +00:00
|
|
|
########### next target ###############
|
|
|
|
|
2007-03-23 15:32:28 +00:00
|
|
|
set(dolphinprivate_LIB_SRCS
|
2011-07-30 18:13:09 +00:00
|
|
|
kitemviews/kfileitemlistview.cpp
|
|
|
|
kitemviews/kfileitemlistwidget.cpp
|
|
|
|
kitemviews/kfileitemmodel.cpp
|
|
|
|
kitemviews/kfileitemmodelrolesupdater.cpp
|
|
|
|
kitemviews/kitemlistcontainer.cpp
|
|
|
|
kitemviews/kitemlistcontroller.cpp
|
|
|
|
kitemviews/kitemlistgroupheader.cpp
|
2011-09-19 14:38:07 +00:00
|
|
|
kitemviews/kitemlistheader.cpp
|
2011-07-30 18:13:09 +00:00
|
|
|
kitemviews/kitemlistselectionmanager.cpp
|
|
|
|
kitemviews/kitemliststyleoption.cpp
|
|
|
|
kitemviews/kitemlistview.cpp
|
2012-08-06 12:10:30 +00:00
|
|
|
kitemviews/kitemlistviewaccessible.cpp
|
2011-07-30 18:13:09 +00:00
|
|
|
kitemviews/kitemlistwidget.cpp
|
|
|
|
kitemviews/kitemmodelbase.cpp
|
Store the selected items in a more efficient way
Since Dolphin 2.0, we have stored the selected items in a QSet<int>,
which is neither space-efficient nor particularly fast when inserting
many items which are in a consecutive range.
This commit replaces the QSet<int> by a new class "KItemSet", which
stores the items in a sorted list of ranges. For each range, we only
store the first index and the length of the range, so we need a lot
less memory for most common selection patterns, and we also save quite
a few CPU cycles in many situations, because adding an item to the
KItemSet will in many cases not need a memory allocation at all, and
it's particularly easy when inserting sorted items into the KItemSet in
a row.
KItemSet contains a minimal subset of QSet's API which makes it
suitable as a drop-in replacement for our needs. It also has iterators,
such that the items can be iterated through easily, also with foreach.
One advantage of KItemSet compared to QSet<int> is that the items are
always iterated through in ascending order.
REVIEW: 113488
2013-10-30 22:21:09 +00:00
|
|
|
kitemviews/kitemset.cpp
|
2012-04-21 19:28:16 +00:00
|
|
|
kitemviews/kstandarditem.cpp
|
2012-04-24 21:16:35 +00:00
|
|
|
kitemviews/kstandarditemlistgroupheader.cpp
|
2012-04-21 19:28:16 +00:00
|
|
|
kitemviews/kstandarditemlistwidget.cpp
|
2012-08-14 17:22:21 +00:00
|
|
|
kitemviews/kstandarditemlistview.cpp
|
2012-04-21 19:28:16 +00:00
|
|
|
kitemviews/kstandarditemmodel.cpp
|
2013-09-04 19:49:01 +00:00
|
|
|
kitemviews/private/kdirectorycontentscounter.cpp
|
|
|
|
kitemviews/private/kdirectorycontentscounterworker.cpp
|
2012-04-11 14:06:18 +00:00
|
|
|
kitemviews/private/kfileitemclipboard.cpp
|
|
|
|
kitemviews/private/kfileitemmodeldirlister.cpp
|
|
|
|
kitemviews/private/kfileitemmodelfilter.cpp
|
|
|
|
kitemviews/private/kitemlistheaderwidget.cpp
|
|
|
|
kitemviews/private/kitemlistkeyboardsearchmanager.cpp
|
2012-04-17 16:13:31 +00:00
|
|
|
kitemviews/private/kitemlistroleeditor.cpp
|
2012-04-11 14:06:18 +00:00
|
|
|
kitemviews/private/kitemlistrubberband.cpp
|
|
|
|
kitemviews/private/kitemlistselectiontoggle.cpp
|
|
|
|
kitemviews/private/kitemlistsizehintresolver.cpp
|
|
|
|
kitemviews/private/kitemlistsmoothscroller.cpp
|
|
|
|
kitemviews/private/kitemlistviewanimation.cpp
|
|
|
|
kitemviews/private/kitemlistviewlayouter.cpp
|
|
|
|
kitemviews/private/kpixmapmodifier.cpp
|
2009-01-14 20:22:17 +00:00
|
|
|
settings/additionalinfodialog.cpp
|
|
|
|
settings/applyviewpropsjob.cpp
|
2011-12-08 22:08:01 +00:00
|
|
|
settings/viewmodes/viewmodesettings.cpp
|
2009-01-14 19:26:23 +00:00
|
|
|
settings/viewpropertiesdialog.cpp
|
|
|
|
settings/viewpropsprogressinfo.cpp
|
2011-09-06 21:42:42 +00:00
|
|
|
views/dolphinfileitemlistwidget.cpp
|
2012-04-21 19:28:16 +00:00
|
|
|
views/dolphinitemlistview.cpp
|
2010-08-27 05:26:27 +00:00
|
|
|
views/dolphinnewfilemenuobserver.cpp
|
2010-07-24 22:08:30 +00:00
|
|
|
views/dolphinremoteencoding.cpp
|
2011-11-06 10:58:48 +00:00
|
|
|
views/dolphinview.cpp
|
2010-07-24 22:08:30 +00:00
|
|
|
views/dolphinviewactionhandler.cpp
|
2011-09-04 15:40:44 +00:00
|
|
|
views/draganddrophelper.cpp
|
2010-07-24 22:17:01 +00:00
|
|
|
views/renamedialog.cpp
|
|
|
|
views/tooltips/filemetadatatooltip.cpp
|
|
|
|
views/tooltips/tooltipmanager.cpp
|
|
|
|
views/versioncontrol/updateitemstatesthread.cpp
|
|
|
|
views/versioncontrol/versioncontrolobserver.cpp
|
2010-07-24 21:45:49 +00:00
|
|
|
views/viewmodecontroller.cpp
|
2010-07-24 22:08:30 +00:00
|
|
|
views/viewproperties.cpp
|
2010-07-24 21:45:49 +00:00
|
|
|
views/zoomlevelinfo.cpp
|
2013-02-09 20:56:51 +00:00
|
|
|
dolphinremoveaction.cpp
|
2013-08-28 16:46:45 +00:00
|
|
|
dolphinnewfilemenu.cpp
|
2009-11-10 21:41:14 +00:00
|
|
|
)
|
2009-12-20 04:28:22 +00:00
|
|
|
|
2014-02-06 19:29:09 +00:00
|
|
|
if(HAVE_BALOO)
|
2012-04-01 14:42:46 +00:00
|
|
|
set(dolphinprivate_LIB_SRCS
|
|
|
|
${dolphinprivate_LIB_SRCS}
|
2014-02-06 19:29:09 +00:00
|
|
|
kitemviews/private/kbaloorolesprovider.cpp
|
2012-04-01 14:42:46 +00:00
|
|
|
)
|
2013-01-07 17:11:07 +00:00
|
|
|
endif()
|
2012-04-01 14:42:46 +00:00
|
|
|
|
2007-03-23 15:32:28 +00:00
|
|
|
kde4_add_kcfg_files(dolphinprivate_LIB_SRCS
|
2011-07-30 18:13:09 +00:00
|
|
|
settings/dolphin_compactmodesettings.kcfgc
|
2009-01-14 19:26:23 +00:00
|
|
|
settings/dolphin_directoryviewpropertysettings.kcfgc
|
|
|
|
settings/dolphin_detailsmodesettings.kcfgc
|
|
|
|
settings/dolphin_iconsmodesettings.kcfgc
|
2009-12-12 22:44:05 +00:00
|
|
|
settings/dolphin_generalsettings.kcfgc
|
|
|
|
settings/dolphin_versioncontrolsettings.kcfgc
|
|
|
|
)
|
2007-03-23 15:32:28 +00:00
|
|
|
|
|
|
|
kde4_add_library(dolphinprivate SHARED ${dolphinprivate_LIB_SRCS})
|
|
|
|
|
2012-05-05 19:38:01 +00:00
|
|
|
target_link_libraries(
|
|
|
|
dolphinprivate
|
|
|
|
${KDE4_KFILE_LIBS}
|
|
|
|
konq
|
|
|
|
${KDE4_KNEWSTUFF3_LIBS}
|
|
|
|
)
|
|
|
|
|
2014-02-06 19:29:09 +00:00
|
|
|
if(HAVE_BALOO)
|
2012-04-06 16:03:24 +00:00
|
|
|
target_link_libraries(
|
|
|
|
dolphinprivate
|
2014-02-06 19:29:09 +00:00
|
|
|
${BALOO_LIBRARIES}
|
|
|
|
${BALOO_WIDGETS_LIBRARY}
|
|
|
|
${KFILEMETADATA_LIBRARY}
|
2012-04-06 16:03:24 +00:00
|
|
|
)
|
2013-01-07 17:11:07 +00:00
|
|
|
endif()
|
2012-04-01 14:42:46 +00:00
|
|
|
|
2011-07-30 18:13:09 +00:00
|
|
|
if(X11_Xrender_FOUND)
|
2012-05-05 19:38:01 +00:00
|
|
|
target_link_libraries(dolphinprivate ${X11_Xrender_LIB})
|
2011-07-30 18:13:09 +00:00
|
|
|
endif(X11_Xrender_FOUND)
|
|
|
|
|
2012-05-26 16:05:25 +00:00
|
|
|
target_link_libraries(dolphinprivate ${KDE4_PLASMA_LIBS})
|
|
|
|
|
2007-12-06 16:55:50 +00:00
|
|
|
set_target_properties(dolphinprivate PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
|
2008-04-11 06:52:03 +00:00
|
|
|
install(TARGETS dolphinprivate ${INSTALL_TARGETS_DEFAULT_ARGS})
|
2007-03-23 15:32:28 +00:00
|
|
|
|
2007-07-01 14:25:21 +00:00
|
|
|
##########################################
|
|
|
|
|
|
|
|
set(dolphinpart_SRCS
|
|
|
|
dolphinpart.cpp
|
|
|
|
)
|
|
|
|
|
2012-09-12 19:54:37 +00:00
|
|
|
# Add dolphinpart_ext.cpp conditionally, only with KDE > 4.9.1.
|
|
|
|
if (${KDE_VERSION} VERSION_GREATER "4.9.1")
|
|
|
|
set(dolphinpart_SRCS
|
|
|
|
${dolphinpart_SRCS}
|
|
|
|
dolphinpart_ext.cpp)
|
|
|
|
endif (${KDE_VERSION} VERSION_GREATER "4.9.1")
|
|
|
|
|
2007-07-01 14:25:21 +00:00
|
|
|
kde4_add_plugin(dolphinpart ${dolphinpart_SRCS})
|
|
|
|
|
2009-11-09 23:09:16 +00:00
|
|
|
target_link_libraries(dolphinpart dolphinprivate konq ${KDE4_KPARTS_LIBS} ${KDE4_KFILE_LIBS})
|
2007-07-01 14:25:21 +00:00
|
|
|
|
2009-09-13 14:49:26 +00:00
|
|
|
install(TARGETS dolphinpart DESTINATION ${PLUGIN_INSTALL_DIR})
|
2007-07-01 14:25:21 +00:00
|
|
|
|
2008-06-10 09:15:19 +00:00
|
|
|
install(FILES dolphinpart.rc DESTINATION ${DATA_INSTALL_DIR}/dolphinpart)
|
2007-07-01 14:25:21 +00:00
|
|
|
install(FILES dolphinpart.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
2010-07-24 22:17:01 +00:00
|
|
|
install(FILES views/versioncontrol/fileviewversioncontrolplugin.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
|
2007-07-01 14:25:21 +00:00
|
|
|
|
2007-03-23 15:32:28 +00:00
|
|
|
##########################################
|
|
|
|
|
2006-11-24 22:10:33 +00:00
|
|
|
set(dolphin_SRCS
|
2008-03-23 15:54:07 +00:00
|
|
|
dolphinapplication.cpp
|
2010-12-31 10:59:46 +00:00
|
|
|
dolphindockwidget.cpp
|
2008-03-23 15:54:07 +00:00
|
|
|
dolphinmainwindow.cpp
|
|
|
|
dolphinviewcontainer.cpp
|
|
|
|
dolphincontextmenu.cpp
|
2014-06-19 20:04:36 +00:00
|
|
|
dolphinrecenttabsmenu.cpp
|
2010-07-24 21:45:49 +00:00
|
|
|
filterbar/filterbar.cpp
|
2008-03-23 15:54:07 +00:00
|
|
|
main.cpp
|
2011-01-14 19:55:55 +00:00
|
|
|
panels/information/filemetadataconfigurationdialog.cpp
|
2009-01-14 20:22:17 +00:00
|
|
|
panels/information/informationpanel.cpp
|
2009-07-05 22:54:37 +00:00
|
|
|
panels/information/informationpanelcontent.cpp
|
2010-07-24 22:23:16 +00:00
|
|
|
panels/information/pixmapviewer.cpp
|
2009-01-27 19:50:21 +00:00
|
|
|
panels/information/phononwidget.cpp
|
2009-01-14 20:22:17 +00:00
|
|
|
panels/places/placespanel.cpp
|
2012-05-05 19:38:01 +00:00
|
|
|
panels/places/placesitem.cpp
|
2012-04-26 21:39:48 +00:00
|
|
|
panels/places/placesitemeditdialog.cpp
|
2012-04-24 21:16:35 +00:00
|
|
|
panels/places/placesitemlistgroupheader.cpp
|
2012-05-01 21:11:06 +00:00
|
|
|
panels/places/placesitemlistwidget.cpp
|
2012-04-25 21:01:15 +00:00
|
|
|
panels/places/placesitemmodel.cpp
|
2012-05-16 17:15:49 +00:00
|
|
|
panels/places/placesitemsignalhandler.cpp
|
2012-09-27 06:11:53 +00:00
|
|
|
panels/places/placesview.cpp
|
2009-01-14 20:14:36 +00:00
|
|
|
panels/panel.cpp
|
2012-08-13 16:40:43 +00:00
|
|
|
panels/folders/foldersitemlistwidget.cpp
|
2009-01-14 19:26:23 +00:00
|
|
|
panels/folders/treeviewcontextmenu.cpp
|
2009-01-14 20:14:36 +00:00
|
|
|
panels/folders/folderspanel.cpp
|
2012-04-25 00:16:35 +00:00
|
|
|
search/dolphinfacetswidget.cpp
|
2009-10-17 15:05:50 +00:00
|
|
|
search/dolphinsearchbox.cpp
|
2010-07-24 20:39:19 +00:00
|
|
|
settings/general/behaviorsettingspage.cpp
|
2011-02-25 19:39:18 +00:00
|
|
|
settings/general/configurepreviewplugindialog.cpp
|
2012-04-08 21:15:32 +00:00
|
|
|
settings/general/confirmationssettingspage.cpp
|
2010-07-24 20:39:19 +00:00
|
|
|
settings/general/generalsettingspage.cpp
|
|
|
|
settings/general/previewssettingspage.cpp
|
|
|
|
settings/general/statusbarsettingspage.cpp
|
2009-01-14 20:22:17 +00:00
|
|
|
settings/dolphinsettingsdialog.cpp
|
2010-07-24 20:39:19 +00:00
|
|
|
settings/navigation/navigationsettingspage.cpp
|
|
|
|
settings/services/servicessettingspage.cpp
|
2009-01-17 18:42:06 +00:00
|
|
|
settings/settingspagebase.cpp
|
2011-02-25 19:39:18 +00:00
|
|
|
settings/serviceitemdelegate.cpp
|
|
|
|
settings/servicemodel.cpp
|
2010-07-24 20:39:19 +00:00
|
|
|
settings/startup/startupsettingspage.cpp
|
|
|
|
settings/trash/trashsettingspage.cpp
|
|
|
|
settings/viewmodes/dolphinfontrequester.cpp
|
|
|
|
settings/viewmodes/viewsettingspage.cpp
|
2011-12-08 22:08:01 +00:00
|
|
|
settings/viewmodes/viewmodesettings.cpp
|
2011-09-02 17:48:57 +00:00
|
|
|
settings/viewmodes/viewsettingstab.cpp
|
2009-08-01 20:01:51 +00:00
|
|
|
statusbar/dolphinstatusbar.cpp
|
Keep the "free space" information updated in all visible views
The old code would watch the free space on a mount point, i.e.,
determine the free space again, in 10-second intervals, only until the
view became invisible once (even if it was invisible only for a very
short moment, i.e., while splitting the view).
This commit ensures that the mount point is watched again as soon as
the corresponding view becomes visible again.
Moreover, the object that watches the free space for a mount point is
shared among all views that show URLs that belong to this mount point.
To achieve this, there is a central cache which can be used to obtain
an existing MountPointObserver for a certain path. If necessary, a new
MountPointObserver is created and added to the cache.
The MountPointObserver is removed from the cache and destroyed only if
no views use it any more, and no new users appear until the next update
(which happens every 10 seconds). This prevents that the free space is
measured repeatedly when changing the current directory on the same
mount point.
Many thanks to Emmanuel Pescosta for the initial ideas to factor out
the "free space" code and to establish a central storage for the
"observer" objects, and for providing many good suggestions how to
improve the code!
BUG: 327708
REVIEW: 118208
FIXED-IN: 4.14.0
2014-05-22 16:42:17 +00:00
|
|
|
statusbar/mountpointobserver.cpp
|
|
|
|
statusbar/mountpointobservercache.cpp
|
|
|
|
statusbar/spaceinfoobserver.cpp
|
2009-08-01 20:01:51 +00:00
|
|
|
statusbar/statusbarspaceinfo.cpp
|
2010-07-24 21:45:49 +00:00
|
|
|
views/zoomlevelinfo.cpp
|
2009-11-21 22:08:59 +00:00
|
|
|
)
|
2008-03-23 15:54:07 +00:00
|
|
|
|
|
|
|
kde4_add_kcfg_files(dolphin_SRCS
|
2009-03-10 19:21:21 +00:00
|
|
|
panels/folders/dolphin_folderspanelsettings.kcfgc
|
2009-11-21 22:08:59 +00:00
|
|
|
panels/information/dolphin_informationpanelsettings.kcfgc
|
2012-09-27 06:11:53 +00:00
|
|
|
panels/places/dolphin_placespanelsettings.kcfgc
|
2011-07-30 18:13:09 +00:00
|
|
|
settings/dolphin_compactmodesettings.kcfgc
|
|
|
|
settings/dolphin_detailsmodesettings.kcfgc
|
2011-08-08 21:41:18 +00:00
|
|
|
settings/dolphin_generalsettings.kcfgc
|
2011-07-30 18:13:09 +00:00
|
|
|
settings/dolphin_iconsmodesettings.kcfgc
|
2009-11-21 22:08:59 +00:00
|
|
|
search/dolphin_searchsettings.kcfgc
|
2010-04-04 20:45:09 +00:00
|
|
|
settings/dolphin_versioncontrolsettings.kcfgc
|
2009-11-21 22:08:59 +00:00
|
|
|
)
|
2006-11-21 06:02:05 +00:00
|
|
|
|
2008-03-10 17:33:30 +00:00
|
|
|
if(NOT WIN32)
|
2009-01-14 20:14:36 +00:00
|
|
|
set(dolphin_SRCS ${dolphin_SRCS} panels/terminal/terminalpanel.cpp)
|
2008-03-10 17:33:30 +00:00
|
|
|
endif(NOT WIN32)
|
2006-11-21 06:02:05 +00:00
|
|
|
|
2008-04-02 21:32:47 +00:00
|
|
|
kde4_add_app_icon(dolphin_SRCS "${KDE4_ICON_INSTALL_DIR}/oxygen/*/apps/system-file-manager.png")
|
|
|
|
|
2010-03-16 12:30:46 +00:00
|
|
|
kde4_add_kdeinit_executable(dolphin ${dolphin_SRCS})
|
2007-05-01 15:18:07 +00:00
|
|
|
|
2010-03-16 12:30:46 +00:00
|
|
|
target_link_libraries(kdeinit_dolphin
|
2009-11-24 07:15:24 +00:00
|
|
|
${KDE4_KDEPRINT_LIBS}
|
|
|
|
${KDE4_KFILE_LIBS}
|
2010-08-27 20:13:36 +00:00
|
|
|
${KDE4_KPARTS_LIBS}
|
2010-05-12 15:58:45 +00:00
|
|
|
${KDE4_KCMUTILS_LIBRARY}
|
2009-11-24 07:15:24 +00:00
|
|
|
konq
|
|
|
|
dolphinprivate
|
2009-12-07 21:20:28 +00:00
|
|
|
knewstuff3
|
2012-05-05 19:38:01 +00:00
|
|
|
${KDE4_SOLID_LIBS}
|
2009-11-24 07:15:24 +00:00
|
|
|
${KDE4_PHONON_LIBS}
|
|
|
|
)
|
2007-05-02 10:02:19 +00:00
|
|
|
|
2014-02-06 19:29:09 +00:00
|
|
|
if(HAVE_BALOO)
|
2010-03-16 12:30:46 +00:00
|
|
|
target_link_libraries(kdeinit_dolphin
|
2014-02-06 19:29:09 +00:00
|
|
|
${BALOO_LIBRARIES}
|
|
|
|
${BALOO_WIDGETS_LIBRARY}
|
2009-11-24 07:15:24 +00:00
|
|
|
)
|
2013-01-07 17:11:07 +00:00
|
|
|
endif()
|
2006-11-21 06:02:05 +00:00
|
|
|
|
2012-08-10 15:49:39 +00:00
|
|
|
if (KActivities_FOUND)
|
|
|
|
target_link_libraries(
|
|
|
|
kdeinit_dolphin
|
|
|
|
${KACTIVITIES_LIBRARY}
|
|
|
|
)
|
|
|
|
endif (KActivities_FOUND)
|
|
|
|
|
2010-03-16 12:30:46 +00:00
|
|
|
install(TARGETS kdeinit_dolphin ${INSTALL_TARGETS_DEFAULT_ARGS})
|
2008-05-27 11:36:57 +00:00
|
|
|
install(TARGETS dolphin ${INSTALL_TARGETS_DEFAULT_ARGS})
|
2006-11-21 06:02:05 +00:00
|
|
|
|
2008-03-23 15:54:07 +00:00
|
|
|
##########################################
|
|
|
|
|
2009-01-17 18:42:06 +00:00
|
|
|
set(kcm_dolphinviewmodes_PART_SRCS
|
2010-07-24 20:49:56 +00:00
|
|
|
settings/kcm/kcmdolphinviewmodes.cpp
|
2010-07-24 20:39:19 +00:00
|
|
|
settings/viewmodes/dolphinfontrequester.cpp
|
2011-12-08 22:08:01 +00:00
|
|
|
settings/viewmodes/viewmodesettings.cpp
|
2011-09-02 17:48:57 +00:00
|
|
|
settings/viewmodes/viewsettingstab.cpp
|
2010-07-24 21:45:49 +00:00
|
|
|
views/zoomlevelinfo.cpp)
|
2009-01-19 10:39:11 +00:00
|
|
|
|
|
|
|
set(kcm_dolphinnavigation_PART_SRCS
|
2010-07-24 20:49:56 +00:00
|
|
|
settings/kcm/kcmdolphinnavigation.cpp
|
2010-07-24 20:39:19 +00:00
|
|
|
settings/navigation/navigationsettingspage.cpp
|
2009-01-19 10:39:11 +00:00
|
|
|
settings/settingspagebase.cpp)
|
2008-03-23 15:54:07 +00:00
|
|
|
|
2009-02-26 20:38:42 +00:00
|
|
|
set(kcm_dolphinservices_PART_SRCS
|
2010-07-24 20:49:56 +00:00
|
|
|
settings/kcm/kcmdolphinservices.cpp
|
2010-07-24 20:39:19 +00:00
|
|
|
settings/services/servicessettingspage.cpp
|
2011-02-25 19:39:18 +00:00
|
|
|
settings/settingspagebase.cpp
|
|
|
|
settings/serviceitemdelegate.cpp
|
|
|
|
settings/servicemodel.cpp)
|
2009-02-26 20:38:42 +00:00
|
|
|
|
2009-01-19 11:11:11 +00:00
|
|
|
set(kcm_dolphingeneral_PART_SRCS
|
2010-07-24 20:49:56 +00:00
|
|
|
settings/kcm/kcmdolphingeneral.cpp
|
2010-07-24 20:39:19 +00:00
|
|
|
settings/general/behaviorsettingspage.cpp
|
|
|
|
settings/general/previewssettingspage.cpp
|
2011-02-25 19:39:18 +00:00
|
|
|
settings/general/configurepreviewplugindialog.cpp
|
2012-04-08 21:15:32 +00:00
|
|
|
settings/general/confirmationssettingspage.cpp
|
2011-02-25 19:39:18 +00:00
|
|
|
settings/settingspagebase.cpp
|
|
|
|
settings/serviceitemdelegate.cpp
|
|
|
|
settings/servicemodel.cpp)
|
2009-01-19 11:11:11 +00:00
|
|
|
|
2009-01-17 18:42:06 +00:00
|
|
|
kde4_add_kcfg_files(kcm_dolphinviewmodes_PART_SRCS
|
2011-07-30 18:13:09 +00:00
|
|
|
settings/dolphin_compactmodesettings.kcfgc
|
2009-01-14 19:26:23 +00:00
|
|
|
settings/dolphin_directoryviewpropertysettings.kcfgc
|
|
|
|
settings/dolphin_detailsmodesettings.kcfgc
|
|
|
|
settings/dolphin_iconsmodesettings.kcfgc
|
2009-12-12 22:44:05 +00:00
|
|
|
settings/dolphin_generalsettings.kcfgc
|
|
|
|
settings/dolphin_versioncontrolsettings.kcfgc
|
|
|
|
)
|
2008-03-23 15:54:07 +00:00
|
|
|
|
2009-01-19 10:39:11 +00:00
|
|
|
kde4_add_kcfg_files(kcm_dolphinnavigation_PART_SRCS
|
|
|
|
settings/dolphin_generalsettings.kcfgc)
|
|
|
|
|
2009-02-26 20:38:42 +00:00
|
|
|
kde4_add_kcfg_files(kcm_dolphinservices_PART_SRCS
|
2010-04-04 20:45:09 +00:00
|
|
|
settings/dolphin_generalsettings.kcfgc
|
|
|
|
settings/dolphin_versioncontrolsettings.kcfgc)
|
2009-02-26 20:38:42 +00:00
|
|
|
|
2009-01-19 11:11:11 +00:00
|
|
|
kde4_add_kcfg_files(kcm_dolphingeneral_PART_SRCS
|
|
|
|
settings/dolphin_generalsettings.kcfgc)
|
|
|
|
|
2009-01-17 18:42:06 +00:00
|
|
|
kde4_add_plugin(kcm_dolphinviewmodes ${kcm_dolphinviewmodes_PART_SRCS})
|
2009-01-19 10:39:11 +00:00
|
|
|
kde4_add_plugin(kcm_dolphinnavigation ${kcm_dolphinnavigation_PART_SRCS})
|
2009-02-26 20:38:42 +00:00
|
|
|
kde4_add_plugin(kcm_dolphinservices ${kcm_dolphinservices_PART_SRCS})
|
2009-01-19 11:11:11 +00:00
|
|
|
kde4_add_plugin(kcm_dolphingeneral ${kcm_dolphingeneral_PART_SRCS})
|
2008-03-23 15:54:07 +00:00
|
|
|
|
2009-01-17 18:42:06 +00:00
|
|
|
target_link_libraries(kcm_dolphinviewmodes ${KDE4_KDEUI_LIBS} ${KDE4_KFILE_LIBS} dolphinprivate)
|
2009-01-19 10:39:11 +00:00
|
|
|
target_link_libraries(kcm_dolphinnavigation ${KDE4_KDEUI_LIBS} ${KDE4_KFILE_LIBS} dolphinprivate)
|
2009-12-07 21:20:28 +00:00
|
|
|
target_link_libraries(kcm_dolphinservices ${KDE4_KDEUI_LIBS} ${KDE4_KFILE_LIBS} ${KDE4_KIO_LIBS} ${KDE4_KNEWSTUFF3_LIBRARY} dolphinprivate)
|
2009-11-06 16:51:42 +00:00
|
|
|
target_link_libraries(kcm_dolphingeneral ${KDE4_KDEUI_LIBS} ${KDE4_KFILE_LIBS} ${KDE4_KIO_LIBS} dolphinprivate)
|
2008-03-23 15:54:07 +00:00
|
|
|
|
2009-01-17 18:42:06 +00:00
|
|
|
install(TARGETS kcm_dolphinviewmodes DESTINATION ${PLUGIN_INSTALL_DIR} )
|
2009-01-19 10:39:11 +00:00
|
|
|
install(TARGETS kcm_dolphinnavigation DESTINATION ${PLUGIN_INSTALL_DIR} )
|
2009-02-26 20:38:42 +00:00
|
|
|
install(TARGETS kcm_dolphinservices DESTINATION ${PLUGIN_INSTALL_DIR} )
|
2009-01-19 11:11:11 +00:00
|
|
|
install(TARGETS kcm_dolphingeneral DESTINATION ${PLUGIN_INSTALL_DIR} )
|
2006-11-21 06:02:05 +00:00
|
|
|
|
2010-07-24 16:37:07 +00:00
|
|
|
#########################################
|
|
|
|
|
|
|
|
set(kio_search_PART_SRCS
|
|
|
|
search/filenamesearchprotocol.cpp)
|
|
|
|
kde4_add_plugin(kio_filenamesearch ${kio_search_PART_SRCS})
|
|
|
|
target_link_libraries(kio_filenamesearch ${KDE4_KIO_LIBS})
|
|
|
|
install(TARGETS kio_filenamesearch DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
|
|
|
2006-11-21 06:02:05 +00:00
|
|
|
########### install files ###############
|
|
|
|
|
2010-10-19 12:44:48 +00:00
|
|
|
install( PROGRAMS dolphin.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
|
2009-12-12 22:44:05 +00:00
|
|
|
install( FILES settings/dolphin_directoryviewpropertysettings.kcfg
|
|
|
|
settings/dolphin_generalsettings.kcfg
|
2011-07-30 18:13:09 +00:00
|
|
|
settings/dolphin_compactmodesettings.kcfg
|
2009-12-12 22:44:05 +00:00
|
|
|
settings/dolphin_iconsmodesettings.kcfg
|
|
|
|
settings/dolphin_detailsmodesettings.kcfg
|
|
|
|
settings/dolphin_versioncontrolsettings.kcfg
|
|
|
|
DESTINATION ${KCFG_INSTALL_DIR} )
|
|
|
|
install( FILES dolphinui.rc DESTINATION ${DATA_INSTALL_DIR}/dolphin )
|
2014-06-12 19:25:17 +00:00
|
|
|
install( FILES dolphin.appdata.xml DESTINATION ${SHARE_INSTALL_PREFIX}/appdata )
|
2010-07-24 16:37:07 +00:00
|
|
|
install( FILES search/filenamesearch.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
|
2010-07-24 20:49:56 +00:00
|
|
|
install( FILES settings/kcm/kcmdolphinviewmodes.desktop DESTINATION
|
2010-07-24 16:37:07 +00:00
|
|
|
${SERVICES_INSTALL_DIR} )
|
2010-07-24 20:49:56 +00:00
|
|
|
install( FILES settings/kcm/kcmdolphinnavigation.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
|
|
install( FILES settings/kcm/kcmdolphinservices.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
|
|
install( FILES settings/kcm/kcmdolphingeneral.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
2010-07-24 20:58:05 +00:00
|
|
|
install( FILES settings/services/servicemenu.knsrc DESTINATION ${CONFIG_INSTALL_DIR} )
|
|
|
|
install( PROGRAMS settings/services/servicemenuinstallation DESTINATION ${BIN_INSTALL_DIR} )
|
|
|
|
install( PROGRAMS settings/services/servicemenudeinstallation DESTINATION ${BIN_INSTALL_DIR} )
|
2010-07-24 16:37:07 +00:00
|
|
|
|