Git commit dea0dcccb922e528a1c2f2a2bd3a102cf756d3e9 by David Faure, on behalf of Alex Merry. Committed on 17/12/2013 at 10:33. Pushed by dfaure into branch 'frameworks'.
Rename kdewidgets to kdesignerplugin REVIEW: 114496 M +1 -1 superbuild/CMakeLists.txt M +1 -1 tier3/CMakeLists.txt D +0 -63 tier3/kdewidgets/CMakeLists.txt D +0 -3 tier3/kdewidgets/KDEWidgetsConfig.cmake D +0 -43 tier3/kdewidgets/KDEWidgetsMacros.cmake D +0 -1 tier3/kdewidgets/Mainpage.dox D +0 -1 tier3/kdewidgets/docs/CMakeLists.txt D +0 -1 tier3/kdewidgets/docs/makekdewidgets/CMakeLists.txt D +0 -447 tier3/kdewidgets/docs/makekdewidgets/man-makekdewidgets.1.docbook D +0 -3 tier3/kdewidgets/src/AUTHORS D +0 -98 tier3/kdewidgets/src/CMakeLists.txt D +0 -65 tier3/kdewidgets/src/README D +0 -29 tier3/kdewidgets/src/classpreviews.cpp D +0 -41 tier3/kdewidgets/src/classpreviews.h D +0 -255 tier3/kdewidgets/src/kde.widgets D +0 -10 tier3/kdewidgets/src/kdewebkit.widgets D +0 -4 tier3/kdewidgets/src/kdewebkitwidgets.qrc D +0 -33 tier3/kdewidgets/src/kdewidgets.qrc D +0 -226 tier3/kdewidgets/src/makekdewidgets.cpp D +0 -35 tier3/kdewidgets/src/pics/CMakeLists.txt D +- -- tier3/kdewidgets/src/pics/k3iconview.png D +- -- tier3/kdewidgets/src/pics/k3listview.png D +- -- tier3/kdewidgets/src/pics/kactionselector.png D +- -- tier3/kdewidgets/src/pics/kactivelabel.png D +- -- tier3/kdewidgets/src/pics/kcharselect.png D +- -- tier3/kdewidgets/src/pics/kcmodule.png D +- -- tier3/kdewidgets/src/pics/kcolorbutton.png D +- -- tier3/kdewidgets/src/pics/kcolorcombo.png D +- -- tier3/kdewidgets/src/pics/kcombobox.png D +- -- tier3/kdewidgets/src/pics/kdatepicker.png D +- -- tier3/kdewidgets/src/pics/kdatetable.png D +- -- tier3/kdewidgets/src/pics/kdualcolorbutton.png D +- -- tier3/kdewidgets/src/pics/keditlistwidget.png D +- -- tier3/kdewidgets/src/pics/kfontcombo.png D +- -- tier3/kdewidgets/src/pics/kfontrequester.png D +- -- tier3/kdewidgets/src/pics/kgradientselector.png D +- -- tier3/kdewidgets/src/pics/khistorycombo.png D +- -- tier3/kdewidgets/src/pics/khsselector.png D +- -- tier3/kdewidgets/src/pics/kiconbutton.png D +- -- tier3/kdewidgets/src/pics/kkeybutton.png D +- -- tier3/kdewidgets/src/pics/kled.png D +- -- tier3/kdewidgets/src/pics/klineedit.png D +- -- tier3/kdewidgets/src/pics/klistbox.png D +- -- tier3/kdewidgets/src/pics/kpalettetable.png D +- -- tier3/kdewidgets/src/pics/kpasswordedit.png D +- -- tier3/kdewidgets/src/pics/kruler.png D +- -- tier3/kdewidgets/src/pics/ksqueezedtextlabel.png D +- -- tier3/kdewidgets/src/pics/ktextedit.png D +- -- tier3/kdewidgets/src/pics/kurlcomborequester.png D +- -- tier3/kdewidgets/src/pics/kurllabel.png D +- -- tier3/kdewidgets/src/pics/kurlrequester.png D +0 -7 tier3/kdewidgets/tests/CMakeLists.txt D +0 -6 tier3/kdewidgets/tests/README D +0 -2 tier3/kdewidgets/tests/sums D +0 -261 tier3/kdewidgets/tests/test.widgets M +3 -3 tier4/kde4support/CMakeLists.txt M +2 -2 tier4/kde4support/cmake/modules/KDE4Macros.cmake M +2 -2 tier4/kde4support/src/CMakeLists.txt M +3 -1 tier4/kde4support/src/KDEUIMacros.cmake M +1 -1 tier4/kde4support/src/kdedeprecated.widgets M +1 -1 tier4/kde4support/src/pics/CMakeLists.txt http://commits.kde.org/kdelibs/dea0dcccb922e528a1c2f2a2bd3a102cf756d3e9 diff --git a/superbuild/CMakeLists.txt b/superbuild/CMakeLists.txt index b53cae6..146d34c 100644 --- a/superbuild/CMakeLists.txt +++ b/superbuild/CMakeLists.txt @@ -57,7 +57,7 @@ sb_add_project(tier3/knotifyconfig) sb_add_project(tier3/knewstuff) sb_add_project(tier3/kprintutils) sb_add_project(tier3/kdeclarative) -sb_add_project(tier3/kdewidgets) +sb_add_project(tier3/kdesignerplugin) sb_add_project(tier3/kinit) sb_add_project(tier3/kded) sb_add_project(tier3/kcmutils) diff --git a/tier3/CMakeLists.txt b/tier3/CMakeLists.txt index 374396b..2c2df2d 100644 --- a/tier3/CMakeLists.txt +++ b/tier3/CMakeLists.txt @@ -3,7 +3,7 @@ project(tier3) add_subdirectory(kbookmarks) add_subdirectory(kcmutils) add_subdirectory(kconfigwidgets) -add_subdirectory(kdewidgets) +add_subdirectory(kdesignerplugin) add_subdirectory(kemoticons) add_subdirectory(knewstuff) add_subdirectory(kservice) diff --git a/tier3/kdewidgets/CMakeLists.txt b/tier3/kdewidgets/CMakeLists.txt deleted file mode 100644 index 87c3d54..0000000 --- a/tier3/kdewidgets/CMakeLists.txt +++ /dev/null @@ -1,63 +0,0 @@ -cmake_minimum_required(VERSION 2.8.12) - -project(KDEWidgets) - -find_package(ECM 0.0.9 REQUIRED NO_MODULE) - -set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR}) - -include(KDEInstallDirs) -include(KDEFrameworkCompilerSettings) -include(KDECMakeSettings) -include(FeatureSummary) - -set(REQUIRED_QT_VERSION 5.2.0) -find_package(Qt5 ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE COMPONENTS Core) - -set(KF5_VERSION 5.0.0) -if("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}") - find_package(KF5ItemViews ${KF5_VERSION} REQUIRED) - find_package(KF5I18n ${KF5_VERSION} REQUIRED) - find_package(KF5GuiAddons ${KF5_VERSION} REQUIRED) - find_package(KF5ConfigWidgets ${KF5_VERSION} REQUIRED) - find_package(KF5IconThemes ${KF5_VERSION} REQUIRED) - find_package(KF5WidgetsAddons ${KF5_VERSION} REQUIRED) - find_package(KF5Completion ${KF5_VERSION} REQUIRED) - find_package(KF5DBusAddons ${KF5_VERSION} REQUIRED) - find_package(KF5Service ${KF5_VERSION} REQUIRED) - find_package(KF5WindowSystem ${KF5_VERSION} REQUIRED) - find_package(KF5TextWidgets ${KF5_VERSION} REQUIRED) - find_package(KF5XmlGui ${KF5_VERSION} REQUIRED) - find_package(KF5Plotting ${KF5_VERSION} REQUIRED) - find_package(KF5Bookmarks ${KF5_VERSION} REQUIRED) - - find_package(KF5DocTools ${KF5_VERSION} REQUIRED) - find_package(KF5KIO ${KF5_VERSION} REQUIRED) -else() - set(_kdeBootStrapping TRUE) - set(KDOCTOOLS_CUSTOMIZATION_DIR "${KDocTools_BINARY_DIR}/src/customization/") - include(${CMAKE_SOURCE_DIR}/tier2/kdoctools/KF5DocToolsMacros.cmake) -endif() - -remove_definitions(-DQT_NO_CAST_FROM_ASCII) - -set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/KDEWidgets") - -add_subdirectory(docs) -add_subdirectory(src) -add_subdirectory(tests) - -include(ECMSetupVersion) -ecm_setup_version(${KF5_VERSION} VARIABLE_PREFIX kdewidgets - VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kdewidgets_version.h" - PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KDEWidgetsConfigVersion.cmake") - -install( FILES - KDEWidgetsMacros.cmake KDEWidgetsConfig.cmake "${CMAKE_CURRENT_BINARY_DIR}/KDEWidgetsConfigVersion.cmake" - DESTINATION ${CMAKECONFIG_INSTALL_DIR} COMPONENT Devel ) - -install(EXPORT KDEWidgetsTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" FILE KDEWidgetsTargets.cmake NAMESPACE KF5:: ) - -if ("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}") - feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) -endif() diff --git a/tier3/kdewidgets/KDEWidgetsConfig.cmake b/tier3/kdewidgets/KDEWidgetsConfig.cmake deleted file mode 100644 index d38c875..0000000 --- a/tier3/kdewidgets/KDEWidgetsConfig.cmake +++ /dev/null @@ -1,3 +0,0 @@ -include(${CMAKE_CURRENT_LIST_DIR}/KDEWidgetsTargets.cmake) -include(${CMAKE_CURRENT_LIST_DIR}/KDEWidgetsMacros.cmake) -set(KDEWIDGETS_MAKEKDEWIDGETS_EXECUTABLE KF5::makekdewidgets) diff --git a/tier3/kdewidgets/KDEWidgetsMacros.cmake b/tier3/kdewidgets/KDEWidgetsMacros.cmake deleted file mode 100644 index 92d2960..0000000 --- a/tier3/kdewidgets/KDEWidgetsMacros.cmake +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright (c) 2006-2009 Alexander Neundorf, <neundorf at kde.org> -# Copyright (c) 2006, 2007, Laurent Montel, <montel at kde.org> -# Copyright (c) 2007 Matthias Kretz <kretz at kde.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - -# The following variables are defined for the various tools required to -# compile KDE software: -# -# KDEWIDGETS_MAKEKDEWIDGETS_EXECUTABLE - the makekdewidgets executable -# -# It also adds the following macros and functions -# KDEWIDGETS_ADD_WIDGET_FILES (SRCS_VAR file1.widgets ... fileN.widgets) -# Use this to add widget description files for the makekdewidgets code generator -# for Qt Designer plugins. -# - -set( _KDEWIDGETS_MAKEKDEWIDGETS_EXECUTABLE_DEP makekdewidgets) - -macro (KDEWIDGETS_ADD_WIDGET_FILES _sources) - foreach (_current_FILE ${_sources}) - - get_filename_component(_input ${_current_FILE} ABSOLUTE) - get_filename_component(_basename ${_input} NAME_WE) - set(_source ${CMAKE_CURRENT_BINARY_DIR}/${_basename}widgets.cpp) - set(_moc ${CMAKE_CURRENT_BINARY_DIR}/${_basename}widgets.moc) - - # create source file from the .widgets file - add_custom_command(OUTPUT ${_source} - COMMAND ${KDEWIDGETS_MAKEKDEWIDGETS_EXECUTABLE} - ARGS -o ${_source} ${_input} - MAIN_DEPENDENCY ${_input} DEPENDS ${_KDEWIDGETS_MAKEKDEWIDGETS_EXECUTABLE_DEP}) - - # create moc file - qt5_generate_moc(${_source} ${_moc} ) - - list(APPEND ${_sources} ${_source} ${_moc}) - - endforeach (_current_FILE) - -endmacro (KDEWIDGETS_ADD_WIDGET_FILES) - diff --git a/tier3/kdewidgets/Mainpage.dox b/tier3/kdewidgets/Mainpage.dox deleted file mode 100644 index 85da237..0000000 --- a/tier3/kdewidgets/Mainpage.dox +++ /dev/null @@ -1 +0,0 @@ -// DOXYGEN_SET_PROJECT_NAME = KDEWidgets diff --git a/tier3/kdewidgets/docs/CMakeLists.txt b/tier3/kdewidgets/docs/CMakeLists.txt deleted file mode 100644 index 2b38f53..0000000 --- a/tier3/kdewidgets/docs/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory(makekdewidgets) diff --git a/tier3/kdewidgets/docs/makekdewidgets/CMakeLists.txt b/tier3/kdewidgets/docs/makekdewidgets/CMakeLists.txt deleted file mode 100644 index c283b92..0000000 --- a/tier3/kdewidgets/docs/makekdewidgets/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -kdoctools_create_manpage(man-makekdewidgets.1.docbook 1 INSTALL_DESTINATION ${MAN_INSTALL_DIR}) diff --git a/tier3/kdewidgets/docs/makekdewidgets/man-makekdewidgets.1.docbook b/tier3/kdewidgets/docs/makekdewidgets/man-makekdewidgets.1.docbook deleted file mode 100644 index cab0c5b..0000000 --- a/tier3/kdewidgets/docs/makekdewidgets/man-makekdewidgets.1.docbook +++ /dev/null @@ -1,447 +0,0 @@ -<?xml version="1.0" ?> -<!DOCTYPE refentry PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" -"dtd/kdex.dtd" [ -<!ENTITY % English "INCLUDE"> -]> - -<refentry lang="&language;"> -<refentryinfo> -<title>Programming Tool</title> - -<author> -<firstname>Ian</firstname> -<othername>Reinhart</othername> -<surname>Geiser</surname> -<affiliation> -<address> -<email>geiseri at kde.org</email> -</address> -</affiliation> -</author> - -<date>2006-06-01</date> -<productname>K Desktop Environment</productname> -</refentryinfo> - -<refmeta> -<refentrytitle> -<command>makekdewidgets</command> -</refentrytitle> -<manvolnum>1</manvolnum> -</refmeta> - -<refnamediv> -<refname>makekdewidgets</refname> -<refpurpose> -Builds &Qt; widget plugins from an ini style description file. -</refpurpose> -</refnamediv> - -<refsynopsisdiv> -<cmdsynopsis> -<command>makekdewidgets</command> -<arg>&Qt;-options</arg> -<arg>&kde;-options</arg> -<arg choice="plain"><replaceable>file</replaceable></arg> -</cmdsynopsis> -</refsynopsisdiv> - -<refsect1> -<title>Description</title> -<para> -<command>makekdewidgets</command> builds &Qt; widget plugins from an ini style description file. -</para> -</refsect1> - -<refsect1> -<title>Options</title> - -<para> -<variablelist> -<title><emphasis role="bold">Arguments:</emphasis></title> -<varlistentry> -<term> -<replaceable>file</replaceable> -</term> -<listitem> -<para>Input file</para> -</listitem> -</varlistentry> -</variablelist> -</para> - -<para> -<variablelist> -<title><emphasis role="bold">Options:</emphasis></title> -<varlistentry> -<term> -<option>-o <file></option> -</term> -<listitem> -<para>Output file</para> -</listitem> -</varlistentry> -<varlistentry> -<term> -<option>-n <plugin name></option> -</term> -<listitem> -<para>Name of the plugin class to generate [WidgetsPlugin]</para> -</listitem> -</varlistentry> -<varlistentry> -<term> -<option>-g <group></option> -</term> -<listitem> -<para>Default widget group name to display in designer [Custom]</para> -</listitem> -</varlistentry> -<varlistentry> -<term> -<option>-p <pixmap dir></option> -</term> -<listitem> -<para>Embed pixmaps from a source directory</para> -</listitem> -</varlistentry> -</variablelist> -</para> - -<para> -<variablelist> -<title><emphasis role="bold">Generic options:</emphasis></title> - -<varlistentry> -<term> -<option>--help</option> -</term> -<listitem> -<para>Show help about options</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--help-qt</option> -</term> -<listitem> -<para>Show &Qt; specific options</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--help-kde</option> -</term> -<listitem> -<para>Show &kde; specific options</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--help-all</option> -</term> -<listitem> -<para>Show all options</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--author</option> -</term> -<listitem> -<para>Show author information</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>-v, --version</option> -</term> -<listitem> -<para>Show version information</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--license</option> -</term> -<listitem> -<para>Show license information</para> -</listitem> -</varlistentry> -</variablelist> -</para> - -<para> -<variablelist> -<title><emphasis role="bold">&kde; Options:</emphasis></title> - -<varlistentry> -<term> -<option>--caption <caption></option> -</term> -<listitem> -<para>Use 'caption' as name in the titlebar</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--icon <icon></option> -</term> -<listitem> -<para>Use 'icon' as the application icon</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--miniicon <icon></option> -</term> -<listitem> -<para>Use 'icon' as the application icon</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--config <filename></option> -</term> -<listitem> -<para>Use alternative configuration file</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--dcopserver <server></option> -</term> -<listitem> -<para>Use the &DCOP; server specified by 'server'</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--nocrashhandler</option> -</term> -<listitem> -<para>Disable crash handler to get core dumps</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--waitforwm</option> -</term> -<listitem> -<para>Waits for a WM_NET compatible windowmanager</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--style <style></option> -</term> -<listitem> -<para>Sets the application &GUI; style</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--geometry <geometry></option> -</term> -<listitem> -<para>Sets the client geometry of the main widget - see man X for the argument format</para> -</listitem> -</varlistentry> -</variablelist> -</para> - -<para> -<variablelist> -<title><emphasis role="bold">&Qt; options:</emphasis></title> - -<varlistentry> -<term> -<option>--display <displayname></option> -</term> -<listitem> -<para>Use the X-server display 'displayname'</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--session <sessionId></option> -</term> -<listitem> -<para>Restore the application for the given 'sessionId'</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--cmap</option> -</term> -<listitem> -<para>Causes the application to install a private color map on an 8-bit display</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--ncols <count></option> -</term> -<listitem> -<para>Limits the number of colors allocated in the color cube on an 8-bit display, if the application is using the QApplication::ManyColor color specification</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--nograb</option> -</term> -<listitem> -<para>Tells &Qt; to never grab the mouse or the keyboard</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--sync</option> -</term> -<listitem> -<para>Switches to synchronous mode for debugging</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--fn, --font <fontname></option> -</term> -<listitem> -<para>Defines the application font</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--bg, --background <color></option> -</term> -<listitem> -<para>Sets the default background color and an application palette (light and dark shades are calculated)</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--fg, --foreground <color></option> -</term> -<listitem> -<para>Sets the default foreground color</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--btn, --button <color></option> -</term> -<listitem> -<para>Sets the default button color</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--name <name></option> -</term> -<listitem> -<para>Sets the application name</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--title <title></option> -</term> -<listitem> -<para>Sets the application title (caption)</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--visual TrueColor</option> -</term> -<listitem> -<para>Forces the application to use a TrueColor visual on an 8-bit display</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--inputstyle <inputstyle></option> -</term> -<listitem> -<para>Sets XIM (X Input Method) input style. Possible values are onthespot, overthespot, offthespot, and root</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--im <XIM server></option> -</term> -<listitem> -<para>Sets XIM server</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--noxim</option> -</term> -<listitem> -<para>Disable XIM</para> -</listitem> -</varlistentry> - -<varlistentry> -<term> -<option>--reverse</option> -</term> -<listitem> -<para>Mirrors the whole layout of widgets</para> -</listitem> -</varlistentry> -</variablelist> -</para> - -</refsect1> - -<refsect1> -<title>See Also</title> -<variablelist> -<varlistentry> -<term> -<option>http://developer.kde.org</option> -</term> -<listitem> -<para>&kde; Developer's Corner website</para> -</listitem> -</varlistentry> -</variablelist> -</refsect1> - -<refsect1> -<title>Bugs</title> -<para>Please use <ulink url="http://bugs.kde.org">bugs.kde.org</ulink> to report bugs, do not mail the authors directly.</para> -</refsect1> - -</refentry> diff --git a/tier3/kdewidgets/src/AUTHORS b/tier3/kdewidgets/src/AUTHORS deleted file mode 100644 index 1c83415..0000000 --- a/tier3/kdewidgets/src/AUTHORS +++ /dev/null @@ -1,3 +0,0 @@ -Daniel Molkentin <molkentin at kde.org> -Malte Starostik <malte at kde.org> -Nick Betcher <nbetcher at usinternet.com> diff --git a/tier3/kdewidgets/src/CMakeLists.txt b/tier3/kdewidgets/src/CMakeLists.txt deleted file mode 100644 index e8626c8..0000000 --- a/tier3/kdewidgets/src/CMakeLists.txt +++ /dev/null @@ -1,98 +0,0 @@ -include(ECMMarkNonGuiExecutable) - -remove_definitions(-DQT_NO_CAST_FROM_ASCII) - -add_subdirectory( pics ) - -########### next target ############### - -add_executable(makekdewidgets makekdewidgets.cpp) -ecm_mark_nongui_executable(makekdewidgets) - -target_link_libraries(makekdewidgets KF5::ConfigCore # KConfig + KConfigGroup - KF5::CoreAddons # KMacroExpander - ) - -# "export" this target too so we can use the LOCATION property of the imported target in -# FindKDE4Internal.cmake to get the full path to the installed executable instead of using FIND_PROGRAM(), Alex -install(TARGETS makekdewidgets EXPORT KDEWidgetsTargets ${INSTALL_TARGETS_DEFAULT_ARGS} ) - - -########### next target ############### - -find_package(Qt5Designer) - -if(Qt5Designer_FOUND) - - include_directories(${Qt5Designer_INCLUDE_DIRS}) - - add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/kdewidgets.cpp - COMMAND makekdewidgets -o ${CMAKE_CURRENT_BINARY_DIR}/kdewidgets.cpp ${CMAKE_CURRENT_SOURCE_DIR}/kde.widgets - MAIN_DEPENDENCY kde.widgets) - - set(kdewidgets_PART_SRCS - classpreviews.cpp - ${CMAKE_CURRENT_BINARY_DIR}/kdewidgets.cpp - ${CMAKE_CURRENT_BINARY_DIR}/kdewidgets.moc - ) - - qt5_generate_moc(${CMAKE_CURRENT_BINARY_DIR}/kdewidgets.cpp ${CMAKE_CURRENT_BINARY_DIR}/kdewidgets.moc) - - - qt5_add_resources(kdewidgets_PART_SRCS kdewidgets.qrc) - - add_library(kdewidgets MODULE ${kdewidgets_PART_SRCS}) - - target_link_libraries(kdewidgets KF5::KIOFileWidgets KF5::Plotting KF5::WidgetsAddons KF5::I18n KF5::IconThemes KF5::TextWidgets KF5::ItemViews) - if(NOT WIN32) - set_target_properties(kdewidgets PROPERTIES - INSTALL_RPATH_USE_LINK_PATH TRUE - SKIP_BUILD_RPATH TRUE - BUILD_WITH_INSTALL_RPATH TRUE - INSTALL_RPATH ${LIB_INSTALL_DIR} - ) - endif() - - install(TARGETS kdewidgets DESTINATION ${QT_PLUGIN_INSTALL_DIR}/designer ) - - if(Qt5WebKitWidgets_FOUND) - - add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/kdewebkitwidgets.cpp - COMMAND makekdewidgets -o ${CMAKE_CURRENT_BINARY_DIR}/kdewebkitwidgets.cpp ${CMAKE_CURRENT_SOURCE_DIR}/kdewebkit.widgets - MAIN_DEPENDENCY kdewebkit.widgets DEPENDS makekdewidgets) - - set(kdewebkitwidgets_PART_SRCS - classpreviews.cpp - ${CMAKE_CURRENT_BINARY_DIR}/kdewebkitwidgets.cpp - ${CMAKE_CURRENT_BINARY_DIR}/kdewebkitwidgets.moc - ) - - qt5_generate_moc(${CMAKE_CURRENT_BINARY_DIR}/kdewebkitwidgets.cpp ${CMAKE_CURRENT_BINARY_DIR}/kdewebkitwidgets.moc) - - - qt5_add_resources(kdewebkitwidgets_PART_SRCS kdewebkitwidgets.qrc) - - add_library(kdewebkitwidgets MODULE ${kdewebkitwidgets_PART_SRCS}) - - target_link_libraries(kdewebkitwidgets KDEWebKit Qt5::WebKitWidgets) - if(NOT WIN32) - set_target_properties(kdewebkitwidgets PROPERTIES - INSTALL_RPATH_USE_LINK_PATH TRUE - SKIP_BUILD_RPATH TRUE - BUILD_WITH_INSTALL_RPATH TRUE - INSTALL_RPATH ${LIB_INSTALL_DIR} - ) - endif() - - install(TARGETS kdewebkitwidgets DESTINATION ${QT_PLUGIN_INSTALL_DIR}/designer ) - - endif() # webkit - -endif() - -########### install files ############### - - - - - diff --git a/tier3/kdewidgets/src/README b/tier3/kdewidgets/src/README deleted file mode 100644 index cbf0794..0000000 --- a/tier3/kdewidgets/src/README +++ /dev/null @@ -1,65 +0,0 @@ -KDE Custom Widgets for Qt Designer 2 -==================================== - - -Summary: -======== - -This directory contains KDE custom widgets for Qt Designer which comes with -Qt 4. Just make sure that QT_PLUGIN_PATH includes -$KDEDIR/lib/kde4/plugins . With the KDE build system nothing special -(i.e. editing the plugin path) is needed, as uic will automatically be -called with -L <path to the kdewidgets plugin> . - -This plugin uses the QWidget plugin API of Qt >= 4.0 -Don't expect it to work with any other versions of Qt. - - -Known Bugs: -=========== - -Designer crashes when using widgets that use the kapp pointer. - -HOWTO Add Widgets: -================== -Just add new widgets to kde.widgets like this: -[ClassName] -IncludeFile=myheader.h -IconSet=mycoolwidget.png -ToolTip=My Cool Widget -WhatsThis=Long description of my cool widget -ConstructorArgs=(parent, name, otherNeccessaryArg) -IsContainer=true -Group=MyWidgetCollection - -Everything but [ClassName] is optional. -IncludeFile defaults to classname.h (all lowercase) -IconSet defaults to classname.png (all lowercase) -ToolTip defaults to ClassName -WhatsThis defaults to ClassName -ConstructorArgs=(parent, name) -IsContainer defaults to false - note, any value except an empty one is - interpreted as true, even if the value - is "false" :) So, if the widget is not a - container, just omit this line. -Group defaults to "KDE" - -Don't forget to add an icon to the pics directory. Try to make it look similar to the other icons and be the same size. - -There are some global options that you can have. - -[Global] -Init=new InitCode(); -Destroy= delete object; -PluginName=MyPlugin - -PluginName overrides the passed in value at the command line and is optional. -Init and Destroy are both optional arguments that can be used for custom build -up and tear down code. - -Have fun! - - -Ian Reinhart Geiser <geiseri at kde.org> -Daniel Molkentin <molkentin at kde.org> -Malte Starostik <malte at kde.org> diff --git a/tier3/kdewidgets/src/classpreviews.cpp b/tier3/kdewidgets/src/classpreviews.cpp deleted file mode 100644 index 42dfa62..0000000 --- a/tier3/kdewidgets/src/classpreviews.cpp +++ /dev/null @@ -1,29 +0,0 @@ -/* This file is part of the KDE libraries - Copyright (C) 2001 Daniel Molkentin <molkentin at 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 as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - 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. -*/ - -#include "classpreviews.h" - -KDialogPreview::KDialogPreview(QWidget * parent) -{ - if (parent) - setParent(parent); - else - qDebug("Error while reparenting!"); -} - diff --git a/tier3/kdewidgets/src/classpreviews.h b/tier3/kdewidgets/src/classpreviews.h deleted file mode 100644 index 6d128dd..0000000 --- a/tier3/kdewidgets/src/classpreviews.h +++ /dev/null @@ -1,41 +0,0 @@ -/* This file is part of the KDE libraries - Copyright (C) 2001 Daniel Molkentin <molkentin at 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 as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - 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. -*/ - -/* - - This class is intended as a place to widgets previews for designer. Simply inherit - your widget and modify its behavior (i.e. enter example data or do a reparent()). - - This will only affect the preview, designer/uic will still use the original widget - in the final source output! - - */ - -#ifndef CLASSPREVIEWS_H -#define CLASSPREVIEWS_H - -#include <QDialog> - -class KDialogPreview : public QDialog -{ -public: - KDialogPreview(QWidget * parent = 0); -}; - -#endif // CLASSPREVIEWS_H diff --git a/tier3/kdewidgets/src/kde.widgets b/tier3/kdewidgets/src/kde.widgets deleted file mode 100644 index 7bcc669..0000000 --- a/tier3/kdewidgets/src/kde.widgets +++ /dev/null @@ -1,255 +0,0 @@ -[Global] -PluginName=KDEWidgets -Includes=classpreviews.h -Init= - -[KActionSelector] -IncludeFile=kactionselector.h -ToolTip=A widget for selecting and arranging actions/objects -Group=Views (KDE) - -[KAnimatedButton] -IncludeFile=kanimatedbutton.h -ToolTip=An extended version of QToolButton which can display an animated icon. -Group=Display (KDE) -ConstructorArgs=(parent) - -[KCapacityBar] -IncludeFile=kcapacitybar.h -ToolTip=Capacity Bar (KDE) -ConstructorArgs=(KCapacityBar::DrawTextOutline, parent) -Group=Display (KDE) - -[KCategorizedView] -ToolTip=Categorized Item View (KDE) -WhatsThis=Item view for listing items in a categorized fashion optionally. -Group=Views (KDE) - -[KCharSelect] -ToolTip=Character Selection Widget (KDE) -WhatsThis=A widget that allows selection a character out ot a table -Group=Graphics (KDE) -ConstructorArgs=(parent, 0) - -[KColorButton] -ToolTip=Color Chooser Button (KDE) -WhatsThis=A button that allows selecting a color -Group=Graphics (KDE) - -[KColorCombo] -ToolTip=Color Combo Box (KDE) -Group=Graphics (KDE) - -[KComboBox] -ToolTip=Combo Box (KDE) -Group=Input (KDE) - -[KDatePicker] -ToolTip=A date selection widget (KDE) -WhatsThis=Provides a widget for calendar date input -Group=Date/Time (KDE) - -[KDateComboBox] -ToolTip=This widget can be used to display or edit the date. (KDE) -IncludeFile=kdatecombobox.h -Group=Date/Time (KDE) - -[KTimeComboBox] -ToolTip=This widget can be used to display or edit the time. (KDE) -IncludeFile=ktimecombobox.h -Group=Date/Time (KDE) - -[KDateTimeEdit] -ToolTip=This widget can be used to display or edit the date and time. (KDE) -IncludeFile=kdatetimeedit.h -Group=Date/Time (KDE) - -[KEditListWidget] -ToolTip=Fullfeatured edit box with buttons (KDE) -Group=Views (KDE) - -[KFilterProxySearchLine] -IncludeFile=kfilterproxysearchline.h -ToolTip=Filter proxy search line -WhatsThis=A search line widget which works on a QSortFilterProxyModel -Group=Input (KDE) - -[KFontChooser] -IncludeFile=kfontchooser.h -IconSet=kfontcombo.png -ToolTip=Font Chooser (KDE) -WhatsThis=A font type, size and style selection widget complete with preview -Group=Input (KDE) - -[KFontRequester] -IncludeFile=kfontrequester.h -ToolTip=Font Requester (KDE) -WhatsThis=A compact font selection and preview widget -Group=Input (KDE) - -[KGradientSelector] -IncludeFile=kselector.h -ToolTip=Gradient Color Selector (KDE) -Group=Input (KDE) - -[KHistoryComboBox] -IncludeFile=khistorycombobox.h -ToolTip=A combobox for offering a history and completion (KDE) -WhatsThis=A combobox which implements a history like a unix shell -Group=Input (KDE) - -[KIconButton] -IncludeFile=kiconbutton.h -ToolTip=Button for selecting an icon (KDE) -Group=Buttons (KDE) - -[KImageFilePreview] -IncludeFile=kimagefilepreview.h -ToolTip=A widget that provides a image preview of a URL -Group=Display (KDE) -ConstructorArgs=(parent) - -[KKeySequenceWidget] -ToolTip=QKeySequence picker widget. (KDE) -WhatsThis=A widget to pick a QKeySequence. -IncludeFile=kkeysequencewidget.h -Group=Buttons (KDE) - -[KLanguageButton] -ToolTip=Language Button (KDE) -WhatsThis=KDE's language button. -IncludeFile=klanguagebutton.h -Group=Buttons (KDE) - -[KLed] -ToolTip=LED Widget (KDE) -WhatsThis=A widget showing a light emitter diode -Group=Display (KDE) - -[KLineEdit] -ToolTip=Line Edit (KDE) -Group=Input (KDE) - -[KListWidgetSearchLine] -ToolTip=QListWidget Search Line (KDE) -Group=Input (KDE) -ConstructorArgs=(parent, 0) - -[KMultiTabBar] -ToolTip=Multi Tab Bar Widget (KDE) -WhatsThis=A Widget for horizontal and vertical tabs. -ConstructorArgs=(KMultiTabBar::Left, parent) -Group=Display (KDE) - -[KPageView] -ToolTip=Paged View (KDE) -WhatsThis=A base class which can handle multiple pages. -Group=Views (KDE) - -[KPageWidget] -ToolTip=Paged Widget (KDE) -WhatsThis=Page widget with many layouts (faces). -Group=Views (KDE) - -[KPixmapRegionSelectorWidget] -IncludeFile=kpixmapregionselectorwidget.h -ToolTip=Pixmap Region Selector (KDE) -Group=Graphics (KDE) - -[KPixmapSequenceWidget] -ToolTip=Pixmap Sequence Widget (KDE) -WhatsThis=A simple widget showing a fixed size pixmap sequence. -Group=Display (KDE) - -[KPlotWidget] -IncludeFile=kplotwidget.h -ToolTip=A plot widget -WhatsThis=A widget for easily making 2-dimensional plots -Group=Plot (KDE) - -[KRatingWidget] -IncludeFile=kratingwidget.h -ToolTip=Rating value display (KDE) -WhatsThis=Displays a rating as a range of stars or other arbitrary pixmaps. -Group=Display (KDE) - -[KRichTextEdit] -IncludeFile=krichtextedit.h -ToolTip=Rich Text Editor (KDE) -Group=Input (KDE) - -[KRichTextWidget] -IncludeFile=krichtextwidget.h -ToolTip=Rich Text Widget (KDE) -Group=Input (KDE) - -[KRuler] -ToolTip=Measuring Ruler Widget (KDE) -WhatsThis=A measuring ruler widget as seen in KWord for page widths and heights -Group=Display (KDE) - -[KSeparator] -IncludeFile=kseparator.h -ToolTip=Standard horizontal or vertical separator. -Group=Display (KDE) - -[KShortcutsEditor] -ToolTip=Shortcuts editor widget. (KDE) -WhatsThis=A widget to edit a list of shortcuts. -IncludeFile=kshortcutseditor.h -Group=Input (KDE) - -[KShortcutWidget] -ToolTip=Shortcut picker widget. (KDE) -WhatsThis=A widget to pick a KShortcut. -IncludeFile=kshortcutwidget.h -Group=Buttons (KDE) - -[KSqueezedTextLabel] -ToolTip=A QLabel that squeezes its text (KDE) -WhatsThis=If the text is too long to fit into the label it is divided into remaining left and right parts which are separated by three dots -ConstructorArgs=("KSqueezedTextLabel", parent) -Group=Display (KDE) - -[KTextEdit] -ToolTip=Improved QTextEdit (KDE) -WhatsThis=An improved version of the QTextEdit with mail or system browser invocation support -Group=Input (KDE) - -[KTitleWidget] -ToolTip=Title box with label and icon -WhatsThis=A styled frame to be used in title positions in dialogs and other widgets -Group=Display (KDE) - -[KTreeWidgetSearchLine] -ToolTip=QTreeWidget Search Line (KDE) -Group=Input (KDE) -ConstructorArgs=(parent, 0) - -[KTreeWidgetSearchLineWidget] -ToolTip=QTreeWidget Search Line Widget (KDE) -IncludeFile=ktreewidgetsearchline.h -Group=Input (KDE) -ConstructorArgs=(parent, 0) - -[KUrlComboRequester] -ToolTip=URL Requester (KDE) -WhatsThis=A widget holding a combobox and a pushbutton. A "file open" dialog opened when clicking on the pushbutton -IncludeFile=kurlrequester.h -Group=Input (KDE) - -[KUrlLabel] -ToolTip=URL Label (KDE) -ConstructorArgs=("KUrlLabel", QString(), parent) -Group=Display (KDE) - -[KUrlRequester] -ToolTip=URL Requester (KDE) -WhatsThis=A widget holding a lineedit and a pushbutton. A "file open" dialog opened when clicking on the pushbutton -Group=Input (KDE) - -[Sonnet::DictionaryComboBox] -IncludeFile=sonnet/dictionarycombobox.h -ToolTip=Dictionary Combobox -WhatsThis=A combobox to select a dictionary for spellchecking -Group=Sonnet (KDE) diff --git a/tier3/kdewidgets/src/kdewebkit.widgets b/tier3/kdewidgets/src/kdewebkit.widgets deleted file mode 100644 index 9f07307..0000000 --- a/tier3/kdewidgets/src/kdewebkit.widgets +++ /dev/null @@ -1,10 +0,0 @@ -[Global] -PluginName=KDEWebKitWidgets -Includes=classpreviews.h -Init= - -[KWebView] -IncludeFile=kwebview.h -ToolTip=KDE WebKit View -WhatsThis=A WebKit view with KDE integration. -Group=Views (KDE) diff --git a/tier3/kdewidgets/src/kdewebkitwidgets.qrc b/tier3/kdewidgets/src/kdewebkitwidgets.qrc deleted file mode 100644 index 4ca9cd5..0000000 --- a/tier3/kdewidgets/src/kdewebkitwidgets.qrc +++ /dev/null @@ -1,4 +0,0 @@ -<!DOCTYPE RCC><RCC version="1.0"> -<qresource> -</qresource> -</RCC> diff --git a/tier3/kdewidgets/src/kdewidgets.qrc b/tier3/kdewidgets/src/kdewidgets.qrc deleted file mode 100644 index b180522..0000000 --- a/tier3/kdewidgets/src/kdewidgets.qrc +++ /dev/null @@ -1,33 +0,0 @@ -<!DOCTYPE RCC><RCC version="1.0"> -<qresource> -<file>pics/kactionselector.png</file> -<file>pics/kactivelabel.png</file> -<file>pics/kcharselect.png</file> -<file>pics/kcmodule.png</file> -<file>pics/kcolorbutton.png</file> -<file>pics/kcolorcombo.png</file> -<file>pics/kcombobox.png</file> -<file>pics/kdatepicker.png</file> -<file>pics/kdatetable.png</file> -<file>pics/kdualcolorbutton.png</file> -<file>pics/keditlistwidget.png</file> -<file>pics/kfontcombo.png</file> -<file>pics/kfontrequester.png</file> -<file>pics/kgradientselector.png</file> -<file>pics/khistorycombo.png</file> -<file>pics/khsselector.png</file> -<file>pics/kiconbutton.png</file> -<file>pics/kkeybutton.png</file> -<file>pics/kled.png</file> -<file>pics/klineedit.png</file> -<file>pics/klistbox.png</file> -<file>pics/kpalettetable.png</file> -<file>pics/kpasswordedit.png</file> -<file>pics/kruler.png</file> -<file>pics/ksqueezedtextlabel.png</file> -<file>pics/ktextedit.png</file> -<file>pics/kurlcomborequester.png</file> -<file>pics/kurllabel.png</file> -<file>pics/kurlrequester.png</file> -</qresource> -</RCC> diff --git a/tier3/kdewidgets/src/makekdewidgets.cpp b/tier3/kdewidgets/src/makekdewidgets.cpp deleted file mode 100644 index d20e499..0000000 --- a/tier3/kdewidgets/src/makekdewidgets.cpp +++ /dev/null @@ -1,226 +0,0 @@ -/* Copyright (C) 2004-2005 ian reinhart geiser <geiseri at sourcextreme.com> */ - -#include <kconfig.h> -#include <kmacroexpander.h> -#include <kconfiggroup.h> -#include <kaboutdata.h> -#include <qcommandlineparser.h> -#include <qcommandlineoption.h> -#include <QtCore/QCoreApplication> -#include <QtCore/QFile> -#include <QtCore/QFileInfo> -#include <QtCore/QHash> -#include <QtCore/QString> -#include <QtCore/QStringList> -#include <QtCore/QTextStream> - -static const char classHeader[] = "/**\n" - "* This file was autogenerated by makekdewidgets. Any changes will be lost!\n" - "* The generated code in this file is licensed under the same license that the\n" - "* input file.\n" - "*/\n" - "#include <QIcon>\n" - "#include <QtDesigner/QDesignerContainerExtension>\n" - "#include <QDesignerCustomWidgetInterface>\n" - "#include <qplugin.h>\n" - "#include <qdebug.h>\n"; - -static const char collClassDef[] = "class %CollName : public QObject, public QDesignerCustomWidgetCollectionInterface\n" - "{\n" - " Q_OBJECT\n" - " Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)\n" - " Q_PLUGIN_METADATA(IID \"org.qt-project.Qt.QDesignerCustomWidgetInterface\")\n" - "public:\n" - " %CollName(QObject *parent = 0);\n" - " virtual ~%CollName() {}\n" - " QList<QDesignerCustomWidgetInterface*> customWidgets() const { return m_plugins; } \n" - " \n" - "private:\n" - " QList<QDesignerCustomWidgetInterface*> m_plugins;\n" - "};\n\n" - ; - -static const char collClassImpl[] = "%CollName::%CollName(QObject *parent)\n" - " : QObject(parent)" - "{\n" - "%CollectionAdd\n" - "}\n\n"; - - -static const char classDef[] = "class %PluginName : public QObject, public QDesignerCustomWidgetInterface\n" - "{\n" - " Q_OBJECT\n" - " Q_INTERFACES(QDesignerCustomWidgetInterface)\n" - "public:\n" - " %PluginName(QObject *parent = 0) :\n\t\tQObject(parent), mInitialized(false) {}\n" - " virtual ~%PluginName() {}\n" - " \n" - " bool isContainer() const { return %IsContainer; }\n" - " bool isInitialized() const { return mInitialized; }\n" - " QIcon icon() const { return QIcon(QLatin1String(\"%IconName\")); }\n" - " QString codeTemplate() const { return QLatin1String(\"%CodeTemplate\");}\n" - " QString domXml() const { return %DomXml; }\n" - " QString group() const { return QLatin1String(\"%Group\"); }\n" - " QString includeFile() const { return QLatin1String(\"%IncludeFile\"); }\n" - " QString name() const { return QLatin1String(\"%Class\"); }\n" - " QString toolTip() const { return QLatin1String(\"%ToolTip\"); }\n" - " QString whatsThis() const { return QLatin1String(\"%WhatsThis\"); }\n\n" - " QWidget* createWidget( QWidget* parent ) \n\t{%CreateWidget\n\t}\n" - " void initialize(QDesignerFormEditorInterface *core) \n\t{%Initialize\n\t}\n" - "\n" - "private:\n" - " bool mInitialized;\n" - "};\n\n"; - -static QString denamespace ( const QString &str ); -static QString buildCollClass( KConfig &input, const QStringList& classes ); -static QString buildWidgetClass( const QString &name, KConfig &input, const QString &group ); -static QString buildWidgetInclude( const QString &name, KConfig &input ); -static void buildFile( QTextStream &stream, const QString& group, const QString& fileName, const QString& pluginName ); - -int main( int argc, char **argv ) { - QCoreApplication app(argc, argv); - - QString description = QCoreApplication::translate("main", "Builds Qt widget plugins from an ini style description file."); - const char version[] = "0.5"; - app.setApplicationVersion(version); - - QCommandLineParser parser; - parser.addVersionOption(); - parser.addHelpOption(); - //options.add("+file", QCoreApplication::translate("makekdewidgets about data", "Input file" ) ); - parser.addOption(QCommandLineOption(QStringList() << "o", QCoreApplication::translate("main", "Output file"), "file")); - parser.addOption(QCommandLineOption(QStringList() << "n", QCoreApplication::translate("main", "Name of the plugin class to generate"), "plugin name", "WidgetsPlugin")); - parser.addOption(QCommandLineOption(QStringList() << "g", QCoreApplication::translate("main", "Default widget group name to display in designer"), "group", "Custom")); - - KAboutData about( "makekdewidgets", 0, QCoreApplication::translate("makekdewidgets about data", "makekdewidgets" ), version, description, KAboutData::License_GPL, QCoreApplication::translate("makekdewidgets about data", "(C) 2004-2005 Ian Reinhart Geiser"), QString(), 0, "geiseri at kde.org" ); - about.addAuthor( QCoreApplication::translate("makekdewidgets about data", "Ian Reinhart Geiser"), QString(), "geiseri at kde.org" ); - about.addAuthor( QCoreApplication::translate("makekdewidgets about data", "Daniel Molkentin"), QString(), "molkentin at kde.org" ); - about.setupCommandLine(&parser); - - parser.process(app); - about.processCommandLine(&parser); - if (parser.positionalArguments().count() < 1) { - parser.showHelp(); - return 1; - } - - QFileInfo fi(parser.positionalArguments().at(0)); - - QString outputFile = parser.value( "o" ); - QString pluginName = parser.value( "n" ); - QString group = parser.value( "g" ); - QString fileName = fi.absoluteFilePath(); - - if ( parser.isSet( "o" ) ) { - QFile output( outputFile ); - if ( output.open( QIODevice::WriteOnly ) ) { - QTextStream ts( &output ); - buildFile( ts, group, fileName , pluginName ); - QString mocFile = output.fileName(); - mocFile.replace(".cpp", ".moc"); - ts << QString( "#include <%1>\n" ).arg(mocFile) << endl; - } - output.close(); - } else { - QTextStream ts( stdout, QIODevice::WriteOnly ); - buildFile( ts, group, fileName , pluginName ); - } -} - -void buildFile( QTextStream &ts, const QString& group, const QString& fileName, const QString& pluginName ) { - KConfig input( fileName, KConfig::NoGlobals ); - KConfigGroup cg(&input, "Global" ); - QHash<QString, QString> MainMap; - MainMap.insert( "PluginName", cg.readEntry( "PluginName", pluginName ) ); - MainMap.insert( "PluginNameLower", cg.readEntry( "PluginName", pluginName ).toLower() ); - MainMap.insert( "Init", cg.readEntry( "Init", "" ) ); - MainMap.insert( "Destroy", cg.readEntry( "Destroy", "" ) ); - ts << classHeader << endl; - - QStringList includes = cg.readEntry( "Includes", QStringList() ); - QStringList classes = input.groupList(); - classes.removeAll( "Global" ); - - foreach ( const QString &myInclude, classes ) - includes += buildWidgetInclude( myInclude, input ); - - foreach ( const QString &myInclude, includes) - ts << "#include <" << myInclude << ">" << endl; - - ts << QLatin1String("\n\n"); - - // Autogenerate widget defs here - foreach ( const QString &myClass, classes ) - ts << buildWidgetClass( myClass, input, group ) << endl; - - ts << buildCollClass( input, classes ); - -} - -QString denamespace ( const QString &str ) { - QString denamespaced = str; - denamespaced.remove("::"); - return denamespaced; -} - -QString buildCollClass( KConfig &_input, const QStringList& classes ) { - KConfigGroup input(&_input, "Global"); - QHash<QString, QString> defMap; - const QString collName = input.readEntry("PluginName"); - Q_ASSERT(!collName.isEmpty()); - defMap.insert("CollName", collName); - QString genCode; - - foreach ( const QString &myClass, classes ) - { - genCode += QString("\t\tm_plugins.append( new %1(this) );\n").arg(denamespace( myClass ) +"Plugin"); - } - - defMap.insert( "CollectionAdd", genCode ); - - QString str = KMacroExpander::expandMacros(collClassDef, defMap); - str += KMacroExpander::expandMacros(collClassImpl, defMap); - return str; -} - -QString buildWidgetClass( const QString &name, KConfig &_input, const QString &group ) { - KConfigGroup input(&_input, name); - QHash<QString, QString> defMap; - - defMap.insert( "Group", input.readEntry( "Group", group ).replace( '\"', "\\\"" ) ); - defMap.insert( "IconSet", input.readEntry( "IconSet", QString(name.toLower() + ".png") ).replace( ':', '_' ) ); - defMap.insert( "Pixmap", name.toLower().replace( ':', '_' ) + "_xpm" ); - defMap.insert( "IncludeFile", input.readEntry( "IncludeFile", QString(name.toLower() + ".h") ).remove( ':' ) ); - defMap.insert( "ToolTip", input.readEntry( "ToolTip", QString(name + " Widget") ).replace( '\"', "\\\"" ) ); - defMap.insert( "WhatsThis", input.readEntry( "WhatsThis", QString(name + " Widget") ).replace( '\"', "\\\"" ) ); - defMap.insert( "IsContainer", input.readEntry( "IsContainer", "false" ) ); - defMap.insert( "IconName", input.readEntry( "IconName", QString::fromLatin1(":/pics/%1.png").arg( denamespace( name ).toLower() ) ) ); - defMap.insert( "Class", name ); - defMap.insert( "PluginName", denamespace( name ) + QLatin1String( "Plugin" ) ); - - // FIXME: ### make this more useful, i.e. outsource to separate file - QString domXml = input.readEntry("DomXML", QString()); - // If domXml is empty then we should call base class function - if ( domXml.isEmpty() ) { - domXml = QLatin1String("QDesignerCustomWidgetInterface::domXml()"); - } - else { - // Wrap domXml value into QLatin1String - domXml = QString(QLatin1String("QLatin1String(\"%1\")")).arg(domXml.replace( '\"', "\\\"" )); - } - defMap.insert( "DomXml", domXml ); - defMap.insert( "CodeTemplate", input.readEntry( "CodeTemplate" ) ); - defMap.insert( "CreateWidget", input.readEntry( "CreateWidget", - QString( "\n\t\treturn new %1%2;" ) - .arg( input.readEntry( "ImplClass", name ) ) - .arg( input.readEntry( "ConstructorArgs", "( parent )" ) ) ) ); - defMap.insert( "Initialize", input.readEntry( "Initialize", "\n\t\tQ_UNUSED(core);\n\t\tif (mInitialized) return;\n\t\tmInitialized=true;" ) ); - - return KMacroExpander::expandMacros( classDef, defMap ); -} - -QString buildWidgetInclude( const QString &name, KConfig &_input ) { - KConfigGroup input(&_input, name); - return input.readEntry( "IncludeFile", QString(name.toLower() + ".h") ); -} diff --git a/tier3/kdewidgets/src/pics/CMakeLists.txt b/tier3/kdewidgets/src/pics/CMakeLists.txt deleted file mode 100644 index 688224a..0000000 --- a/tier3/kdewidgets/src/pics/CMakeLists.txt +++ /dev/null @@ -1,35 +0,0 @@ - -########### install files ############### - -install( FILES - klineedit.png - kpasswordedit.png - kfontrequester.png - kurlrequester.png - kcombobox.png - k3iconview.png - kled.png - ksqueezedtextlabel.png - kurllabel.png - kruler.png - kcmodule.png - klistbox.png - k3listview.png - kactivelabel.png - kiconbutton.png - kcolorcombo.png - khsselector.png - kcolorbutton.png - kgradientselector.png - kdualcolorbutton.png - kcharselect.png - kdatepicker.png - kfontcombo.png - khistorycombo.png - ktextedit.png - kurlcomborequester.png - kkeybutton.png - kpalettetable.png - kactionselector.png - kdatetable.png - DESTINATION ${DATA_INSTALL_DIR}/kdewidgets/pics ) diff --git a/tier3/kdewidgets/src/pics/k3iconview.png b/tier3/kdewidgets/src/pics/k3iconview.png deleted file mode 100644 index b10e9eb..0000000 Binary files a/tier3/kdewidgets/src/pics/k3iconview.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/k3listview.png b/tier3/kdewidgets/src/pics/k3listview.png deleted file mode 100644 index 5fd1d3f..0000000 Binary files a/tier3/kdewidgets/src/pics/k3listview.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kactionselector.png b/tier3/kdewidgets/src/pics/kactionselector.png deleted file mode 100644 index 2925bc3..0000000 Binary files a/tier3/kdewidgets/src/pics/kactionselector.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kactivelabel.png b/tier3/kdewidgets/src/pics/kactivelabel.png deleted file mode 100644 index 522e5c7..0000000 Binary files a/tier3/kdewidgets/src/pics/kactivelabel.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kcharselect.png b/tier3/kdewidgets/src/pics/kcharselect.png deleted file mode 100644 index 63a8075..0000000 Binary files a/tier3/kdewidgets/src/pics/kcharselect.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kcmodule.png b/tier3/kdewidgets/src/pics/kcmodule.png deleted file mode 100644 index 5cde56b..0000000 Binary files a/tier3/kdewidgets/src/pics/kcmodule.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kcolorbutton.png b/tier3/kdewidgets/src/pics/kcolorbutton.png deleted file mode 100644 index 746c1ef..0000000 Binary files a/tier3/kdewidgets/src/pics/kcolorbutton.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kcolorcombo.png b/tier3/kdewidgets/src/pics/kcolorcombo.png deleted file mode 100644 index 043303a..0000000 Binary files a/tier3/kdewidgets/src/pics/kcolorcombo.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kcombobox.png b/tier3/kdewidgets/src/pics/kcombobox.png deleted file mode 100644 index 1cd88ff..0000000 Binary files a/tier3/kdewidgets/src/pics/kcombobox.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kdatepicker.png b/tier3/kdewidgets/src/pics/kdatepicker.png deleted file mode 100644 index c4941f0..0000000 Binary files a/tier3/kdewidgets/src/pics/kdatepicker.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kdatetable.png b/tier3/kdewidgets/src/pics/kdatetable.png deleted file mode 100644 index e8d4494..0000000 Binary files a/tier3/kdewidgets/src/pics/kdatetable.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kdualcolorbutton.png b/tier3/kdewidgets/src/pics/kdualcolorbutton.png deleted file mode 100644 index aa54333..0000000 Binary files a/tier3/kdewidgets/src/pics/kdualcolorbutton.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/keditlistwidget.png b/tier3/kdewidgets/src/pics/keditlistwidget.png deleted file mode 100644 index c4478a4..0000000 Binary files a/tier3/kdewidgets/src/pics/keditlistwidget.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kfontcombo.png b/tier3/kdewidgets/src/pics/kfontcombo.png deleted file mode 100644 index a338e2a..0000000 Binary files a/tier3/kdewidgets/src/pics/kfontcombo.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kfontrequester.png b/tier3/kdewidgets/src/pics/kfontrequester.png deleted file mode 100644 index 88a392b..0000000 Binary files a/tier3/kdewidgets/src/pics/kfontrequester.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kgradientselector.png b/tier3/kdewidgets/src/pics/kgradientselector.png deleted file mode 100644 index 0768633..0000000 Binary files a/tier3/kdewidgets/src/pics/kgradientselector.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/khistorycombo.png b/tier3/kdewidgets/src/pics/khistorycombo.png deleted file mode 100644 index 85f9fc1..0000000 Binary files a/tier3/kdewidgets/src/pics/khistorycombo.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/khsselector.png b/tier3/kdewidgets/src/pics/khsselector.png deleted file mode 100644 index 6b327d6..0000000 Binary files a/tier3/kdewidgets/src/pics/khsselector.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kiconbutton.png b/tier3/kdewidgets/src/pics/kiconbutton.png deleted file mode 100644 index 18741b7..0000000 Binary files a/tier3/kdewidgets/src/pics/kiconbutton.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kkeybutton.png b/tier3/kdewidgets/src/pics/kkeybutton.png deleted file mode 100644 index df0a10e..0000000 Binary files a/tier3/kdewidgets/src/pics/kkeybutton.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kled.png b/tier3/kdewidgets/src/pics/kled.png deleted file mode 100644 index 49c3a19..0000000 Binary files a/tier3/kdewidgets/src/pics/kled.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/klineedit.png b/tier3/kdewidgets/src/pics/klineedit.png deleted file mode 100644 index f946289..0000000 Binary files a/tier3/kdewidgets/src/pics/klineedit.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/klistbox.png b/tier3/kdewidgets/src/pics/klistbox.png deleted file mode 100644 index 2a9efdc..0000000 Binary files a/tier3/kdewidgets/src/pics/klistbox.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kpalettetable.png b/tier3/kdewidgets/src/pics/kpalettetable.png deleted file mode 100644 index d41d8b7..0000000 Binary files a/tier3/kdewidgets/src/pics/kpalettetable.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kpasswordedit.png b/tier3/kdewidgets/src/pics/kpasswordedit.png deleted file mode 100644 index 4fef94a..0000000 Binary files a/tier3/kdewidgets/src/pics/kpasswordedit.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kruler.png b/tier3/kdewidgets/src/pics/kruler.png deleted file mode 100644 index 5989b7c..0000000 Binary files a/tier3/kdewidgets/src/pics/kruler.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/ksqueezedtextlabel.png b/tier3/kdewidgets/src/pics/ksqueezedtextlabel.png deleted file mode 100644 index 8165cbf..0000000 Binary files a/tier3/kdewidgets/src/pics/ksqueezedtextlabel.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/ktextedit.png b/tier3/kdewidgets/src/pics/ktextedit.png deleted file mode 100644 index fef42fc..0000000 Binary files a/tier3/kdewidgets/src/pics/ktextedit.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kurlcomborequester.png b/tier3/kdewidgets/src/pics/kurlcomborequester.png deleted file mode 100644 index 4d775c1..0000000 Binary files a/tier3/kdewidgets/src/pics/kurlcomborequester.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kurllabel.png b/tier3/kdewidgets/src/pics/kurllabel.png deleted file mode 100644 index 42ae9c2..0000000 Binary files a/tier3/kdewidgets/src/pics/kurllabel.png and /dev/null differ diff --git a/tier3/kdewidgets/src/pics/kurlrequester.png b/tier3/kdewidgets/src/pics/kurlrequester.png deleted file mode 100644 index 2410da3..0000000 Binary files a/tier3/kdewidgets/src/pics/kurlrequester.png and /dev/null differ diff --git a/tier3/kdewidgets/tests/CMakeLists.txt b/tier3/kdewidgets/tests/CMakeLists.txt deleted file mode 100644 index 59bb3fd..0000000 --- a/tier3/kdewidgets/tests/CMakeLists.txt +++ /dev/null @@ -1,7 +0,0 @@ - - -# TODO test programs - - - - diff --git a/tier3/kdewidgets/tests/README b/tier3/kdewidgets/tests/README deleted file mode 100644 index 9dd2132..0000000 --- a/tier3/kdewidgets/tests/README +++ /dev/null @@ -1,6 +0,0 @@ -These are the tests for the current makekdewidgets. - -Currently there are two modes generated, and the checksums checked. -These files are correct and build plugins that are functionally -just as TrollTech wants them for designer. If at any time the -code is changed then these md5 sums should be updated. diff --git a/tier3/kdewidgets/tests/sums b/tier3/kdewidgets/tests/sums deleted file mode 100644 index 8b1f808..0000000 --- a/tier3/kdewidgets/tests/sums +++ /dev/null @@ -1,2 +0,0 @@ -ff629a98965347ed3303a2c70f35af51 testwithpixmaps.cpp -f736575862f21dc175e1778bc159afbf testkde.cpp diff --git a/tier3/kdewidgets/tests/test.widgets b/tier3/kdewidgets/tests/test.widgets deleted file mode 100644 index c3329ec..0000000 --- a/tier3/kdewidgets/tests/test.widgets +++ /dev/null @@ -1,261 +0,0 @@ -[Global] -PluginName=KDEWidgets -Includes=classpreviews.h -Init= - -[KActiveLabel] -ToolTip=Active Label (KDE) -WhatsThis=A label with support for selection and clickable links -Group=Display (KDE) - -[KCharSelect] -ToolTip=Character Selection Widget (KDE) -WhatsThis=A widget that allows selection a character out ot a table -Group=Graphics (KDE) - -[KColorButton] -ToolTip=Color Chooser Button (KDE) -WhatsThis=A button that allows selecting a color -Group=Graphics (KDE) - -[KColorCombo] -ToolTip=Color Combo Box (KDE) -Group=Graphics (KDE) - -[KComboBox] -ToolTip=Combo Box (KDE) -Group=Input (KDE) - -[KCModule] -ToolTip=KControl Center Module (KDE) -IsContainer=true -Group=Container (KDE) - -[KDateWidget] -ToolTip=Date preview (KDE) -Group=Input (KDE) - -[KDatePicker] -ToolTip=A date selection widget (KDE) -WhatsThis=Provides a widget for calendar date input -ConstructorArgs=(parent, QDate::currentDate(), name) -Group=Input (KDE) - -[KDialog] -IsContainer=true -ImplClass=KDialogPreview -ToolTip=Class for simple Dialogs (KDE) -Group=Container (KDE) - -[KDualColorButton] -ToolTip=A widget for selecting two related colors (KDE) -Group=Graphics (KDE) - -[KEditListBox] -ToolTip=Fullfeatured edit box with buttons (KDE) -Group=Views (KDE) - -[KFontCombo] -ToolTip=Font Combo Box (KDE) -WhatsThis=A QCombo Box showing the installed system fonts (with preview) -Group=Input (KDE) - -[KFontChooser] -IncludeFile=kfontdialog.h -IconSet=kfontcombo.png -ToolTip=Font Chooser (KDE) -WhatsThis=A font type, size and style selection widget complete with preview -Group=Input (KDE) - -[KFontRequester] -IncludeFile=kfontrequester.h -ToolTip=Font Requester (KDE) -WhatsThis=A compact font selection and preview widget -Group=Input (KDE) - -[KGradientSelector] -IncludeFile=kselect.h -WhatsThis=A widget that allows the user to select two colors to form a gradient -Group=Graphics (KDE) - -[KHistoryCombo] -IncludeFile=kcombobox.h -ToolTip=A combobox for offering a history and completion (KDE) -WhatsThis=A combobox which implements a history like a unix shell -Group=Input (KDE) - -[KHSSelector] -IncludeFile=kcolordialog.h -ToolTip=Widget for Hue/Saturation selection (KDE) -Group=Graphics (KDE) - -[KLed] -ToolTip=LED Widget (KDE) -WhatsThis=A widget showing a light emitter diode -Group=Display (KDE) - -[KListBox] -ToolTip=Extended List Box (KDE) -WhatsThis=An improved version of the QListBox that follows KDE settings -Group=Views (KDE) - -[K3ListView] -ToolTip=Extended List View (KDE) -WhatsThis=An improved version of the QListView that allows certain KDE extensions -Group=Views (KDE) - -[KLineEdit] -ToolTip=Line Edit (KDE) -Group=Input (KDE) - -[KPasswordEdit] -IncludeFile=kpassworddialog.h -ToolTip=Safe Password LineEdit (KDE) -WhatsThis=A KLineEdit that is safe for prompting the user for passwords -Group=Input (KDE) - -[KProgress] -ToolTip=Progress Bar (KDE) -WhatsThis=An improved progress bar for KDE that uses QFrame and QRangeControl -Group=Display (KDE) - -[KPushButton] -ToolTip=Improved QPushButton (KDE) -WhatsThis=An improved QPushButton to follow KDE settings -Group=Buttons (KDE) - -[KKeyButton] -ToolTip=Keyboard Key Button. (KDE) -WhatsThis=A push button that looks like a keyboard key. -IncludeFile=kkeybutton.h -Group=Buttons (KDE) - -[KRestrictedLine] -ToolTip=Line Edit for restricted input (KDE) -Group=Input (KDE) - -[KIconButton] -IncludeFile=kicondialog.h -ToolTip=Button for selecting an icon (KDE) -Group=Buttons (KDE) - -[K3IconView] -IncludeFile=k3iconview.h -ToolTip=Extended Icon View (KDE) -WhatsThis=An improved version of the QIconView that allows certain KDE extensions -Group=Views (KDE) - -[KIntSpinBox] -IncludeFile=knuminput.h -ToolTip=Enhanced Spinbox for Integer Values (KDE) -Group=Input (KDE) - -[KRuler] -ToolTip=Measuring Ruler Widget (KDE) -WhatsThis=A measuring ruler widget as seen in KWord for page widths and heights -Group=Display (KDE) - -[KSqueezedTextLabel] -ToolTip=A QLabel that squeezes its text (KDE) -WhatsThis=If the text is too long to fit into the label it is divided into remaining left and right parts which are separated by three dots -ConstructorArgs=("KSqueezedTextLabel", parent, name) -Group=Display (KDE) - -[KTextBrowser] -ToolTip=Improved QTextBrowser (KDE) -WhatsThis=An improved version of the QTextBrowser with mail or system browser invocation support -Group=Display (KDE) - -[KTextEdit] -ToolTip=Improved QTextEdit (KDE) -WhatsThis=An improved version of the QTextEdit with mail or system browser invocation support -Group=Input (KDE) - -[KUrlLabel] -ToolTip=URL Label (KDE) -ConstructorArgs=("KUrlLabel", QString(), parent, name) -Group=Display (KDE) - -[KUrlComboRequester] -ToolTip=URL Requester (KDE) -WhatsThis=A widget holding a combobox and a pushbutton. A "file open" dialog opened when clicking on the pushbutton -IncludeFile=kurlrequester.h -Group=Input (KDE) - -[KUrlRequester] -ToolTip=URL Requester (KDE) -WhatsThis=A widget holding a lineedit and a pushbutton. A "file open" dialog opened when clicking on the pushbutton -Group=Input (KDE) - -[KIntNumInput] -ToolTip=Integer Input Widget (KDE) -WhatsThis=An input widget for integer numbers, consisting of a spinbox and a slider. -IncludeFile=knuminput.h -Group=Input (KDE) - -[KDoubleNumInput] -ToolTip=Floating Point Number Input Widget (KDE) -WhatsThis=An input widget for floating point numbers, consisting of a spinbox and a slider. -IncludeFile=knuminput.h -Group=Input (KDE) - -[KTimeWidget] -ToolTip=This widget can be used to display or allow user selection of time. (KDE) -IncludeFile=ktimewidget.h -Group=Input (KDE) - -[KDateTimeWidget] -ToolTip=This widget can be used to display or allow user selection of date and time. (KDE) -IncludeFile=kdatetimewidget.h -Group=Input (KDE) - -[KDateTable] -IncludeFile=kdatetbl.h -Group=Input (KDE) -ConstructorArgs=(parent, QDate::currentDate(), name) - -[KLanguageButton] -IncludeFile=klanguagebutton.h -ToolTip=A widget for selecting a language -WhatsThis=A combobox suitable for selecting a language -Group=Input (KDE) - -[KImageFilePreview] -IncludeFile=kimagefilepreview.h -ToolTip=A widget that provides a image preview of a URL -Group=Display (KDE) -ConstructorArgs=(parent) - -[KActionSelector] -IncludeFile=kactionselector.h -ToolTip=A widget for selecting and arranging actions/objects -Group=Views (KDE) - -[KWritePermsIcon] -IncludeFile=kauthicon.h -ToolTip=Auth icon for write permission display. -ConstructorArgs=("", parent, name) -Group=Display (KDE) - -[KRootPermsIcon] -IncludeFile=kauthicon.h -ToolTip=Icon to show whether or not a user has root permissions. -Group=Display (KDE) - -[KColorPatch] -IncludeFile=kcolordialog.h -ToolTip=The KColorPatch widget is a (usually small) widget showing a selected color. -Group=Display (KDE) -ConstructorArgs=(parent) - -[KPaletteTable] -IncludeFile=kcolordialog.h -ToolTip=A color palette in table form. -Group=Display (KDE) -ConstructorArgs=(parent, 210, 16) - -#[KABC::AddressLineEdit] -#IncludeFile=kabc/addresslineedit.h -#ToolTip=A lineedit with LDAP and kabc completion. -#Group=Input (KDE) -#ConstructorArgs=(parent, true, name) diff --git a/tier4/kde4support/CMakeLists.txt b/tier4/kde4support/CMakeLists.txt index ccbffd2..5654fa0 100644 --- a/tier4/kde4support/CMakeLists.txt +++ b/tier4/kde4support/CMakeLists.txt @@ -41,14 +41,14 @@ if("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}") find_package(KF5Crash ${KF5_VERSION} REQUIRED) find_package(KF5Notifications ${KF5_VERSION} REQUIRED) find_package(KF5Parts ${KF5_VERSION} REQUIRED) - find_package(KDEWidgets ${KF5_VERSION} REQUIRED) + find_package(KF5DesignerPlugin ${KF5_VERSION} REQUIRED) find_package(KF5GlobalAccel ${KF5_VERSION} REQUIRED) else() set(_kdeBootStrapping TRUE) include(${CMAKE_SOURCE_DIR}/tier2/kdoctools/KF5DocToolsMacros.cmake) set(KDOCTOOLS_CUSTOMIZATION_DIR "${KDocTools_BINARY_DIR}/src/customization/") - set(KDEWIDGETS_MAKEKDEWIDGETS_EXECUTABLE ${CMAKE_BINARY_DIR}/tier3/kdewidgets/src/makekdewidgets${CMAKE_EXECUTABLE_SUFFIX} ) - include(${CMAKE_SOURCE_DIR}/tier3/kdewidgets/KDEWidgetsMacros.cmake) + set(KF5DESIGNERPLUGIN_GENERATOR_EXECUTABLE ${CMAKE_BINARY_DIR}/tier3/kdesignerplugin/src/kgendesignerplugin${CMAKE_EXECUTABLE_SUFFIX} ) + include(${CMAKE_SOURCE_DIR}/tier3/kdesignerplugin/KF5DesignerPluginMacros.cmake) endif() # find_package(Strigi 0.6.3 QUIET) diff --git a/tier4/kde4support/cmake/modules/KDE4Macros.cmake b/tier4/kde4support/cmake/modules/KDE4Macros.cmake index ddfd374..9bb312d 100644 --- a/tier4/kde4support/cmake/modules/KDE4Macros.cmake +++ b/tier4/kde4support/cmake/modules/KDE4Macros.cmake @@ -478,13 +478,13 @@ if (_kdeBootStrapping) include("${CMAKE_SOURCE_DIR}/tier4/kde4support/src/KDECoreMacros.cmake") include("${CMAKE_SOURCE_DIR}/tier4/kde4support/src/KDEUIMacros.cmake") include("${CMAKE_SOURCE_DIR}/tier2/kdoctools/KF5DocToolsMacros.cmake") - include("${CMAKE_SOURCE_DIR}/tier3/kdewidgets/KDEWidgetsMacros.cmake") + include("${CMAKE_SOURCE_DIR}/tier3/kf5designerplugin/KF5DesignerPluginMacros.cmake") else() include("${CMAKE_CURRENT_LIST_DIR}/../KF5Auth/KF5AuthMacros.cmake") include("${CMAKE_CURRENT_LIST_DIR}/KDECoreMacros.cmake") include("${CMAKE_CURRENT_LIST_DIR}/KDEUIMacros.cmake") include("${CMAKE_CURRENT_LIST_DIR}/../KF5DocTools/KF5DocToolsMacros.cmake") - include("${CMAKE_CURRENT_LIST_DIR}/../KDEWidgets/KDEWidgetsMacros.cmake") + include("${CMAKE_CURRENT_LIST_DIR}/../KF5DesignerPlugin/KF5DesignerPluginMacros.cmake") endif() # functions deprecated, they still should work diff --git a/tier4/kde4support/src/CMakeLists.txt b/tier4/kde4support/src/CMakeLists.txt index 467e837..56fe13f 100644 --- a/tier4/kde4support/src/CMakeLists.txt +++ b/tier4/kde4support/src/CMakeLists.txt @@ -344,8 +344,8 @@ set_target_properties(KF5KDE4Support PROPERTIES VERSION ${KDE4SUPPORT_VERSION_ST include_directories(${Qt5Designer_INCLUDE_DIRS}) add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/kdedeprecated.cpp - COMMAND "${KDEWIDGETS_MAKEKDEWIDGETS_EXECUTABLE}" -o ${CMAKE_CURRENT_BINARY_DIR}/kdedeprecated.cpp ${CMAKE_CURRENT_SOURCE_DIR}/kdedeprecated.widgets - MAIN_DEPENDENCY kdedeprecated.widgets DEPENDS "${KDEWIDGETS_MAKEKDEWIDGETS_EXECUTABLE}") + COMMAND "${KF5DESIGNERPLUGIN_GENERATOR_EXECUTABLE}" -o ${CMAKE_CURRENT_BINARY_DIR}/kdedeprecated.cpp ${CMAKE_CURRENT_SOURCE_DIR}/kdedeprecated.widgets + MAIN_DEPENDENCY kdedeprecated.widgets DEPENDS "${KF5DESIGNERPLUGIN_GENERATOR_EXECUTABLE}") qt5_generate_moc(${CMAKE_CURRENT_BINARY_DIR}/kdedeprecated.cpp ${CMAKE_CURRENT_BINARY_DIR}/kdedeprecated.moc) diff --git a/tier4/kde4support/src/KDEUIMacros.cmake b/tier4/kde4support/src/KDEUIMacros.cmake index 31a180c..1570df3 100644 --- a/tier4/kde4support/src/KDEUIMacros.cmake +++ b/tier4/kde4support/src/KDEUIMacros.cmake @@ -163,6 +163,8 @@ macro (KDE4_INSTALL_ICONS _defaultpath ) endmacro (KDE4_INSTALL_ICONS) +set(KDEWIDGETS_MAKEKDEWIDGETS_EXECUTABLE ${KF5DESIGNERPLUGIN_GENERATOR_EXECUTABLE}) +set(_KDE4_MAKEKDEWIDGETS_DEP ${_KF5DESIGNERPLUGIN_GENERATOR_EXECUTABLE_DEP}) macro (KDE4_ADD_WIDGET_FILES _sources) foreach (_current_FILE ${ARGN}) @@ -173,7 +175,7 @@ macro (KDE4_ADD_WIDGET_FILES _sources) # create source file from the .widgets file add_custom_command(OUTPUT ${_source} - COMMAND ${KDE4_MAKEKDEWIDGETS_EXECUTABLE} + COMMAND ${KDEWIDGETS_MAKEKDEWIDGETS_EXECUTABLE} ARGS -o ${_source} ${_input} MAIN_DEPENDENCY ${_input} DEPENDS ${_KDE4_MAKEKDEWIDGETS_DEP}) diff --git a/tier4/kde4support/src/kdedeprecated.widgets b/tier4/kde4support/src/kdedeprecated.widgets index 604358a..9fc0b5f 100644 --- a/tier4/kde4support/src/kdedeprecated.widgets +++ b/tier4/kde4support/src/kdedeprecated.widgets @@ -1,5 +1,5 @@ [Global] -PluginName=KDE3SupportWidgets +PluginName=KDE4SupportWidgets Includes=classpreviews.h,ktimezone.h Init= diff --git a/tier4/kde4support/src/pics/CMakeLists.txt b/tier4/kde4support/src/pics/CMakeLists.txt index c0e1c20..503dbd6 100644 --- a/tier4/kde4support/src/pics/CMakeLists.txt +++ b/tier4/kde4support/src/pics/CMakeLists.txt @@ -12,4 +12,4 @@ install( FILES keditlistbox.png kintnuminput.png krestrictedline.png - DESTINATION ${DATA_INSTALL_DIR}/kdewidgets/pics ) + DESTINATION ${DATA_INSTALL_DIR}/kf5widgets/pics )
