From ce4a32fe52ef09d8f5ff1dd22c001110902b60a2 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdewidgets/tests/Makefile.am | 31 +++++ kdewidgets/tests/README | 6 + kdewidgets/tests/sums | 2 + kdewidgets/tests/test.widgets | 267 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 306 insertions(+) create mode 100644 kdewidgets/tests/Makefile.am create mode 100644 kdewidgets/tests/README create mode 100644 kdewidgets/tests/sums create mode 100644 kdewidgets/tests/test.widgets (limited to 'kdewidgets/tests') diff --git a/kdewidgets/tests/Makefile.am b/kdewidgets/tests/Makefile.am new file mode 100644 index 000000000..3a4a9566a --- /dev/null +++ b/kdewidgets/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 + ../makekdewidgets -o testwithpixmaps.cpp -p $(top_srcdir)/kdewidgets/pics $(srcdir)/test.widgets +testkde.cpp: $(srcdir)/test.widgets + ../makekdewidgets -o testkde.cpp $(srcdir)/test.widgets + +CLEANFILES = testwithpixmaps.cpp testkde.cpp + diff --git a/kdewidgets/tests/README b/kdewidgets/tests/README new file mode 100644 index 000000000..9dd2132fa --- /dev/null +++ b/kdewidgets/tests/README @@ -0,0 +1,6 @@ +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/kdewidgets/tests/sums b/kdewidgets/tests/sums new file mode 100644 index 000000000..8b1f80899 --- /dev/null +++ b/kdewidgets/tests/sums @@ -0,0 +1,2 @@ +ff629a98965347ed3303a2c70f35af51 testwithpixmaps.cpp +f736575862f21dc175e1778bc159afbf testkde.cpp diff --git a/kdewidgets/tests/test.widgets b/kdewidgets/tests/test.widgets new file mode 100644 index 000000000..b67abedee --- /dev/null +++ b/kdewidgets/tests/test.widgets @@ -0,0 +1,267 @@ +[Global] +PluginName=KDEWidgets +Includes=kinstance.h,classpreviews.h +Init=new KInstance("kdewidgets"); + +[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) + +[KListView] +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) + +[KIconButton] +IncludeFile=kicondialog.h +ToolTip=Button for selecting an icon (KDE) +Group=Buttons (KDE) + +[KIconView] +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) + +[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) -- cgit v1.2.1