From e1062b5b6bd0edc320ab967816743d7a52bbeeb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 23 Dec 2013 13:14:38 +0100 Subject: Rename kdewidgets => tdewidgets --- tdewidgets/AUTHORS | 3 + tdewidgets/CMakeLists.txt | 66 +++++++ tdewidgets/Makefile.am | 40 +++++ tdewidgets/README | 65 +++++++ tdewidgets/classpreviews.cpp | 29 ++++ tdewidgets/classpreviews.h | 41 +++++ tdewidgets/kde.widgets | 306 +++++++++++++++++++++++++++++++++ tdewidgets/maketdewidgets.cpp | 242 ++++++++++++++++++++++++++ tdewidgets/pics/CMakeLists.txt | 27 +++ tdewidgets/pics/Makefile.am | 17 ++ tdewidgets/pics/kactivelabel.png | Bin 0 -> 1271 bytes tdewidgets/pics/kcharselect.png | Bin 0 -> 1288 bytes tdewidgets/pics/kcolorbutton.png | Bin 0 -> 226 bytes tdewidgets/pics/kcolorcombo.png | Bin 0 -> 557 bytes tdewidgets/pics/kcombobox.png | Bin 0 -> 1212 bytes tdewidgets/pics/kdatepicker.png | Bin 0 -> 965 bytes tdewidgets/pics/kdatetable.png | Bin 0 -> 268 bytes tdewidgets/pics/kdatetimewidget.png | Bin 0 -> 702 bytes tdewidgets/pics/kdatewidget.png | Bin 0 -> 1232 bytes tdewidgets/pics/kdialog.png | Bin 0 -> 1077 bytes tdewidgets/pics/kdoublenuminput.png | Bin 0 -> 833 bytes tdewidgets/pics/kdoublespinbox.png | Bin 0 -> 833 bytes tdewidgets/pics/kdualcolorbutton.png | Bin 0 -> 377 bytes tdewidgets/pics/keditlistbox.png | Bin 0 -> 662 bytes tdewidgets/pics/kgradientselector.png | Bin 0 -> 180 bytes tdewidgets/pics/khistorycombo.png | Bin 0 -> 1262 bytes tdewidgets/pics/khsselector.png | Bin 0 -> 693 bytes tdewidgets/pics/kiconbutton.png | Bin 0 -> 1170 bytes tdewidgets/pics/kiconview.png | Bin 0 -> 662 bytes tdewidgets/pics/kintnuminput.png | Bin 0 -> 805 bytes tdewidgets/pics/kintspinbox.png | Bin 0 -> 1288 bytes tdewidgets/pics/kkeybutton.png | Bin 0 -> 771 bytes tdewidgets/pics/kled.png | Bin 0 -> 557 bytes tdewidgets/pics/klineedit.png | Bin 0 -> 1170 bytes tdewidgets/pics/kpalettetable.png | Bin 0 -> 236 bytes tdewidgets/pics/kpasswordedit.png | Bin 0 -> 568 bytes tdewidgets/pics/kprogress.png | Bin 0 -> 1068 bytes tdewidgets/pics/kpushbutton.png | Bin 0 -> 1221 bytes tdewidgets/pics/krestrictedline.png | Bin 0 -> 688 bytes tdewidgets/pics/kruler.png | Bin 0 -> 226 bytes tdewidgets/pics/ksqueezedtextlabel.png | Bin 0 -> 170 bytes tdewidgets/pics/ktextbrowser.png | Bin 0 -> 1448 bytes tdewidgets/pics/ktextedit.png | Bin 0 -> 1451 bytes tdewidgets/pics/ktimewidget.png | Bin 0 -> 818 bytes tdewidgets/pics/kurlcomborequester.png | Bin 0 -> 823 bytes tdewidgets/pics/kurllabel.png | Bin 0 -> 320 bytes tdewidgets/pics/kurlrequester.png | Bin 0 -> 569 bytes tdewidgets/pics/tdeactionselector.png | Bin 0 -> 282 bytes tdewidgets/pics/tdecmodule.png | Bin 0 -> 1340 bytes tdewidgets/pics/tdefontcombo.png | Bin 0 -> 1194 bytes tdewidgets/pics/tdefontrequester.png | Bin 0 -> 1035 bytes tdewidgets/pics/tdelistbox.png | Bin 0 -> 1035 bytes tdewidgets/pics/tdelistview.png | Bin 0 -> 1185 bytes tdewidgets/tests/Makefile.am | 31 ++++ tdewidgets/tests/README | 6 + tdewidgets/tests/sums | 2 + tdewidgets/tests/test.widgets | 267 ++++++++++++++++++++++++++++ 57 files changed, 1142 insertions(+) create mode 100644 tdewidgets/AUTHORS create mode 100644 tdewidgets/CMakeLists.txt create mode 100644 tdewidgets/Makefile.am create mode 100644 tdewidgets/README create mode 100644 tdewidgets/classpreviews.cpp create mode 100644 tdewidgets/classpreviews.h create mode 100644 tdewidgets/kde.widgets create mode 100644 tdewidgets/maketdewidgets.cpp create mode 100644 tdewidgets/pics/CMakeLists.txt create mode 100644 tdewidgets/pics/Makefile.am create mode 100644 tdewidgets/pics/kactivelabel.png create mode 100644 tdewidgets/pics/kcharselect.png create mode 100644 tdewidgets/pics/kcolorbutton.png create mode 100644 tdewidgets/pics/kcolorcombo.png create mode 100644 tdewidgets/pics/kcombobox.png create mode 100644 tdewidgets/pics/kdatepicker.png create mode 100644 tdewidgets/pics/kdatetable.png create mode 100644 tdewidgets/pics/kdatetimewidget.png create mode 100644 tdewidgets/pics/kdatewidget.png create mode 100644 tdewidgets/pics/kdialog.png create mode 100644 tdewidgets/pics/kdoublenuminput.png create mode 100644 tdewidgets/pics/kdoublespinbox.png create mode 100644 tdewidgets/pics/kdualcolorbutton.png create mode 100644 tdewidgets/pics/keditlistbox.png create mode 100644 tdewidgets/pics/kgradientselector.png create mode 100644 tdewidgets/pics/khistorycombo.png create mode 100644 tdewidgets/pics/khsselector.png create mode 100644 tdewidgets/pics/kiconbutton.png create mode 100644 tdewidgets/pics/kiconview.png create mode 100644 tdewidgets/pics/kintnuminput.png create mode 100644 tdewidgets/pics/kintspinbox.png create mode 100644 tdewidgets/pics/kkeybutton.png create mode 100644 tdewidgets/pics/kled.png create mode 100644 tdewidgets/pics/klineedit.png create mode 100644 tdewidgets/pics/kpalettetable.png create mode 100644 tdewidgets/pics/kpasswordedit.png create mode 100644 tdewidgets/pics/kprogress.png create mode 100644 tdewidgets/pics/kpushbutton.png create mode 100644 tdewidgets/pics/krestrictedline.png create mode 100644 tdewidgets/pics/kruler.png create mode 100644 tdewidgets/pics/ksqueezedtextlabel.png create mode 100644 tdewidgets/pics/ktextbrowser.png create mode 100644 tdewidgets/pics/ktextedit.png create mode 100644 tdewidgets/pics/ktimewidget.png create mode 100644 tdewidgets/pics/kurlcomborequester.png create mode 100644 tdewidgets/pics/kurllabel.png create mode 100644 tdewidgets/pics/kurlrequester.png create mode 100644 tdewidgets/pics/tdeactionselector.png create mode 100644 tdewidgets/pics/tdecmodule.png create mode 100644 tdewidgets/pics/tdefontcombo.png create mode 100644 tdewidgets/pics/tdefontrequester.png create mode 100644 tdewidgets/pics/tdelistbox.png create mode 100644 tdewidgets/pics/tdelistview.png create mode 100644 tdewidgets/tests/Makefile.am create mode 100644 tdewidgets/tests/README create mode 100644 tdewidgets/tests/sums create mode 100644 tdewidgets/tests/test.widgets (limited to 'tdewidgets') 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 +Malte Starostik +Nick Betcher 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 . + +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 +Daniel Molkentin +Malte Starostik 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 + + 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 + + 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 + +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 */ +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +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 \n"; +static const char classDef[] = "#ifndef EMBED_IMAGES\n" + "#include \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 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 ", I18N_NOOP( "Output file" ), 0 }, + { "n ", I18N_NOOP( "Name of the plugin class to generate" ), "WidgetsPlugin" }, + { "g ", I18N_NOOP( "Default widget group name to display in designer" ), "Custom" }, + { "p ", 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 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 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 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 Binary files /dev/null and b/tdewidgets/pics/kactivelabel.png differ diff --git a/tdewidgets/pics/kcharselect.png b/tdewidgets/pics/kcharselect.png new file mode 100644 index 000000000..0bdeec8ff Binary files /dev/null and b/tdewidgets/pics/kcharselect.png differ diff --git a/tdewidgets/pics/kcolorbutton.png b/tdewidgets/pics/kcolorbutton.png new file mode 100644 index 000000000..14a237249 Binary files /dev/null and b/tdewidgets/pics/kcolorbutton.png differ diff --git a/tdewidgets/pics/kcolorcombo.png b/tdewidgets/pics/kcolorcombo.png new file mode 100644 index 000000000..7f987ea63 Binary files /dev/null and b/tdewidgets/pics/kcolorcombo.png differ diff --git a/tdewidgets/pics/kcombobox.png b/tdewidgets/pics/kcombobox.png new file mode 100644 index 000000000..6fa07065b Binary files /dev/null and b/tdewidgets/pics/kcombobox.png differ diff --git a/tdewidgets/pics/kdatepicker.png b/tdewidgets/pics/kdatepicker.png new file mode 100644 index 000000000..4bcc64500 Binary files /dev/null and b/tdewidgets/pics/kdatepicker.png differ diff --git a/tdewidgets/pics/kdatetable.png b/tdewidgets/pics/kdatetable.png new file mode 100644 index 000000000..f8cea6970 Binary files /dev/null and b/tdewidgets/pics/kdatetable.png differ diff --git a/tdewidgets/pics/kdatetimewidget.png b/tdewidgets/pics/kdatetimewidget.png new file mode 100644 index 000000000..bdef7bc4f Binary files /dev/null and b/tdewidgets/pics/kdatetimewidget.png differ diff --git a/tdewidgets/pics/kdatewidget.png b/tdewidgets/pics/kdatewidget.png new file mode 100644 index 000000000..e2fa34682 Binary files /dev/null and b/tdewidgets/pics/kdatewidget.png differ diff --git a/tdewidgets/pics/kdialog.png b/tdewidgets/pics/kdialog.png new file mode 100644 index 000000000..7d62678c8 Binary files /dev/null and b/tdewidgets/pics/kdialog.png differ diff --git a/tdewidgets/pics/kdoublenuminput.png b/tdewidgets/pics/kdoublenuminput.png new file mode 100644 index 000000000..09b0418a4 Binary files /dev/null and b/tdewidgets/pics/kdoublenuminput.png differ diff --git a/tdewidgets/pics/kdoublespinbox.png b/tdewidgets/pics/kdoublespinbox.png new file mode 100644 index 000000000..09b0418a4 Binary files /dev/null and b/tdewidgets/pics/kdoublespinbox.png differ diff --git a/tdewidgets/pics/kdualcolorbutton.png b/tdewidgets/pics/kdualcolorbutton.png new file mode 100644 index 000000000..1d67cc4c6 Binary files /dev/null and b/tdewidgets/pics/kdualcolorbutton.png differ diff --git a/tdewidgets/pics/keditlistbox.png b/tdewidgets/pics/keditlistbox.png new file mode 100644 index 000000000..67fd7eac0 Binary files /dev/null and b/tdewidgets/pics/keditlistbox.png differ diff --git a/tdewidgets/pics/kgradientselector.png b/tdewidgets/pics/kgradientselector.png new file mode 100644 index 000000000..f022d63cc Binary files /dev/null and b/tdewidgets/pics/kgradientselector.png differ diff --git a/tdewidgets/pics/khistorycombo.png b/tdewidgets/pics/khistorycombo.png new file mode 100644 index 000000000..9d2dd22e4 Binary files /dev/null and b/tdewidgets/pics/khistorycombo.png differ diff --git a/tdewidgets/pics/khsselector.png b/tdewidgets/pics/khsselector.png new file mode 100644 index 000000000..aabb41a35 Binary files /dev/null and b/tdewidgets/pics/khsselector.png differ diff --git a/tdewidgets/pics/kiconbutton.png b/tdewidgets/pics/kiconbutton.png new file mode 100644 index 000000000..0a6028b77 Binary files /dev/null and b/tdewidgets/pics/kiconbutton.png differ diff --git a/tdewidgets/pics/kiconview.png b/tdewidgets/pics/kiconview.png new file mode 100644 index 000000000..b4a7db351 Binary files /dev/null and b/tdewidgets/pics/kiconview.png differ diff --git a/tdewidgets/pics/kintnuminput.png b/tdewidgets/pics/kintnuminput.png new file mode 100644 index 000000000..bdfeef776 Binary files /dev/null and b/tdewidgets/pics/kintnuminput.png differ diff --git a/tdewidgets/pics/kintspinbox.png b/tdewidgets/pics/kintspinbox.png new file mode 100644 index 000000000..a095e2cc4 Binary files /dev/null and b/tdewidgets/pics/kintspinbox.png differ diff --git a/tdewidgets/pics/kkeybutton.png b/tdewidgets/pics/kkeybutton.png new file mode 100644 index 000000000..c5a9a1e09 Binary files /dev/null and b/tdewidgets/pics/kkeybutton.png differ diff --git a/tdewidgets/pics/kled.png b/tdewidgets/pics/kled.png new file mode 100644 index 000000000..cf998e189 Binary files /dev/null and b/tdewidgets/pics/kled.png differ diff --git a/tdewidgets/pics/klineedit.png b/tdewidgets/pics/klineedit.png new file mode 100644 index 000000000..81d313913 Binary files /dev/null and b/tdewidgets/pics/klineedit.png differ diff --git a/tdewidgets/pics/kpalettetable.png b/tdewidgets/pics/kpalettetable.png new file mode 100644 index 000000000..8964305fd Binary files /dev/null and b/tdewidgets/pics/kpalettetable.png differ diff --git a/tdewidgets/pics/kpasswordedit.png b/tdewidgets/pics/kpasswordedit.png new file mode 100644 index 000000000..e783b2092 Binary files /dev/null and b/tdewidgets/pics/kpasswordedit.png differ diff --git a/tdewidgets/pics/kprogress.png b/tdewidgets/pics/kprogress.png new file mode 100644 index 000000000..57a33db0f Binary files /dev/null and b/tdewidgets/pics/kprogress.png differ diff --git a/tdewidgets/pics/kpushbutton.png b/tdewidgets/pics/kpushbutton.png new file mode 100644 index 000000000..f1b30dfa3 Binary files /dev/null and b/tdewidgets/pics/kpushbutton.png differ diff --git a/tdewidgets/pics/krestrictedline.png b/tdewidgets/pics/krestrictedline.png new file mode 100644 index 000000000..0f7eb9ad3 Binary files /dev/null and b/tdewidgets/pics/krestrictedline.png differ diff --git a/tdewidgets/pics/kruler.png b/tdewidgets/pics/kruler.png new file mode 100644 index 000000000..6e696751b Binary files /dev/null and b/tdewidgets/pics/kruler.png differ diff --git a/tdewidgets/pics/ksqueezedtextlabel.png b/tdewidgets/pics/ksqueezedtextlabel.png new file mode 100644 index 000000000..d30f94645 Binary files /dev/null and b/tdewidgets/pics/ksqueezedtextlabel.png differ diff --git a/tdewidgets/pics/ktextbrowser.png b/tdewidgets/pics/ktextbrowser.png new file mode 100644 index 000000000..b9b0a64d1 Binary files /dev/null and b/tdewidgets/pics/ktextbrowser.png differ diff --git a/tdewidgets/pics/ktextedit.png b/tdewidgets/pics/ktextedit.png new file mode 100644 index 000000000..7325b3dd1 Binary files /dev/null and b/tdewidgets/pics/ktextedit.png differ diff --git a/tdewidgets/pics/ktimewidget.png b/tdewidgets/pics/ktimewidget.png new file mode 100644 index 000000000..1b0d79afe Binary files /dev/null and b/tdewidgets/pics/ktimewidget.png differ diff --git a/tdewidgets/pics/kurlcomborequester.png b/tdewidgets/pics/kurlcomborequester.png new file mode 100644 index 000000000..f23c6bb6c Binary files /dev/null and b/tdewidgets/pics/kurlcomborequester.png differ diff --git a/tdewidgets/pics/kurllabel.png b/tdewidgets/pics/kurllabel.png new file mode 100644 index 000000000..055cdfce5 Binary files /dev/null and b/tdewidgets/pics/kurllabel.png differ diff --git a/tdewidgets/pics/kurlrequester.png b/tdewidgets/pics/kurlrequester.png new file mode 100644 index 000000000..6885167de Binary files /dev/null and b/tdewidgets/pics/kurlrequester.png differ diff --git a/tdewidgets/pics/tdeactionselector.png b/tdewidgets/pics/tdeactionselector.png new file mode 100644 index 000000000..acfdce496 Binary files /dev/null and b/tdewidgets/pics/tdeactionselector.png differ diff --git a/tdewidgets/pics/tdecmodule.png b/tdewidgets/pics/tdecmodule.png new file mode 100644 index 000000000..1a6a9dc17 Binary files /dev/null and b/tdewidgets/pics/tdecmodule.png differ diff --git a/tdewidgets/pics/tdefontcombo.png b/tdewidgets/pics/tdefontcombo.png new file mode 100644 index 000000000..87835d6ce Binary files /dev/null and b/tdewidgets/pics/tdefontcombo.png differ diff --git a/tdewidgets/pics/tdefontrequester.png b/tdewidgets/pics/tdefontrequester.png new file mode 100644 index 000000000..a01f4d692 Binary files /dev/null and b/tdewidgets/pics/tdefontrequester.png differ diff --git a/tdewidgets/pics/tdelistbox.png b/tdewidgets/pics/tdelistbox.png new file mode 100644 index 000000000..f7405b39f Binary files /dev/null and b/tdewidgets/pics/tdelistbox.png differ diff --git a/tdewidgets/pics/tdelistview.png b/tdewidgets/pics/tdelistview.png new file mode 100644 index 000000000..932d910c8 Binary files /dev/null and b/tdewidgets/pics/tdelistview.png 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) -- cgit v1.2.3