summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt72
-rw-r--r--ConfigureChecks.cmake16
-rw-r--r--config.h.cmake0
-rw-r--r--src/CMakeLists.txt64
-rw-r--r--src/bookmarkssidebarpage.cpp2
-rw-r--r--src/infosidebarpage.cpp1
-rw-r--r--src/pics/128x128/CMakeLists.txt14
-rw-r--r--src/pics/16x16/CMakeLists.txt14
-rw-r--r--src/pics/22x22/CMakeLists.txt14
-rw-r--r--src/pics/32x32/CMakeLists.txt14
-rw-r--r--src/pics/48x48/CMakeLists.txt14
-rw-r--r--src/pics/64x64/CMakeLists.txt14
-rw-r--r--src/pics/CMakeLists.txt12
-rw-r--r--src/servicemenus/CMakeLists.txt40
-rw-r--r--src/sidebarpage.cpp2
-rw-r--r--src/sidebars.cpp2
-rw-r--r--src/statusbarmessagelabel.cpp2
-rw-r--r--src/urlbutton.cpp2
-rw-r--r--src/urlnavigatorbutton.cpp2
19 files changed, 301 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..55bcf70
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,72 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+cmake_minimum_required( VERSION 2.6 )
+
+
+##### general package setup #####################
+
+project( dolphin )
+
+
+##### include essential cmake modules ###########
+
+include( CheckCXXSourceCompiles )
+include( CheckFunctionExists )
+include( CheckIncludeFileCXX )
+include( CheckStructHasMember )
+include( CheckSymbolExists )
+include( CheckTypeSize )
+include( FindPkgConfig )
+
+
+##### include our cmake modules #################
+
+set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
+include( TDEMacros )
+
+
+##### setup install paths #######################
+
+include( TDESetupPaths )
+tde_setup_paths( )
+
+
+##### optional stuff ############################
+
+# option( WITH_LIBVISUAL "Enable libvisual support" OFF )
+
+
+##### configure checks ##########################
+
+include( ConfigureChecks.cmake )
+
+
+###### global compiler settings #################
+
+add_definitions(
+ -DHAVE_CONFIG_H
+ ${TQT_CFLAGS_OTHER}
+)
+
+set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include tqt.h" )
+set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
+set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
+
+
+##### source directories ########################
+
+add_subdirectory( src )
+
+
+##### write configure files #####################
+
+configure_file( config.h.cmake config.h @ONLY )
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
new file mode 100644
index 0000000..2b332d2
--- /dev/null
+++ b/ConfigureChecks.cmake
@@ -0,0 +1,16 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+
+# common required stuff
+find_package( Qt )
+find_package( TQt )
+find_package( TDE )
diff --git a/config.h.cmake b/config.h.cmake
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/config.h.cmake
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..c0748eb
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,64 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( pics )
+add_subdirectory( servicemenus )
+
+tde_import( libkonq )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ #${CMAKE_SOURCE_DIR}
+ #${CMAKE_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+tde_install_icons( )
+install( FILES d3lphin.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES d3lphinui.rc DESTINATION ${DATA_INSTALL_DIR}/d3lphin )
+
+
+##### d3lphin (executable) ######################
+
+tde_add_executable( d3lphin AUTOMOC
+ SOURCES
+ bookmarkselector.cpp bookmarkssettingspage.cpp
+ bookmarkssidebarpage.cpp
+ detailsviewsettingspage.cpp dolphin.cpp
+ dolphincontextmenu.cpp dolphindetailsview.cpp
+ dolphindetailsviewsettings.cpp
+ dolphindirlister.cpp dolphiniconsview.cpp
+ dolphiniconsviewsettings.cpp dolphinsettings.cpp
+ dolphinsettingsbase.cpp dolphinsettingsdialog.cpp
+ dolphinstatusbar.cpp dolphinview.cpp
+ editbookmarkdialog.cpp filterbar.cpp
+ generalsettingspage.cpp iconsviewsettingspage.cpp
+ infosidebarpage.cpp itemeffectsmanager.cpp
+ main.cpp pixmapviewer.cpp progressindicator.cpp
+ renamedialog.cpp settingspagebase.cpp
+ sidebarpage.cpp sidebars.cpp sidebarssettings.cpp
+ statusbarmessagelabel.cpp statusbarspaceinfo.cpp
+ undomanager.cpp urlbutton.cpp urlnavigator.cpp
+ urlnavigatorbutton.cpp viewproperties.cpp
+ viewpropertiesdialog.cpp viewsettingspage.cpp
+ LINK konq-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/src/bookmarkssidebarpage.cpp b/src/bookmarkssidebarpage.cpp
index 34eef5c..4c32540 100644
--- a/src/bookmarkssidebarpage.cpp
+++ b/src/bookmarkssidebarpage.cpp
@@ -329,3 +329,5 @@ BookmarkItem* BookmarkItem::fromKbookmark(const KBookmark& bookmark, const KIcon
QPixmap icon(iconLoader.loadIcon(bookmark.icon(), KIcon::NoGroup, KIcon::SizeMedium));
return new BookmarkItem(icon, bookmark.text(), bookmark.url());
}
+
+#include "bookmarkssidebarpage.moc"
diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp
index 7cfe346..3143b03 100644
--- a/src/infosidebarpage.cpp
+++ b/src/infosidebarpage.cpp
@@ -628,3 +628,4 @@ void ServiceButton::slotReleased()
emit requestServiceStart(m_index);
}
+#include "infosidebarpage.moc"
diff --git a/src/pics/128x128/CMakeLists.txt b/src/pics/128x128/CMakeLists.txt
new file mode 100644
index 0000000..63ad0ea
--- /dev/null
+++ b/src/pics/128x128/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES
+ preview.png
+ DESTINATION ${DATA_INSTALL_DIR}/d3lphin/icons/hicolor/128x128/actions )
diff --git a/src/pics/16x16/CMakeLists.txt b/src/pics/16x16/CMakeLists.txt
new file mode 100644
index 0000000..79f2430
--- /dev/null
+++ b/src/pics/16x16/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES
+ preview.png editurl.png
+ DESTINATION ${DATA_INSTALL_DIR}/d3lphin/icons/hicolor/16x16/actions )
diff --git a/src/pics/22x22/CMakeLists.txt b/src/pics/22x22/CMakeLists.txt
new file mode 100644
index 0000000..26950a1
--- /dev/null
+++ b/src/pics/22x22/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES
+ preview.png
+ DESTINATION ${DATA_INSTALL_DIR}/d3lphin/icons/hicolor/22x22/actions )
diff --git a/src/pics/32x32/CMakeLists.txt b/src/pics/32x32/CMakeLists.txt
new file mode 100644
index 0000000..cdac570
--- /dev/null
+++ b/src/pics/32x32/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES
+ preview.png
+ DESTINATION ${DATA_INSTALL_DIR}/d3lphin/icons/hicolor/32x32/actions )
diff --git a/src/pics/48x48/CMakeLists.txt b/src/pics/48x48/CMakeLists.txt
new file mode 100644
index 0000000..3417fc6
--- /dev/null
+++ b/src/pics/48x48/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES
+ preview.png
+ DESTINATION ${DATA_INSTALL_DIR}/d3lphin/icons/hicolor/48x48/actions )
diff --git a/src/pics/64x64/CMakeLists.txt b/src/pics/64x64/CMakeLists.txt
new file mode 100644
index 0000000..282ddc4
--- /dev/null
+++ b/src/pics/64x64/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES
+ preview.png
+ DESTINATION ${DATA_INSTALL_DIR}/d3lphin/icons/hicolor/64x64/actions )
diff --git a/src/pics/CMakeLists.txt b/src/pics/CMakeLists.txt
new file mode 100644
index 0000000..df842e4
--- /dev/null
+++ b/src/pics/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_auto_add_subdirectories( )
diff --git a/src/servicemenus/CMakeLists.txt b/src/servicemenus/CMakeLists.txt
new file mode 100644
index 0000000..2137870
--- /dev/null
+++ b/src/servicemenus/CMakeLists.txt
@@ -0,0 +1,40 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES
+ compress.desktop amarok_addaspodcast.desktop
+ amarok_append.desktop amarok_play_audiocd.desktop
+ ark_compress.desktop ark_extract.desktop
+ ark_extract_subdir.desktop d3lphin_su.desktop
+ edit_as_root.desktop encryptfile.desktop
+ encryptfolder.desktop floppy_format.desktop
+ imageconverter.desktop installfont.desktop
+ jpegorient.desktop k3b_audiocd_rip.desktop
+ k3b_cd_copy.desktop k3b_create_audio_cd.desktop
+ k3b_create_video_cd.desktop k3b_dvd_copy.desktop
+ k3b_handle_empty_cd.desktop k3b_handle_empty_dvd.desktop
+ k3b_videodvd_rip.desktop k3b_write_bin_image.desktop
+ k3b_write_iso_image.desktop kdesktopSetAsBackground.desktop
+ konqgwenview.desktop konsolehere.desktop
+ mail_as_attachment.desktop media_eject.desktop
+ media_mount.desktop media_realfolder.desktop
+ media_safelyremove.desktop media_unmount.desktop
+ open_in_digikam.desktop run_as_root.desktop smb2rdc.desktop
+ text-ada-print.desktop text-c++-print.desktop
+ text-c++h-print.desktop text-ch-print.desktop
+ text-css-print.desktop text-diff-print.desktop
+ text-html-print.desktop text-java-print.desktop
+ text-log-print.desktop text-makefile-print.desktop
+ text-pas-print.desktop text-perl-print.desktop
+ text-print.desktop text-python-print.desktop
+ text-tcl-print.desktop text-tex-print.desktop
+ text-xml-print.desktop text-xslt-print.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/d3lphin/servicemenus )
diff --git a/src/sidebarpage.cpp b/src/sidebarpage.cpp
index ab057d1..e102b7d 100644
--- a/src/sidebarpage.cpp
+++ b/src/sidebarpage.cpp
@@ -34,3 +34,5 @@ SidebarPage::~SidebarPage()
void SidebarPage::activeViewChanged()
{
}
+
+#include "sidebarpage.moc"
diff --git a/src/sidebars.cpp b/src/sidebars.cpp
index 6d401be..b9f8ca6 100644
--- a/src/sidebars.cpp
+++ b/src/sidebars.cpp
@@ -188,3 +188,5 @@ int rightSidebar::indexForName(const QString& name) const
return 0;
}
+
+#include "sidebars.moc"
diff --git a/src/statusbarmessagelabel.cpp b/src/statusbarmessagelabel.cpp
index 3c49c7a..8998f98 100644
--- a/src/statusbarmessagelabel.cpp
+++ b/src/statusbarmessagelabel.cpp
@@ -213,3 +213,5 @@ QColor StatusBarMessageLabel::mixColors(const QColor& c1,
const int blue = (c1.blue() * recip + c2.blue() * percent) / 100;
return QColor(red, green, blue);
}
+
+#include "statusbarmessagelabel.moc"
diff --git a/src/urlbutton.cpp b/src/urlbutton.cpp
index 27ddc81..b674e5a 100644
--- a/src/urlbutton.cpp
+++ b/src/urlbutton.cpp
@@ -94,3 +94,5 @@ QColor URLButton::mixColors(const QColor& c1,
const int blue = (c1.blue() + c2.blue()) / 2;
return QColor(red, green, blue);
}
+
+#include "urlbutton.moc"
diff --git a/src/urlnavigatorbutton.cpp b/src/urlnavigatorbutton.cpp
index 1cc5bcc..6262210 100644
--- a/src/urlnavigatorbutton.cpp
+++ b/src/urlnavigatorbutton.cpp
@@ -391,3 +391,5 @@ void URLNavigatorButton::startDrag()
KURLDrag *drag = new KURLDrag(lst, this);
drag->drag();
}
+
+#include "urlnavigatorbutton.moc"