From 10308be19ef7fa44699562cc75946e7ea1fdf6b9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 7 Jan 2011 03:45:53 +0000 Subject: Revert automated changes Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdoctools/configure.in.in | 4 +- kdoctools/kio_help.cpp | 36 +-- kdoctools/kio_help.h | 2 +- kdoctools/meinproc.cpp | 12 +- kdoctools/template.docbook | 630 ++++++++++++++++++++++++++++++++++++++------- kdoctools/xslt.cpp | 20 +- kdoctools/xslt.h | 2 +- 7 files changed, 577 insertions(+), 129 deletions(-) (limited to 'kdoctools') diff --git a/kdoctools/configure.in.in b/kdoctools/configure.in.in index 6794a635a..2fcb7b75a 100644 --- a/kdoctools/configure.in.in +++ b/kdoctools/configure.in.in @@ -3,7 +3,7 @@ HELP_SUBDIR=kdoctools KDE_FIND_PATH(xml2-config, XML_CONFIG, [${prefix}/bin ${exec_prefix}/bin], [ - AC_MSG_WARN([Could not tqfind libxml2 anywhere, check ftp://xmlsoft.org/ for libxml >= 2.4.8. (we also keep a version of it in kdesupport for CVS users' convience)]) + AC_MSG_WARN([Could not find libxml2 anywhere, check ftp://xmlsoft.org/ for libxml >= 2.4.8. (we also keep a version of it in kdesupport for CVS users' convience)]) HELP_SUBDIR= ]) @@ -35,7 +35,7 @@ fi if test -n "$HELP_SUBDIR"; then KDE_FIND_PATH(xslt-config, XSLT_CONFIG, [${prefix}/bin ${exec_prefix}/bin], [ - AC_MSG_WARN([Could not tqfind libxslt anywhere, check ftp://xmlsoft.org/ for libxslt >= 1.0.7. (we also keep a version of it in kdesupport for CVS users' convience)]) + AC_MSG_WARN([Could not find libxslt anywhere, check ftp://xmlsoft.org/ for libxslt >= 1.0.7. (we also keep a version of it in kdesupport for CVS users' convience)]) HELP_SUBDIR= ]) diff --git a/kdoctools/kio_help.cpp b/kdoctools/kio_help.cpp index 7af5919ff..292c4de13 100644 --- a/kdoctools/kio_help.cpp +++ b/kdoctools/kio_help.cpp @@ -75,7 +75,7 @@ TQString HelpProtocol::langLookup(const TQString& fname) if ( ( *it ).right( 5 ) == ".html" ) { - TQString file = (*it).left((*it).tqfindRev('/')) + "/index.docbook"; + TQString file = (*it).left((*it).findRev('/')) + "/index.docbook"; kdDebug( 7119 ) << "Looking for help in: " << file << endl; info.setFile(file); if (info.exists() && info.isFile() && info.isReadable()) @@ -112,7 +112,7 @@ TQString HelpProtocol::lookupFile(const TQString &fname, } else { - tqunicodeError( i18n("There is no documentation available for %1." ).arg(path) ); + unicodeError( i18n("There is no documentation available for %1." ).arg(path) ); finished(); return TQString::null; } @@ -123,7 +123,7 @@ TQString HelpProtocol::lookupFile(const TQString &fname, } -void HelpProtocol::tqunicodeError( const TQString &t ) +void HelpProtocol::unicodeError( const TQString &t ) { data(fromUnicode( TQString( "\n" @@ -189,7 +189,7 @@ void HelpProtocol::get( const KURL& url ) return; } } else { - TQString docbook_file = file.left(file.tqfindRev('/')) + "/index.docbook"; + TQString docbook_file = file.left(file.findRev('/')) + "/index.docbook"; if (!KStandardDirs::exists(file)) { file = docbook_file; } else { @@ -215,13 +215,13 @@ void HelpProtocol::get( const KURL& url ) kdDebug( 7119 ) << "parsed " << mParsed.length() << endl; if (mParsed.isEmpty()) { - tqunicodeError( i18n( "The requested help file could not be parsed:
%1" ).arg( file ) ); + unicodeError( i18n( "The requested help file could not be parsed:
%1" ).arg( file ) ); } else { - int pos1 = mParsed.tqfind( "charset=" ); + int pos1 = mParsed.find( "charset=" ); if ( pos1 > 0 ) { - int pos2 = mParsed.tqfind( '"', pos1 ); + int pos2 = mParsed.find( '"', pos1 ); if ( pos2 > 0 ) { - mParsed.tqreplace( pos1, pos2 - pos1, "charset=UTF-8" ); + mParsed.replace( pos1, pos2 - pos1, "charset=UTF-8" ); } } data( mParsed.utf8() ); @@ -248,11 +248,11 @@ void HelpProtocol::get( const KURL& url ) kdDebug( 7119 ) << "parsed " << mParsed.length() << endl; if (mParsed.isEmpty()) { - tqunicodeError( i18n( "The requested help file could not be parsed:
%1" ).arg( file ) ); + unicodeError( i18n( "The requested help file could not be parsed:
%1" ).arg( file ) ); } else { TQString query = url.query(), anchor; - // if we have a query, look if it tqcontains an anchor + // if we have a query, look if it contains an anchor if (!query.isEmpty()) if (query.left(8) == "?anchor=") { anchor = query.mid(8).lower(); @@ -274,7 +274,7 @@ void HelpProtocol::get( const KURL& url ) { int index = 0; while ( true ) { - index = mParsed.tqfind( TQRegExp( "" ).arg( anchor ) ) { - index = mParsed.tqfindRev( " + + + + + + + - - -KDE User's Manual - - - + + + +The &kmyapplication; Handbook + + + + + +George +N. +Ugnacious -
- -K Desktop Environment -
+gnu@kde.org + + + + + + +2002 +George N. Ugnacious + + + +&FDLNotice; + + + +2003-01-10 +1.01.00 + + + + + +&kmyapplication; is an application specially designed to do nothing you would +ever want. + + + + + + +KDE +kdeutils +Kapp +nothing +nothing else + + + + + + + +Introduction + + + + +&kmyapplication; is a program that lets you do absolutely nothing. Please report +any problems or feature requests to the &kde; mailing lists. + + + + +Using &kmyapplication; + + + + + + + +Here's a screenshot of &kmyapplication; + + + + + + + + + Screenshot + + + + + + + +More &kmyapplication; features + +It slices! It dices! and it comes with a free toaster! + +The Squiggle Tool + + + + + + + + Squiggle + + is used to draw squiggly lines all over +the &kmyapplication; main window. It's not a bug, it's a feature! + + + + + + +Command Reference + + + + +The main &kmyapplication; window + + +The File Menu + + + + + +&Ctrl;N + +File +New + +Creates a new document + + + + +&Ctrl;S + +File +Save + +Saves the document + + + + +&Ctrl;Q + +File +Quit + +Quits &kmyapplication; + + + + + + + +The <guimenu>Help</guimenu> Menu + + + + + + +&help.menu.documentation; + + + + + + + +Developer's Guide to &kmyapplication; + + + + +Programming &kmyapplication; plugins is a joy to behold. Just read through the next +66 pages of API's to learn how! + + + + + - - +XtUnmanageChildren +Xt - Geometry Management - - - - +XtUnmanageChildren + +remove a list of children from a parent widget's managed +list. +widgetsremoving +XtUnmanageChildren + + - - - - -KDE Generic Options -Qt Generic Options - - - - -Description - - - + +4 March 1996 + + +void XtUnmanageChildren(children, num_children) + WidgetList children; + Cardinal num_children; + - -Options -App options, in a variablelist + +Inputs + + +children + + +Specifies an array of child widgets. Each child must be of +class RectObj or any subclass thereof. + + + + +num_children + + +Specifies the number of elements in children. + + + + + + +Description + +XtUnmanageChildren() unmaps the specified widgets +and removes them from their parent's geometry management. +The widgets will disappear from the screen, and (depending +on its parent) may no longer have screen space allocated for +them. + +Each of the widgets in the children array must have +the same parent. + +See the “Algorithm” section below for full details of the +widget unmanagement procedure. + - + +Usage +Unmanaging widgets is the usual method for temporarily +making them invisible. They can be re-managed with +XtManageChildren(). + +You can unmap a widget, but leave it under geometry +management by calling XtUnmapWidget(). You can +destroy a widget's window without destroying the widget by +calling XtUnrealizeWidget(). You can destroy a +widget completely with XtDestroyWidget(). + +If you are only going to unmanage a single widget, it is +more convenient to call XtUnmanageChild(). It is +often more convenient to call XtUnmanageChild() +several times than it is to declare and initialize an array +of widgets to pass to XtUnmanageChildren(). Calling +XtUnmanageChildren() is more efficient, however, +because it only calls the parent's change_managed() +method once. + + - -Environment - + +Algorithm + +XtUnmanageChildren() performs the following: + + + +- + + +Ignores the child if it already is unmanaged or is being +destroyed. + + + + +- + + +Otherwise, if the child is realized, it makes it nonvisible +by unmapping it. + + + + + + - -Files - + +Structures +The WidgetList type is simply an array of widgets: + +typedef Widget *WidgetList; + + - -See Also - + -More detailed user documentation is available from help:/ -(either enter this URL into &konqueror;, or run -khelpcenter -help:/). + +Questions and Answers -There is also further information available at - + - -Examples - - +&reporting.bugs; +&updating.documentation; - -Standards + + + +My Mouse doesn't work. How do I quit &kmyapplication;? + + +You silly goose! Check out the Commands +Section for the answer. + + + + +Why can't I twiddle my documents? + + +You can only twiddle your documents if you have the foobar.lib +installed. + + + + - - + - -History - - + + +Credits and License - -Bugs - + +&kmyapplication; + + +Program copyright 1997 John Q. Hacker jqh@kde.org + + +Contributors: + +Konqui the KDE Dragon konqui@kde.org + +Tux the Linux Penguin tux@linux.org + + - - -Restrictions - - + +Documentation Copyright © 1999 George N. Ugnacious gnu@kde.org + - -Authors - - + -
+&underFDL; + + + +&underGPL; +&underBSDLicense; +&underArtisticLicense; +&underX11License; + + + + +Installation + + +How to obtain &kmyapplication; + + + +&install.intro.documentation; + + + + +Requirements + + + + +In order to successfully use &kmyapplication;, you need &kde; 1.1. Foobar.lib is +required in order to support the advanced &kmyapplication; features. &kmyapplication; uses +about 5 megs of memory to run, but this may vary depending on your +platform and configuration. + + + +All required libraries as well as &kmyapplication; itself can be found +on The &kmyapplication; home page. + + + + +You can find a list of changes at http://apps.kde.org/kapp. + + + + +Compilation and Installation + + + + + +&install.compile.documentation; + + + + +Configuration + +Don't forget to tell your system to start the dtd +dicer-toaster daemon first, or &kmyapplication; won't work ! + + + + + +&documentation.index; +
+ + diff --git a/kdoctools/xslt.cpp b/kdoctools/xslt.cpp index 13a2ac9ac..216773e7d 100644 --- a/kdoctools/xslt.cpp +++ b/kdoctools/xslt.cpp @@ -140,14 +140,14 @@ TQString splitOut(const TQString &parsed, int index) TQString filedata; while (true) { - int endindex = parsed.tqfind("
", index); - int startindex = parsed.tqfind("", index); + int startindex = parsed.find(" 0) { if (startindex < endindex) { - // kdDebug() << "tqfinding another" << endl; + // kdDebug() << "finding another" << endl; index = startindex + 8; inside++; } else { @@ -166,16 +166,16 @@ TQString splitOut(const TQString &parsed, int index) } - index = filedata.tqfind(" 0) { - int endindex = filedata.tqfindRev(""); + int endindex = filedata.findRev(""); while (filedata.at(endindex) != '>') endindex++; endindex++; filedata = filedata.left(index) + filedata.mid(endindex); } - // filedata.tqreplace(TQRegExp(">"), "\n>"); + // filedata.replace(TQRegExp(">"), "\n>"); return filedata; } @@ -336,7 +336,7 @@ TQCString fromUnicode( const TQString &data ) buffer_len += test.length(); } else { TQString res; - res.sprintf( "&#%d;", part.at( i ).tqunicode() ); + res.sprintf( "&#%d;", part.at( i ).unicode() ); test = locale->fromUnicode( res ); if (buffer_len + test.length() + 1 > sizeof(buffer)) break; @@ -350,10 +350,10 @@ TQCString fromUnicode( const TQString &data ) return result; } -void tqreplaceCharsetHeader( TQString &output ) +void replaceCharsetHeader( TQString &output ) { TQString name = TQTextCodec::codecForLocale()->name(); - name.tqreplace( TQString( "ISO " ), "iso-" ); - output.tqreplace( TQString( "" ), + name.replace( TQString( "ISO " ), "iso-" ); + output.replace( TQString( "" ), TQString( "" ).arg( name ) ); } diff --git a/kdoctools/xslt.h b/kdoctools/xslt.h index 9db0a00f6..975bd3c88 100644 --- a/kdoctools/xslt.h +++ b/kdoctools/xslt.h @@ -11,7 +11,7 @@ void fillInstance(KInstance &ins, const TQString &srcdir = TQString::null ); bool saveToCache( const TQString &contents, const TQString &filename ); TQString lookForCache( const TQString &filename ); TQCString fromUnicode( const TQString &data ); -void tqreplaceCharsetHeader( TQString &output ); +void replaceCharsetHeader( TQString &output ); extern bool warnings_exist; extern TQString *SRCDIR; -- cgit v1.2.3