Author: dmacvicar
Date: Thu Dec 18 16:44:13 2008
New Revision: 54276
URL: http://svn.opensuse.org/viewcvs/yast?rev=54276&view=rev
Log:
- remove the delegate until we create our own without the kcm stuff
- add a kcm module
Added:
branches/tmp/tgoettlicher/yast2cc_rewrite/src/kde/
branches/tmp/tgoettlicher/yast2cc_rewrite/src/kde/CMakeLists.txt
branches/tmp/tgoettlicher/yast2cc_rewrite/src/kde/kcmyast.cpp
branches/tmp/tgoettlicher/yast2cc_rewrite/src/kde/kcmyast.destop
branches/tmp/tgoettlicher/yast2cc_rewrite/src/kde/kcmyast.h
Modified:
branches/tmp/tgoettlicher/yast2cc_rewrite/src/CMakeLists.txt
branches/tmp/tgoettlicher/yast2cc_rewrite/src/main_window.cpp
Modified: branches/tmp/tgoettlicher/yast2cc_rewrite/src/CMakeLists.txt
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/tgoettlicher/yast2cc_rewrite/src/CMakeLists.txt?rev=54276&r1=54275&r2=54276&view=diff
==============================================================================
--- branches/tmp/tgoettlicher/yast2cc_rewrite/src/CMakeLists.txt (original)
+++ branches/tmp/tgoettlicher/yast2cc_rewrite/src/CMakeLists.txt Thu Dec 18 16:44:13 2008
@@ -15,12 +15,12 @@
main.cpp
main_window.cpp
kcategorizedview.cpp
- menuitem.cpp
+ # menuitem.cpp
kcategorydrawer.cpp
kcategorizedsortfilterproxymodel.cpp
- kcmodulemodel.cpp
- moduleiconitem.cpp
- kcmoduleinfo.cpp
+ # kcmodulemodel.cpp
+ # moduleiconitem.cpp
+ # kcmoduleinfo.cpp
yqdesktopfilesmodel.cpp
yqmodulegroupsmodel.cpp
@@ -35,12 +35,12 @@
SET(yast2-control-center_HDRS
main_window.h
kcategorizedview.h
- menuitem.h
- kcmodulemodel.h
+ # menuitem.h
+ # kcmodulemodel.h
kcategorydrawer.h
kcategorizedsortfilterproxymodel.h
- moduleiconitem.h
- kcmoduleinfo.h
+ # moduleiconitem.h
+ # kcmoduleinfo.h
kcategorizedview_p.h
yqdesktopfilesmodel.h
@@ -71,6 +71,12 @@
yqmodulegroupsmodel.cpp
yqmodulesmodel.cpp )
+
QT4_AUTOMOC(${MODELS_TEST_SRCS})
ADD_EXECUTABLE(models_test ${MODELS_TEST_SRCS})
-TARGET_LINK_LIBRARIES(models_test ${QT_QTCORE_LIBRARIES} ${QT_QTGUI_LIBRARIES})
\ No newline at end of file
+TARGET_LINK_LIBRARIES(models_test ${QT_QTCORE_LIBRARIES} ${QT_QTGUI_LIBRARIES})
+
+FIND_PACKAGE(KDE4)
+IF ( KDE4_FOUND )
+ ADD_SUBDIRECTORY(kde)
+ENDIF ( KDE4_FOUND )
Added: branches/tmp/tgoettlicher/yast2cc_rewrite/src/kde/CMakeLists.txt
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/tgoettlicher/yast2cc_rewrite/src/kde/CMakeLists.txt?rev=54276&view=auto
==============================================================================
--- branches/tmp/tgoettlicher/yast2cc_rewrite/src/kde/CMakeLists.txt (added)
+++ branches/tmp/tgoettlicher/yast2cc_rewrite/src/kde/CMakeLists.txt Thu Dec 18 16:44:13 2008
@@ -0,0 +1,13 @@
+
+set(kcmyast_SRCS kcmyast.cpp)
+
+include_directories(${KDE4_INCLUDES})
+
+kde4_add_plugin(kcm_yast ${kcmyast_SRCS})
+target_link_libraries(kcm_yast ${KDE4_KDEUI_LIBS} ${KDE4_KPARTS_LIBS} ${KDE4_KNEWSTUFF2_LIBS} ${KDE4_KUTILS_LIBRARY})
+
+install(TARGETS kcm_yast DESTINATION ${PLUGIN_INSTALL_DIR} )
+
+########### install files ###############
+install( FILES kcmyast.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+install( FILES emoticons.knsrc DESTINATION ${CONFIG_INSTALL_DIR} )
Added: branches/tmp/tgoettlicher/yast2cc_rewrite/src/kde/kcmyast.cpp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/tgoettlicher/yast2cc_rewrite/src/kde/kcmyast.cpp?rev=54276&view=auto
==============================================================================
--- branches/tmp/tgoettlicher/yast2cc_rewrite/src/kde/kcmyast.cpp (added)
+++ branches/tmp/tgoettlicher/yast2cc_rewrite/src/kde/kcmyast.cpp Thu Dec 18 16:44:13 2008
@@ -0,0 +1,43 @@
+
+#include <KAboutData>
+
+#include