2014-04-06 01:32:55 +00:00
|
|
|
|
2014-06-28 22:49:11 +00:00
|
|
|
configure_file(config-baloo.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-baloo.h)
|
2013-01-02 14:28:43 +00:00
|
|
|
|
2014-06-28 22:49:11 +00:00
|
|
|
configure_file(config-dolphin.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-dolphin.h)
|
2011-07-30 18:13:09 +00:00
|
|
|
|
2014-06-28 22:49:11 +00:00
|
|
|
add_definitions(-DTRANSLATION_DOMAIN=\"dolphin\")
|
|
|
|
remove_definitions(-DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_URL_CAST_FROM_STRING)
|
2008-03-21 21:05:05 +00:00
|
|
|
|
2014-06-28 22:49:11 +00:00
|
|
|
if(X11_Xrender_FOUND)
|
|
|
|
set(HAVE_XRENDER TRUE)
|
2013-01-07 17:11:07 +00:00
|
|
|
endif()
|
2006-11-21 06:02:05 +00:00
|
|
|
|
2014-06-28 22:49:11 +00:00
|
|
|
configure_file(config-X11.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-X11.h)
|
|
|
|
|
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
|
2014-07-23 10:08:33 +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
|
|
|
|
2015-01-30 12:08:35 +00:00
|
|
|
kconfig_add_kcfg_files(dolphinprivate_LIB_SRCS GENERATE_MOC
|
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
|
|
|
|
2014-06-28 22:49:11 +00:00
|
|
|
add_library(dolphinprivate ${dolphinprivate_LIB_SRCS})
|
2007-03-23 15:32:28 +00:00
|
|
|
|
2014-11-20 08:28:11 +00:00
|
|
|
generate_export_header(dolphinprivate BASE_NAME libdolphinprivate
|
|
|
|
EXPORT_FILE_NAME libdolphin_export.h)
|
|
|
|
|
2012-05-05 19:38:01 +00:00
|
|
|
target_link_libraries(
|
2014-04-30 18:35:23 +00:00
|
|
|
dolphinprivate PUBLIC
|
2014-06-28 22:49:11 +00:00
|
|
|
KF5::KDELibs4Support
|
2014-06-28 20:17:55 +00:00
|
|
|
KF5::Konq
|
2014-04-06 01:32:55 +00:00
|
|
|
KF5::NewStuff
|
2012-05-05 19:38:01 +00:00
|
|
|
)
|
|
|
|
|
2014-02-06 19:29:09 +00:00
|
|
|
if(HAVE_BALOO)
|
2012-04-06 16:03:24 +00:00
|
|
|
target_link_libraries(
|
2014-04-30 18:35:23 +00:00
|
|
|
dolphinprivate PUBLIC
|
|
|
|
KF5::FileMetaData
|
2014-10-14 13:51:51 +00:00
|
|
|
KF5::Baloo
|
2014-09-10 08:16:11 +00:00
|
|
|
KF5::BalooNaturalQueryParser
|
2014-06-27 08:34:57 +00:00
|
|
|
KF5::BalooWidgets
|
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)
|
|
|
|
|
2014-06-28 22:49:11 +00:00
|
|
|
set_target_properties(dolphinprivate PROPERTIES
|
|
|
|
VERSION ${DOLPHINPRIVATE_VERSION_STRING}
|
|
|
|
SOVERSION ${DOLPHINPRIVATE_SOVERSION}
|
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS dolphinprivate ${KF5_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
|
2014-04-06 01:32:55 +00:00
|
|
|
dolphinpart_ext.cpp
|
2007-07-01 14:25:21 +00:00
|
|
|
)
|
|
|
|
|
2014-06-28 22:49:11 +00:00
|
|
|
add_library(dolphinpart MODULE ${dolphinpart_SRCS})
|
2007-07-01 14:25:21 +00:00
|
|
|
|
2014-06-28 22:49:11 +00:00
|
|
|
target_link_libraries(dolphinpart
|
|
|
|
dolphinprivate
|
|
|
|
KF5::Konq
|
|
|
|
KF5::KDELibs4Support
|
|
|
|
)
|
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
|
|
|
|
2014-10-20 22:27:42 +00:00
|
|
|
install(FILES dolphinpart.rc DESTINATION ${CMAKE_INSTALL_KXMLGUI5DIR}/dolphinpart)
|
2014-06-28 22:49:11 +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
|
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-07-08 17:38:18 +00:00
|
|
|
dolphintabbar.cpp
|
2014-06-19 20:04:36 +00:00
|
|
|
dolphinrecenttabsmenu.cpp
|
2014-07-02 13:30:37 +00:00
|
|
|
dolphintabpage.cpp
|
2014-08-10 16:52:06 +00:00
|
|
|
dolphintabwidget.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
|
2015-01-12 15:18:50 +00:00
|
|
|
statusbar/spaceinfotoolsmenu.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/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
|
|
|
|
2015-01-30 12:08:35 +00:00
|
|
|
kconfig_add_kcfg_files(dolphin_SRCS GENERATE_MOC
|
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)
|
2014-06-28 22:49:11 +00:00
|
|
|
endif()
|
2006-11-21 06:02:05 +00:00
|
|
|
|
2014-06-28 22:49:11 +00:00
|
|
|
# TODO Does anything replace kde4_add_app_icon ?
|
|
|
|
#kde4_add_app_icon(dolphin_SRCS "${KDE4_ICON_INSTALL_DIR}/oxygen/*/apps/system-file-manager.png")
|
2008-04-02 21:32:47 +00:00
|
|
|
|
2014-06-28 22:49:11 +00:00
|
|
|
kf5_add_kdeinit_executable(dolphin ${dolphin_SRCS})
|
2007-05-01 15:18:07 +00:00
|
|
|
|
2014-04-06 01:32:55 +00:00
|
|
|
target_include_directories(kdeinit_dolphin PRIVATE ${PHONON_INCLUDES})
|
|
|
|
|
2010-03-16 12:30:46 +00:00
|
|
|
target_link_libraries(kdeinit_dolphin
|
2014-06-28 20:17:55 +00:00
|
|
|
KF5::Konq
|
2009-11-24 07:15:24 +00:00
|
|
|
dolphinprivate
|
2014-04-06 01:32:55 +00:00
|
|
|
KF5::NewStuff
|
|
|
|
KF5::Parts
|
|
|
|
KF5::KCMUtils
|
|
|
|
KF5::Solid
|
2015-02-04 11:56:29 +00:00
|
|
|
KF5::KIOFileWidgets
|
2014-04-06 01:32:55 +00:00
|
|
|
Phonon::phonon4qt5
|
2014-05-05 21:11:12 +00:00
|
|
|
KF5::KDELibs4Support
|
2015-02-04 09:22:03 +00:00
|
|
|
KF5::I18n
|
|
|
|
KF5::CoreAddons
|
2015-02-04 09:29:33 +00:00
|
|
|
KF5::DBusAddons
|
2009-11-24 07:15:24 +00:00
|
|
|
)
|
2007-05-02 10:02:19 +00:00
|
|
|
|
2014-04-30 18:35:23 +00:00
|
|
|
if (KF5Activities_FOUND)
|
2012-08-10 15:49:39 +00:00
|
|
|
target_link_libraries(
|
|
|
|
kdeinit_dolphin
|
2014-04-30 18:35:23 +00:00
|
|
|
KF5::Activities
|
2012-08-10 15:49:39 +00:00
|
|
|
)
|
2014-04-30 18:35:23 +00:00
|
|
|
endif()
|
2012-08-10 15:49:39 +00:00
|
|
|
|
2014-06-28 22:49:11 +00:00
|
|
|
install(TARGETS kdeinit_dolphin ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})
|
|
|
|
install(TARGETS dolphin ${KF5_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
|
|
|
|
2014-06-28 22:49:11 +00:00
|
|
|
kconfig_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
|
|
|
|
2014-06-28 22:49:11 +00:00
|
|
|
kconfig_add_kcfg_files(kcm_dolphinnavigation_PART_SRCS
|
2009-01-19 10:39:11 +00:00
|
|
|
settings/dolphin_generalsettings.kcfgc)
|
|
|
|
|
2014-06-28 22:49:11 +00:00
|
|
|
kconfig_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
|
|
|
|
2014-06-28 22:49:11 +00:00
|
|
|
kconfig_add_kcfg_files(kcm_dolphingeneral_PART_SRCS
|
2009-01-19 11:11:11 +00:00
|
|
|
settings/dolphin_generalsettings.kcfgc)
|
|
|
|
|
2014-06-28 22:49:11 +00:00
|
|
|
add_library(kcm_dolphinviewmodes MODULE ${kcm_dolphinviewmodes_PART_SRCS})
|
|
|
|
add_library(kcm_dolphinnavigation MODULE ${kcm_dolphinnavigation_PART_SRCS})
|
|
|
|
add_library(kcm_dolphinservices MODULE ${kcm_dolphinservices_PART_SRCS})
|
|
|
|
add_library(kcm_dolphingeneral MODULE ${kcm_dolphingeneral_PART_SRCS})
|
2008-03-23 15:54:07 +00:00
|
|
|
|
2014-06-28 22:49:11 +00:00
|
|
|
target_link_libraries(kcm_dolphinviewmodes KF5::KDELibs4Support dolphinprivate)
|
|
|
|
target_link_libraries(kcm_dolphinnavigation KF5::KDELibs4Support dolphinprivate)
|
|
|
|
target_link_libraries(kcm_dolphinservices KF5::KDELibs4Support dolphinprivate)
|
|
|
|
target_link_libraries(kcm_dolphingeneral KF5::KDELibs4Support 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
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
2014-10-07 05:32:35 +00:00
|
|
|
install( PROGRAMS org.kde.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} )
|
2014-08-24 13:40:50 +00:00
|
|
|
install( FILES dolphinui.rc DESTINATION ${CMAKE_INSTALL_KXMLGUI5DIR}/dolphin )
|
2014-06-12 19:25:17 +00:00
|
|
|
install( FILES dolphin.appdata.xml DESTINATION ${SHARE_INSTALL_PREFIX}/appdata )
|
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} )
|
2014-06-29 00:07:41 +00:00
|
|
|
|
|
|
|
add_subdirectory(tests)
|