summaryrefslogtreecommitdiffstats
path: root/smoke/tde
diff options
context:
space:
mode:
Diffstat (limited to 'smoke/tde')
-rw-r--r--smoke/tde/Makefile.am24
-rw-r--r--smoke/tde/configure.in.in23
-rw-r--r--smoke/tde/generate.pl.in229
-rwxr-xr-xsmoke/tde/generate_makefile_am.pl55
-rw-r--r--smoke/tde/header_list351
-rw-r--r--smoke/tde/hint_header_list.pl23
-rw-r--r--smoke/tde/kde_header_list440
-rw-r--r--smoke/tde/qt_smoke.h9
-rw-r--r--smoke/tde/qtguess.pl.in501
9 files changed, 1655 insertions, 0 deletions
diff --git a/smoke/tde/Makefile.am b/smoke/tde/Makefile.am
new file mode 100644
index 00000000..9c85ccc1
--- /dev/null
+++ b/smoke/tde/Makefile.am
@@ -0,0 +1,24 @@
+lib_LTLIBRARIES = libsmoketde.la
+
+# set the include path for X, qt and KDE
+INCLUDES = -I$(srcdir)/.. $(all_includes)
+
+EXTRA_DIST=generate.pl.in qtguess.pl.in qt_smoke.h Makefile.am
+
+# the library search path.
+libsmoketde_la_LDFLAGS = -version-info 3:2:2 -no-undefined $(all_libraries) $(GLINC) $(KDE_RPATH)
+
+# the libraries to link against.
+libsmoketde_la_LIBADD = $(LIB_TDEHTML) -lkjs -lfontconfig $(LIB_KMDI) $(LIB_KNS) $(LIB_KSPELL) $(LIB_KUTILS) $(LIB_TDEPRINT) $(GLLIB) $(LIB_QT) $(LIB_TDEUI) $(LIB_TDECORE) $(LIB_KIO) $(LIB_KPARTS) -lDCOP -ltdefx
+
+x_sources = x_1.cpp x_2.cpp x_3.cpp x_4.cpp x_5.cpp x_6.cpp x_7.cpp \
+ x_8.cpp x_9.cpp x_10.cpp x_11.cpp x_12.cpp x_13.cpp x_14.cpp x_15.cpp \
+ x_16.cpp x_17.cpp x_18.cpp x_19.cpp x_20.cpp
+
+# which sources should be compiled for perlqtkde
+libsmoketde_la_SOURCES = $(x_sources) smokedata.cpp
+
+$(x_sources) smokedata.cpp:
+ perl generate.pl
+
+CLEANFILES = $(libsmoketde_la_SOURCES)
diff --git a/smoke/tde/configure.in.in b/smoke/tde/configure.in.in
new file mode 100644
index 00000000..7cca7173
--- /dev/null
+++ b/smoke/tde/configure.in.in
@@ -0,0 +1,23 @@
+
+AC_HAVE_GL
+KDE_HAVE_GL=yes;
+if test "X$GLLIB" = "X"; then
+ KDE_HAVE_GL=no
+fi
+
+AC_SUBST(KDE_HAVE_GL)
+
+KDE_PREFIX=`$KDECONFIG --prefix --expandvars`
+AC_SUBST(KDE_PREFIX)
+
+if test "X$kde_build_libsmoke" = "Xtde" -o "X$kde_build_libsmoke" = "Xqt tde"; then
+
+ AC_CONFIG_FILES([ smoke/tde/qtguess.pl ], [
+ cd smoke/tde
+ perl qtguess.pl
+ cd ../..
+ ])
+ AC_CONFIG_FILES([ smoke/tde/generate.pl ], [
+ ])
+fi
+
diff --git a/smoke/tde/generate.pl.in b/smoke/tde/generate.pl.in
new file mode 100644
index 00000000..1dfd3fd5
--- /dev/null
+++ b/smoke/tde/generate.pl.in
@@ -0,0 +1,229 @@
+#!/usr/bin/perl -w
+
+## Run this first, to generate the x_*.cpp files from the Qt headers
+## using kalyptus
+
+my $kalyptusdir = "@srcdir@/../../kalyptus";
+
+use File::Basename;
+use File::Copy qw|cp|;
+use File::Compare;
+use File::Find;
+use Cwd;
+
+my $here = getcwd;
+my $outdir = $here . "/generate.pl.tmpdir";
+my $finaloutdir = $here;
+my $defines = "qtdefines";
+my $headerlist = "@srcdir@/header_list";
+my $kdeheaderlist = "@srcdir@/kde_header_list";
+my $definespath = "$here/$defines";
+my $headerlistpath = "$here/$headerlist";
+my $kdeheaderlistpath = "$here/$kdeheaderlist";
+
+# If srcdir != builddir, then srcdir is probvably an absolute
+# path, and it makes no sense to prepend $here.
+$definespath = $defines if $defines =~ /^\//;
+$headerlistpath = $headerlist if $headerlist =~ /^\//;
+$kdeheaderlistpath = $kdeheaderlist if $kdeheaderlist =~ /^\//;
+
+## Note: outdir and finaloutdir should NOT be the same dir!
+
+# Delete all x_*.cpp files under outdir (or create outdir if nonexistent)
+if (-d $outdir) { system "rm -f $outdir/x_*.cpp"; } else { mkdir $outdir; }
+
+mkdir $finaloutdir unless (-d $finaloutdir);
+
+# Load the QT_NO_* macros found in "qtdefines". They'll be passed to kalyptus
+my $macros="";
+if ( -e $definespath ){
+ print "Found '$defines'. Reading preprocessor symbols from there...\n";
+ $macros = " --defines=$definespath ";
+}
+
+# Need to cd to kalyptus's directory so that perl finds Ast.pm etc.
+chdir "$kalyptusdir" or die "Couldn't go to $kalyptusdir (edit script to change dir)\n";
+
+# Find out which header files we need to parse
+# We don't want all of them - e.g. not template-based stuff
+my %excludes = (
+ 'ntqaccessible.h' => 1, # Accessibility support is not compiled by defaut
+ 'ntqassistantclient.h' => 1, # Not part of Qt (introduced in Qt-3.1)
+ 'ntqmotif.h' => 1, #
+ 'ntqmotifwidget.h' => 1, # Motif extension (introduced in Qt-3.1)
+ 'ntqmotifdialog.h' => 1, #
+ 'ntqxt.h' => 1, # Xt
+ 'ntqxtwidget.h' => 1, # Xt
+ 'ntqdns.h' => 1, # internal
+ 'ntqgl.h' => 1, # OpenGL
+ 'ntqglcolormap.h' => 1, # OpenGL
+ 'ntqnp.h' => 1, # NSPlugin
+ 'ntqttableview.h' => 1, # Not in Qt anymore...
+ 'ntqtmultilineedit.h' => 1, # Not in Qt anymore...
+ 'ntqwidgetfactory.h' => 1, # Just an interface
+ 'ntqsharedmemory.h' => 1, # "not part of the Qt API" they say
+ 'ntqwindowsstyle.h' => 1, # Qt windowsstyle, plugin
+ 'ntqmotifstyle.h' => 1,
+ 'ntqcompactstyle.h' => 1,
+ 'ntqinterlacestyle.h' => 1,
+ 'ntqmotifplusstyle.h' => 1,
+ 'ntqsgistyle.h' => 1,
+ 'ntqplatinumstyle.h' => 1,
+ 'ntqcdestyle.h' => 1,
+ 'ntqwindowsxpstyle.h' => 1 # play on the safe side
+);
+
+# Some systems have a QTDIR = TDEDIR = PREFIX
+# We need a complete list
+
+my %includes;
+open(HEADERS, $headerlistpath) or die "Couldn't open $headerlistpath: $!\n";
+map { chomp ; $includes{$_} = 1 unless /^\s*#/ } <HEADERS>;
+close HEADERS;
+
+# Find out which header files we need to parse
+# We don't want all of them - e.g. not template-based stuff
+my %kdeexcludes = (
+# These headers don't look suitable for inclusion:
+ 'kallocator.h' => 1,
+ 'kbookmarkimporter_crash.h' => 1,
+ 'kbookmarkimporter_ie.h' => 1,
+ 'kbookmarkimporter_opera.h' => 1,
+ 'kbookmarkimporter_ns.h' => 1,
+ 'kcrash.h' => 1,
+ 'kdebug.h' => 1,
+ 'kdebugclasses.h' => 1,
+ 'kde_terminal_interface.h' => 1,
+ 'kdirnotify_stub.h' => 1,
+
+# These headers currently give problems
+ 'tdescreensaver.h' => 1,
+ 'kdirnotify_stub.h' => 1,
+ 'tdeio/uiserver_stub.h' => 1,
+ 'tdeio/uiserver.h' => 1,
+ 'tdeio/tdesasl.h' => 1,
+ 'tdeio/kpac.h' => 1,
+ 'tdeio/thumbcreator.h' => 1,
+ 'tdeio/file.h' => 1,
+ 'tdeio/chmodjob.h' => 1,
+ 'tdeparts/genericfactory.h' => 1,
+ 'tdeparts/pluginselectormodule.h' => 1,
+ 'kopenssl.h' => 1,
+ 'kautomount.h' => 1,
+ 'kimagefilepreview.h' => 1,
+ 'kpropertiesdialog.h' => 1,
+ 'knotifydialog.h' => 1,
+ 'ksockaddr.h' => 1,
+ 'knotifywidgetbase.h' => 1,
+);
+
+# Some systems have a QTDIR = TDEDIR = PREFIX
+# We need a complete list
+
+my %kdeincludes;
+open(HEADERS, $kdeheaderlistpath) or die "Couldn't open $kdeheaderlistpath: $!\n";
+map { chomp ; $kdeincludes{$_} = 1 unless /^\s*#/ } <HEADERS>;
+close HEADERS;
+
+# Can we compile the OpenGl module ?
+if("@KDE_HAVE_GL@" eq "yes")
+{
+ open(DEFS, $definespath);
+ my @defs = <DEFS>;
+ close DEFS;
+ if(!grep(/QT_NO_OPENGL/, @defs))
+ {
+ $excludes{'qgl.h'} = undef;
+ $excludes{'qglcolormap.h'} = undef;
+ }
+ else
+ {
+ print STDERR "Qt was not compiled with OpenGL support...\n Skipping TQGL Classes.\n";
+ }
+}
+
+# List Qt headers, and exclude the ones listed above
+my @headers = ();
+
+$qtinc= '@qt_includes@';
+opendir (QT, $qtinc) or die "Couldn't find $qtinc";
+foreach $filename (readdir(QT)) {
+ $entry = $qtinc."/".$filename;
+ if ( ( -e $entry or -l $entry ) # A real file or a symlink
+ && ( ! -d _ ) ) # Not a symlink to a dir though
+ {
+ push(@headers, $entry)
+ if ( !defined $excludes{$filename} # Not excluded
+ && $includes{$filename} # Known header
+ && $filename =~ /\.h$/ ); # Not a backup file etc. Only headers.
+ undef $includes{$filename}
+ }
+}
+closedir QT;
+
+my @kdeheaders = ();
+$kdeprefix = "@KDE_PREFIX@";
+$kdeinc= '@kde_includes@';
+$kdeinc =~ s/\${prefix}/$kdeprefix/; # Remove ${prefix} in src != build
+-d $kdeinc or die "Couldn't process $kdeinc: $!\n";
+
+find(
+ { wanted => sub {
+ (-e || -l and !-d) and do {
+ $f = substr($_, 1 + length $kdeinc);
+ push ( @kdeheaders, $_ )
+ if( !defined $kdeexcludes{$f} # Not excluded
+ && $kdeincludes{$f} # Known header
+ && /\.h$/); # Not a backup file etc. Only headers.
+ undef $kdeincludes{$f}
+ };
+ },
+ follow_fast => 1,
+ follow_skip => 2,
+ no_chdir => 1
+ }, $kdeinc
+ );
+
+# Launch kalyptus
+system "perl kalyptus @ARGV --globspace -fsmoke --name=qt $macros --no-cache --allow_k_dcop_accessors --outputdir=$outdir @headers @kdeheaders";
+my $exit = $? >> 8;
+exit $exit if ($exit);
+
+# Generate diff for smokedata.cpp
+unless ( -e "$finaloutdir/smokedata.cpp" ) {
+ open( TOUCH, ">$finaloutdir/smokedata.cpp");
+ close TOUCH;
+}
+system "diff -u $finaloutdir/smokedata.cpp $outdir/smokedata.cpp > $outdir/smokedata.cpp.diff";
+
+# Copy changed or new files to finaloutdir
+opendir (OUT, $outdir) or die "Couldn't opendir $outdir";
+foreach $filename (readdir(OUT)) {
+ next if ( -d "$outdir/$filename" ); # only files, not dirs
+ my $docopy = 1;
+ if ( -f "$finaloutdir/$filename" ) {
+ $docopy = compare("$outdir/$filename", "$finaloutdir/$filename"); # 1 if files are differents
+ }
+ if ($docopy) {
+ #print STDERR "Updating $filename...\n";
+ cp("$outdir/$filename", "$finaloutdir/$filename");
+ }
+}
+closedir OUT;
+
+# Check for deleted files and warn
+my $deleted = 0;
+opendir(FINALOUT, $finaloutdir) or die "Couldn't opendir $finaloutdir";
+foreach $filename (readdir(FINALOUT)) {
+ next if ( -d "$finaloutdir/$filename" ); # only files, not dirs
+ if ( $filename =~ /.cpp$/ && ! ($filename =~ /_la_closure.cpp/) && ! -f "$outdir/$filename" ) {
+ print STDERR "Removing obsolete file $filename\n";
+ unlink "$finaloutdir/$filename";
+ $deleted = 1;
+ }
+}
+closedir FINALOUT;
+
+# Delete outdir
+system "rm -rf $outdir";
+
diff --git a/smoke/tde/generate_makefile_am.pl b/smoke/tde/generate_makefile_am.pl
new file mode 100755
index 00000000..03f51747
--- /dev/null
+++ b/smoke/tde/generate_makefile_am.pl
@@ -0,0 +1,55 @@
+#!/usr/bin/perl -w
+
+use File::Basename;
+
+my $here = `pwd`;
+chomp $here;
+my $outdir = $here;
+my $tempfile = "$outdir/.Makefile.am.tmpfile";
+
+# Update list of source files in $outdir/Makefile.am
+open( MAKEFILE, "<$outdir/Makefile.am" ) or die;
+my $makeFileData = '';
+my $found = 0;
+while (<MAKEFILE>) {
+ if (/^libsmokeqt_la_SOURCES/)
+ {
+ $found = 1;
+ $makeFileData .= "libsmokeqt_la_SOURCES = smokedata.cpp";
+ }
+ $makeFileData .= $_ if (!$found);
+}
+close MAKEFILE;
+
+die "libsmokeqt_la_SOURCES not found" if (!$found);
+
+open( MAKEFILE, ">$tempfile" ) or die;
+print MAKEFILE $makeFileData;
+
+my $count = 0;
+opendir (FILES, $outdir) or die;
+foreach $filename (readdir(FILES)) {
+ if ( $filename =~ /^x_.*\.cpp$/ ) {
+ if ( $count++ == 7 ) {
+ $count = 0;
+ print MAKEFILE " \\\n";
+ }
+ print MAKEFILE " $filename";
+ }
+}
+
+print MAKEFILE "\n";
+close MAKEFILE;
+closedir FILES;
+
+system "cmp -s $tempfile $outdir/Makefile.am";
+if ($? >> 8) {
+ system "cp -f $tempfile $outdir/Makefile.am";
+ print STDERR "Makefile.am updated.\n";
+}
+else {
+ print STDERR "Makefile.am unchanged.\n";
+}
+system "rm -f $tempfile";
+
+exit 0;
diff --git a/smoke/tde/header_list b/smoke/tde/header_list
new file mode 100644
index 00000000..ffa24c70
--- /dev/null
+++ b/smoke/tde/header_list
@@ -0,0 +1,351 @@
+ntq1xcompatibility.h
+ntqabstractlayout.h
+ntqaccel.h
+ntqaccessible.h
+ntqaction.h
+ntqapp.h
+ntqapplication.h
+ntqarray.h
+ntqasciicache.h
+ntqasciidict.h
+ntqassistantclient.h
+ntqasyncimageio.h
+ntqasyncio.h
+ntqbig5codec.h
+ntqbitarray.h
+ntqbitarry.h
+ntqbitmap.h
+ntqbrush.h
+ntqbttngrp.h
+ntqbuffer.h
+ntqbuttongroup.h
+ntqbutton.h
+ntqcache.h
+ntqcanvas.h
+ntqcdestyle.h
+ntqcheckbox.h
+ntqchkbox.h
+ntqcleanuphandler.h
+ntqclipboard.h
+ntqclipbrd.h
+ntqcollect.h
+ntqcollection.h
+ntqcolordialog.h
+ntqcolor.h
+ntqcombobox.h
+ntqcombo.h
+ntqcommonstyle.h
+ntqcompactstyle.h
+ntqconfig-dist.h
+ntqconfig.h
+ntqconnect.h
+ntqconnection.h
+ntqcstring.h
+ntqcursor.h
+ntqdatabrowser.h
+ntqdatastream.h
+ntqdatatable.h
+ntqdataview.h
+ntqdatetimeedit.h
+ntqdatetime.h
+ntqdatetm.h
+ntqdeepcopy.h
+ntqdesktopwidget.h
+ntqdial.h
+ntqdialog.h
+ntqdict.h
+ntqdir.h
+ntqdns.h
+ntqdockarea.h
+ntqdockwindow.h
+ntqdom.h
+ntqdragobject.h
+ntqdrawutil.h
+ntqdrawutl.h
+ntqdropsite.h
+ntqdstream.h
+ntqeditorfactory.h
+ntqerrormessage.h
+ntqeucjpcodec.h
+ntqeuckrcodec.h
+ntqevent.h
+ntqeventloop.h
+ntqfeatures.h
+ntqfiledef.h
+ntqfiledialog.h
+ntqfiledlg.h
+ntqfile.h
+ntqfileinf.h
+ntqfileinfo.h
+ntqfocusdata.h
+ntqfontdatabase.h
+ntqfontdialog.h
+ntqfontdta.h
+ntqfont.h
+ntqfontinf.h
+ntqfontinfo.h
+ntqfontmet.h
+ntqfontmetrics.h
+ntqframe.h
+ntqftp.h
+ntqgarray.h
+ntqgb18030codec.h
+ntqgbkcodec.h
+ntqgcache.h
+ntqgdict.h
+ntqgeneric.h
+ntqgif.h
+ntqglcolormap.h
+ntqgl.h
+ntqglist.h
+ntqglobal.h
+ntqgplugin.h
+ntqgrid.h
+ntqgridview.h
+ntqgroupbox.h
+ntqgrpbox.h
+ntqguardedptr.h
+ntqgvector.h
+ntqhbox.h
+ntqhbuttongroup.h
+ntqheader.h
+ntqhgroupbox.h
+ntqhostaddress.h
+ntqhttp.h
+ntqiconset.h
+ntqiconview.h
+ntqimageformatplugin.h
+ntqimage.h
+ntqinputdialog.h
+ntqintcache.h
+ntqintcach.h
+ntqintdict.h
+ntqinterlacestyle.h
+ntqiodev.h
+ntqiodevice.h
+ntqjiscodec.h
+ntqjpunicode.h
+ntqkeycode.h
+ntqkeysequence.h
+ntqlabel.h
+ntqlayout.h
+ntqlcdnumber.h
+ntqlcdnum.h
+ntqlocale.h
+ntqlibrary.h
+ntqlined.h
+ntqlineedit.h
+ntqlistbox.h
+ntqlist.h
+ntqlistview.h
+ntqlocalfs.h
+ntqmainwindow.h
+ntqmap.h
+ntqmemarray.h
+ntqmenubar.h
+ntqmenudata.h
+ntqmenudta.h
+ntqmessagebox.h
+ntqmetaobject.h
+ntqmetaobj.h
+ntqmime.h
+ntqmlined.h
+ntqmodules.h
+ntqmotifdialog.h
+ntqmotif.h
+ntqmotifplusstyle.h
+ntqmotifstyle.h
+ntqmotifwidget.h
+ntqmovie.h
+ntqmsgbox.h
+ntqmultilinedit.h
+ntqmultilineedit.h
+ntqmutex.h
+ntqnamespace.h
+ntqnetwork.h
+ntqnetworkprotocol.h
+ntqobjcoll.h
+ntqobjdefs.h
+ntqobjectcleanuphandler.h
+ntqobjectdefs.h
+ntqobjectdict.h
+ntqobject.h
+ntqobjectlist.h
+ntqpaintdc.h
+ntqpaintdevicedefs.h
+ntqpaintdevice.h
+ntqpaintdevicemetrics.h
+ntqpaintd.h
+ntqpainter.h
+ntqpair.h
+ntqpalette.h
+ntqpdevmet.h
+ntqpen.h
+ntqpicture.h
+ntqpixmapcache.h
+ntqpixmap.h
+ntqplatinumstyle.h
+ntqpmcache.h
+ntqpntarry.h
+ntqpointarray.h
+ntqpoint.h
+ntqpolygonscanner.h
+ntqpopmenu.h
+ntqpopupmenu.h
+ntqprintdialog.h
+ntqprinter.h
+ntqprndlg.h
+ntqprocess.h
+ntqprogbar.h
+ntqprogdlg.h
+ntqprogressbar.h
+ntqprogressdialog.h
+ntqpsprn.h
+ntqptrcollection.h
+ntqptrdict.h
+ntqptrlist.h
+ntqptrqueue.h
+ntqptrstack.h
+ntqptrvector.h
+ntqpushbt.h
+ntqpushbutton.h
+ntqqueue.h
+ntqradiobt.h
+ntqradiobutton.h
+ntqrangecontrol.h
+ntqrangect.h
+ntqrect.h
+ntqregexp.h
+ntqregion.h
+ntqremotefactory.h
+ntqremoteplugin.h
+ntqrtlcodec.h
+ntqscopedptr.h
+ntqscrbar.h
+ntqscrollbar.h
+ntqscrollview.h
+ntqsemaphore.h
+ntqsemimodal.h
+ntqserversocket.h
+ntqsession.h
+ntqsessionmanager.h
+ntqsettings.h
+ntqsgistyle.h
+ntqshared.h
+ntqsignal.h
+ntqsignalmapper.h
+ntqsignalslotimp.h
+ntqsimplerichtext.h
+ntqsizegrip.h
+ntqsize.h
+ntqsizepolicy.h
+ntqsjiscodec.h
+ntqslider.h
+ntqsocketdevice.h
+ntqsocket.h
+ntqsocketnotifier.h
+ntqsocknot.h
+ntqsortedlist.h
+ntqsound.h
+ntqspinbox.h
+ntqsplashscreen.h
+ntqsplitter.h
+ntqsqlcursor.h
+ntqsqldatabase.h
+ntqsqldriver.h
+ntqsqldriverplugin.h
+ntqsqleditorfactory.h
+ntqsqlerror.h
+ntqsqlfield.h
+ntqsqlform.h
+ntqsql.h
+ntqsqlindex.h
+ntqsqlpropertymap.h
+ntqsqlquery.h
+ntqsqlrecord.h
+ntqsqlresult.h
+ntqsqlselectcursor.h
+ntqstack.h
+ntqstatusbar.h
+ntqstring.h
+ntqstringlist.h
+ntqstrlist.h
+ntqstrvec.h
+ntqstylefactory.h
+ntqstyle.h
+ntqstyleplugin.h
+ntqstylesheet.h
+ntqsyntaxhighlighter.h
+ntqtabbar.h
+ntqtabdialog.h
+ntqtabdlg.h
+ntqtable.h
+ntqtabwidget.h
+ntqtextbrowser.h
+ntqtextcodecfactory.h
+ntqtextcodec.h
+ntqtextcodecplugin.h
+ntqtextedit.h
+ntqtextstream.h
+ntqtextview.h
+ntqt.h
+ntqthread.h
+ntqtimer.h
+ntqtl.h
+ntqtmultilineedit.h
+ntqtoolbar.h
+ntqtoolbutton.h
+ntqtoolbox.h
+ntqtooltip.h
+ntqtranslator.h
+ntqtsciicodec.h
+ntqtstream.h
+ntqttableview.h
+ntqurl.h
+ntqurlinfo.h
+ntqurloperator.h
+ntqutfcodec.h
+ntquuid.h
+ntqvalidator.h
+ntqvaluelist.h
+ntqvaluestack.h
+ntqvaluevector.h
+ntqvariant.h
+ntqvbox.h
+ntqvbuttongroup.h
+ntqvector.h
+ntqvgroupbox.h
+ntqwaitcondition.h
+ntqwhatsthis.h
+ntqwidcoll.h
+ntqwidgetfactory.h
+ntqwidget.h
+ntqwidgetintdict.h
+ntqwidgetlist.h
+ntqwidgetplugin.h
+ntqwidgetstack.h
+ntqwindefs.h
+ntqwindowdefs.h
+ntqwindow.h
+ntqwindowsstyle.h
+ntqwizard.h
+ntqwmatrix.h
+ntqworkspace.h
+ntqwsbeosdecoration_qws.h
+ntqwscommand_qws.h
+ntqwscursor_qws.h
+ntqwsdecoration_qws.h
+ntqwsdefaultdecoration_qws.h
+ntqwsdisplay_qws.h
+ntqwsevent_qws.h
+ntqwshydrodecoration_qws.h
+ntqwskde2decoration_qws.h
+ntqwskdedecoration_qws.h
+ntqwsmanager_qws.h
+ntqwsmouse_qws.h
+ntqwsproperty_qws.h
+ntqwsregionmanager_qws.h
+ntqwssocket_qws.h
+ntqwsutils_qws.h
+ntqwswindowsdecoration_qws.h
+ntqxml.h
diff --git a/smoke/tde/hint_header_list.pl b/smoke/tde/hint_header_list.pl
new file mode 100644
index 00000000..ff9c86b7
--- /dev/null
+++ b/smoke/tde/hint_header_list.pl
@@ -0,0 +1,23 @@
+
+# CVS admin : run this script to compare the set of Qt headers to
+# the actual content of header_list
+
+$l = "header_list";
+$q = $ENV{'QTDIR'} || die "QTDIR not set\n";
+@h = <$q/include/*.h>;
+grep s|.*/(.*\.h)|$1|, @h;
+open(IN, $l) or die "$!: $l\n";
+@old = <IN>;
+chomp @old;
+map{ $h{$_}++ } @h;
+map{ $old{$_}++ } @old;
+map{ $diff{$_}++ unless $old{$_} } keys %h;
+map{ delete $diff{$_} if /^qconfig.*/ or !/^q/ } keys %diff;
+print "Check if any of the following headers should be added to $l:\n\n";
+print join "\n", keys %diff, "\n"
+
+
+
+
+
+
diff --git a/smoke/tde/kde_header_list b/smoke/tde/kde_header_list
new file mode 100644
index 00000000..f6491c4f
--- /dev/null
+++ b/smoke/tde/kde_header_list
@@ -0,0 +1,440 @@
+dcopclient.h
+dcopobject.h
+dcopref.h
+dom/css_rule.h
+dom/css_stylesheet.h
+dom/css_value.h
+dom/dom2_events.h
+dom/dom2_range.h
+dom/dom2_traversal.h
+dom/dom2_views.h
+dom/dom_core.h
+dom/dom_doc.h
+dom/dom_element.h
+dom/dom_exception.h
+dom/dom_html.h
+dom/dom_misc.h
+dom/dom_node.h
+dom/dom_string.h
+dom/dom_text.h
+dom/dom_xml.h
+dom/html_base.h
+dom/html_block.h
+dom/html_document.h
+dom/html_element.h
+dom/html_form.h
+dom/html_head.h
+dom/html_image.h
+dom/html_inline.h
+dom/html_list.h
+dom/html_misc.h
+dom/html_object.h
+dom/html_table.h
+tdeaboutapplication.h
+tdeaboutdata.h
+tdeaboutdialog.h
+tdeabouttde.h
+tdeaccelgen.h
+tdeaccel.h
+tdeaccelmanager.h
+tdeactionclasses.h
+tdeactioncollection.h
+tdeaction.h
+tdeactionshortcutlist.h
+kactivelabel.h
+kallocator.h
+kanimwidget.h
+kapp.h
+tdeapplication.h
+karchive.h
+kar.h
+karrowbutton.h
+kasyncio.h
+kaudioplayer.h
+kauthicon.h
+kautomount.h
+kbookmarkbar.h
+kbookmarkdombuilder.h
+kbookmarkdrag.h
+kbookmarkexporter.h
+kbookmark.h
+kbookmarkimporter_crash.h
+kbookmarkimporter.h
+kbookmarkimporter_ie.h
+kbookmarkimporter_kde1.h
+kbookmarkimporter_ns.h
+kbookmarkimporter_opera.h
+kbookmarkmanager.h
+kbookmarkmenu.h
+kbookmarknotifier.h
+kbufferedio.h
+kbugreport.h
+kbuttonbox.h
+kcalendarsystemfactory.h
+kcalendarsystem.h
+kcatalogue.h
+kcharselect.h
+kcharsets.h
+kclipboard.h
+tdecmdlineargs.h
+kcmenumngr.h
+tdecmodule.h
+tdecmoduleinfo.h
+tdecmoduleloader.h
+kcmultidialog.h
+kcolorbtn.h
+kcolorbutton.h
+kcolorcombo.h
+kcolordialog.h
+kcolordlg.h
+kcolordrag.h
+kcombiview.h
+kcombobox.h
+kcommand.h
+tdecompletionbox.h
+kcompletion.h
+tdeconfigdialog.h
+tdeconfigskeleton.h
+tdeconfigbackend.h
+tdeconfigbase.h
+tdeconfigdata.h
+tdeconfig.h
+kcpuinfo.h
+kcrash.h
+kcursor.h
+kcustommenueditor.h
+kdatastream.h
+kdatatool.h
+kdatepicker.h
+kdatepik.h
+kdatetbl.h
+kdatetimewidget.h
+kdatewidget.h
+kdcopactionproxy.h
+kdcoppropertyproxy.h
+kdcopservicestarter.h
+kdebugclasses.h
+kdebug.h
+kdedmodule.h
+kdesktopfile.h
+kde_terminal_interface.h
+tdeversion.h
+kdialogbase.h
+kdialog.h
+kdirlister.h
+kdirnotify.h
+kdirnotify_stub.h
+tdediroperator.h
+kdirselectdialog.h
+kdirsize.h
+kdirwatch.h
+kdiskfreesp.h
+kdockwidget.h
+kdockwindow.h
+kdrawutil.h
+kdualcolorbtn.h
+kdualcolorbutton.h
+keditcl.h
+keditlistbox.h
+kedittoolbar.h
+tdeemailsettings.h
+kextendedsocket.h
+kextsock.h
+tdefiledetailview.h
+tdefiledialog.h
+tdefilefiltercombo.h
+tdefilefilter.h
+tdefile.h
+tdefileiconview.h
+tdefileitem.h
+tdefilemetainfo.h
+tdefilepreview.h
+tdefilesharedlg.h
+tdefileshare.h
+tdefiletreebranch.h
+tdefiletreeview.h
+tdefiletreeviewitem.h
+tdefileview.h
+kfilterbase.h
+kfilterdev.h
+kfinddialog.h
+kfind.h
+tdefontcombo.h
+tdefontdialog.h
+tdefontrequester.h
+kgenericfactory.h
+kglobalaccel.h
+tdeglobal.h
+tdeglobalsettings.h
+kguiitem.h
+khelpmenu.h
+tdehtmldefaults.h
+tdehtml_events.h
+tdehtml_part.h
+tdehtml_settings.h
+tdehtmlview.h
+kicondialog.h
+kiconeffect.h
+kiconloader.h
+kicontheme.h
+kiconview.h
+kiconviewsearchline.h
+kidna.h
+kimageeffect.h
+kimagefilepreview.h
+kimageio.h
+kinputdialog.h
+kinstance.h
+kipc.h
+kjanuswidget.h
+kkeybutton.h
+kkeydialog.h
+kkeynative.h
+klargefile.h
+kled.h
+klibloader.h
+klineeditdlg.h
+klineedit.h
+tdelistbox.h
+tdelistview.h
+tdelistviewsearchline.h
+tdelocale.h
+kmacroexpander.h
+tdemainwindow.h
+tdemainwindowiface.h
+kmanagerselection.h
+kmdcodec.h
+tdemdichildarea.h
+tdemdichildfrmcaption.h
+tdemdichildfrm.h
+tdemdichildview.h
+tdemdidefines.h
+tdemdiiterator.h
+tdemdilistiterator.h
+tdemdimainfrm.h
+tdemdinulliterator.h
+tdemditaskbar.h
+tdemditoolviewaccessor.h
+tdemenubar.h
+tdemessagebox.h
+kmimemagic.h
+kmimesourcefactory.h
+kmimetype.h
+kmimetyperesolver.h
+kmountpoint.h
+tdemultipledrag.h
+tdemultitabbar.h
+knotifyclient.h
+knotifydialog.h
+knuminput.h
+knumvalidator.h
+kopenssl.h
+kopenwith.h
+kpalette.h
+kpanelapplet.h
+kpanelappmenu.h
+kpanelextension.h
+kpanelmenu.h
+kpassdlg.h
+kpassivepopup.h
+kpixmapeffect.h
+kpixmap.h
+kpixmapio.h
+kpixmapprovider.h
+kpixmapsplitter.h
+kpluginselector.h
+kplugininfo.h
+tdepopupmenu.h
+kpreferencesdialog.h
+kpreferencesmodule.h
+kpreviewwidgetbase.h
+kprintaction.h
+kprinter.h
+tdeprint/kpreloadobject.h
+kprocctrl.h
+kprocess.h
+kprocio.h
+kprogress.h
+kpropertiesdialog.h
+kpropsdlg.h
+kprotocolinfo.h
+tdeprotocolmanager.h
+kpty.h
+kpushbutton.h
+krandomsequence.h
+tderecentdocument.h
+kregexpeditorinterface.h
+kregexp.h
+kreplacedialog.h
+kreplace.h
+krestrictedline.h
+krfcdate.h
+krootpixmap.h
+krootprop.h
+kruler.h
+krun.h
+ksavefile.h
+kscan.h
+ksconfig.h
+tdescreensaver.h
+tdescreensaver_vroot.h
+tdeselect.h
+kseparator.h
+kservicegroup.h
+kservice.h
+kservicetype.h
+ksharedpixmap.h
+ksharedptr.h
+kshellcompletion.h
+kshell.h
+tdeshortcut.h
+tdeshortcutlist.h
+kshred.h
+ksimpleconfig.h
+ksmimecrypto.h
+ksockaddr.h
+ksock.h
+ksocks.h
+ksortablevaluelist.h
+tdespelldlg.h
+tdespell.h
+ksqueezedtextlabel.h
+ksslall.h
+ksslcertchain.h
+ksslcertdlg.h
+ksslcertificatecache.h
+ksslcertificatefactory.h
+ksslcertificate.h
+ksslcertificatehome.h
+ksslconfig.h
+ksslconnectioninfo.h
+kssl.h
+ksslinfodlg.h
+ksslkeygen.h
+ksslpeerinfo.h
+ksslpemcallback.h
+ksslpkcs12.h
+ksslpkcs7.h
+ksslsession.h
+ksslsettings.h
+ksslsigners.h
+ksslutils.h
+ksslx509map.h
+ksslx509v3.h
+kstandarddirs.h
+tdestartupinfo.h
+kstaticdeleter.h
+kstatusbar.h
+tdestdaccel.h
+kstdaction.h
+kstddirs.h
+kstdguiitem.h
+kstringhandler.h
+kstringvalidator.h
+tdestyle.h
+tdesycocaentry.h
+tdesycoca.h
+tdesycocatype.h
+ksyntaxhighlighter.h
+ksystemtray.h
+ktabbar.h
+ktabctl.h
+ktabwidget.h
+ktar.h
+ktempdir.h
+tdetempfile.h
+ktextbrowser.h
+ktextedit.h
+ktimewidget.h
+ktip.h
+tdetoolbarbutton.h
+tdetoolbar.h
+tdetoolbarradiogroup.h
+ktrader.h
+ktypelist.h
+kuniqueapp.h
+kuniqueapplication.h
+kunload.h
+kurifilter.h
+kurlbar.h
+kurlcombobox.h
+kurlcompletion.h
+kurldrag.h
+kurl.h
+kurllabel.h
+kurlpixmapprovider.h
+kurlrequesterdlg.h
+kurlrequester.h
+kuserprofile.h
+kvmallocator.h
+twindowinfo.h
+twindowlistmenu.h
+twin.h
+twinmodule.h
+kwizard.h
+kwordwrap.h
+kxmessages.h
+kxmlguibuilder.h
+kxmlguiclient.h
+kxmlguifactory.h
+kxmlgui.h
+kzip.h
+tdeparts/browserextension.h
+tdeparts/browserinterface.h
+tdeparts/browserrun.h
+tdeparts/componentfactory.h
+tdeparts/dockmainwindow.h
+tdeparts/event.h
+tdeparts/factory.h
+tdeparts/genericfactory.h
+tdeparts/historyprovider.h
+tdeparts/mainwindow.h
+tdeparts/part.h
+tdeparts/partmanager.h
+tdeparts/plugin.h
+tdeparts/pluginselectormodule.h
+tdeparts/statusbarextension.h
+tdeio/authinfo.h
+tdeio/chmodjob.h
+tdeio/connection.h
+tdeio/davjob.h
+tdeio/defaultprogress.h
+tdeio/file.h
+tdeio/global.h
+tdeio/http.h
+tdeio/http_slave_defaults.h
+tdeio/ioslave_defaults.h
+tdeio/jobclasses.h
+tdeio/job.h
+tdeio/tdesasl.h
+tdeio/kmdbase.h
+tdeio/kmdcodec.h
+tdeio/kpac.h
+tdeio/metainfojob.h
+tdeio/netaccess.h
+tdeio/observer.h
+tdeio/passdlg.h
+tdeio/paste.h
+tdeio/previewjob.h
+tdeio/progressbase.h
+tdeio/renamedlg.h
+tdeio/scheduler.h
+tdeio/sessiondata.h
+tdeio/skipdlg.h
+tdeio/slavebase.h
+tdeio/slaveconfig.h
+tdeio/slave.h
+tdeio/slaveinterface.h
+tdeio/statusbarprogress.h
+tdeio/tcpslavebase.h
+tdeio/thumbcreator.h
+tdeio/uiserver.h
+tdeio/uiserver_stub.h
+netwm_def.h
+netwm.h
+knewstuff/knewstuff.h
+knewstuff/knewstuffsecure.h
+knewstuff/engine.h
+knewstuff/entry.h
+knewstuff/provider.h
+
diff --git a/smoke/tde/qt_smoke.h b/smoke/tde/qt_smoke.h
new file mode 100644
index 00000000..8859c243
--- /dev/null
+++ b/smoke/tde/qt_smoke.h
@@ -0,0 +1,9 @@
+#ifndef QT_SMOKE_H
+#define QT_SMOKE_H
+
+// Defined in smokedata.cpp, initialized by init_qt_Smoke(), used by all .cpp files
+extern Smoke* qt_Smoke;
+
+class TQGlobalSpace { };
+
+#endif
diff --git a/smoke/tde/qtguess.pl.in b/smoke/tde/qtguess.pl.in
new file mode 100644
index 00000000..89b8aa39
--- /dev/null
+++ b/smoke/tde/qtguess.pl.in
@@ -0,0 +1,501 @@
+#!/usr/bin/perl
+
+# qtguess.pl : check how Qt was compiled. Issue a list of all defined QT_NO_* macros, one per line.
+#
+# author: germain Garand <germain@ebooksfrance.com>
+# licence: GPL v.2
+
+# options: -q: be quieter
+# -o file: redirect output to "file". (default: ./qtdefines)
+# -t [0..15]: set the testing threshold (see below)
+# -f "flags": additional compiler flags/parameters
+
+use Getopt::Std;
+
+use vars qw/$opt_f $opt_o $opt_p/;
+
+getopts('qo:f:t:');
+
+# Threshold :
+# 0 - test basic Qt types/classes
+# 5 - test higher level, non-gui classes
+# 8 - test options of the above (ex: QT_NO_IMAGE_SMOOTHSCALE)
+# 10 - test basic widgets
+# 12 - test composite widgets
+# 13 - test widgets inheriting composite widgets
+# 15 - test goodies (default)
+
+my $default_threshold = @qt_test_threshold@;
+my $cc = "@CXX@";
+my $ccflags = $opt_f || "@CXXFLAGS@";
+
+my $nspaces = 50;
+
+my %qtdefs=();
+my %qtundefs=();
+
+my $tmp = gettmpfile();
+my $qtinc = '@qt_includes@';
+my $allinc = '@all_includes@';
+my $alllib = '@all_libraries@';
+my $qtflags ='@LIB_QT@';
+my %x;
+$x{'LIBPNG'} = '@LIBPNG@';
+$x{'LIBJPEG'} = '@LIBJPEG@';
+$x{'LIBSM'} = '@LIBSM@';
+$x{'LIBSOCKET'} = '@LIBSOCKET@';
+$x{'LIBDL'} = '@LIBDL@';
+$x{'LIBRESOLV'} = '@LIBRESOLV@';
+$x{'LIB_X11'} = '@LIB_X11@';
+$x{'X_PRE_LIBS'} = '@X_PRE_LIBS@';
+$x{'LIB_X11'} =~ s/\$\((.*?)\)/$x{$1}/g;
+
+$qtflags =~ s/\$\((.*?)\)/$x{$1}/g;
+
+ -e "$qtinc/qglobal.h" or die "Invalid Qt directory.\n";
+
+my $ccmd = "$cc $ccflags $allinc $alllib -o $tmp $tmp.cpp $qtflags";
+
+my $threshold = defined($opt_t)?$opt_t : $default_threshold;
+$threshold >= 0 or die "invalid testing threshold: $threshold\n";
+
+print "Checking how Qt was built... \n";
+print "Threshold is set to $threshold\n" unless $opt_q;
+
+my($count, $used, $total);
+map{ $tests{$_}->[2]>=$threshold ? ($used++, $total++):$total++ } keys %tests;
+
+print "Number of defines to be tested : $used/$total\n\n" unless $opt_q;
+open( TQTDEFS, ">".($opt_o || "qtdefines") ) or die "Can't open output file: $!\n";
+
+grab_qglobal_symbols();
+preliminary_test();
+perform_all_tests();
+
+print +scalar(keys %qtdefs) . " defines found.\n";
+
+print TQTDEFS join("\n", keys %qtdefs), "\n";
+close;
+
+#--------------------------------------------------------------#
+
+sub gettmpfile
+{
+ my $tmpdir = $ENV{'TMP'} || ".";
+ my $tmpname = $$."-qtguess";
+ while( -e "$tmpdir/$tmpname" || -e "$tmpdir/${tmpname}.cpp" )
+ {
+ $tmpname .= int (rand * 9);
+ }
+ return "$tmpdir/$tmpname";
+}
+
+#--------------------------------------------------------------#
+
+sub grab_qglobal_symbols
+{
+ my $cmd = "$cc -E -D__cplusplus -dM -I$qtinc $qtinc/qglobal.h 2>/dev/null";
+ my $symbols = `$cmd`;
+ for(0..1)
+ {
+ if( check_exit_status($?) )
+ {
+ while( $symbols =~/^#\s*define\s*(QT_\S+)\s*$/gm )
+ {
+ $qtdefs{$1} = 1;
+ }
+ print "Found ". scalar( keys %qtdefs )." predefined symbol".((scalar( keys %qtdefs ) -1)?"s":"")." in qglobal.h\n" unless ($opt_q or !(keys %qtdefs));
+ while( $symbols =~/^#\s*define\s*TQT_MODULE_(\S+)\s*$/gm )
+ {
+ $qtundefs{"QT_NO_$1"} = 1;
+ }
+ print "Found ". scalar( keys %qtundefs )." undefined symbol".((scalar( keys %qtundefs ) -1)?"s":"")." in qglobal.h\n" unless ($opt_q or !(keys %qtundefs));
+ last;
+ }
+ elsif(! $_) # first try
+ {
+ print "Failed to run $cmd.\nTrying without __cplusplus (might be already defined)\n";
+ $cmd = "$cc -E -dM -I$qtinc $qtinc/qglobal.h 2>/dev/null";
+ $symbols = `$cmd`;
+ next;
+ }
+ }
+}
+
+#--------------------------------------------------------------#
+
+sub preliminary_test
+{
+ my $msg = "Trying to compile and link a small program...";
+ print $msg, " " x ($nspaces - length($msg) + 8);
+ open( OUT, ">${tmp}.cpp" ) or die "Failed to open temp file ${tmp}.cpp: $!\n";
+ my $simple=q�
+ #include <qapplication.h>
+ int main( int argc, char **argv )
+ {
+ TQApplication foo( argc, argv );
+ return 0;
+ }
+ �;
+ print OUT $simple;
+ close OUT;
+ my $out = `$ccmd 2>&1`;
+ if( !check_exit_status($?) )
+ {
+ die <<"EOF";
+
+FAILED : check your configuration.
+Failed program was:
+$simple
+Compiled with:
+$ccmd
+Compiler output:
+$out
+EOF
+ }
+ else
+ {
+ print "OK\n";
+ }
+}
+
+#--------------------------------------------------------------#
+
+sub perform_all_tests
+{
+ foreach ( sort { $tests{$a}->[2] <=> $tests{$b}->[2]} keys %tests)
+ {
+ $tests{$_}->[2] < $threshold and next;
+ ($qtdefs{$_} || $qtundefs{$_}) and do
+ {
+ print "\rSkipping $_ (in qglobal.h)".( " " x (($nspaces-16) - length($_)) ).($qtundefs{$_}?"*Undefined*":" [Defined]").($opt_q?"":"\n");
+ next
+ };
+ print "\rTesting $_".( " " x ($nspaces - length($_)) );
+ open( OUT, ">${tmp}.cpp" ) or die "Failed to open temp file ${tmp}.cpp: $!\n";
+ foreach $def(keys %qtdefs)
+ {
+ print OUT "#define $def\n";
+ }
+ foreach $inc(split /,\s*/, $tests{$_}->[0])
+ {
+ print OUT "#include <$inc>\n";
+ }
+ print OUT "#include <qfeatures.h>\n";
+ print OUT $tests{$_}->[3] if $tests{$_}->[3]; # need to define some classes ?
+ print OUT qq�
+
+ int main( int argc, char **argv )
+ {
+ $tests{$_}->[1]
+ return 0;
+ }
+ �;
+ close OUT;
+
+ my $out = `$ccmd 2>&1`;
+
+ my $ok = check_exit_status($?);
+ if( !$ok )
+ {
+ $qtdefs{$_} = 1;
+ }
+ print +$opt_q ? ++$count."/$used" : ( $ok ? "*Undefined*\n" : " [Defined]\n" );
+ }
+ $opt_q && print "\n";
+}
+
+#--------------------------------------------------------------#
+
+sub check_exit_status
+{
+ my $a = 0xFFFF & shift;
+ if( !$a )
+ {
+ return 1;
+ }
+ elsif( $a == 0xFF00 )
+ {
+ die "\nSystem call failed: $!\n";
+ }
+ elsif( $a > 0x80 )
+ {
+ # non-zero status.
+ }
+ else
+ {
+ if( $a & 0x80 )
+ {
+ die "\n$cc coredumped with signal ". ($a & ~0x80);
+ }
+ die "\n$cc interrupted by signal $a\n";
+ }
+ return 0;
+}
+
+#--------------------------------------------------------------#
+
+END
+{
+ unlink $tmp if -e $tmp;
+ unlink "${tmp}.cpp" if -e "${tmp}.cpp";
+}
+
+#--------------------------------------------------------------#
+
+BEGIN {
+
+# "DEFINE" => ["header-1.h,... header-n.h", "main() code", priority, "Definitions (if needed)"]
+
+our %tests = (
+ "QT_NO_ACCEL" => ["qaccel.h", "TQAccel foo( (TQWidget*)NULL );", 5],
+ "QT_NO_ACTION" => ["qaction.h", "TQAction foo( (TQObject*)NULL );", 5],
+ "QT_NO_ASYNC_IO" => ["qasyncio.h", "TQAsyncIO foo();", 5],
+ "QT_NO_ASYNC_IMAGE_IO"=> ["qasyncimageio.h", "TQImageDecoder foo( (TQImageConsumer*) NULL );", 5],
+ "QT_NO_BIG_CODECS" => ["qbig5codec.h", "TQBig5Codec foo();", 5],
+ "QT_NO_BUTTON" => ["qbutton.h", "TQButton foo( (TQWidget*)NULL );", 10],
+ "QT_NO_BUTTONGROUP" => ["qbuttongroup.h", "TQButtonGroup foo( (TQWidget*)NULL );", 12],
+ "QT_NO_CANVAS" => ["qcanvas.h", "TQCanvas foo( (TQObject*)NULL );", 10],
+ "QT_NO_CHECKBOX" => ["qcheckbox.h", "TQCheckBox( (TQWidget*)NULL );", 10],
+ "QT_NO_CLIPBOARD" => ["qapplication.h, qclipboard.h", q�
+ TQApplication foo( argc, argv );
+ TQClipboard *baz= foo.clipboard();
+ �, 5],
+ "QT_NO_COLORDIALOG" => ["qcolordialog.h", "TQColorDialog::customCount();", 12],
+ "QT_NO_COMBOBOX" => ["qcombobox.h", "TQComboBox( (TQWidget*)NULL );", 10],
+ "QT_NO_COMPAT" => ["qfontmetrics.h", q�
+ TQFontMetrics *foo= new TQFontMetrics( TQFont() );
+ int bar = foo->width( 'c' );
+ �, 0],
+ "QT_NO_COMPONENT" => ["qapplication.h", q�
+ TQApplication foo( argc, argv );
+ foo.addLibraryPath( TQString::null );
+ �, 5],
+ "QT_NO_CURSOR" => ["qcursor.h", "TQCursor foo;", 5],
+ "QT_NO_DATASTREAM" => ["qdatastream.h", "TQDataStream foo;", 5],
+ "QT_NO_DATETIMEEDIT" => ["qdatetimeedit.h", "TQTimeEdit foo;", 12],
+ "QT_NO_DIAL" => ["qdial.h", "TQDial foo;", 10],
+ "QT_NO_DIALOG" => ["qdialog.h", "TQDialog foo;", 12],
+ "QT_NO_DIR" => ["qdir.h", "TQDir foo;", 5],
+ "QT_NO_DNS" => ["qdns.h", "TQDns foo;", 5],
+ "QT_NO_DOM" => ["qdom.h", "TQDomDocumentType foo;", 5],
+ "QT_NO_DRAGANDDROP" => ["qevent.h", "TQDropEvent foo( TQPoint(1,1) );", 5],
+ "QT_NO_DRAWUTIL" => ["qdrawutil.h, qcolor.h", "qDrawPlainRect( (TQPainter *) NULL, 0, 0, 0, 0, TQColor() );", 10],
+ "QT_NO_ERRORMESSAGE" => ["qerrormessage.h", "TQErrorMessage foo( (TQWidget*) NULL );", 13],
+ "QT_NO_FILEDIALOG" => ["qfiledialog.h", "TQFileIconProvider foo;", 13],
+
+ "QT_NO_FONTDATABASE" => ["qfontdatabase.h", "TQFontDatabase foo;", 5],
+ "QT_NO_FONTDIALOG" => ["qfontdialog.h", "TQFontDialog::getFont( (bool *)NULL );", 12],
+ "QT_NO_FRAME" => ["qframe.h", "TQFrame foo;", 10],
+ "QT_NO_GRID" => ["qgrid.h", "TQGrid foo(5);", 12],
+ "QT_NO_GRIDVIEW" => ["qgridview.h", "TQFoo foo;", 13, q�
+ class TQFoo: public TQGridView
+ {
+ public:
+ TQFoo(){};
+ ~TQFoo(){};
+ void paintCell(TQPainter *, int, int){};
+ };
+ �],
+ "QT_NO_GROUPBOX" => ["qgroupbox.h", "TQGroupBox foo;", 12],
+ "QT_NO_HBOX" => ["qhbox.h", "TQHBox foo;", 12],
+ "QT_NO_HBUTTONGROUP" => ["qhbuttongroup.h", "TQHButtonGroup foo;", 13],
+ "QT_NO_HEADER" => ["qheader.h", "TQHeader foo;", 10],
+ "QT_NO_HGROUPBOX" => ["qhgroupbox.h", "TQHGroupBox foo;", 13],
+ "QT_NO_ICONSET" => ["qiconset.h", "TQIconSet foo;", 8],
+
+ "QT_NO_ICONVIEW" => ["qiconview.h", "TQIconView foo;", 13],
+ "QT_NO_IMAGEFORMATPLUGIN" => ["qimageformatplugin.h, qstringlist.h", "TQFoo foo;", 5, q�
+
+ class TQFoo: public TQImageFormatPlugin
+ {
+ public:
+ TQFoo() {};
+ ~TQFoo() {};
+ TQStringList keys() const { return TQStringList(); };
+ bool installIOHandler( const TQString &format ) { return true; };
+ };
+ Q_EXPORT_PLUGIN( TQFoo )
+ �],
+ "QT_NO_IMAGE_DITHER_TO_1" => ["qimage.h", q�
+ TQImage *foo = new TQImage;
+ foo->createAlphaMask();
+ �, 8],
+ "QT_NO_IMAGE_HEURISTIC_MASK" => ["qimage.h", q�
+ TQImage *foo = new TQImage;
+ foo->createHeuristicMask();
+ �, 8],
+ "QT_NO_IMAGE_MIRROR" => ["qimage.h", q�
+ TQImage *foo = new TQImage;
+ foo->mirror();
+ �, 8],
+ "QT_NO_IMAGE_SMOOTHSCALE" => ["qimage.h", q�
+ TQImage *foo = new TQImage;
+ foo->smoothScale( 10, 10);
+ �, 8],
+ "QT_NO_IMAGE_TEXT" => ["qimage.h", "TQImageTextKeyLang foo;", 8],
+ "QT_NO_IMAGE_TRANSFORMATION" => ["qimage.h", q�
+ TQImage *foo = new TQImage;
+ foo->scale( 10, 10);
+ �, 8],
+ "QT_NO_IMAGE_TRUECOLOR" => ["qimage.h", q�
+ TQImage *foo = new TQImage;
+ foo->convertDepthWithPalette( 1, (TQRgb*) NULL, 1 );
+ �, 8],
+ "QT_NO_INPUTDIALOG" => ["qinputdialog.h, qstring.h", q�QInputDialog::getText( TQString::null, TQString::null);�, 13],
+ "QT_NO_IMAGEIO" => ["qbitmap.h, qstring.h", q�
+ TQBitmap foo( TQString::fromLatin1("foobar") );
+ �, 5],
+ "QT_NO_IMAGEIO_JPEG" => ["qjpegio.h", "qInitJpegIO();", 8],
+ "QT_NO_IMAGEIO_MNG" => ["qmngio.h", "qInitMngIO();", 8],
+ "QT_NO_IMAGEIO_PNG" => ["qpngio.h", "qInitPngIO();", 8],
+ "QT_NO_LABEL" => ["qlabel.h", "TQLabel foo( (TQWidget*) NULL );", 10],
+ "QT_NO_LAYOUT" => ["qlayout.h", "TQFoo foo;", 10, q�
+
+ class TQFoo: public TQLayout
+ {
+ public:
+ TQFoo() {};
+ ~TQFoo() {};
+ void addItem( TQLayoutItem * ) { };
+ TQSize sizeHint() const { return TQSize(); }
+ TQLayoutIterator iterator() { return TQLayoutIterator( (TQGLayoutIterator *) NULL ); };
+ void setGeometry( const TQRect & ) { };
+ };
+ �],
+ "QT_NO_LCDNUMBER" => ["qlcdnumber.h", "TQLCDNumber foo;", 12],
+ "QT_NO_LINEEDIT" => ["qlineedit.h", "TQLineEdit foo( (TQWidget *) NULL );", 12],
+ "QT_NO_LISTBOX" => ["qlistbox.h", "TQListBox foo;", 13],
+ "QT_NO_LISTVIEW" => ["qlistview.h", "TQListView foo;", 13],
+ "QT_NO_MAINWINDOW" => ["qmainwindow.h", "TQMainWindow foo;", 13],
+ "QT_NO_MENUBAR" => ["qmenubar.h", "TQMenuBar foo;", 13],
+ "QT_NO_MOVIE" => ["qmovie.h", "TQMovie foo;", 5],
+ "QT_NO_MENUDATA" => ["qmenudata.h", "TQMenuData foo;", 9],
+ "QT_NO_MESSAGEBOX" => ["qmessagebox.h", "TQMessageBox foo;", 13],
+ "QT_NO_MIME" => ["qmime.h", "TQMimeSourceFactory foo;", 5],
+ "QT_NO_MIMECLIPBOARD" => ["qapplication.h, qclipboard.h", q�
+ TQApplication foo( argc, argv );
+ TQClipboard *baz= foo.clipboard();
+ baz->data();
+ �, 8],
+
+ "QT_NO_MULTILINEEDIT" => ["qmultilineedit.h", "TQMultiLineEdit foo;", 14],
+ "QT_NO_NETWORK" => ["qnetwork.h", "qInitNetworkProtocols();", 5],
+ "QT_NO_NETWORKPROTOCOL" => ["qnetworkprotocol.h", "TQNetworkProtocol foo;", 8],
+ "QT_NO_NETWORKPROTOCOL_FTP" => ["qftp.h", "TQFtp foo;", 9],
+ "QT_NO_PALETTE" => ["qpalette.h", "TQColorGroup foo;", 5],
+ "QT_NO_PICTURE" => ["qpicture.h", "TQPicture foo;", 5],
+ "QT_NO_PIXMAP_TRANSFORMATION" =>["qbitmap.h, qwmatrix.h", q�
+ TQBitmap *foo= new TQBitmap();
+ TQWMatrix bar;
+ foo->xForm( bar );
+ �, 5],
+ "QT_NO_POPUPMENU" => ["qpopupmenu.h", "TQPopupMenu foo;", 12],
+ "QT_NO_PRINTER" => ["qprinter.h", "TQPrinter foo;", 5],
+ "QT_NO_PRINTDIALOG" => ["qprintdialog.h", "TQPrintDialog foo( (TQPrinter*) NULL );", 13],
+ "QT_NO_PROCESS" => ["qprocess.h", "TQProcess foo;", 5],
+ "QT_NO_PROGRESSBAR" => ["qprogressbar.h", "TQProgressBar foo;", 12],
+ "QT_NO_PROGRESSDIALOG" => ["qprogressdialog.h", "TQProgressDialog foo;", 13],
+ "QT_NO_PUSHBUTTON" => ["qpushbutton.h", "TQPushButton foo( (TQWidget *) NULL );", 12],
+ "QT_NO_PROPERTIES" => ["qmetaobject.h", "TQMetaProperty foo;", 0],
+# "QT_NO_QTMULTILINEEDIT" => ["qtmultilineedit.h", "QtMultiLineEdit foo;", 15],
+# "QT_NO_QTTABLEVIEW" => ["qttableview.h", "TQFoo foo;", 16, q�
+# class TQFoo: public QtTableView
+# {
+# public:
+# TQFoo() {};
+# ~TQFoo() {};
+# void paintCell( TQPainter *, int, int) {};
+# };
+# �],
+ "QT_NO_QUUID_STRING" => ["quuid.h", "TQUuid foo( TQString::null );", 8],
+ "QT_NO_RANGECONTROL" => ["qrangecontrol.h", "TQRangeControl foo;", 10],
+ "QT_NO_REGEXP" => ["qregexp.h", "TQRegExp foo;", 5],
+ "QT_NO_REGEXP_WILDCARD" => ["qregexp.h", q�
+ TQRegExp foo;
+ foo.wildcard();
+ �, 8],
+ "QT_NO_REMOTE" => ["qapplication.h", q�
+ TQApplication foo( argc, argv );
+ foo.remoteControlEnabled();
+ �, 15],
+ "QT_NO_RADIOBUTTON" => ["qradiobutton.h", "TQRadioButton foo( (TQWidget *) NULL );", 12],
+ "QT_NO_RICHTEXT" => ["qsimplerichtext.h, qstring.h, qfont.h", "TQSimpleRichText foo( TQString::null, TQFont() );", 10],
+ "QT_NO_SCROLLBAR" => ["qscrollbar.h", "TQScrollBar foo( (TQWidget *) NULL );", 12],
+ "QT_NO_SCROLLVIEW" => ["qscrollview.h", "TQScrollView foo;", 12],
+ "QT_NO_SEMIMODAL" => ["qsemimodal.h", "TQSemiModal foo;", 10],
+ "QT_NO_SESSIONMANAGER" => ["qapplication.h", q�
+ TQApplication foo( argc, argv );
+ foo.sessionId();
+ �, 15],
+ "QT_NO_SETTINGS" => ["qsettings.h", "TQSettings foo;", 5],
+ "QT_NO_SIGNALMAPPER" => ["qsignalmapper.h", "TQSignalMapper foo( (TQObject *) NULL );", 0],
+ "QT_NO_SIZEGRIP" => ["qsizegrip.h", "TQSizeGrip foo( (TQWidget *) NULL );", 10],
+ "QT_NO_SLIDER" => ["qslider.h", "TQSlider foo( (TQWidget *) NULL );", 12],
+ "QT_NO_SOUND" => ["qsound.h", "TQSound foo( TQString::null );", 5],
+
+
+ "QT_NO_SPINWIDGET" => ["qrangecontrol.h", "TQSpinWidget foo;", 10],
+ "QT_NO_SPRINTF" => ["qcolor.h", q�
+ TQColor foo;
+ foo.name();
+ �, 0],
+
+
+
+ "QT_NO_SQL" => ["qsqlcursor.h", "TQSqlCursor foo;", 5],
+ "QT_NO_STRINGLIST" => ["qstringlist.h", "TQStringList foo;", 0],
+ "QT_NO_STYLE" => ["qapplication.h", q�
+ TQApplication foo( argc, argv );
+ foo.style();
+ �, 15],
+
+# "QT_NO_STYLE_CDE" => ["qcdestyle.h", "TQCDEStyle foo;", 16],
+# "QT_NO_STYLE_COMPACT" => ["qcompactstyle.h", "TQCompactStyle foo;", 16],
+# "QT_NO_STYLE_INTERLACE" => ["qinterlacestyle.h", "TQInterlaceStyle foo;", 16],
+# "QT_NO_STYLE_PLATINUM" => ["qplatinumstyle.h", "TQPlatinumStyle foo;", 16],
+# "QT_NO_STYLE_MOTIF" => ["qmotifstyle.h", "TQMotifStyle foo;", 16],
+# "QT_NO_STYLE_MOTIFPLUS" => ["qmotifplusstyle.h", "TQMotifPlusStyle foo;", 16],
+# "QT_NO_STYLE_SGI" => ["qsgistyle.h", "TQSGIStyle foo;", 16],
+# "QT_NO_STYLE_WINDOWS" => ["qwindowsstyle.h", "TQWindowsStyle foo;", 16],
+ "QT_NO_TABBAR" => ["qtabbar.h", "TQTabBar foo;", 10],
+ "QT_NO_TABDIALOG" => ["qtabdialog.h", "TQTabDialog foo;", 12],
+ "QT_NO_TABLE" => ["qtable.h", "TQTable foo;", 10],
+ "QT_NO_TABWIDGET" => ["qtabwidget.h", "TQTabWidget foo;", 10],
+ "QT_NO_TEXTBROWSER" => ["qtextbrowser.h", "TQTextBrowser foo;", 14],
+ "QT_NO_TEXTCODEC" => ["qtextcodec.h", "TQTextCodec::codecForIndex(1);", 5],
+ "QT_NO_TEXTCODECPLUGIN" => ["qtextcodecplugin.h, qstringlist.h, qvaluelist.h, qtextcodec.h", "TQFoo foo;", 6, q�
+
+ class TQFoo: public TQTextCodecPlugin
+ {
+ public:
+ TQFoo() {};
+ ~TQFoo() {};
+ TQStringList names() const {return TQStringList();}
+ TQValueList<int>mibEnums() const {return TQValueList<int>();}
+ TQTextCodec *createForName( const TQString & name ) {return (TQTextCodec *)NULL;}
+ TQTextCodec *createForMib( int mib ) {return (TQTextCodec *)NULL;}
+ };
+ Q_EXPORT_PLUGIN( TQFoo )
+ �],
+ "QT_NO_TEXTEDIT" => ["qtextedit.h", "TQTextEdit foo;", 13],
+ "QT_NO_TEXTSTREAM" => ["qtextstream.h", "TQTextStream foo;", 5],
+ "QT_NO_TEXTVIEW" => ["qtextview.h", "TQTextView foo;", 14], #Obsolete
+ "QT_NO_TOOLBAR" => ["qtoolbar.h", "TQToolBar foo;", 10],
+ "QT_NO_TOOLBUTTON" => ["qtoolbutton.h", "TQToolButton foo((TQWidget *) NULL );", 12],
+ "QT_NO_TOOLTIP" => ["qtooltip.h", "TQToolTip::hide();", 10],
+
+ "QT_NO_TRANSFORMATIONS" => ["qpainter.h", q�
+ TQPainter *foo= new TQPainter();
+ foo->setViewXForm( true );�, 5],
+ "QT_NO_VARIANT" => ["qvariant.h", "TQVariant foo;", 0],
+ "QT_NO_WHATSTHIS" => ["qwhatsthis.h", "TQWhatsThis::inWhatsThisMode();", 10],
+ "QT_NO_WHEELEVENT" => ["qevent.h", "TQWheelEvent foo( TQPoint(1,1), 1, 1 );", 5],
+ "QT_NO_WIDGET_TOPEXTRA" => ["qwidget.h", "TQWidget foo; foo.caption();", 9],
+ "QT_NO_WIDGETSTACK" => ["qwidgetstack.h", "TQWidgetStack foo;", 13],
+ "QT_NO_WIZARD" => ["qwizard.h", "TQWizard foo;", 13],
+ "QT_NO_WMATRIX" => ["qwmatrix.h", "TQWMatrix foo;", 0],
+ "QT_NO_XML" => ["qxml.h", "TQXmlNamespaceSupport foo;", 5],
+ );
+
+}