########### next target ###############
+set(dolphinprivate_LIB_SRCS
+ dolphincontroller.cpp
+ dolphindetailsview.cpp
+ dolphiniconsview.cpp
+ dolphinsettings.cpp
+ viewproperties.cpp
+ dolphinsortfilterproxymodel.cpp
+ )
+
+kde4_add_kcfg_files(dolphinprivate_LIB_SRCS
+ dolphin_directoryviewpropertysettings.kcfgc
+ dolphin_detailsmodesettings.kcfgc
+ dolphin_iconsmodesettings.kcfgc
+ dolphin_generalsettings.kcfgc)
+
+
+kde4_automoc(${dolphinprivate_LIB_SRCS})
+
+kde4_add_library(dolphinprivate SHARED ${dolphinprivate_LIB_SRCS})
+
+target_link_libraries(dolphinprivate ${KDE4_KDEUI_LIBS} konq)
+
+set_target_properties(dolphinprivate PROPERTIES VERSION 1.0.0 SOVERSION 1 )
+install(TARGETS dolphinprivate DESTINATION ${LIB_INSTALL_DIR} )
+
+
+##########################################
+
set(dolphin_SRCS
applyviewpropsjob.cpp
bookmarkselector.cpp
bookmarkssidebarpage.cpp
detailsviewsettingspage.cpp
dolphinapplication.cpp
- dolphincontroller.cpp
dolphinmainwindow.cpp
dolphinnewmenu.cpp
dolphinview.cpp
dolphinstatusbar.cpp
dolphindirlister.cpp
- dolphindetailsview.cpp
- dolphiniconsview.cpp
- dolphinsettings.cpp
dolphincontextmenu.cpp
- dolphinsortfilterproxymodel.cpp
dolphinsettingsdialog.cpp
editbookmarkdialog.cpp
filterbar.cpp
urlnavigator.cpp
urlnavigatorbutton.cpp
viewpropertiesdialog.cpp
- viewproperties.cpp
viewsettingspage.cpp
viewpropsprogressinfo.cpp )
kde4_automoc(${dolphin_SRCS})
-kde4_add_kcfg_files(dolphin_SRCS
- dolphin_directoryviewpropertysettings.kcfgc
- dolphin_generalsettings.kcfgc
- dolphin_iconsmodesettings.kcfgc
- dolphin_detailsmodesettings.kcfgc )
-
qt4_add_dbus_adaptor(dolphin_SRCS
org.kde.dolphin.Application.xml
dolphinapplication.h DolphinApplication)
set(KDE4_KMETADATA "")
endif(KMETADATA_INCLUDE_DIR AND KMETADATA_LIBRARY AND KMETADATA_TOOLS_LIBRARY)
configure_file(config-kmetadata.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kmetadata.h )
-target_link_libraries(dolphin ${KDE4_KDECORE_LIBS} ${KDE4_KDEPRINT_LIBS} ${KDE4_KMETADATA} konq)
+target_link_libraries(dolphin ${KDE4_KDECORE_LIBS} ${KDE4_KDEPRINT_LIBS} ${KDE4_KMETADATA} konq dolphinprivate)
install(TARGETS dolphin DESTINATION ${BIN_INSTALL_DIR})
#include <dolphinview.h>
#include <kurl.h>
#include <QObject>
+#include <libdolphin_export.h>
class KUrl;
class QModelIndex;
* when an item should be triggered and a lot more. The controller emits the corresponding signals
* so that the receiver may react on those changes.
*/
-class DolphinController : public QObject
+class LIBDOLPHIN_EXPORT DolphinController : public QObject
{
Q_OBJECT
#include <dolphinview.h>
#include <QStyleOptionViewItem>
#include <QTreeView>
+#include <libdolphin_export.h>
class DolphinController;
* that full available width of the view is used by stretching the width
* of the name column.
*/
-class DolphinDetailsView : public QTreeView
+class LIBDOLPHIN_EXPORT DolphinDetailsView : public QTreeView
{
Q_OBJECT
#include <QListView>
#include <QStyleOptionViewItem>
+#include <libdolphin_export.h>
class DolphinController;
class DolphinView;
* It is also possible that instead of the icon a preview of the item
* content is shown.
*/
-class DolphinIconsView : public QListView
+class LIBDOLPHIN_EXPORT DolphinIconsView : public QListView
{
Q_OBJECT
#ifndef DOLPHINSETTINGS_H
#define DOLPHINSETTINGS_H
+#include <libdolphin_export.h>
+
class KBookmark;
class KBookmarkManager;
class GeneralSettings;
* - bookmarks
* - properties for icons and details view
*/
-class DolphinSettings {
+class LIBDOLPHIN_EXPORT DolphinSettings {
public:
static DolphinSettings& instance();
#include <QSortFilterProxyModel>
#include <dolphinview.h>
+#include <libdolphin_export.h>
/**
* @brief Acts as proxy model for KDirModel to sort and filter
*
* It is assured that directories are always sorted before files.
*/
-class DolphinSortFilterProxyModel : public QSortFilterProxyModel
+class LIBDOLPHIN_EXPORT DolphinSortFilterProxyModel : public QSortFilterProxyModel
{
Q_OBJECT
--- /dev/null
+/*
+ This file is part of the KDE project
+ Copyright (C) 2007 Montel Laurent <montel@kde.org>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License version 2 as published by the Free Software Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#ifndef LIBDOLPHIN_EXPORT_H
+#define LIBDOLPHIN_EXPORT_H
+
+/* needed for KDE_EXPORT macros */
+#include <kdemacros.h>
+
+/* needed, because e.g. Q_OS_UNIX is so frequently used */
+#include <QtCore/qglobal.h>
+
+#ifdef MAKE_DOLPHIN_LIB
+# define LIBDOLPHIN_EXPORT KDE_EXPORT
+#else
+# ifdef Q_OS_WIN
+# define LIBDOLPHIN_EXPORT KDE_IMPORT
+# else
+# define LIBDOLPHIN_EXPORT KDE_EXPORT
+# endif
+#endif
+
+#endif
+
#include <kfileitemdelegate.h>
#include <kurl.h>
#include <qdatetime.h>
-
+#include <libdolphin_export.h>
#include "dolphin_directoryviewpropertysettings.h"
class QFile;
* (see GeneralSettings::globalViewMode()), the values from the global .directory file
* are used for initialization.
*/
-class ViewProperties
+class LIBDOLPHIN_EXPORT ViewProperties
{
public:
explicit ViewProperties(const KUrl& url);