summaryrefslogtreecommitdiffstats
path: root/tdewidgets
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-12-23 13:14:38 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-12-23 13:14:38 +0100
commite1062b5b6bd0edc320ab967816743d7a52bbeeb6 (patch)
treee679ff2fd6f44a45c056bc306bc3eec5b353c901 /tdewidgets
parent7f8e73d6f561a95fc6d7084149ded936f0d69c42 (diff)
downloadtdelibs-e1062b5b6bd0edc320ab967816743d7a52bbeeb6.tar.gz
tdelibs-e1062b5b6bd0edc320ab967816743d7a52bbeeb6.zip
Rename kdewidgets => tdewidgets
Diffstat (limited to 'tdewidgets')
-rw-r--r--tdewidgets/AUTHORS3
-rw-r--r--tdewidgets/CMakeLists.txt66
-rw-r--r--tdewidgets/Makefile.am40
-rw-r--r--tdewidgets/README65
-rw-r--r--tdewidgets/classpreviews.cpp29
-rw-r--r--tdewidgets/classpreviews.h41
-rw-r--r--tdewidgets/kde.widgets306
-rw-r--r--tdewidgets/maketdewidgets.cpp242
-rw-r--r--tdewidgets/pics/CMakeLists.txt27
-rw-r--r--tdewidgets/pics/Makefile.am17
-rw-r--r--tdewidgets/pics/kactivelabel.pngbin0 -> 1271 bytes
-rw-r--r--tdewidgets/pics/kcharselect.pngbin0 -> 1288 bytes
-rw-r--r--tdewidgets/pics/kcolorbutton.pngbin0 -> 226 bytes
-rw-r--r--tdewidgets/pics/kcolorcombo.pngbin0 -> 557 bytes
-rw-r--r--tdewidgets/pics/kcombobox.pngbin0 -> 1212 bytes
-rw-r--r--tdewidgets/pics/kdatepicker.pngbin0 -> 965 bytes
-rw-r--r--tdewidgets/pics/kdatetable.pngbin0 -> 268 bytes
-rw-r--r--tdewidgets/pics/kdatetimewidget.pngbin0 -> 702 bytes
-rw-r--r--tdewidgets/pics/kdatewidget.pngbin0 -> 1232 bytes
-rw-r--r--tdewidgets/pics/kdialog.pngbin0 -> 1077 bytes
-rw-r--r--tdewidgets/pics/kdoublenuminput.pngbin0 -> 833 bytes
-rw-r--r--tdewidgets/pics/kdoublespinbox.pngbin0 -> 833 bytes
-rw-r--r--tdewidgets/pics/kdualcolorbutton.pngbin0 -> 377 bytes
-rw-r--r--tdewidgets/pics/keditlistbox.pngbin0 -> 662 bytes
-rw-r--r--tdewidgets/pics/kgradientselector.pngbin0 -> 180 bytes
-rw-r--r--tdewidgets/pics/khistorycombo.pngbin0 -> 1262 bytes
-rw-r--r--tdewidgets/pics/khsselector.pngbin0 -> 693 bytes
-rw-r--r--tdewidgets/pics/kiconbutton.pngbin0 -> 1170 bytes
-rw-r--r--tdewidgets/pics/kiconview.pngbin0 -> 662 bytes
-rw-r--r--tdewidgets/pics/kintnuminput.pngbin0 -> 805 bytes
-rw-r--r--tdewidgets/pics/kintspinbox.pngbin0 -> 1288 bytes
-rw-r--r--tdewidgets/pics/kkeybutton.pngbin0 -> 771 bytes
-rw-r--r--tdewidgets/pics/kled.pngbin0 -> 557 bytes
-rw-r--r--tdewidgets/pics/klineedit.pngbin0 -> 1170 bytes
-rw-r--r--tdewidgets/pics/kpalettetable.pngbin0 -> 236 bytes
-rw-r--r--tdewidgets/pics/kpasswordedit.pngbin0 -> 568 bytes
-rw-r--r--tdewidgets/pics/kprogress.pngbin0 -> 1068 bytes
-rw-r--r--tdewidgets/pics/kpushbutton.pngbin0 -> 1221 bytes
-rw-r--r--tdewidgets/pics/krestrictedline.pngbin0 -> 688 bytes
-rw-r--r--tdewidgets/pics/kruler.pngbin0 -> 226 bytes
-rw-r--r--tdewidgets/pics/ksqueezedtextlabel.pngbin0 -> 170 bytes
-rw-r--r--tdewidgets/pics/ktextbrowser.pngbin0 -> 1448 bytes
-rw-r--r--tdewidgets/pics/ktextedit.pngbin0 -> 1451 bytes
-rw-r--r--tdewidgets/pics/ktimewidget.pngbin0 -> 818 bytes
-rw-r--r--tdewidgets/pics/kurlcomborequester.pngbin0 -> 823 bytes
-rw-r--r--tdewidgets/pics/kurllabel.pngbin0 -> 320 bytes
-rw-r--r--tdewidgets/pics/kurlrequester.pngbin0 -> 569 bytes
-rw-r--r--tdewidgets/pics/tdeactionselector.pngbin0 -> 282 bytes
-rw-r--r--tdewidgets/pics/tdecmodule.pngbin0 -> 1340 bytes
-rw-r--r--tdewidgets/pics/tdefontcombo.pngbin0 -> 1194 bytes
-rw-r--r--tdewidgets/pics/tdefontrequester.pngbin0 -> 1035 bytes
-rw-r--r--tdewidgets/pics/tdelistbox.pngbin0 -> 1035 bytes
-rw-r--r--tdewidgets/pics/tdelistview.pngbin0 -> 1185 bytes
-rw-r--r--tdewidgets/tests/Makefile.am31
-rw-r--r--tdewidgets/tests/README6
-rw-r--r--tdewidgets/tests/sums2
-rw-r--r--tdewidgets/tests/test.widgets267
57 files changed, 1142 insertions, 0 deletions
diff --git a/tdewidgets/AUTHORS b/tdewidgets/AUTHORS
new file mode 100644
index 000000000..1c8341527
--- /dev/null
+++ b/tdewidgets/AUTHORS
@@ -0,0 +1,3 @@
+Daniel Molkentin <molkentin@kde.org>
+Malte Starostik <malte@kde.org>
+Nick Betcher <nbetcher@usinternet.com>
diff --git a/tdewidgets/CMakeLists.txt b/tdewidgets/CMakeLists.txt
new file mode 100644
index 000000000..2874d6544
--- /dev/null
+++ b/tdewidgets/CMakeLists.txt
@@ -0,0 +1,66 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( pics )
+
+
+add_definitions(
+ -DQT_PLUGIN
+)
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/tdecore
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/tdecore
+ ${CMAKE_SOURCE_DIR}/tdeui
+ ${CMAKE_SOURCE_DIR}/tdeio
+ ${CMAKE_SOURCE_DIR}/tdeio/tdefile
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### maketdewidgets ############################
+
+set( target maketdewidgets )
+
+set( ${target}_SRCS
+ maketdewidgets.cpp
+)
+
+tde_add_executable( ${target}
+ SOURCES ${${target}_SRCS}
+ LINK tdecore-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+##### tdewidgets ################################
+
+set( target tdewidgets )
+
+set( ${target}_SRCS
+ classpreviews.cpp tdewidgets.cpp
+)
+
+add_custom_command( OUTPUT tdewidgets.cpp
+ COMMAND ./maketdewidgets -o tdewidgets.cpp ${CMAKE_CURRENT_SOURCE_DIR}/kde.widgets
+ DEPENDS maketdewidgets ${CMAKE_CURRENT_SOURCE_DIR}/kde.widgets
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK tdeabc-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/designer
+)
diff --git a/tdewidgets/Makefile.am b/tdewidgets/Makefile.am
new file mode 100644
index 000000000..894d33393
--- /dev/null
+++ b/tdewidgets/Makefile.am
@@ -0,0 +1,40 @@
+
+# This file is part of the KDE libraries
+# Copyright (C) 1997 Matthias Kalle Dalheimer (kalle@kde.org)
+# (C) 1997 Stephan Kulow (coolo@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 General Public License
+# along with this library; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+# Boston, MA 02110-1301, USA.
+
+SUBDIRS=. pics tests
+AM_CXXFLAGS = -DQT_PLUGIN
+
+INCLUDES = -I$(top_srcdir)/tdefile $(all_includes)
+
+bin_PROGRAMS = maketdewidgets
+maketdewidgets_SOURCES = maketdewidgets.cpp
+maketdewidgets_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor
+maketdewidgets_LDADD = $(LIB_QT) ../tdecore/libtdecore.la
+
+kde_widget_LTLIBRARIES = tdewidgets.la
+tdewidgets_la_LDFLAGS = $(KDE_PLUGIN) -module $(all_libraries)
+tdewidgets_la_LIBADD = $(LIB_TDEIO) $(LIB_TDEABC) $(LIB_QT) $(LIB_TDEUI) $(LIB_TDECORE)
+tdewidgets_la_SOURCES = classpreviews.cpp tdewidgets.cpp
+
+tdewidgets.cpp: $(srcdir)/kde.widgets maketdewidgets
+ ./maketdewidgets -o tdewidgets.cpp $(srcdir)/kde.widgets
+
+CLEANFILES = tdewidgets.cpp
+
diff --git a/tdewidgets/README b/tdewidgets/README
new file mode 100644
index 000000000..d0ce8fcab
--- /dev/null
+++ b/tdewidgets/README
@@ -0,0 +1,65 @@
+KDE Custom Widgets for Qt Designer 2
+====================================
+
+
+Summary:
+========
+
+This directory contains KDE custom widgets for designer 2 which comes with
+Qt 3. Just make sure your plugin path in qtconfig includes
+$TDEDIR/lib/trinity/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 tdewidgets plugin> .
+
+This plugin uses the QWidget plugin API of Qt >= 3.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@kde.org>
+Daniel Molkentin <molkentin@kde.org>
+Malte Starostik <malte@kde.org>
diff --git a/tdewidgets/classpreviews.cpp b/tdewidgets/classpreviews.cpp
new file mode 100644
index 000000000..0ba98f8bf
--- /dev/null
+++ b/tdewidgets/classpreviews.cpp
@@ -0,0 +1,29 @@
+/* This file is part of the KDE libraries
+ Copyright (C) 2001 Daniel Molkentin <molkentin@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(TQWidget * parent , const char * /* name , bool, WFlagsf */)
+{
+ if (parent)
+ reparent(parent, TQPoint(0,0), true);
+ else
+ tqDebug("Error while reparenting!");
+}
+
diff --git a/tdewidgets/classpreviews.h b/tdewidgets/classpreviews.h
new file mode 100644
index 000000000..c2b67f27e
--- /dev/null
+++ b/tdewidgets/classpreviews.h
@@ -0,0 +1,41 @@
+/* This file is part of the KDE libraries
+ Copyright (C) 2001 Daniel Molkentin <molkentin@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 __classimpls__
+#define __classimpls__
+
+#include <kdialog.h>
+
+class KDialogPreview : public KDialog
+{
+public:
+ KDialogPreview(TQWidget * parent = 0 , const char * name = 0/*, bool modal = false, WFlags f = 0*/);
+};
+
+#endif
diff --git a/tdewidgets/kde.widgets b/tdewidgets/kde.widgets
new file mode 100644
index 000000000..787b6f336
--- /dev/null
+++ b/tdewidgets/kde.widgets
@@ -0,0 +1,306 @@
+[Global]
+PluginName=KDEWidgets
+Includes=kinstance.h,classpreviews.h
+Init=new TDEInstance("tdewidgets");
+
+[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)
+
+[TDECModule]
+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, TQDate::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)
+
+[TDEFontCombo]
+ToolTip=Font Combo Box (KDE)
+WhatsThis=A TQCombo Box showing the installed system fonts (with preview)
+Group=Input (KDE)
+
+[TDEFontChooser]
+IncludeFile=tdefontdialog.h
+IconSet=tdefontcombo.png
+ToolTip=Font Chooser (KDE)
+WhatsThis=A font type, size and style selection widget complete with preview
+Group=Input (KDE)
+
+[TDEFontRequester]
+IncludeFile=tdefontrequester.h
+ToolTip=Font Requester (KDE)
+WhatsThis=A compact font selection and preview widget
+Group=Input (KDE)
+
+[KGradientSelector]
+IncludeFile=tdeselect.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)
+
+[TDEListBox]
+ToolTip=Extended List Box (KDE)
+WhatsThis=An improved version of the TQListBox that follows KDE settings
+Group=Views (KDE)
+
+[TDEListView]
+ToolTip=Extended List View (KDE)
+WhatsThis=An improved version of the TQListView that allows certain KDE extensions
+Group=Views (KDE)
+
+[KLineEdit]
+ToolTip=Line Edit (KDE)
+Group=Input (KDE)
+
+[TDEListViewSearchLine]
+ToolTip=ListView Search Line (KDE)
+Group=Input (KDE)
+ConstructorArgs=(parent, 0, name)
+
+[TDEListViewSearchLineWidget]
+ToolTip=ListView Search Line Widget (KDE)
+IncludeFile=tdelistviewsearchline.h
+Group=Input (KDE)
+ConstructorArgs=(0, parent, name)
+
+[KPasswordEdit]
+IncludeFile=kpassdlg.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 TQFrame and TQRangeControl
+Group=Display (KDE)
+
+[KPushButton]
+ToolTip=Improved TQPushButton (KDE)
+WhatsThis=An improved TQPushButton 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)
+
+[TDEIconButton]
+IncludeFile=kicondialog.h
+ToolTip=Button for selecting an icon (KDE)
+Group=Buttons (KDE)
+
+[TDEIconView]
+IncludeFile=kiconview.h
+ToolTip=Extended Icon View (KDE)
+WhatsThis=An improved version of the TQIconView 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 TQLabel 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 TQTextBrowser (KDE)
+WhatsThis=An improved version of the TQTextBrowser with mail or system browser invocation support
+Group=Display (KDE)
+
+[KTextEdit]
+ToolTip=Improved TQTextEdit (KDE)
+WhatsThis=An improved version of the TQTextEdit with mail or system browser invocation support
+Group=Input (KDE)
+
+[KURLLabel]
+ToolTip=URL Label (KDE)
+ConstructorArgs=("KURLLabel", TQString(), 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)
+
+[KDoubleSpinBox]
+ToolTip=Enhanced Spinbox for Floating Point Values (KDE)
+WhatsThis=A spinbox widget for floating point numbers.
+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, TQDate::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)
+
+[TDEActionSelector]
+IncludeFile=tdeactionselector.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)
+
+[TDEABC::LdapConfigWidget]
+IncludeFile=tdeabc/ldapconfigwidget.h
+ToolTip=A widget which allows the user to set up LDAP connection parameters
+Group=Input (KDE)
+ConstructorArgs=(TDEABC::LdapConfigWidget::W_ALL, parent, name)
+
+[KArrowButton]
+IncludeFile=karrowbutton.h
+ToolTip=Draws a button which shows an arrow pointing into a certain direction.
+Group=Buttons (KDE)
+ConstructorArgs=(parent,Qt::UpArrow,name)
+
+[KAnimWidget]
+IncludeFile=kanimwidget.h
+ToolTip=This is a widget used to display animation using multiple individual pixmaps.
+Group=Display (KDE)
+ConstructorArgs=("kde",0,parent,name)
+
+[KValueSelector]
+IncludeFile=kcolordialog.h
+ToolTip=Widget for color value selection.
+Group=Graphics (KDE)
+
+[KSeparator]
+IncludeFile=kseparator.h
+ToolTip=Standard horizontal or vertical separator.
+Group=Display (KDE)
+
+[KTabWidget]
+IncludeFile=ktabwidget.h
+ToolTip=KDE tab widget container.
+IsContainer=true
+Group=Container (KDE)
diff --git a/tdewidgets/maketdewidgets.cpp b/tdewidgets/maketdewidgets.cpp
new file mode 100644
index 000000000..535ad0526
--- /dev/null
+++ b/tdewidgets/maketdewidgets.cpp
@@ -0,0 +1,242 @@
+/* Copyright (C) 2004-2005 ian reinhart geiser <geiseri@sourcextreme.com> */
+#include <tdeaboutdata.h>
+#include <kinstance.h>
+#include <tdecmdlineargs.h>
+#include <tdeconfig.h>
+#include <kmacroexpander.h>
+#include <kdebug.h>
+
+#include <tqtextstream.h>
+#include <tqfileinfo.h>
+#include <tqfile.h>
+#include <tqbuffer.h>
+#include <tqimage.h>
+
+static const char description[] = I18N_NOOP( "Builds Qt widget plugins from an ini style description file." );
+static const char version[] = "0.2";
+static const char classHeader[] = "/**\n"
+ "* This file was autogenerated by maketdewidgets. 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 <tqwidgetplugin.h>\n";
+static const char classDef[] = "#ifndef EMBED_IMAGES\n"
+ "#include <kstandarddirs.h>\n"
+ "#endif\n"
+ "\n"
+ "class %PluginName : public TQWidgetPlugin\n"
+ "{\n"
+ "public:\n"
+ " %PluginName();\n"
+ " \n"
+ " virtual ~%PluginName();\n"
+ " \n"
+ " virtual TQStringList keys() const\n"
+ " {\n"
+ " TQStringList result;\n"
+ " for (WidgetInfos::ConstIterator it = m_widgets.begin(); it != m_widgets.end(); ++it)\n"
+ " result << it.key();\n"
+ " return result;\n"
+ " }\n"
+ " \n"
+ " virtual TQWidget *create(const TQString &key, TQWidget *parent = 0, const char *name = 0);\n"
+ " \n"
+ " virtual TQIconSet iconSet(const TQString &key) const\n"
+ " {\n"
+ "#ifdef EMBED_IMAGES\n"
+ " TQPixmap pix(m_widgets[key].iconSet);\n"
+ "#else\n"
+ " TQPixmap pix(locate( \"data\", \n"
+ " TQString::fromLatin1(\"%PluginNameLower/pics/\") + m_widgets[key].iconSet));\n"
+ "#endif\n"
+ " return TQIconSet(pix);\n"
+ " }\n"
+ " \n"
+ " virtual bool isContainer(const TQString &key) const { return m_widgets[key].isContainer; }\n"
+ " \n"
+ " virtual TQString group(const TQString &key) const { return m_widgets[key].group; }\n"
+ " \n"
+ " virtual TQString includeFile(const TQString &key) const { return m_widgets[key].includeFile; }\n"
+ " \n"
+ " virtual TQString toolTip(const TQString &key) const { return m_widgets[key].toolTip; }\n"
+ " \n"
+ " virtual TQString whatsThis(const TQString &key) const { return m_widgets[key].whatsThis; }\n"
+ "private:\n"
+ " struct WidgetInfo\n"
+ " {\n"
+ " TQString group;\n"
+ "#ifdef EMBED_IMAGES\n"
+ " TQPixmap iconSet;\n"
+ "#else\n"
+ " TQString iconSet;\n"
+ "#endif\n"
+ " TQString includeFile;\n"
+ " TQString toolTip;\n"
+ " TQString whatsThis;\n"
+ " bool isContainer;\n"
+ " };\n"
+ " typedef TQMap<TQString, WidgetInfo> WidgetInfos;\n"
+ " WidgetInfos m_widgets;\n"
+ "};\n"
+ "%PluginName::%PluginName()\n"
+ "{\n"
+ " WidgetInfo widget;\n";
+static const char widgetDef[] = " widget.group = TQString::fromLatin1(\"%Group\");\n"
+ "#ifdef EMBED_IMAGES\n"
+ " widget.iconSet = TQPixmap(%Pixmap);\n"
+ "#else\n"
+ " widget.iconSet = TQString::fromLatin1(\"%IconSet\");\n"
+ "#endif\n"
+ " widget.includeFile = TQString::fromLatin1(\"%IncludeFile\");\n"
+ " widget.toolTip = TQString::fromLatin1(\"%ToolTip\");\n"
+ " widget.whatsThis = TQString::fromLatin1(\"%WhatsThis\");\n"
+ " widget.isContainer = %IsContainer;\n"
+ " m_widgets.insert(TQString::fromLatin1(\"%Class\"), widget);\n";
+static const char endCtor[] = " %Init\n"
+ "}\n"
+ "%PluginName::~%PluginName()\n"
+ "{\n"
+ " %Destroy\n"
+ "}\n"
+ "TQWidget *%PluginName::create(const TQString &key, TQWidget *parent, const char *name)\n"
+ "{\n";
+static const char widgetCreate[] = " if (key == TQString::fromLatin1(\"%Class\"))\n"
+ " return new %ImplClass%ConstructorArgs;\n";
+static const char endCreate[] = " return 0;\n"
+ "}\n"
+ "KDE_Q_EXPORT_PLUGIN(%PluginName)\n";
+
+
+static TDECmdLineOptions options[] =
+ {
+ { "+file", I18N_NOOP( "Input file" ), 0 },
+ { "o <file>", I18N_NOOP( "Output file" ), 0 },
+ { "n <plugin name>", I18N_NOOP( "Name of the plugin class to generate" ), "WidgetsPlugin" },
+ { "g <group>", I18N_NOOP( "Default widget group name to display in designer" ), "Custom" },
+ { "p <pixmap dir>", I18N_NOOP( "Embed pixmaps from a source directory" ), 0 },
+ TDECmdLineLastOption
+ };
+
+static TQString buildWidgetDef( const TQString &name, TDEConfig &input, const TQString &group );
+static TQString buildWidgetCreate( const TQString &name, TDEConfig &input );
+static TQString buildWidgetInclude( const TQString &name, TDEConfig &input );
+static void buildFile( TQTextStream &stream, const TQString& group, const TQString& fileName, const TQString& pluginName, const TQString& iconPath );
+static TQString buildPixmap( const TQString &name, TDEConfig &input, const TQString &iconPath );
+
+int main( int argc, char **argv ) {
+ new TDEInstance( "maketdewidgets" );
+
+ TDEAboutData about( "maketdewidgets", I18N_NOOP( "maketdewidgets" ), version, description, TDEAboutData::License_GPL, "(C) 2004-2005 ian reinhart geiser", 0, 0, "geiseri@kde.org" );
+ about.addAuthor( "ian reinhart geiser", 0, "geiseri@kde.org" );
+ TDECmdLineArgs::init( argc, argv, &about );
+ TDECmdLineArgs::addCmdLineOptions( options );
+ TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
+ if ( args->count() < 1 ) {
+ args->usage();
+ return ( 1 );
+ }
+
+ TQFileInfo fi( args->arg( args->count() - 1 ) );
+
+ TQString outputFile = args->getOption( "o" );
+ TQString pluginName = args->getOption( "n" );
+ TQString group = args->getOption( "g" );
+ TQString iconPath = "";
+ if ( args->isSet( "p" ) )
+ iconPath = args->getOption( "p" );
+ TQString fileName = fi.absFilePath();
+
+ if ( args->isSet( "o" ) ) {
+ TQFile output( outputFile );
+ if ( output.open( IO_WriteOnly ) ) {
+ TQTextStream ts( &output );
+ buildFile( ts, group, fileName , pluginName, iconPath );
+ }
+ output.close();
+ } else {
+ TQTextStream ts( stdout, IO_WriteOnly );
+ buildFile( ts, group, fileName , pluginName, iconPath );
+ }
+}
+
+void buildFile( TQTextStream &ts, const TQString& group, const TQString& fileName, const TQString& pluginName, const TQString& iconPath ) {
+ TDEConfig input( fileName, true, false );
+ input.setGroup( "Global" );
+ TQMap<TQString, TQString> MainMap;
+ MainMap.insert( "PluginName", input.readEntry( "PluginName", pluginName ) );
+ MainMap.insert( "PluginNameLower", input.readEntry( "PluginName", pluginName ).lower() );
+ MainMap.insert( "Init", input.readEntry( "Init", "" ) );
+ MainMap.insert( "Destroy", input.readEntry( "Destroy", "" ) );
+ ts << classHeader << endl;
+ TQStringList includes = input.readListEntry( "Includes", ',' );
+ for ( uint idx = 0; idx < includes.count(); ++idx )
+ ts << "#include <" << includes[ idx ] << ">" << endl;
+ TQStringList classes = input.groupList();
+ classes.remove( classes.find( "Global" ) );
+ // Autogenerate widget includes here
+ for ( uint idx = 0; idx < classes.count(); ++idx )
+ ts << buildWidgetInclude( classes[ idx ], input ) << endl;
+ // Generate embedded icons
+ if ( !iconPath.isEmpty() ) {
+ for ( uint idx = 0; idx < classes.count(); ++idx )
+ ts << buildPixmap( classes[ idx ], input, iconPath ) << endl;
+ ts << "#define EMBED_IMAGES" << endl;
+ }
+ // Generate the main class code.
+ ts << KMacroExpander::expandMacros( classDef, MainMap ) << endl;
+ // Autogenerate widget defs here
+ for ( uint idx = 0; idx < classes.count(); ++idx )
+ ts << buildWidgetDef( classes[ idx ], input, group ) << endl;
+ ts << KMacroExpander::expandMacros( endCtor, MainMap ) << endl;
+ // Autogenerate create code here...
+ for ( uint idx = 0; idx < classes.count(); ++idx )
+ ts << buildWidgetCreate( classes[ idx ], input ) << endl;
+ ts << KMacroExpander::expandMacros( endCreate, MainMap ) << endl;
+
+}
+
+TQString buildWidgetDef( const TQString &name, TDEConfig &input, const TQString &group ) {
+ input.setGroup( name );
+ TQMap<TQString, TQString> defMap;
+ defMap.insert( "Group", input.readEntry( "Group", group ).replace( "\"", "\\\"" ) );
+ defMap.insert( "IconSet", input.readEntry( "IconSet", name.lower() + ".png" ).replace( ":", "_" ) );
+ defMap.insert( "Pixmap", name.lower().replace( ":", "_" ) + "_xpm" );
+ defMap.insert( "IncludeFile", input.readEntry( "IncludeFile", name.lower() + ".h" ).remove( ":" ) );
+ defMap.insert( "ToolTip", input.readEntry( "ToolTip", name + " Widget" ).replace( "\"", "\\\"" ) );
+ defMap.insert( "WhatsThis", input.readEntry( "WhatsThis", name + " Widget" ).replace( "\"", "\\\"" ) );
+ defMap.insert( "IsContainer", input.readEntry( "IsContainer", "false" ) );
+ defMap.insert( "Class", name );
+ return KMacroExpander::expandMacros( widgetDef, defMap );
+}
+
+TQString buildWidgetCreate( const TQString &name, TDEConfig &input ) {
+ input.setGroup( name );
+ TQMap<TQString, TQString> createMap;
+ createMap.insert( "ImplClass", input.readEntry( "ImplClass", name ) );
+ createMap.insert( "ConstructorArgs", input.readEntry( "ConstructorArgs", "(parent, name)" ) );
+ createMap.insert( "Class", name );
+ return KMacroExpander::expandMacros( widgetCreate, createMap );
+}
+
+TQString buildWidgetInclude( const TQString &name, TDEConfig &input ) {
+ input.setGroup( name );
+ return "#include <" + input.readEntry( "IncludeFile", name.lower() + ".h" ) + ">";
+}
+
+TQString buildPixmap( const TQString &name, TDEConfig &input, const TQString &iconPath ) {
+ input.setGroup( name );
+ TQString cleanName = name.lower().replace( ":", "_" );
+ TQString iconName = input.readEntry( "IconSet", cleanName + ".png" );
+
+ TQFileInfo fi( iconPath + "/" + iconName );
+ TQImage pix( fi.absFilePath() );
+ TQCString xpm;
+ TQBuffer buff( xpm );
+ buff.open( IO_WriteOnly );
+ TQImageIO io( &buff, "XPM" );
+ io.setFileName( cleanName + "_xpm" );
+ io.setImage( pix );
+ io.write();
+ buff.close();
+ return xpm;
+}
diff --git a/tdewidgets/pics/CMakeLists.txt b/tdewidgets/pics/CMakeLists.txt
new file mode 100644
index 000000000..b12179d43
--- /dev/null
+++ b/tdewidgets/pics/CMakeLists.txt
@@ -0,0 +1,27 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+##### other data ################################
+
+install( FILES
+ klineedit.png ktextbrowser.png kpasswordedit.png kdatewidget.png
+ tdefontrequester.png kurlrequester.png kcombobox.png kiconview.png
+ kintspinbox.png kled.png ksqueezedtextlabel.png kprogress.png
+ kurllabel.png kruler.png tdecmodule.png kdoublespinbox.png
+ kdoublenuminput.png tdelistbox.png tdelistview.png kactivelabel.png
+ kiconbutton.png kcolorcombo.png khsselector.png kcolorbutton.png
+ kgradientselector.png kdualcolorbutton.png ktimewidget.png
+ kpushbutton.png kcharselect.png kdatepicker.png
+ kdialog.png keditlistbox.png tdefontcombo.png khistorycombo.png
+ kintnuminput.png krestrictedline.png ktextedit.png
+ kurlcomborequester.png kkeybutton.png kpalettetable.png
+ tdeactionselector.png kdatetable.png kdatetimewidget.png
+ DESTINATION ${DATA_INSTALL_DIR}/tdewidgets/pics )
diff --git a/tdewidgets/pics/Makefile.am b/tdewidgets/pics/Makefile.am
new file mode 100644
index 000000000..40b4311cc
--- /dev/null
+++ b/tdewidgets/pics/Makefile.am
@@ -0,0 +1,17 @@
+tdewidgetsdata_DATA = klineedit.png ktextbrowser.png kpasswordedit.png kdatewidget.png \
+ tdefontrequester.png kurlrequester.png kcombobox.png kiconview.png kintspinbox.png \
+ kled.png ksqueezedtextlabel.png kprogress.png kurllabel.png \
+ kruler.png tdecmodule.png kdoublespinbox.png kdoublenuminput.png \
+ tdelistbox.png tdelistview.png kactivelabel.png kiconbutton.png \
+ kcolorcombo.png khsselector.png kcolorbutton.png \
+ kgradientselector.png kdualcolorbutton.png ktimewidget.png \
+ kpushbutton.png kcharselect.png kdatepicker.png \
+ kdialog.png keditlistbox.png tdefontcombo.png khistorycombo.png \
+ kintnuminput.png krestrictedline.png ktextedit.png \
+ kurlcomborequester.png kkeybutton.png kpalettetable.png \
+ tdeactionselector.png kdatetable.png kdatetimewidget.png
+
+
+tdewidgetsdatadir = $(kde_datadir)/tdewidgets/pics
+
+EXTRA_DIST = $(tdewidgetsdata_DATA)
diff --git a/tdewidgets/pics/kactivelabel.png b/tdewidgets/pics/kactivelabel.png
new file mode 100644
index 000000000..4b935a008
--- /dev/null
+++ b/tdewidgets/pics/kactivelabel.png
Binary files differ
diff --git a/tdewidgets/pics/kcharselect.png b/tdewidgets/pics/kcharselect.png
new file mode 100644
index 000000000..0bdeec8ff
--- /dev/null
+++ b/tdewidgets/pics/kcharselect.png
Binary files differ
diff --git a/tdewidgets/pics/kcolorbutton.png b/tdewidgets/pics/kcolorbutton.png
new file mode 100644
index 000000000..14a237249
--- /dev/null
+++ b/tdewidgets/pics/kcolorbutton.png
Binary files differ
diff --git a/tdewidgets/pics/kcolorcombo.png b/tdewidgets/pics/kcolorcombo.png
new file mode 100644
index 000000000..7f987ea63
--- /dev/null
+++ b/tdewidgets/pics/kcolorcombo.png
Binary files differ
diff --git a/tdewidgets/pics/kcombobox.png b/tdewidgets/pics/kcombobox.png
new file mode 100644
index 000000000..6fa07065b
--- /dev/null
+++ b/tdewidgets/pics/kcombobox.png
Binary files differ
diff --git a/tdewidgets/pics/kdatepicker.png b/tdewidgets/pics/kdatepicker.png
new file mode 100644
index 000000000..4bcc64500
--- /dev/null
+++ b/tdewidgets/pics/kdatepicker.png
Binary files differ
diff --git a/tdewidgets/pics/kdatetable.png b/tdewidgets/pics/kdatetable.png
new file mode 100644
index 000000000..f8cea6970
--- /dev/null
+++ b/tdewidgets/pics/kdatetable.png
Binary files differ
diff --git a/tdewidgets/pics/kdatetimewidget.png b/tdewidgets/pics/kdatetimewidget.png
new file mode 100644
index 000000000..bdef7bc4f
--- /dev/null
+++ b/tdewidgets/pics/kdatetimewidget.png
Binary files differ
diff --git a/tdewidgets/pics/kdatewidget.png b/tdewidgets/pics/kdatewidget.png
new file mode 100644
index 000000000..e2fa34682
--- /dev/null
+++ b/tdewidgets/pics/kdatewidget.png
Binary files differ
diff --git a/tdewidgets/pics/kdialog.png b/tdewidgets/pics/kdialog.png
new file mode 100644
index 000000000..7d62678c8
--- /dev/null
+++ b/tdewidgets/pics/kdialog.png
Binary files differ
diff --git a/tdewidgets/pics/kdoublenuminput.png b/tdewidgets/pics/kdoublenuminput.png
new file mode 100644
index 000000000..09b0418a4
--- /dev/null
+++ b/tdewidgets/pics/kdoublenuminput.png
Binary files differ
diff --git a/tdewidgets/pics/kdoublespinbox.png b/tdewidgets/pics/kdoublespinbox.png
new file mode 100644
index 000000000..09b0418a4
--- /dev/null
+++ b/tdewidgets/pics/kdoublespinbox.png
Binary files differ
diff --git a/tdewidgets/pics/kdualcolorbutton.png b/tdewidgets/pics/kdualcolorbutton.png
new file mode 100644
index 000000000..1d67cc4c6
--- /dev/null
+++ b/tdewidgets/pics/kdualcolorbutton.png
Binary files differ
diff --git a/tdewidgets/pics/keditlistbox.png b/tdewidgets/pics/keditlistbox.png
new file mode 100644
index 000000000..67fd7eac0
--- /dev/null
+++ b/tdewidgets/pics/keditlistbox.png
Binary files differ
diff --git a/tdewidgets/pics/kgradientselector.png b/tdewidgets/pics/kgradientselector.png
new file mode 100644
index 000000000..f022d63cc
--- /dev/null
+++ b/tdewidgets/pics/kgradientselector.png
Binary files differ
diff --git a/tdewidgets/pics/khistorycombo.png b/tdewidgets/pics/khistorycombo.png
new file mode 100644
index 000000000..9d2dd22e4
--- /dev/null
+++ b/tdewidgets/pics/khistorycombo.png
Binary files differ
diff --git a/tdewidgets/pics/khsselector.png b/tdewidgets/pics/khsselector.png
new file mode 100644
index 000000000..aabb41a35
--- /dev/null
+++ b/tdewidgets/pics/khsselector.png
Binary files differ
diff --git a/tdewidgets/pics/kiconbutton.png b/tdewidgets/pics/kiconbutton.png
new file mode 100644
index 000000000..0a6028b77
--- /dev/null
+++ b/tdewidgets/pics/kiconbutton.png
Binary files differ
diff --git a/tdewidgets/pics/kiconview.png b/tdewidgets/pics/kiconview.png
new file mode 100644
index 000000000..b4a7db351
--- /dev/null
+++ b/tdewidgets/pics/kiconview.png
Binary files differ
diff --git a/tdewidgets/pics/kintnuminput.png b/tdewidgets/pics/kintnuminput.png
new file mode 100644
index 000000000..bdfeef776
--- /dev/null
+++ b/tdewidgets/pics/kintnuminput.png
Binary files differ
diff --git a/tdewidgets/pics/kintspinbox.png b/tdewidgets/pics/kintspinbox.png
new file mode 100644
index 000000000..a095e2cc4
--- /dev/null
+++ b/tdewidgets/pics/kintspinbox.png
Binary files differ
diff --git a/tdewidgets/pics/kkeybutton.png b/tdewidgets/pics/kkeybutton.png
new file mode 100644
index 000000000..c5a9a1e09
--- /dev/null
+++ b/tdewidgets/pics/kkeybutton.png
Binary files differ
diff --git a/tdewidgets/pics/kled.png b/tdewidgets/pics/kled.png
new file mode 100644
index 000000000..cf998e189
--- /dev/null
+++ b/tdewidgets/pics/kled.png
Binary files differ
diff --git a/tdewidgets/pics/klineedit.png b/tdewidgets/pics/klineedit.png
new file mode 100644
index 000000000..81d313913
--- /dev/null
+++ b/tdewidgets/pics/klineedit.png
Binary files differ
diff --git a/tdewidgets/pics/kpalettetable.png b/tdewidgets/pics/kpalettetable.png
new file mode 100644
index 000000000..8964305fd
--- /dev/null
+++ b/tdewidgets/pics/kpalettetable.png
Binary files differ
diff --git a/tdewidgets/pics/kpasswordedit.png b/tdewidgets/pics/kpasswordedit.png
new file mode 100644
index 000000000..e783b2092
--- /dev/null
+++ b/tdewidgets/pics/kpasswordedit.png
Binary files differ
diff --git a/tdewidgets/pics/kprogress.png b/tdewidgets/pics/kprogress.png
new file mode 100644
index 000000000..57a33db0f
--- /dev/null
+++ b/tdewidgets/pics/kprogress.png
Binary files differ
diff --git a/tdewidgets/pics/kpushbutton.png b/tdewidgets/pics/kpushbutton.png
new file mode 100644
index 000000000..f1b30dfa3
--- /dev/null
+++ b/tdewidgets/pics/kpushbutton.png
Binary files differ
diff --git a/tdewidgets/pics/krestrictedline.png b/tdewidgets/pics/krestrictedline.png
new file mode 100644
index 000000000..0f7eb9ad3
--- /dev/null
+++ b/tdewidgets/pics/krestrictedline.png
Binary files differ
diff --git a/tdewidgets/pics/kruler.png b/tdewidgets/pics/kruler.png
new file mode 100644
index 000000000..6e696751b
--- /dev/null
+++ b/tdewidgets/pics/kruler.png
Binary files differ
diff --git a/tdewidgets/pics/ksqueezedtextlabel.png b/tdewidgets/pics/ksqueezedtextlabel.png
new file mode 100644
index 000000000..d30f94645
--- /dev/null
+++ b/tdewidgets/pics/ksqueezedtextlabel.png
Binary files differ
diff --git a/tdewidgets/pics/ktextbrowser.png b/tdewidgets/pics/ktextbrowser.png
new file mode 100644
index 000000000..b9b0a64d1
--- /dev/null
+++ b/tdewidgets/pics/ktextbrowser.png
Binary files differ
diff --git a/tdewidgets/pics/ktextedit.png b/tdewidgets/pics/ktextedit.png
new file mode 100644
index 000000000..7325b3dd1
--- /dev/null
+++ b/tdewidgets/pics/ktextedit.png
Binary files differ
diff --git a/tdewidgets/pics/ktimewidget.png b/tdewidgets/pics/ktimewidget.png
new file mode 100644
index 000000000..1b0d79afe
--- /dev/null
+++ b/tdewidgets/pics/ktimewidget.png
Binary files differ
diff --git a/tdewidgets/pics/kurlcomborequester.png b/tdewidgets/pics/kurlcomborequester.png
new file mode 100644
index 000000000..f23c6bb6c
--- /dev/null
+++ b/tdewidgets/pics/kurlcomborequester.png
Binary files differ
diff --git a/tdewidgets/pics/kurllabel.png b/tdewidgets/pics/kurllabel.png
new file mode 100644
index 000000000..055cdfce5
--- /dev/null
+++ b/tdewidgets/pics/kurllabel.png
Binary files differ
diff --git a/tdewidgets/pics/kurlrequester.png b/tdewidgets/pics/kurlrequester.png
new file mode 100644
index 000000000..6885167de
--- /dev/null
+++ b/tdewidgets/pics/kurlrequester.png
Binary files differ
diff --git a/tdewidgets/pics/tdeactionselector.png b/tdewidgets/pics/tdeactionselector.png
new file mode 100644
index 000000000..acfdce496
--- /dev/null
+++ b/tdewidgets/pics/tdeactionselector.png
Binary files differ
diff --git a/tdewidgets/pics/tdecmodule.png b/tdewidgets/pics/tdecmodule.png
new file mode 100644
index 000000000..1a6a9dc17
--- /dev/null
+++ b/tdewidgets/pics/tdecmodule.png
Binary files differ
diff --git a/tdewidgets/pics/tdefontcombo.png b/tdewidgets/pics/tdefontcombo.png
new file mode 100644
index 000000000..87835d6ce
--- /dev/null
+++ b/tdewidgets/pics/tdefontcombo.png
Binary files differ
diff --git a/tdewidgets/pics/tdefontrequester.png b/tdewidgets/pics/tdefontrequester.png
new file mode 100644
index 000000000..a01f4d692
--- /dev/null
+++ b/tdewidgets/pics/tdefontrequester.png
Binary files differ
diff --git a/tdewidgets/pics/tdelistbox.png b/tdewidgets/pics/tdelistbox.png
new file mode 100644
index 000000000..f7405b39f
--- /dev/null
+++ b/tdewidgets/pics/tdelistbox.png
Binary files differ
diff --git a/tdewidgets/pics/tdelistview.png b/tdewidgets/pics/tdelistview.png
new file mode 100644
index 000000000..932d910c8
--- /dev/null
+++ b/tdewidgets/pics/tdelistview.png
Binary files differ
diff --git a/tdewidgets/tests/Makefile.am b/tdewidgets/tests/Makefile.am
new file mode 100644
index 000000000..43435995a
--- /dev/null
+++ b/tdewidgets/tests/Makefile.am
@@ -0,0 +1,31 @@
+
+# This file is part of the KDE libraries
+# Copyright (C) 1997 Matthias Kalle Dalheimer (kalle@kde.org)
+# (C) 1997 Stephan Kulow (coolo@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 General Public License
+# along with this library; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+# Boston, MA 02110-1301, USA.
+
+check-local: testwithpixmaps.cpp testkde.cpp
+# Broken and not informative enough about the changes
+# md5sum -c $(srcdir)/sums
+
+testwithpixmaps.cpp: $(srcdir)/test.widgets
+ ../maketdewidgets -o testwithpixmaps.cpp -p $(top_srcdir)/tdewidgets/pics $(srcdir)/test.widgets
+testkde.cpp: $(srcdir)/test.widgets
+ ../maketdewidgets -o testkde.cpp $(srcdir)/test.widgets
+
+CLEANFILES = testwithpixmaps.cpp testkde.cpp
+
diff --git a/tdewidgets/tests/README b/tdewidgets/tests/README
new file mode 100644
index 000000000..5d97aa029
--- /dev/null
+++ b/tdewidgets/tests/README
@@ -0,0 +1,6 @@
+These are the tests for the current maketdewidgets.
+
+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/tdewidgets/tests/sums b/tdewidgets/tests/sums
new file mode 100644
index 000000000..8b1f80899
--- /dev/null
+++ b/tdewidgets/tests/sums
@@ -0,0 +1,2 @@
+ff629a98965347ed3303a2c70f35af51 testwithpixmaps.cpp
+f736575862f21dc175e1778bc159afbf testkde.cpp
diff --git a/tdewidgets/tests/test.widgets b/tdewidgets/tests/test.widgets
new file mode 100644
index 000000000..e428d0711
--- /dev/null
+++ b/tdewidgets/tests/test.widgets
@@ -0,0 +1,267 @@
+[Global]
+PluginName=KDEWidgets
+Includes=kinstance.h,classpreviews.h
+Init=new TDEInstance("tdewidgets");
+
+[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)
+
+[TDECModule]
+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)
+
+[TDEFontCombo]
+ToolTip=Font Combo Box (KDE)
+WhatsThis=A QCombo Box showing the installed system fonts (with preview)
+Group=Input (KDE)
+
+[TDEFontChooser]
+IncludeFile=tdefontdialog.h
+IconSet=tdefontcombo.png
+ToolTip=Font Chooser (KDE)
+WhatsThis=A font type, size and style selection widget complete with preview
+Group=Input (KDE)
+
+[TDEFontRequester]
+IncludeFile=tdefontrequester.h
+ToolTip=Font Requester (KDE)
+WhatsThis=A compact font selection and preview widget
+Group=Input (KDE)
+
+[KGradientSelector]
+IncludeFile=tdeselect.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)
+
+[TDEListBox]
+ToolTip=Extended List Box (KDE)
+WhatsThis=An improved version of the QListBox that follows KDE settings
+Group=Views (KDE)
+
+[TDEListView]
+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=kpassdlg.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)
+
+[TDEIconButton]
+IncludeFile=kicondialog.h
+ToolTip=Button for selecting an icon (KDE)
+Group=Buttons (KDE)
+
+[TDEIconView]
+IncludeFile=kiconview.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::null, 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)
+
+[KDoubleSpinBox]
+ToolTip=Enhanced Spinbox for Floating Point Values (KDE)
+WhatsThis=A spinbox widget for floating point numbers.
+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)
+
+[TDEActionSelector]
+IncludeFile=tdeactionselector.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)
+
+[TDEABC::AddressLineEdit]
+IncludeFile=tdeabc/addresslineedit.h
+ToolTip=A lineedit with LDAP and tdeabc completion.
+Group=Input (KDE)
+ConstructorArgs=(parent, true, name)