[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepimlibs
From:       John Layt <john () layt ! net>
Date:       2010-10-04 13:30:06
Message-ID: 20101004133006.E5B16AC88C () svn ! kde ! org
[Download RAW message or body]

SVN commit 1182411 by jlayt:

KHolidays: New HolidayRegionSelector widget for clients to allow users to
configure what Holiday Regions to use.

The widget provides a number of modes and features to fit most use case
scenarios I can think of:
* A display only mode
* A single Holiday Region selection mode
* A multiple Holiday Region selection mode with optional secondary selection
  for Days Off / preferred Holiday Region
* A search line
* Ability to modify level of detail displayed when space is limited
* Qt Designer plugin

Future features planned include a pop-up with details of all holidays defined
in a region, and better region naming once holiday types are implemented.

See ReviewBoard http://svn.reviewboard.kde.org/r/5518/



 A             includes/KHolidays/HolidayRegionSelector  
 M  +33 -2     kholidays/CMakeLists.txt  
 A             kholidays/holidayregionselector.cpp   [License: LGPL (v2+)]
 A             kholidays/holidayregionselector.h   [License: LGPL (v2+)]
 A             kholidays/holidayregionselector.ui  
 A             kholidays/kholidays.widgets  


--- trunk/KDE/kdepimlibs/kholidays/CMakeLists.txt #1182410:1182411
@@ -17,6 +17,7 @@
   astroseasons.cpp
   holiday.cpp
   holidayregion.cpp
+  holidayregionselector.cpp
   lunarphase.cpp
   zodiac.cpp
   parsers/plan2/holidayscannerplan.cpp
@@ -25,13 +26,43 @@
   parsers/plan2/holidayparserplan.cpp
 )
 
+set(kholidays_UI
+  holidayregionselector.ui
+)
+
+kde4_add_ui_files(kholidays_LIB_SRCS ${kholidays_UI})
+
 kde4_add_library(kholidays ${LIBRARY_TYPE} ${kholidays_LIB_SRCS})
 
-target_link_libraries(kholidays ${KDE4_KDECORE_LIBS})
+target_link_libraries(kholidays ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY})
 
 set_target_properties(kholidays PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION \
${GENERIC_LIB_SOVERSION})  install(TARGETS kholidays EXPORT kdepimlibsLibraryTargets \
${INSTALL_TARGETS_DEFAULT_ARGS})  
+########### next target ###############
+
+if (QT_QTDESIGNER_FOUND)
+  set(kholidayswidgets_PART_SRCS)
+  kde4_add_widget_files(kholidayswidgets_PART_SRCS \
${CMAKE_CURRENT_SOURCE_DIR}/kholidays.widgets) +
+  kde4_add_plugin(kholidayswidgets ${kholidayswidgets_PART_SRCS})
+
+
+  target_link_libraries(kholidayswidgets  ${KDE4_KIO_LIBS} kholidays)
+
+  install(TARGETS kholidayswidgets  DESTINATION \
${PLUGIN_INSTALL_DIR}/plugins/designer) +endif (QT_QTDESIGNER_FOUND)
+
 ########### install files ###############
 
-install(FILES kholidays_export.h astroseasons.h holiday.h holidayregion.h holidays.h \
lunarphase.h zodiac.h DESTINATION ${INCLUDE_INSTALL_DIR}/kholidays COMPONENT Devel) \
+install(FILES +  kholidays_export.h
+  astroseasons.h
+  holiday.h
+  holidayregion.h
+  holidays.h
+  lunarphase.h
+  zodiac.h
+  holidayregionselector.h
+  DESTINATION ${INCLUDE_INSTALL_DIR}/kholidays COMPONENT Devel
+)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic