diff options
Diffstat (limited to 'kdoctools')
-rw-r--r-- | kdoctools/configure.in.in | 4 | ||||
-rw-r--r-- | kdoctools/kio_help.cpp | 36 | ||||
-rw-r--r-- | kdoctools/kio_help.h | 2 | ||||
-rw-r--r-- | kdoctools/meinproc.cpp | 12 | ||||
-rw-r--r-- | kdoctools/template.docbook | 630 | ||||
-rw-r--r-- | kdoctools/xslt.cpp | 20 | ||||
-rw-r--r-- | kdoctools/xslt.h | 2 |
7 files changed, 577 insertions, 129 deletions
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( "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=%1\"></head>\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:<br>%1" ).arg( file ) ); + unicodeError( i18n( "The requested help file could not be parsed:<br>%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:<br>%1" ).arg( file ) ); + unicodeError( i18n( "The requested help file could not be parsed:<br>%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( "<a name=" ), index); + index = mParsed.find( TQRegExp( "<a name=" ), index); if ( index == -1 ) { kdDebug( 7119 ) << "no anchor\n"; break; // use whatever is the target, most likely index.html @@ -283,12 +283,12 @@ void HelpProtocol::get( const KURL& url ) if ( mParsed.mid( index, 11 + anchor.length() ).lower() == TQString( "<a name=\"%1\">" ).arg( anchor ) ) { - index = mParsed.tqfindRev( "<FILENAME filename=", index ) + + index = mParsed.findRev( "<FILENAME filename=", index ) + strlen( "<FILENAME filename=\"" ); TQString filename=mParsed.mid( index, 2000 ); - filename = filename.left( filename.tqfind( '\"' ) ); + filename = filename.left( filename.find( '\"' ) ); TQString path = target.path(); - path = path.left( path.tqfindRev( '/' ) + 1) + filename; + path = path.left( path.findRev( '/' ) + 1) + filename; kdDebug( 7119 ) << "anchor found in " << path <<endl; target.setPath( path ); break; @@ -307,21 +307,21 @@ void HelpProtocol::emitFile( const KURL& url ) { infoMessage(i18n("Looking up section")); - TQString filename = url.path().mid(url.path().tqfindRev('/') + 1); + TQString filename = url.path().mid(url.path().findRev('/') + 1); - int index = mParsed.tqfind(TQString("<FILENAME filename=\"%1\"").arg(filename)); + int index = mParsed.find(TQString("<FILENAME filename=\"%1\"").arg(filename)); if (index == -1) { if ( filename == "index.html" ) { data( fromUnicode( mParsed ) ); return; } - tqunicodeError( i18n("Could not tqfind filename %1 in %2.").arg(filename).arg( url.url() ) ); + unicodeError( i18n("Could not find filename %1 in %2.").arg(filename).arg( url.url() ) ); return; } TQString filedata = splitOut(mParsed, index); - tqreplaceCharsetHeader( filedata ); + replaceCharsetHeader( filedata ); data( fromUnicode( filedata ) ); data( TQByteArray() ); diff --git a/kdoctools/kio_help.h b/kdoctools/kio_help.h index c442e7c61..13c198af1 100644 --- a/kdoctools/kio_help.h +++ b/kdoctools/kio_help.h @@ -37,7 +37,7 @@ private: TQString lookupFile(const TQString &fname, const TQString &query, bool &redirect); - void tqunicodeError( const TQString &t ); + void unicodeError( const TQString &t ); TQString mParsed; bool mGhelp; diff --git a/kdoctools/meinproc.cpp b/kdoctools/meinproc.cpp index 73db67ea5..dd2e194e6 100644 --- a/kdoctools/meinproc.cpp +++ b/kdoctools/meinproc.cpp @@ -212,7 +212,7 @@ int main(int argc, char **argv) { QCStringList::ConstIterator end = paramList.end(); for ( ; it != end; ++it ) { const TQCString tuple = *it; - const int ch = tuple.tqfind( '=' ); + const int ch = tuple.find( '=' ); if ( ch == -1 ) { kdError() << "Key-Value tuple '" << tuple << "' lacks a '='!" << endl; return( 2 ); @@ -282,7 +282,7 @@ int main(int argc, char **argv) { goto end; } - if (output.tqfind( "<FILENAME " ) == -1 || args->isSet( "stdout" ) || args->isSet("output") ) + if (output.find( "<FILENAME " ) == -1 || args->isSet( "stdout" ) || args->isSet("output") ) { TQFile file; if (args->isSet( "stdout" ) ) { @@ -294,7 +294,7 @@ int main(int argc, char **argv) { file.setName( "index.html" ); file.open(IO_WriteOnly); } - tqreplaceCharsetHeader( output ); + replaceCharsetHeader( output ); TQCString data = output.local8Bit(); file.writeBlock(data.data(), data.length()); @@ -302,19 +302,19 @@ int main(int argc, char **argv) { } else { int index = 0; while (true) { - index = output.tqfind("<FILENAME ", index); + index = output.find("<FILENAME ", index); if (index == -1) break; int filename_index = index + strlen("<FILENAME filename=\""); TQString filename = output.mid(filename_index, - output.tqfind("\"", filename_index) - + output.find("\"", filename_index) - filename_index); TQString filedata = splitOut(output, index); TQFile file(filename); file.open(IO_WriteOnly); - tqreplaceCharsetHeader( filedata ); + replaceCharsetHeader( filedata ); TQCString data = fromUnicode( filedata ); file.writeBlock(data.data(), data.length()); file.close(); diff --git a/kdoctools/template.docbook b/kdoctools/template.docbook index bda3c8e97..719379c1f 100644 --- a/kdoctools/template.docbook +++ b/kdoctools/template.docbook @@ -1,121 +1,569 @@ <?xml version="1.0" ?> -<!DOCTYPE refentry PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [ -<!ENTITY % English "INCLUDE"> +<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [ + <!-- Define an entity for your application if it is not part of KDE + CVS --> + <!ENTITY kmyapplication "<application>KMyApp</application>"> + <!ENTITY kappname "&kmyapplication;"><!-- replace kmyapplication here + do *not* replace kappname--> + <!ENTITY package "kde-module"><!-- kdebase, kdeadmin, etc. Leave + this unchanged if your + application is not maintained in KDE CVS --> + <!ENTITY % addindex "IGNORE"> + <!ENTITY % English "INCLUDE"> <!-- ONLY If you are writing non-English + original documentation, change + the language here --> + + <!-- Do not define any other entities; instead, use the entities + from entities/general.entities and $LANG/user.entities. --> ]> +<!-- kdoctemplate v0.9 January 10 2003 + Changes to comments to clarify entity usage January 10 2003 + Minor update to "Credits and Licenses" section on August 24, 2000 + Removed "Revision history" section on 22 January 2001 + Changed to Installation/Help menu entities 18 October 2001 + Other minor cleanup and changes 18 October 2001 + FPI change and minor changes November 2002 --> + +<!-- +This template was designed by: David Rugge davidrugge@mindspring.com +with lots of help from: Eric Bischoff ebisch@cybercable.tm.fr +and Frederik Fouvry fouvry@sfs.nphil.uni-tuebingen.de +of the KDE DocBook team. + +You may freely use this template for writing any sort of KDE documentation. +If you have any changes or improvements, please let us know. + +Remember: +- in XML, the case of the <tags> and attributes is relevant ; +- also, quote all attributes. + +Please don't forget to remove all these comments in your final documentation, +thanks ;-). +--> + +<!-- ................................................................ --> + +<!-- The language must NOT be changed here. --> +<!-- If you are writing original documentation in a language other --> +<!-- than English, change the language above ONLY, not here --> +<book lang="&language;"> -<refentry lang="&language;"> -<refentryinfo> -<title>KDE User's Manual</title> -<author><personname> -<firstname><!-- --Your first name-- --></firstname> -<surname><!-- --Your last name-- --></surname> +<!-- This header contains all of the meta-information for the document such +as Authors, publish date, the abstract, and Keywords --> + +<bookinfo> +<title>The &kmyapplication; Handbook</title> + +<authorgroup> +<author> +<!-- This is just put in as an example. For real documentation, please + define a general entity in entities/contributor.entities, e.g. +<!ENTITY George.N.Ugnacious "<personname><firstname>George</firstname><othername>N.</othername><surname>Ugnacious</surname></personname>"> +<!ENTITY George.N.Ugnacious.mail "<email>gnu@kde.org</email>"> +and use `&George.N.Ugnacious; &George.N.Ugnacious.mail;' in the author element. + --> +<personname> +<firstname>George</firstname> +<othername>N.</othername> +<surname>Ugnacious</surname> </personname> -<affiliation><address><email><!-- --Your email address-- --></email></address></affiliation></author> -<date><!-- --Date when this manpage was written, in the ISO 8601 format -'yyyy-mm-dd'-- --></date> -<productname>K Desktop Environment</productname> -</refentryinfo> +<email>gnu@kde.org</email> +</author> +</authorgroup> + +<!-- TRANS:ROLES_OF_TRANSLATORS --> + +<copyright> +<year>2002</year> +<holder>George N. Ugnacious</holder> +</copyright> +<!-- Translators: put here the copyright notice of the translation --> +<!-- Put here the FDL notice. Read the explanation in fdl-notice.docbook + and in the FDL itself on how to use it. --> +<legalnotice>&FDLNotice;</legalnotice> + +<!-- Date and version information of the documentation +Don't forget to include this last date and this last revision number, we +need them for translation coordination ! +Please respect the format of the date (YYYY-MM-DD) and of the version +(V.MM.LL), it could be used by automation scripts. +Do NOT change these in the translation. --> + +<date>2003-01-10</date> +<releaseinfo>1.01.00</releaseinfo> + +<!-- Abstract about this handbook --> + +<abstract> +<para> +&kmyapplication; is an application specially designed to do nothing you would +ever want. +</para> +</abstract> + +<!-- This is a set of Keywords for indexing by search engines. +Please at least include KDE, the KDE package it is in, the name + of your application, and a few relevant keywords. --> + +<keywordset> +<keyword>KDE</keyword> +<keyword>kdeutils</keyword> +<keyword>Kapp</keyword> +<keyword>nothing</keyword> +<keyword>nothing else</keyword> +</keywordset> + +</bookinfo> + +<!-- The contents of the documentation begin here. Label +each chapter so with the id attribute. This is necessary for two reasons: it +allows you to easily reference the chapter from other chapters of your +document, and if there is no ID, the name of the generated HTML files will vary +from time to time making it hard to manage for maintainers and for the CVS +system. Any chapter labelled (OPTIONAL) may be left out at the author's +discretion. Other chapters should not be left out in order to maintain a +consistent documentation style across all KDE apps. --> + +<chapter id="introduction"> +<title>Introduction</title> + +<!-- The introduction chapter contains a brief introduction for the +application that explains what it does and where to report +problems. Basically a long version of the abstract. Don't include a +revision history. (see installation appendix comment) --> + +<para> +&kmyapplication; is a program that lets you do absolutely nothing. Please report +any problems or feature requests to the &kde; mailing lists. +</para> +</chapter> + +<chapter id="using-kapp"> +<title>Using &kmyapplication;</title> + +<!-- This chapter should tell the user how to use your app. You should use as +many sections (Chapter, Sect1, Sect3, etc...) as is necessary to fully document +your application. --> + +<para> + +<!-- Note that all graphics should be in .png format. Use no gifs because of +patent issues. --> +<screenshot> +<screeninfo>Here's a screenshot of &kmyapplication;</screeninfo> + <mediaobject> + <imageobject> + <imagedata fileref="screenshot.png" format="PNG"/> + </imageobject> + <imageobject> + <imagedata fileref="screenshot.eps" format="EPS"/> + </imageobject> + <textobject> + <phrase>Screenshot</phrase> + </textobject> + </mediaobject> +</screenshot> +</para> + + +<sect1 id="kapp-features"> +<title>More &kmyapplication; features</title> + +<para>It slices! It dices! and it comes with a free toaster!</para> +<para> +The Squiggle Tool <guiicon><inlinemediaobject> + <imageobject> + <imagedata fileref="squiggle.png" format="PNG"/> + </imageobject> + <imageobject> + <imagedata fileref="squiggle.eps" format="EPS"/> + </imageobject> + <textobject> + <phrase>Squiggle</phrase> + </textobject> +</inlinemediaobject></guiicon> is used to draw squiggly lines all over +the &kmyapplication; main window. It's not a bug, it's a feature! +</para> + +</sect1> +</chapter> + +<chapter id="commands"> +<title>Command Reference</title> + +<!-- (OPTIONAL, BUT RECOMMENDED) This chapter should list all of the +application windows and their menubar and toolbar commands for easy reference. +Also include any keys that have a special function but have no equivalent in the +menus or toolbars. This may not be necessary for small apps or apps with no tool +or menu bars. --> + +<sect1 id="kapp-mainwindow"> +<title>The main &kmyapplication; window</title> + +<sect2> +<title>The File Menu</title> +<para> +<variablelist> +<varlistentry> +<term><menuchoice> +<shortcut> +<keycombo action="simul">&Ctrl;<keycap>N</keycap></keycombo> +</shortcut> +<guimenu>File</guimenu> +<guimenuitem>New</guimenuitem> +</menuchoice></term> +<listitem><para><action>Creates a new document</action></para></listitem> +</varlistentry> +<varlistentry> +<term><menuchoice> +<shortcut> +<keycombo action="simul">&Ctrl;<keycap>S</keycap></keycombo> +</shortcut> +<guimenu>File</guimenu> +<guimenuitem>Save</guimenuitem> +</menuchoice></term> +<listitem><para><action>Saves the document</action></para></listitem> +</varlistentry> +<varlistentry> +<term><menuchoice> +<shortcut> +<keycombo action="simul">&Ctrl;<keycap>Q</keycap></keycombo> +</shortcut> +<guimenu>File</guimenu> +<guimenuitem>Quit</guimenuitem> +</menuchoice></term> +<listitem><para><action>Quits</action> &kmyapplication;</para></listitem> +</varlistentry> +</variablelist> +</para> + +</sect2> + +<sect2> +<title>The <guimenu>Help</guimenu> Menu</title> + +<!-- Assuming you have a standard help menu (help, what's this, about --> +<!-- &kmyapplication;, about KDE) then the documentation is already written. --> +<!-- The following entity is valid anywhere that a variablelist is --> +<!-- valid. --> + +&help.menu.documentation; + +</sect2> + +</sect1> +</chapter> + +<chapter id="developers"> +<title>Developer's Guide to &kmyapplication;</title> + +<!-- (OPTIONAL) A Programming/Scripting reference chapter should be +used for apps that use plugins or that provide their own scripting hooks +and/or development libraries. --> + +<para> +Programming &kmyapplication; plugins is a joy to behold. Just read through the next +66 pages of API's to learn how! +</para> + +<!-- Use refentries to describe APIs. Refentries are fairly complicated and you +should consult the docbook reference for further details. The example below was +taken from that reference and shortened a bit for readability. --> + +<refentry id="re-1007-unmanagechildren-1"> <refmeta> -<refentrytitle><command><!-- --The command this page is about-- --></command></refentrytitle> -<manvolnum><!-- --The section this page should be in-- --></manvolnum> +<refentrytitle>XtUnmanageChildren</refentrytitle> +<refmiscinfo>Xt - Geometry Management</refmiscinfo> </refmeta> - <refnamediv> -<refname><command><!-- --The command this page is about-- --></command></refname> -<refpurpose><!-- --Very brief description, suitable for 'whatis'-- --></refpurpose> -</refnamediv> +<refname>XtUnmanageChildren +</refname> +<refpurpose>remove a list of children from a parent widget's managed +list. +<indexterm id="ix-1007-unmanagechildren-1"><primary>widgets</primary><secondary>removing</secondary></indexterm> +<indexterm id="ix-1007-unmanagechildren-2"><primary>XtUnmanageChildren</primary></indexterm> +</refpurpose> +</refnamediv> <refsynopsisdiv> -<cmdsynopsis> -<command><!-- --The command this page is about-- --></command> -<arg choice="req"><!-- --Required command specific options-- --></arg> -<arg choice="opt"><!-- --Optional command specific options-- --></arg> -<arg choice="opt">KDE Generic Options</arg> -<arg choice="opt">Qt Generic Options</arg> -</cmdsynopsis> -</refsynopsisdiv> - -<refsect1> -<title>Description</title> -<para><!-- --Description of the app, what it's for, what it does and doesn't -do.-- --> </para> - -</refsect1> +<refsynopsisdivinfo> +<date>4 March 1996</date> +</refsynopsisdivinfo> +<synopsis> +void XtUnmanageChildren(<replaceable class="parameter">children</replaceable>, <replaceable class="parameter">num_children</replaceable>) + WidgetList <replaceable class="parameter">children</replaceable>; + Cardinal <replaceable class="parameter">num_children</replaceable>; +</synopsis> -<refsect1> -<title>Options</title> -<para>App options, in a variablelist</para> +<refsect2 id="r2-1007-unmanagechildren-1"> +<title>Inputs</title> +<variablelist> +<varlistentry> +<term><replaceable class="parameter">children</replaceable> +</term> +<listitem> +<para>Specifies an array of child widgets. Each child must be of +class RectObj or any subclass thereof. +</para> +</listitem> +</varlistentry> +<varlistentry> +<term><replaceable class="parameter">num_children</replaceable> +</term> +<listitem> +<para>Specifies the number of elements in <replaceable class="parameter">children</replaceable>. +</para> +</listitem> +</varlistentry> +</variablelist> +</refsect2></refsynopsisdiv> +<refsect1 id="r1-1007-unmanagechildren-1"> +<title>Description +</title> +<para><function>XtUnmanageChildren()</function> 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. +</para> +<para>Each of the widgets in the <replaceable class="parameter">children</replaceable> array must have +the same parent. +</para> +<para>See the “Algorithm” section below for full details of the +widget unmanagement procedure. +</para> </refsect1> -<!-- --The Following sections are optional, but recommended if they are -applicable.-- --> +<refsect1 id="r1-1007-unmanagechildren-2"> +<title>Usage</title> +<para>Unmanaging widgets is the usual method for temporarily +making them invisible. They can be re-managed with +<function>XtManageChildren()</function>. +</para> +<para>You can unmap a widget, but leave it under geometry +management by calling <function>XtUnmapWidget()</function>. You can +destroy a widget's window without destroying the widget by +calling <function>XtUnrealizeWidget()</function>. You can destroy a +widget completely with <function>XtDestroyWidget()</function>. +</para> +<para>If you are only going to unmanage a single widget, it is +more convenient to call <function>XtUnmanageChild()</function>. It is +often more convenient to call <function>XtUnmanageChild()</function> +several times than it is to declare and initialize an array +of widgets to pass to <function>XtUnmanageChildren()</function>. Calling +<function>XtUnmanageChildren()</function> is more efficient, however, +because it only calls the parent's <function>change_managed()</function> +method once. +</para> +</refsect1> -<refsect1> -<title>Environment</title> -<para><!-- --Environment variablesars that affect this command, how to set -them, who sets them, how they affect it, probably in a variablelist. Only for -man sections 1, 6, 7 and 8-- --></para> +<refsect1 id="r1-1007-unmanagechildren-3"> +<title>Algorithm +</title> +<para><function>XtUnmanageChildren()</function> performs the following: +</para> +<variablelist> +<varlistentry> +<term>- +</term> +<listitem> +<para>Ignores the child if it already is unmanaged or is being +destroyed. +</para> +</listitem> +</varlistentry> +<varlistentry> +<term>- +</term> +<listitem> +<para>Otherwise, if the child is realized, it makes it nonvisible +by unmapping it. +</para> +</listitem> +</varlistentry> +</variablelist> +<para> +</para> </refsect1> -<refsect1> -<title>Files</title> -<para><!-- --Files used by this command (eg, rc files, locations of caches -etc.) who puts them there, how they are configured, and if it's safe -to remove them, probably in a variablelist.-- --></para> +<refsect1 id="r1-1007-unmanagechildren-4"> +<title>Structures</title> +<para>The <type>WidgetList</type> type is simply an array of widgets: +</para> +<screen id="sc-1007-unmanagechildren-1">typedef Widget *WidgetList; +</screen> </refsect1> +</refentry> -<refsect1> -<title>See Also</title> -<para><!-- --foo(1)-style references, use a simplelist for these-- --></para> +</chapter> -<para>More detailed user documentation is available from <ulink -url="help:/<!-- --commandname-- -->">help:/<!-- --command-- --></ulink> -(either enter this <acronym>URL</acronym> into &konqueror;, or run -<userinput><command>khelpcenter</command> -<parameter>help:/<!-- --command-- --></parameter></userinput>).</para> +<chapter id="faq"> +<title>Questions and Answers</title> -<para>There is also further information available at <!-- --link to -website if applicable-- --></para> -</refsect1> +<!-- (OPTIONAL but recommended) This chapter should include all of the silly +(and not-so-silly) newbie questions that fill up your mailbox. This chapter +should be reserved for BRIEF questions and answers! If one question uses more +than a page or so then it should probably be part of the +"Using this Application" chapter instead. You should use links to +cross-reference questions to the parts of your documentation that answer them. +This is also a great place to provide pointers to other FAQ's if your users +must do some complicated configuration on other programs in order for your +application work. --> -<refsect1> -<title>Examples</title> -<para><!-- -- Give examples on how to use the program with different parameters -here, don't forget to explain what each invocation does exactly. Be verbose, -many users find this the most useful part of the documentation! -- --></para> -</refsect1> +&reporting.bugs; +&updating.documentation; -<refsect1> -<title>Standards</title> +<qandaset id="faqlist"> +<qandaentry> +<question> +<para>My Mouse doesn't work. How do I quit &kmyapplication;?</para> +</question> +<answer> +<para>You silly goose! Check out the <link linkend="commands">Commands +Section</link> for the answer.</para> +</answer> +</qandaentry> +<qandaentry> +<question> +<para>Why can't I twiddle my documents?</para> +</question> +<answer> +<para>You can only twiddle your documents if you have the foobar.lib +installed.</para> +</answer> +</qandaentry> +</qandaset> +</chapter> -<para><!-- --If the app adheres to any particular standards or RFC's, note -them here.-- --> </para> -</refsect1> +<chapter id="credits"> -<refsect1> -<title>History</title> -<para><!-- --Programs derived from other sources sometimes have this, or you -might keep a modification log here. If the log gets overly long or detailed, -consider maintaining it in a separate file, though.-- --> -</refsect1> +<!-- Include credits for the programmers, documentation writers, and +contributors here. The license for your software should then be included below +the credits with a reference to the appropriate license file included in the KDE +distribution. --> + +<title>Credits and License</title> -<refsect1> -<title>Bugs</title> -<para><!-- --Things that cause specific errors, so that people may avoid it, -or at least will be prepared for it.-- --> +<para> +&kmyapplication; +</para> +<para> +Program copyright 1997 John Q. Hacker <email>jqh@kde.org</email> +</para> +<para> +Contributors: +<itemizedlist> +<listitem><para>Konqui the KDE Dragon <email>konqui@kde.org</email></para> +</listitem> +<listitem><para>Tux the Linux Penguin <email>tux@linux.org</email></para> +</listitem> +</itemizedlist> </para> -</refsect1> -<refsect1> -<title>Restrictions</title> -<para><!-- --Bugs you don't plan to fix. :-)-- --></para> -</refsect1> +<para> +Documentation Copyright © 1999 George N. Ugnacious <email>gnu@kde.org</email> +</para> -<refsect1> -<title>Authors</title> -<para><!-- --Author information of the developer and man page writer.-- --></para> -</refsect1> +<!-- TRANS:CREDIT_FOR_TRANSLATORS --> -</refentry> +&underFDL; <!-- FDL: do not remove --> + +<!-- Determine which license your application is licensed under, + and delete all the remaining licenses below: + + (NOTE: All documentation are licensed under the FDL, + regardless of what license the application uses) --> + +&underGPL; <!-- GPL License --> +&underBSDLicense; <!-- BSD License --> +&underArtisticLicense; <!-- BSD Artistic License --> +&underX11License; <!-- X11 License --> + +</chapter> + +<appendix id="installation"> +<title>Installation</title> + +<sect1 id="getting-kapp"> +<title>How to obtain &kmyapplication;</title> + +<!-- This first entity contains boiler plate for applications that are +part of KDE CVS. You should remove it if you are releasing your +application --> + +&install.intro.documentation; + +</sect1> + +<sect1 id="requirements"> +<title>Requirements</title> + +<!-- +List any special requirements for your application here. This should include: +.Libraries or other software that is not included in kdesupport, +kdelibs, or kdebase. +.Hardware requirements like amount of RAM, disk space, graphics card +capabilities, screen resolution, special expansion cards, etc. +.Operating systems the app will run on. If your app is designed only for a +specific OS, (you wrote a graphical LILO configurator for example) put this +information here. +--> + +<para> +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. +</para> + +<para> +All required libraries as well as &kmyapplication; itself can be found +on <ulink url="ftp://ftp.kapp.org">The &kmyapplication; home page</ulink>. +</para> + +<!-- For a list of updates, you may refer to the application web site +or the ChangeLog file, or ... --> +<para> +You can find a list of changes at <ulink +url="http://apps.kde.org/kapp">http://apps.kde.org/kapp</ulink>. +</para> +</sect1> + +<sect1 id="compilation"> +<title>Compilation and Installation</title> + +<!-- This entity contains the boilerplate text for standard --> +<!-- compilation instructions. If your application requires any --> +<!-- special handling, remove it, and replace with your own text. --> + +&install.compile.documentation; + +</sect1> + +<sect1 id="configuration"> +<title>Configuration</title> + +<para>Don't forget to tell your system to start the <filename>dtd</filename> +dicer-toaster daemon first, or &kmyapplication; won't work !</para> + +</sect1> + +</appendix> + +&documentation.index; +</book> + +<!-- +Local Variables: +mode: xml +sgml-minimize-attributes:nil +sgml-general-insert-case:lower +sgml-indent-step:0 +sgml-indent-data:nil +End: + +vim:tabstop=2:shiftwidth=2:expandtab +kate: space-indent on; indent-width 2; tab-width 2; indent-mode none; +--> 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("</FILENAME>", index); - int startindex = parsed.tqfind("<FILENAME ", index) + 1; + int endindex = parsed.find("</FILENAME>", index); + int startindex = parsed.find("<FILENAME ", index) + 1; // kdDebug() << "FILENAME " << startindex << " " << endindex << " " << inside << " " << parsed.mid(startindex + 18, 15)<< " " << parsed.length() << endl; if (startindex > 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("<FILENAME "); + index = filedata.find("<FILENAME "); if (index > 0) { - int endindex = filedata.tqfindRev("</FILENAME>"); + int endindex = filedata.findRev("</FILENAME>"); 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( "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">" ), + name.replace( TQString( "ISO " ), "iso-" ); + output.replace( TQString( "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">" ), TQString( "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=%1\">" ).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; |