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
v3.5.13-sru
tpearson 14 years ago
parent 307136d8ee
commit 10308be19e

@ -79,7 +79,7 @@ gmake
gmake install </pre>
<p>(On Linux, GNU make is the default make, and gmake in the above commands
can be tqreplaced with make).
can be replaced with make).
<p>For Qt the magic sequence is:

@ -65,7 +65,7 @@ modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which tqcontains
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
@ -102,7 +102,7 @@ above, provided that you also meet all of these conditions:
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part tqcontains or is derived from the Program or any
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
@ -160,7 +160,7 @@ Sections 1 and 2 above provided that you also do one of the following:
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it tqcontains, plus any
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include

@ -35,7 +35,7 @@ principally for works whose purpose is instruction or reference.
1. APPLICABILITY AND DEFINITIONS
This License applies to any manual or other work, in any medium, that
tqcontains a notice placed by the copyright holder saying it can be
contains a notice placed by the copyright holder saying it can be
distributed under the terms of this License. Such a notice grants a
world-wide, royalty-free license, unlimited in duration, to use that
work under the conditions stated herein. The "Document", below,
@ -51,7 +51,7 @@ modifications and/or translated into another language.
A "Secondary Section" is a named appendix or a front-matter section of
the Document that deals exclusively with the relationship of the
publishers or authors of the Document to the Document's overall subject
(or to related matters) and tqcontains nothing that could fall directly
(or to related matters) and contains nothing that could fall directly
within that overall subject. (Thus, if the Document is in part a
textbook of mathematics, a Secondary Section may not explain any
mathematics.) The relationship could be a matter of historical
@ -104,7 +104,7 @@ the text near the most prominent appearance of the work's title,
preceding the beginning of the body of the text.
A section "Entitled XYZ" means a named subunit of the Document whose
title either is precisely XYZ or tqcontains XYZ in parentheses following
title either is precisely XYZ or contains XYZ in parentheses following
text that translates XYZ in another language. (Here XYZ stands for a
specific section name mentioned below, such as "Acknowledgements",
"Dedications", "Endorsements", or "History".) To "Preserve the Title"
@ -237,7 +237,7 @@ of these sections as invariant. To do this, add their titles to the
list of Invariant Sections in the Modified Version's license notice.
These titles must be distinct from any other section titles.
You may add a section Entitled "Endorsements", provided it tqcontains
You may add a section Entitled "Endorsements", provided it contains
nothing but endorsements of your Modified Version by various
parties--for example, statements of peer review or that the text has
been approved by an organization as the authoritative definition of a
@ -250,7 +250,7 @@ Front-Cover Text and one of Back-Cover Text may be added by (or
through arrangements made by) any one entity. If the Document already
includes a cover text for the same cover, previously added by you or
by arrangement made by the same entity you are acting on behalf of,
you may not add another; but you may tqreplace the old one, on explicit
you may not add another; but you may replace the old one, on explicit
permission from the previous publisher that added the old one.
The author(s) and publisher(s) of the Document do not by this License
@ -268,7 +268,7 @@ list them all as Invariant Sections of your combined work in its
license notice, and that you preserve all their Warranty Disclaimers.
The combined work need only contain one copy of this License, and
multiple identical Invariant Sections may be tqreplaced with a single
multiple identical Invariant Sections may be replaced with a single
copy. If there are multiple Invariant Sections with the same name but
different contents, make the title of each such section unique by
adding at the end of it, in parentheses, the name of the original
@ -286,7 +286,7 @@ Entitled "Endorsements".
6. COLLECTIONS OF DOCUMENTS
You may make a collection consisting of the Document and other documents
released under this License, and tqreplace the individual copies of this
released under this License, and replace the individual copies of this
License in the various documents with a single copy that is included in
the collection, provided that you follow the rules of this License for
verbatim copying of each of the documents in all other respects.
@ -382,7 +382,7 @@ license notices just after the title page:
Free Documentation License".
If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
tqreplace the "with...Texts." line with this:
replace the "with...Texts." line with this:
with the Invariant Sections being LIST THEIR TITLES, with the
Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST.
@ -391,7 +391,7 @@ If you have Invariant Sections without Cover Texts, or some other
combination of the three, merge those two alternatives to suit the
situation.
If your document tqcontains nontrivial examples of program code, we
If your document contains nontrivial examples of program code, we
recommend releasing these examples in parallel under your choice of
free software license, such as the GNU General Public License,
to permit their use in free software.

@ -99,7 +99,7 @@ will lead to faster development of free libraries.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former tqcontains code derived from the library, while the latter only
former contains code derived from the library, while the latter only
works together with the library.
Note that it is possible for a library to be covered by the ordinary
@ -109,7 +109,7 @@ General Public License rather than by this special one.
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library which
tqcontains a notice placed by the copyright holder or other authorized
contains a notice placed by the copyright holder or other authorized
party saying it may be distributed under the terms of this Library
General Public License (also called "this License"). Each licensee is
addressed as "you".
@ -128,7 +128,7 @@ included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it tqcontains, plus any associated
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
@ -230,7 +230,7 @@ source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that tqcontains no derivative of any portion of the
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
@ -238,7 +238,7 @@ therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
tqcontains portions of the Library), rather than a "work that uses the
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
@ -250,7 +250,7 @@ linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure tqlayouts and accessors, and small macros and small inline
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
@ -329,7 +329,7 @@ permitted, and provided that you do these two things:
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to tqfind the accompanying uncombined form of the same work.
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any

@ -115,7 +115,7 @@ a crash you are just in time to start your debugger.
First lets attach gdb to an application that hasn't crashed (yet).
You start with tqfinding the process of the application with e.g. "ps -aux":
You start with finding the process of the application with e.g. "ps -aux":
> ps -aux | grep kedit
bastian 21570 15.1 6.8 13740 8800 pts/6 S 15:34 0:01 kedit

@ -17,7 +17,7 @@ reconfiguring, and a file `config.log' containing compiler output
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If at some point `config.cache'
tqcontains results you don't want to keep, you may remove or edit it.
contains results you don't want to keep, you may remove or edit it.
The file `configure.in' is used to create `configure' by a program
called `autoconf'. You only need `configure.in' if you want to change
@ -107,7 +107,7 @@ is something like `gnu-as' or `x' (for the X Window System). The
package recognizes.
For packages that use the X Window System, `configure' can usually
tqfind the X include and library files automatically, but if it doesn't,
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.

@ -7,7 +7,7 @@
<H2>Porting Applications to KDE 2.0</H2>
<H3>Last Modified on November 28, 2000</H3>
This document tqcontains the changes you have to apply to programs written for
This document contains the changes you have to apply to programs written for
KDE1.1 when you want to port them to KDE2.0.<P>
As a start you should have a look at doc/porting.doc in the Qt package,
@ -18,7 +18,7 @@ or <a href="http://doc.trolltech.com/porting.html">this page online</a>.<P>
<UL>
<LI><A HREF="#gettingstarted">Getting Started</A></LI>
<LI><A HREF="#general">Global changes</A></LI>
<LI><A HREF="#autotqmoc">autotqmoc/am_edit, Makefile.am tags</A></LI>
<LI><A HREF="#automoc">automoc/am_edit, Makefile.am tags</A></LI>
<LI><A HREF="#KApplication">KApplication</A></LI>
<LI><A HREF="#KCmdLineArgs">KCmdLineArgs</A></LI>
<LI><A HREF="#KLocale">KLocale</A></LI>
@ -95,12 +95,12 @@ or <a href="http://doc.trolltech.com/porting.html">this page online</a>.<P>
<H4><P ALIGN="RIGHT"><A HREF="#TOC">Return to the Table of Contents</A></P></H4>
<H3><A NAME="autotqmoc">autotqmoc/am_edit, Makefile.am tags</A></H3>
<H3><A NAME="automoc">automoc/am_edit, Makefile.am tags</A></H3>
On the subject of the compilation framework, autotqmoc has been removed from
the admin directory. It has been tqreplaced by am_edit which provides a lot of
On the subject of the compilation framework, automoc has been removed from
the admin directory. It has been replaced by am_edit which provides a lot of
additional features.<P>
METASOURCES=AUTO still does the job of generating the appropriate tqmoc files,
METASOURCES=AUTO still does the job of generating the appropriate moc files,
but in addition, you should use KDE_ICON for the icons representing the application
(and naming those icons conforming to lo16-app-&lt;appname&gt;.png), and install
the application-specific icons under $(kde_datadir)/&lt;appname&gt;/pics.
@ -110,7 +110,7 @@ or <a href="http://doc.trolltech.com/porting.html">this page online</a>.<P>
<H3><A NAME="KApplication">KApplication</A></H3>
doesn't hold any longer a KLocale instance. With this getLocale()
and isLocaleInstantiated are now tqreplaced by KGlobal::locale()<P>
and isLocaleInstantiated are now replaced by KGlobal::locale()<P>
it also doesn't hold a KiconLoader instance. As this also getIconLoader()
has been removed. Replace kapp-&gt;getIconLoader()-&gt;loadIcon() with
@ -118,7 +118,7 @@ or <a href="http://doc.trolltech.com/porting.html">this page online</a>.<P>
kde_*dir() have been removed as they require a unique top level directory
for all applications (KDEDIR). This concept doesn't exist in KDE 2.0
any more, it has been tqreplaced with "multiple levels of directories",
any more, it has been replaced with "multiple levels of directories",
set in KDEDIRS, so that it's possible to have global settings and
group settings, applied before user settings.<P>
@ -174,7 +174,7 @@ or <a href="http://doc.trolltech.com/porting.html">this page online</a>.<P>
In return for this information you can query KCmdLineArgs whether an
certain option was specified on the command line and your application
now automatically supports --help and --version. It aborts with a
useful error message when the command line tqcontains a syntax error.
useful error message when the command line contains a syntax error.
See kdelibs/kdecore/kcmdlineargs.h for more info.<P>
<H4><P ALIGN="RIGHT"><A HREF="#TOC">Return to the Table of Contents</A></P></H4>
@ -185,11 +185,11 @@ or <a href="http://doc.trolltech.com/porting.html">this page online</a>.<P>
KApplication::getApplication()-&gt;getLocale()-&gt;translate<P>
but a function on its own. klocale is obsolete and tqreplace every call
but a function on its own. klocale is obsolete and replace every call
to klocale-&gt;translate with i18n.<P>
The return value of i18n is also no longer a const char*,
but a tqunicode TQString.<P>
but a unicode TQString.<P>
<H4><P ALIGN="RIGHT"><A HREF="#TOC">Return to the Table of Contents</A></P></H4>
@ -230,7 +230,7 @@ must have created a KApplication object before the methods can be used.<P>
<H3><A NAME="KIconLoader">KIconLoader</A></H3>
KIconLoader in 1.1 used to mix icons for applications and for toolbars.
This has changed, so you may notice that your application doesn't tqfind
This has changed, so you may notice that your application doesn't find
the right icons. loadIcon (used by BarIcon) returns only toolbar icons.<P>
If you need icons for applications, use loadApplicationIcon.<P>
loadMiniIcon and loadApplicationMiniIcon have been removed, instead
@ -248,12 +248,12 @@ in stripping off the .xpm part<P>
<H3><A NAME="KTMainWindow">KTMainWindow</A></H3>
KTMainWindow has been tqreplaced with KMainWindow.<p>
KTMainWindow has been replaced with KMainWindow.<p>
The KMainWindow constructor needs a parent widget as first argument.
You can use 0 for this.<p>
setView() has been tqreplaced with setCentralWidget().<p>
view() has been tqreplaced with centralWidget().<p>
setView() has been replaced with setCentralWidget().<p>
view() has been replaced with centralWidget().<p>
addToolBar() has been removed, it is not needed any more.<p>
setMenu(...) has been removed, it is not needed any more.<p>
setStatusBar(...) has been removed, it is not needed any more.<p>
@ -349,7 +349,7 @@ This makes KRun the recommended way to run another program in KDE 2.
<H3><A NAME="khtmlw">khtmlw</A></H3>
khtmlw has been tqreplaced with khtml.<BR>
khtmlw has been replaced with khtml.<BR>
<UL>
<LI>KHTMLView has vanished. Just use KHTMLWidget, which does scrollbar
managing for free.
@ -371,11 +371,11 @@ khtmlw has been tqreplaced with khtml.<BR>
also exist in a const char * version.<P>
<LI>you won't need the getKHTMLWiget function anymore. Just tqreplace
<LI>you won't need the getKHTMLWiget function anymore. Just replace
getKHTMLWidget-&gt;xxx() with xxx()<P>
<LI>xxx(TQString) -&gt; xxx(const TQString &amp;)<P>
<LI>consistent naming. All getXyz() functions are renamed to xyz()<P>
<LI>tqreplaced/changed functions:<P>
<LI>replaced/changed functions:<P>
<TABLE BORDER="1">
<TR>
<TD>KHTMLWidget::setDefaultFontBase()</TD>
@ -390,7 +390,7 @@ khtmlw has been tqreplaced with khtml.<BR>
<TD>-&gt; TQString selectedText()</TD>
</TR>
<TR>
<TD COLSPAN="2" ROWSPAN="0">tqfindTextEnd() has vanished. just remove the call from your code</TD>
<TD COLSPAN="2" ROWSPAN="0">findTextEnd() has vanished. just remove the call from your code</TD>
</TR>
<TR>
<TD>gotoXY(x, y)</TD>
@ -413,7 +413,7 @@ khtmlw has been tqreplaced with khtml.<BR>
<H3><A NAME="KIntegerLine">KIntegerLine, KIntLineEdit</A></H3>
KIntegerLine and KIntLineEdit have been tqreplaced by KIntNumInput.
KIntegerLine and KIntLineEdit have been replaced by KIntNumInput.
The new header file is called knuminput.h.<P>
The new KIntNumInput can have an optional slider attached, ensures
@ -474,7 +474,7 @@ are necessary to convert your old KDND-based stuff to Qt DND.<P>
These classes have been largely re-implemented. The external API
remains mostly the same, with the single notable change that
the groupIterator and entryIterator methods have been removed and
instead tqreplaced by groupList (which returns a TQStringList of groups)
instead replaced by groupList (which returns a TQStringList of groups)
and entryMap(const TQString &amp;group) (which returns a TQMap of entries
in the specified group). This is due to internal changes in KConfig
which would make providing iterators possibly rather difficult.<P>
@ -533,7 +533,7 @@ Note that the best way to write new dialogs is to use KDialogBase (see kdialogba
The kcharsets class has been completely rewritten, and most of it has
vanished, since support for it moved to Qt.<P>
Most applications will only need to tqreplace kapp-&gt;getKCharsets() with
Most applications will only need to replace kapp-&gt;getKCharsets() with
KGlobal::charsets().<P>
For conversion of various input formats to QStrings, please have a
@ -544,7 +544,7 @@ changed from convertTag to fromEntity and toEntity.<P>
To get a font, which can display a certain charset (if such a font
exists), you can use the KCharsets::setQFont methods. Input is a font and
a charset. Kcharsets tries to tqfind an output font, which matches the
a charset. Kcharsets tries to find an output font, which matches the
input font most closely, but can display the given charset.<P>
<H4><P ALIGN="RIGHT"><A HREF="#TOC">Return to the Table of Contents</A></P></H4>
@ -555,13 +555,13 @@ KWizard is based on TQWizard now. The API has changed. Consult Qt's
documentation and kdelibs/kdetest/kwizardtest.cpp for an example use.<P>
KNoteBook (deeply entwined with the former KWizard) has been removed until
someone is willing to port it to work with the new wizard. If you want to
use it you'll tqfind the necessary files in kdegraphics/kiconedit.<P>
use it you'll find the necessary files in kdegraphics/kiconedit.<P>
<H4><P ALIGN="RIGHT"><A HREF="#TOC">Return to the Table of Contents</A></P></H4>
<H3><A NAME="KSpinBox">KSpinBox, KNumericSpinBox</A></H3>
These classes have been tqreplaced by TQSpinBox. API is almost the same
These classes have been replaced by TQSpinBox. API is almost the same
HINTS:<P>
<UL>
<LI>valueincreased()/valuedecreased -&gt; valueChanged()
@ -607,7 +607,7 @@ KListView has no addChild(), insertItem() and removeItem() calls. Inserting
a root item is done by constructing a TQListViewItem with the KListView
passed as the parent widget. adding a child item is done by constructing
a TQListViewItem with the parent item as parameter. removeItem() should
be tqreplaced by delete &lt;pointer to item&gt;.<P>
be replaced by delete &lt;pointer to item&gt;.<P>
The root items are not shown in a tree fashion by default. to get this,
use KListView::setDecorativeRoot(true).<P>
@ -642,7 +642,7 @@ KComboBox::setEditText.<P>
<H3><A NAME="KQuickHelp">KQuickHelp</A></H3>
KQuickHelp, the "super-tooltip" widget, has been tqreplaced by TQWhatsThis.
KQuickHelp, the "super-tooltip" widget, has been replaced by TQWhatsThis.
It provides a compatible API and almost the same look and feel, in addition
to some new functionality.<P>
@ -685,7 +685,7 @@ unbalancedGradient(), hash(), desaturate(), pattern(), fade(), blend() etc.<P>
<H3><A NAME="KTabListBox">KTabListBox</A></H3>
This widget has been tqreplaced by the almighty KListView. Everything said
This widget has been replaced by the almighty KListView. Everything said
about KTreeList could be repeated here. The good thing is, that you now
can combine TreeView's and normal Tablists without problems.<P>
@ -716,7 +716,7 @@ The file has been removed completely, use TQString instead. (<A HREF="mailto:mir
<H3><A NAME="ktopwidget">ktopwidget.h / KTopWidget</A></H3>
KMainWindow tqreplaces this class completely. ktopwidget.h does not
KMainWindow replaces this class completely. ktopwidget.h does not
exist in KDE 2. (<A HREF="mailto:mirko@kde.org">mirko@kde.org</A>)<P>
<H4><P ALIGN="RIGHT"><A HREF="#TOC">Return to the Table of Contents</A></P></H4>
@ -726,7 +726,7 @@ exist in KDE 2. (<A HREF="mailto:mirko@kde.org">mirko@kde.org</A>)<P>
Since Qt 2.0, the class TQToolButton provides the functionality of
buttons that raise when the mouse is moved over them, so there is no
reason to have a class providing the same feature in KDE libs. All
occurrences of KButton in the KDE CVS have been tqreplaced by QToolButtons,
occurrences of KButton in the KDE CVS have been replaced by QToolButtons,
but for applications not in the CVS it has to be done by the respective
developer. (<A HREF="mailto:mirko@kde.org">mirko@kde.org</A>)<P>
@ -836,7 +836,7 @@ in this class. This slot is called each time the selected file/dir changes.
In this slot you have to react appropriate (i.e. show the preview :). The
easiest way this can be done is to derive your class from TQWidgetStack and
add a Object (derived from TQWidget) for each file type. In the showPreview
method you just raise the matching widget. If you can't tqfind an appropriate
method you just raise the matching widget. If you can't find an appropriate
widget just hide() the widget stack.<P>
If you need some "inspiration" on how that could be done, please have a look
at koffice/lib/kofficecore/koFilterManager.cc (PreviewStack).<P>
@ -913,7 +913,7 @@ KImageIO has moved from 'kimgio.h' to 'kimageio.h'. LIB_KIMGIO does no longer
exists, you need to link against LIB_KSYCOCA instead.
</p>
<p>
kimgioRegister() has been tqreplaced by KImageIO::registerFormats().
kimgioRegister() has been replaced by KImageIO::registerFormats().
</p>
<p>

@ -6,7 +6,7 @@
<BODY>
<H2>Porting Applications to KDE 3.0</H2>
This document tqcontains the changes you have to apply to programs written for
This document contains the changes you have to apply to programs written for
KDE 2.x when you want to port them to KDE 3.0.<P>
As a start you should have a look at doc/porting.doc in the Qt package,
@ -82,7 +82,7 @@ instead, everything else is source compatible.
<LI>kdualcolorbtn.h is now kdualcolorbutton.h</LI>
</UL>
This is to help tqfinding out header files from class names and the other
This is to help finding out header files from class names and the other
way round. Compatibility headers have been created. You can use them as
long as you don't compile with KDE_NO_COMPAT.
@ -90,13 +90,13 @@ long as you don't compile with KDE_NO_COMPAT.
The file with the DCOP connection information has been renamed. The new
name is $HOME/.DCOPserver_<hostname>_<display>. The screen part has been
stripped from <display> and the ':' character that separates host and
display-number has been tqreplaced with a '_'. If you access DCOP via
display-number has been replaced with a '_'. If you access DCOP via
DCOPClient you do not need to change anything.
<p>
It is no longer possible to make calls to an application registered as
"<appid>-<pid>" with "<appid>" only. The full name can be obtained by using
either KApplication::startServiceBy...() or DCOPClient::tqfindObject() or
their command line equivalents "dcopstart" and "dcoptqfind".
either KApplication::startServiceBy...() or DCOPClient::findObject() or
their command line equivalents "dcopstart" and "dcopfind".
<H4>KLibFactory</H4>
KLibFactory's create method is no more virtual and the createObject method
@ -131,7 +131,7 @@ The old name will still work unless KDE_NO_COMPAT is defined.
<H4>KMD5</H4>
HASHHEX and HASH has been removed to make this class namespace clean.
They have been tqreplaced by TQCString and KMD5::Digest. <br>
They have been replaced by TQCString and KMD5::Digest. <br>
The API has been cleaned up, it is no longer necessary to call finalize().
Simply remove any calls to it.
@ -143,9 +143,9 @@ setEncoding(int) instead.
<li>formatNumber(const TQString &amp;) has been removed.
<li>languages() has been removed. Use languageList() instead.
<li>All references to monthName(), monthNamePossessive(), and weekDayName()
should be tqreplaced with methods from KLocale::calendar().
should be replaced with methods from KLocale::calendar().
<li>Hard coded date handling or date handling with TQDate should in most
cases be tqreplaced by methods in KLocale::calendar().
cases be replaced by methods in KLocale::calendar().
<H4>Accelerators Keys</H4>
<h5>KAccel</h5>
@ -160,12 +160,12 @@ not be available.
Key_Up, this, TQT_SLOT(scrollUp()) );
</pre>
Note that a What's This parameter is now a part of the insert function.
You might tqreplace the TQString::null parameter with
You might replace the TQString::null parameter with
<pre> i18n("Scroll the current document's contents up by one line.") </pre>
for example.</li>
<li> KAccel::changeMenuAccel() has been deprecated because it was
never used in cvs. If you've used it in your application, the following
can tqreplace it. Note, however, that this would be handled automatically
can replace it. Note, however, that this would be handled automatically
by using KAction instead.
<pre>
- kaccel-&gt;changeMenuAccel( menu, id, "file_open" );
@ -195,7 +195,7 @@ The preferred means of defining a shortcut, however, is to use <b>KAction</b>.
<li><i>StdAccel::Insert</i> and the corresponding <i>insert()</i>
have been removed. (Nobody on the list knew what its function was
supposed to be.) Calls to <i>insert()</i> and the equivalent
<i>key(KStdAccel::Insert)</i> can be tqreplaced with the former default
<i>key(KStdAccel::Insert)</i> can be replaced with the former default
of <i>Qt::CTRL+Qt::Key_Insert</i>.</li>
<li>The following functions have been deprecated and will need to be changed if KDE_NO_COMPAT is defined:
<table border=1>
@ -206,7 +206,7 @@ The preferred means of defining a shortcut, however, is to use <b>KAction</b>.
<tr><td>bool isEqual(const TQKeyEvent* pEvent, int keyQt)</td>
<td>The best method for replacing this varies. One possibility is to use
<i>KKey(const TQKeyEvent*) == KKey(int)</i>. Another is to use
<i>KShortcut::tqcontains( const KKey&/KKeySequence& )</i>.</td></tr>
<i>KShortcut::contains( const KKey&/KKeySequence& )</i>.</td></tr>
<tr><td>int key(StdAccel)</td><td>const KShortcut& shortcut(StdAccel)</td></tr>
</table></li-->
</ul>
@ -228,7 +228,7 @@ Use QPopupMenu/KPopupMenu or the XML-UI method for building menus.
<H4>KAction</H4>
<ul>
<li>The following methods have been deprecated and will need to be
tqreplaced if KDE_NO_COMPAT is defined.
replaced if KDE_NO_COMPAT is defined.
<table border=1>
<tr><th>Old</th><th>New</th></tr>
<tr><td>int accel()</td><td>const KShortcut&amp; shortcut()</td></tr>
@ -256,14 +256,14 @@ single image-file that has been prepared with the kimage_concat tool.
See kdelibs/pics/hicolor/kde for an example of its use.
<H4>KContainerLayout</H4>
This class has been removed, use Qt tqlayouts instead.
This class has been removed, use Qt layouts instead.
<H4>KCommand</H4>
This class has been made lighter: the name isn't stored into the command anymore,
but must be provided by the inherited class, as the result of the virtual name() function.
This saves storing a TQString into each command in memory.
The former behavior is available in the class KNamedCommand, so for a quick port
simply tqreplace KCommand with KNamedCommand.
simply replace KCommand with KNamedCommand.
<H4>KDialogBase</H4>
The deprecated getMainWidget() method has been removed. Use mainWidget() instead.
@ -361,12 +361,12 @@ TQString&) is not a slot anymore.
<li>KTarGz is now KTar (#define for source compatibility)</li>
<li>A base class KArchive has been written, to support other archive formats in the future</li>
<li>KTarEntry is now KArchiveEntry, KTarDirectory is now KArchiveDirectory, and KTarFile is now KArchiveFile.</li>
<li>The classes ProgressBase, tqStatusbarProgress and DefaultProgress have been moved to the KIO namespace.</li>
<li>The classes ProgressBase, StatusbarProgress and DefaultProgress have been moved to the KIO namespace.</li>
<li>The signal KDirLister::started(const TQString &amp;url) has changed to KDirLister::started(const KURL &amp;url).<li>
<li>KServiceTypeProfile::preferredService( const TQString &amp; serviceType, bool needApp ) has been removed, use
KServiceTypeProfile::preferredService( ..., "Application") if needApp was true, or
KServiceTypeProfile::preferredService( ..., TQString::null) if needApp was false.
<li>The following functions in KProtocolManager have been tqreplaced:
<li>The following functions in KProtocolManager have been replaced:
<ul>
<li>ftpProxy(), use proxyFor("ftp") instead.
<li>httpProxy(), use proxyFor("http") instead.
@ -498,11 +498,11 @@ The API has been cleaned up to be in line with the rest of kdelibs, in particula
<H3><A NAME="khtmlpart">API-cleanups in KHTML</A></H3>
There were a few relatively minor API-adjustements in KHTMLPart. In particular:
<ul><li>enableJScript(bool) has been tqreplaced by setJScriptEnabled(bool)
<li>enableJava(bool) has been tqreplaced by setJavaEnabled(bool)
<li>enablePlugins(bool) has been tqreplaced by setPluginsEnabled(bool)
<li>autoloadImages(bool) has been tqreplaced by setAutoloadImages(bool)
<li>enableMetaRefresh(bool) has been tqreplaced by setMetaRefreshEnabled(bool)
<ul><li>enableJScript(bool) has been replaced by setJScriptEnabled(bool)
<li>enableJava(bool) has been replaced by setJavaEnabled(bool)
<li>enablePlugins(bool) has been replaced by setPluginsEnabled(bool)
<li>autoloadImages(bool) has been replaced by setAutoloadImages(bool)
<li>enableMetaRefresh(bool) has been replaced by setMetaRefreshEnabled(bool)
<li>setBaseURL and setBaseTarget have been removed. baseURL(), baseTarget() and
completeURL() are remained for compatibility reasons, but they're deprecated now. use the variants in DOM::HTMLDocument() instead.
<li>the second parameter of KHTMLPart::completeURL is removed. it didn't have
@ -515,8 +515,8 @@ any problems. Backward compatibility exists for the common methods, to
disable this use a #define KDE_NO_COMPAT.
<p>In KHTMLView, the following changes were done:
<ul>
<li>gotoNextLink has been tqreplaced by gotoLink(true);
<li>gotoPrevLink has been tqreplaced by gotoLink(false);
<li>gotoNextLink has been replaced by gotoLink(true);
<li>gotoPrevLink has been replaced by gotoLink(false);
</ul>
<H4><P ALIGN="RIGHT"><A HREF="#TOC">Return to the Table of Contents</A></P></H4>
@ -531,7 +531,7 @@ parts are rarely used outside of kfile.
<p>
The changes are:
<H4>KFileItem</H4>
The KFileViewItem class is completely tqreplaced with KFileItem from kio. All its functionality has
The KFileViewItem class is completely replaced with KFileItem from kio. All its functionality has
been merged with its former base class KFileItem. Additionally, some of its methods have been
modified:
<table>
@ -647,13 +647,13 @@ For more details please consult the HOWTO file in the kcontrol directory.
<p>The API for Kicker panel applets and extensions has changed. Panels can now be
left/top, center, or right/bottom aligned, and applets and extensions may receive
notification about a change in tqalignment.
notification about a change in alignment.
<H4>KPanelApplet</H4>
<p>The virtual methods orientationChange() and popupDirectionChange() are deprecated.
Instead you should reimplement positionChange() and tqalignmentChange() to be
notified of changes in the position and tqalignment of the panel on which your applet
Instead you should reimplement positionChange() and alignmentChange() to be
notified of changes in the position and alignment of the panel on which your applet
resides. In addition, the popupDirection() method and the Direction enum are
deprecated. Instead you should use the position() method and Position enum. Applets that use
the deprecated methods will still work with KDE 3, but may not compile or work with
@ -661,8 +661,8 @@ a future version.
<H4>KPanelExtension</H4>
<p>There is a new method tqalignmentChange() that your extension should reimplement if
it needs to know about changes in tqalignment.
<p>There is a new method alignmentChange() that your extension should reimplement if
it needs to know about changes in alignment.
<H4><P ALIGN="RIGHT"><A HREF="#TOC">Return to the Table of Contents</A></P></H4>
<p>

@ -1,7 +1,7 @@
/**
* @mainpage The Trinity API Reference
*
* This section tqcontains the Trinity online class reference for the current
* This section contains the Trinity online class reference for the current
* development version of Trinity. You can also
* download the complete API documentation from
* <a target="_top" href="http://trinity.pearsoncomputing.net/">trinity.pearsoncomputing.net</a>. Additionally, you
@ -57,7 +57,7 @@
* <i>The Trinity resources system.</i>
* - <a target="_top" href="kutils/html/index.html"><b>kutils</b></a>
* (<a target="_top" href="kutils/html/classes.html">classes</a>)\n
* <i>High-level utils, like search/tqreplace support.</i>
* <i>High-level utils, like search/replace support.</i>
* - <a target="_top" href="arts/html/index.html"><b>arts</b></a>
* (<a target="_top" href="arts/html/classes.html">classes</a>)\n
* <i>Trinity bindings for arts including knotify.</i>

@ -40,8 +40,8 @@ pot_DATA = kde.pot
messages:
cd kabc/scripts && perl ./makeaddressee
tqfind . -type d | grep -v '\.svn' | sed -e 's,$$,/,' > dirs
mfs=`tqfind . -name Makefile.am | xargs egrep -l '^messages:'` ;\
find . -type d | grep -v '\.svn' | sed -e 's,$$,/,' > dirs
mfs=`find . -name Makefile.am | xargs egrep -l '^messages:'` ;\
for dir in $$mfs; do \
if test "$$dir" != "./Makefile.am"; then \
dir=`dirname $$dir` ;\
@ -50,11 +50,11 @@ messages:
done
fgrep -v "/tests" dirs > dirs.new && mv dirs.new dirs ;\
dirs=`cat dirs` ;\
tqfind $$dirs -maxdepth 1 -name "*.cpp" -print > files ;\
tqfind $$dirs -maxdepth 1 -name "*.cc" -print >> files ;\
tqfind $$dirs -maxdepth 1 -name "*.h" -print >> files ;\
find $$dirs -maxdepth 1 -name "*.cpp" -print > files ;\
find $$dirs -maxdepth 1 -name "*.cc" -print >> files ;\
find $$dirs -maxdepth 1 -name "*.h" -print >> files ;\
echo ./kdecore/kde-config.cpp.in >> files ;\
$(EXTRACTRC) `tqfind $$dirs -maxdepth 1 \( -name "*.rc" -o -name "*.ui" \) ` ./dnssd/kcm_kdnssd.kcfg > rc.cpp; \
$(EXTRACTRC) `find $$dirs -maxdepth 1 \( -name "*.rc" -o -name "*.ui" \) ` ./dnssd/kcm_kdnssd.kcfg > rc.cpp; \
: > kde.pot ;\
$(XGETTEXT) -ktranslate -x qt-messages.pot rc.cpp `cat files` && cat messages.po qt-messages.pot > $(podir)/kdelibs.pot
$(XGETTEXT) common_texts.cpp -o kde.pot
@ -81,7 +81,7 @@ qtmessages:
if test x$(top_srcdir) = x; then top_srcdir=. ; else top_srcdir=$(top_srcdir); fi ;\
cd $$top_srcdir/../qt-copy/src ;\
sed -e "s,#define,," xml/qxml.cpp > qxml_clean.cpp ;\
tqfind . -name "*.cpp" | grep -v tqmoc_ > list ;\
find . -name "*.cpp" | grep -v moc_ > list ;\
for file in qfiledialog qcolordialog qprintdialog \
qurloperator qftp qhttp qlocal qerrormessage; do \
grep -v $$file list > list.new && mv list.new list ;\

@ -20,7 +20,7 @@ Here is an alphabetical list:
* arts
ARTS (analog realtime synthesizer) is a environment of small modules
that one can plug together to process multimedia data. This directory
tqcontains KDE wrapper and KDE user interface elements for ARTS.
contains KDE wrapper and KDE user interface elements for ARTS.
* dcop
The desktop communication program allows even shell scripts to
@ -86,7 +86,7 @@ Here is an alphabetical list:
* kio
Classes that fetch and decode URLs are contained here. This library also
tqcontains "ksycoca", the system configure cache containing services,
contains "ksycoca", the system configure cache containing services,
applications, servicetypes and mimetypes.
* kioslave
@ -236,7 +236,7 @@ So, here are some tips on bug reporting:
older, deprecated versions usually don't get that much attention :-)
* Also the chance is high that another one experienced your problem. The
bug report wizard at http://bugs.kde.org will help you to tqfind out if your
bug report wizard at http://bugs.kde.org will help you to find out if your
problem has already been reported.
* The best bug report for a project based on voluntary work is of course one

10
TODO

@ -3,7 +3,7 @@ that we would like to make for the next binary incompatible release.
- Check for forked classes in kde pim and other modules
- There is no reason why KConfigBase should inherit from TQObject, get rid of that.
- There is no reason why KConfigBase should inherit from QObject, get rid of that.
- Change all FooPrivate *d; -> Private * const d; and place initialization
in the constructor (for classes that would benefit from this). To help catch silly
@ -19,7 +19,7 @@ that we would like to make for the next binary incompatible release.
- Remove all KDE_NO_COMPAT from the KDE2 -> KDE3 port before adding new ones for KDE4.
- Remove the smart-to-dumb-pointer conversion operator from KSharedPtr
and tqreplace it with a T* Get() member function. An implict conversion is
and replace it with a T* Get() member function. An implict conversion is
far too dangerous.
See: http://groups.google.com/groups?selm=4ognb0%243cd%40linda.teleport.com&oe=UTF-8&output=gplain
Also free the client from the requirement to inherit from KShared.
@ -59,7 +59,7 @@ that we would like to make for the next binary incompatible release.
- Manually, properly clean up the includes in all of the headers. Remove
unnecessary ones and change pointers to use class foo; decorations and move the
headers into the cpp files. When finished fixkdeincludes shouldn't tqfind
headers into the cpp files. When finished fixkdeincludes shouldn't find
anything (but don't rely on fixkdeinclude, it should be done manually first!)
- Use of the C++ keyword "explicit". Make all ctors explicit which can be used
@ -199,7 +199,7 @@ an alternative help->contents action)
- Make sure all GUI classes adopt well to palette changes.
- Rework KPanelExtension and KPanelApplet to have a sane set of global position
enums, make the tqgeometry handling less spaghetti like and extend the API so
enums, make the geometry handling less spaghetti like and extend the API so
requests for things like re-reading the config of a KPanelExtension can be
done by its parent.
@ -212,7 +212,7 @@ an alternative help->contents action)
- KListView: merge setDropHighlighter and setDropVisualizer, add a setDnDMode to choose between
"dnd to move items" (e.g. keditbookmarks) and "dnd onto items" (e.g. kmail). Unless Qt4 does it all :)
- Move KIO::findDeviceMountPoint, tqfindPathMoundPoint, probably_slow_mounted, and testFileSystemFlag to KMountPoint,
- Move KIO::findDeviceMountPoint, findPathMoundPoint, probably_slow_mounted, and testFileSystemFlag to KMountPoint,
to merge that code.
- Refactor the kio/bookmarks code so we don't need to use the static d-pointer trick anymore.

@ -61,7 +61,7 @@ namespace Arts
* }
* \endcode
*/
class KDE_EXPORT KArtsDispatcher : public TQObject
class KDE_EXPORT KArtsDispatcher : public QObject
{
Q_OBJECT
public:

@ -77,12 +77,12 @@ Arts::SoundServerV2 KArtsServer::server(void)
X11CommConfig.sync();
proc << TQFile::encodeName(KStandardDirs::findExe(TQString::tqfromLatin1("kdeinit_wrapper")));
proc << TQFile::encodeName(KStandardDirs::findExe(TQString::fromLatin1("kdeinit_wrapper")));
if(rt)
proc << TQFile::encodeName(KStandardDirs::findExe(TQString::tqfromLatin1("artswrapper")));
proc << TQFile::encodeName(KStandardDirs::findExe(TQString::fromLatin1("artswrapper")));
else
proc << TQFile::encodeName(KStandardDirs::findExe(TQString::tqfromLatin1("artsd")));
proc << TQFile::encodeName(KStandardDirs::findExe(TQString::fromLatin1("artsd")));
proc << TQStringList::split( " ", config.readEntry( "Arguments", "-F 10 -S 4096 -s 60 -m artsmessage -l 3 -f" ) );

@ -34,7 +34,7 @@
* artsd on KDE startup, but at the very least there will always be third
* party PlayObjects that will crash. So, this is necessary.
*/
class KDE_ARTS_EXPORT KArtsServer : public TQObject
class KDE_ARTS_EXPORT KArtsServer : public QObject
{
Q_OBJECT

@ -29,7 +29,7 @@
class KURL;
class TQString;
class KAudioConverter : public TQObject
class KAudioConverter : public QObject
{
Q_OBJECT
public:

@ -38,7 +38,7 @@ namespace Arts { class StereoEffectStack; }
* @author Matthias Kretz <kretz@kde.org>
* @since 3.2
*/
class KDE_ARTS_EXPORT KAudioRecordStream : public TQObject
class KDE_ARTS_EXPORT KAudioRecordStream : public QObject
{
Q_OBJECT

@ -24,7 +24,7 @@
#include <tqobject.h>
class KConvertTest : public TQObject
class KConvertTest : public QObject
{
Q_OBJECT
public:

@ -78,7 +78,7 @@ void KIOInputStream_impl::streamStart()
m_job = KIO::get(m_url, false, false);
m_job->addMetaData("accept", "audio/x-mp3, video/mpeg, application/ogg");
m_job->addMetaData("UserAgent", TQString::tqfromLatin1("aRts/") + TQString::tqfromLatin1(ARTS_VERSION));
m_job->addMetaData("UserAgent", TQString::fromLatin1("aRts/") + TQString::fromLatin1(ARTS_VERSION));
TQObject::connect(m_job, TQT_SIGNAL(data(KIO::Job *, const TQByteArray &)),
this, TQT_SLOT(slotData(KIO::Job *, const TQByteArray &)));

@ -65,7 +65,7 @@ void KPlayObject::halt()
TQString KPlayObject::description()
{
return TQString::tqfromLatin1(object().description().c_str());
return TQString::fromLatin1(object().description().c_str());
}
Arts::poTime KPlayObject::currentTime()
@ -85,7 +85,7 @@ Arts::poCapabilities KPlayObject::capabilities()
TQString KPlayObject::mediaName()
{
return TQString::tqfromLatin1(object().mediaName().c_str());
return TQString::fromLatin1(object().mediaName().c_str());
}
Arts::poState KPlayObject::state()
@ -243,7 +243,7 @@ TQString KDE::PlayObject::description()
{
if ( object().isNull() )
return TQString();
return TQString::tqfromLatin1(object().description().c_str());
return TQString::fromLatin1(object().description().c_str());
}
Arts::poTime KDE::PlayObject::currentTime()
@ -271,7 +271,7 @@ TQString KDE::PlayObject::mediaName()
{
if ( object().isNull() )
return TQString();
return TQString::tqfromLatin1(object().mediaName().c_str());
return TQString::fromLatin1(object().mediaName().c_str());
}
Arts::poState KDE::PlayObject::state()

@ -27,7 +27,7 @@
#include <kurl.h>
#include <tqobject.h>
class KDE_EXPORT KPlayObject : public TQObject
class KDE_EXPORT KPlayObject : public QObject
{
Q_OBJECT
public:
@ -185,7 +185,7 @@ class PlayObjectFactory;
* internal state until the real Arts::PlayObject got created, afterwards
* the state of the Arts::PlayObject will be returned.
*/
class KDE_EXPORT PlayObject : public TQObject
class KDE_EXPORT PlayObject : public QObject
{
Q_OBJECT
public:

@ -29,7 +29,7 @@
namespace KDE {
class PlayObjectCreator : public TQObject
class PlayObjectCreator : public QObject
{
Q_OBJECT
public:

@ -155,7 +155,7 @@ KDE::PlayObject *KDE::PlayObjectFactory::createPlayObject(const KURL& _url, cons
}
// decide if it's a local file. mpeglib provides cdda reading and decoding, so we prefer that over kio_audiocd
if ( url.isLocalFile() || !d->allowStreaming || (url.protocol() == "audiocd" && mimetype == "application/x-cda" && mimeTypes().tqcontains( "application/x-cda" ) ) )
if ( url.isLocalFile() || !d->allowStreaming || (url.protocol() == "audiocd" && mimetype == "application/x-cda" && mimeTypes().contains( "application/x-cda" ) ) )
{
// we rely on the delivered mimetype if it's a local file
d->playObj = new KDE::PlayObject( d->server.createPlayObjectForURL( string( TQFile::encodeName( url.path() ) ), string( mimetype.latin1() ), createBUS ), false );

@ -29,7 +29,7 @@ namespace KDE
/**
* @internal
*/
class POFHelper : public TQObject
class POFHelper : public QObject
{
friend class PlayObjectFactory;
Q_OBJECT

@ -92,7 +92,7 @@ KVideoWidget::KVideoWidget( TQWidget *parent, const char *name, WFlags f )
void KVideoWidget::init(void)
{
setMinimumSize(0, 0);
tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );
setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );
setFocusPolicy( ClickFocus );
fullscreenWidget = 0;
@ -147,7 +147,7 @@ void KVideoWidget::embed( Arts::VideoPlayObject vpo )
}
setBackgroundMode( PaletteBackground );
tqrepaint();
repaint();
// Resize GUI
videoWidth = 0;
@ -286,7 +286,7 @@ void KVideoWidget::setDoubleSize()
doubleSizeActivated();
}
TQSize KVideoWidget::tqsizeHint() const
TQSize KVideoWidget::sizeHint() const
{
return TQSize( videoWidth, videoHeight );
}

@ -36,7 +36,7 @@ public:
bool isNormalSize();
bool isDoubleSize();
TQSize tqsizeHint() const;
TQSize sizeHint() const;
virtual int heightForWidth ( int w ) const;

@ -351,13 +351,13 @@ void KNotify::notify(const TQString &event, const TQString &fromApp,
if ( !event.isEmpty() ) {
// get config file
if ( d->events.tqcontains( fromApp ) ) {
if ( d->events.contains( fromApp ) ) {
eventsFile = d->events[fromApp];
} else {
eventsFile=new KConfig(locate("data", fromApp+"/eventsrc"),true,false);
d->events.insert( fromApp, eventsFile );
}
if ( d->configs.tqcontains( fromApp) ) {
if ( d->configs.contains( fromApp) ) {
configFile = d->configs[fromApp];
} else {
configFile=new KConfig(fromApp+".eventsrc",true,false);
@ -642,7 +642,7 @@ bool KNotify::notifyByLogfile(const TQString &text, const TQString &file)
// append msg
TQTextStream strm( &logFile );
strm << "- KNotify " << TQDateTime::tqcurrentDateTime().toString() << ": ";
strm << "- KNotify " << TQDateTime::currentDateTime().toString() << ": ";
strm << text << endl;
// close file
@ -660,7 +660,7 @@ bool KNotify::notifyByStderr(const TQString &text)
TQTextStream strm( stderr, IO_WriteOnly );
// output msg
strm << "KNotify " << TQDateTime::tqcurrentDateTime().toString() << ": ";
strm << "KNotify " << TQDateTime::currentDateTime().toString() << ": ";
strm << text << endl;
return true;
@ -695,7 +695,7 @@ void KNotify::playTimeout()
++it;
if ( (*current)->state() != Arts::posPlaying )
{
TQMap<KDE::PlayObject*,int>::Iterator eit = d->playObjectEventMap.tqfind( *current );
TQMap<KDE::PlayObject*,int>::Iterator eit = d->playObjectEventMap.find( *current );
if ( eit != d->playObjectEventMap.end() )
{
soundFinished( *eit, PlayedOK );
@ -730,7 +730,7 @@ void KNotify::slotPlayerProcessExited( KProcess *proc )
void KNotify::abortFirstPlayObject()
{
#ifndef WITHOUT_ARTS
TQMap<KDE::PlayObject*,int>::Iterator it = d->playObjectEventMap.tqfind( d->playObjects.getFirst() );
TQMap<KDE::PlayObject*,int>::Iterator it = d->playObjectEventMap.find( d->playObjects.getFirst() );
if ( it != d->playObjectEventMap.end() )
{
soundFinished( it.data(), Aborted );
@ -740,7 +740,7 @@ void KNotify::abortFirstPlayObject()
#endif
}
void KNotify::soundFinished( int eventId, PlayingFinishedtqStatus reason )
void KNotify::soundFinished( int eventId, PlayingFinishedStatus reason )
{
TQByteArray data;
TQDataStream stream( data, IO_WriteOnly );

@ -37,7 +37,7 @@ public:
KNotify( bool useArts );
~KNotify();
enum PlayingFinishedtqStatus
enum PlayingFinishedStatus
{
PlayedOK = 0, // success, all following mean failure
NoSoundFile,
@ -86,7 +86,7 @@ private:
bool isPlaying( const TQString& soundFile ) const;
void soundFinished( int eventId, PlayingFinishedtqStatus reason );
void soundFinished( int eventId, PlayingFinishedStatus reason );
void abortFirstPlayObject();
WId checkWinId( const TQString& appName, WId senderWinId );

@ -83,7 +83,7 @@ int main(int argc, char **argv) {
KMessageBox::sorry(0, msg, i18n("Warning"), notifyOptions);
} else if (args->isSet("i")) {
TQString id = msg;
id.tqreplace(TQRegExp("[\\[\\]\\s=]"), "_");
id.replace(TQRegExp("[\\[\\]\\s=]"), "_");
KMessageBox::information(0, msg, i18n("Informational"), id, notifyOptions);
} else {
KMessageBox::error(0, msg, i18n("Error"), notifyOptions);

@ -17,7 +17,7 @@
Boston, MA 02110-1301, USA.
*/
/* This file tqcontains several often used phrases to avoid double
/* This file contains several often used phrases to avoid double
work. If you think, that a phrase belongs here, contact me
*/
@ -186,7 +186,7 @@ i18n( "&Tools");
i18n( "&Spelling...");
i18n( "Show &Menubar");
i18n( "Show &Toolbar");
i18n( "Show &tqStatusbar");
i18n( "Show &Statusbar");
i18n( "Configure &Key Bindings...");
i18n( "&Preferences...");
i18n( "&Settings");

@ -56,7 +56,7 @@
/* You _must_ have bool */
#undef HAVE_BOOL
/* Define if getaddrinfo is broken and should be tqreplaced */
/* Define if getaddrinfo is broken and should be replaced */
#cmakedefine HAVE_BROKEN_GETADDRINFO 1
/* Defines if bzip2 is compiled */
@ -236,7 +236,7 @@
/* Define if you have jasper */
#cmakedefine HAVE_JASPER 1
/* Define if your locale.h file tqcontains LC_MESSAGES */
/* Define if your locale.h file contains LC_MESSAGES */
#undef HAVE_LC_MESSAGES
/* Defines if your system has the libart library */

@ -5,7 +5,7 @@ if test "x$have_ssl" != xyes; then
echo "You're missing openSSL, or your version is too old (before 0.9.5a)."
echo "KDE won't be able to access secure websites without it, so you should"
echo "consider installing or upgrading it."
echo "Have a look at http://www.openssl.org, or tqfind a binary package for"
echo "Have a look at http://www.openssl.org, or find a binary package for"
echo "your platform."
echo ""
all_tests=bad
@ -17,7 +17,7 @@ if test -z "$LIBART_CONFIG"; then
echo "KDE won't be able to render SVG icons without it, so you should"
echo "consider installing or upgrading it."
echo "Have a look at http://www.levien.com (official site) or"
echo "http://svg.kde.org/download.html for sources, or tqfind a binary"
echo "http://svg.kde.org/download.html for sources, or find a binary"
echo "package for your platform."
echo ""
all_tests=bad
@ -29,7 +29,7 @@ if test -z "$LIBPCRE"; then
echo "Some web pages (using regular expressions in Javascript code) will not "
echo "work correctly, the regexp support being limited without libpcre. "
echo "If you plan to use Konqueror as a Web Browser, download libpcre from "
echo "http://www.pcre.org or tqfind a binary package for your platform."
echo "http://www.pcre.org or find a binary package for your platform."
echo ""
all_tests=bad
fi
@ -40,7 +40,7 @@ if test -z "$LIBBZ2"; then
echo "KDE won't be able to provide a help ioslave (help://) without it,"
echo "so if you want helpfiles you should consider installing it."
echo "Have a look at http://sources.redhat.com/bzip2/ for sources, "
echo "or tqfind a binary package for your platform."
echo "or find a binary package for your platform."
echo ""
all_tests=bad
fi
@ -50,9 +50,9 @@ if test -z "$LIBXML_CFLAGS"; then
echo "You're missing libxml2 2.4.8 or later."
echo "KDE won't be able to provide a help ioslave (help://) without it,"
echo "so if you want helpfiles you should consider installing it."
echo "Have a look at ftp://xmlsoft.org/ for sources, or tqfind a binary"
echo "Have a look at ftp://xmlsoft.org/ for sources, or find a binary"
echo "package for your platform."
echo "You can tqfind a copy of libxml2 in the kdesupport module if you're using CVS."
echo "You can find a copy of libxml2 in the kdesupport module if you're using CVS."
echo ""
all_tests=bad
fi
@ -62,9 +62,9 @@ if test -z "$LIBXSLT_CFLAGS"; then
echo "You're missing libxslt 1.0.7 or later."
echo "KDE won't be able to provide a help ioslave (help://) without it,"
echo "so if you want helpfiles you should consider installing it."
echo "Have a look at ftp://xmlsoft.org/ for sources, or tqfind a binary"
echo "Have a look at ftp://xmlsoft.org/ for sources, or find a binary"
echo "package for your platform."
echo "You can tqfind a copy of libxslt in the kdesupport module if you're using CVS."
echo "You can find a copy of libxslt in the kdesupport module if you're using CVS."
echo ""
all_tests=bad
fi

@ -328,7 +328,7 @@ AC_DEFINE_UNQUOTED(X11_RGBFILE, "$rgb_file", [where rgb.txt is in])
AC_MSG_CHECKING([for Compiler version])
case "$CXX" in
xlC*)
# The __IBMCPP__ macro tqcontains the C++ compiler version in decimal notation.
# The __IBMCPP__ macro contains the C++ compiler version in decimal notation.
echo "__IBMCPP__" > conftest.C
# Preprocess and at least make sure it's returned a number.

@ -190,7 +190,7 @@ Receiving Data via DCOP:
Currently the only real way to receive data from DCOP is to multiply
inherit from the normal class that you are inheriting (usually some
sort of QWidget subclass or TQObject) as well as the DCOPObject class.
sort of QWidget subclass or QObject) as well as the DCOPObject class.
DCOPObject provides one very important method: DCOPObject::process().
This is a pure virtual method that you must implement in order to
process DCOP messages that you receive. It takes a function
@ -385,7 +385,7 @@ but virtual, not pure virtual.
Example:
class MyClass: public TQObject, virtual public MyInterface
class MyClass: public QObject, virtual public MyInterface
{
Q_OBJECT
@ -397,7 +397,7 @@ class MyClass: public TQObject, virtual public MyInterface
QRect mySynchronousMethod();
};
Note: (Qt issue) Remember that if you are inheriting from TQObject, you must
Note: (Qt issue) Remember that if you are inheriting from QObject, you must
place it first in the list of inherited classes.
In the implementation of your class' ctor, you must explicitly initialize
@ -408,7 +408,7 @@ the interface which your are implementing.
Example:
MyClass::MyClass()
: TQObject(),
: QObject(),
DCOPObject("MyInterface")
{
// whatever...
@ -429,7 +429,7 @@ It is not necessary (though very clean) to define an interface as an
abstract class of its own, like we did in the example above. We could
just as well have defined a k_dcop section directly within MyClass:
class MyClass: public TQObject, virtual public DCOPObject
class MyClass: public QObject, virtual public DCOPObject
{
Q_OBJECT
K_DCOP

@ -11,7 +11,7 @@ EXPORTS
IceCloseConnection
IceComposeNetworkIdList
IceConnectionNumber
IceConnectiontqStatus
IceConnectionStatus
IceConnectionString
IceFlush
IceFreeAuthFileEntry

@ -39,7 +39,7 @@ Author: Ralph Mor, X Consortium
#define _IceRead _kde_IceRead
extern tqStatus _IceRead (
extern Status _IceRead (
#if NeedFunctionPrototypes
IceConn /* iceConn */,
unsigned long /* nbytes */,
@ -221,7 +221,7 @@ extern void _IceErrorBadValue (
/*
* Write pad bytes. Used to force 32 or 64 bit tqalignment.
* Write pad bytes. Used to force 32 or 64 bit alignment.
* A maxium of 7 pad bytes can be specified.
*/
@ -306,7 +306,7 @@ extern void _IceErrorBadValue (
/*
* Read pad bytes (for 32 or 64 bit tqalignment).
* Read pad bytes (for 32 or 64 bit alignment).
* A maxium of 7 pad bytes can be specified.
*/

@ -119,7 +119,7 @@ extern void IceFreeAuthFileEntry (
#define IceWriteAuthFileEntry KDE_IceWriteAuthFileEntry
extern tqStatus KDE_IceWriteAuthFileEntry (
extern Status KDE_IceWriteAuthFileEntry (
#if NeedFunctionPrototypes
FILE * /* auth_file */,
IceAuthFileEntry * /* auth */

@ -54,7 +54,7 @@ extern char *strchr(const char *, int);
#endif
/*
* The transport table tqcontains a definition for every transport (protocol)
* The transport table contains a definition for every transport (protocol)
* family. All operations that can be made on the transport go through this
* table.
*
@ -405,7 +405,7 @@ TRANS(Open) (int type, char *address)
if ((thistrans = TRANS(SelectTransport) (protocol)) == NULL)
{
PRMSG (1,"Open: Unable to tqfind transport for %s\n",
PRMSG (1,"Open: Unable to find transport for %s\n",
protocol, 0, 0);
xfree (protocol);
@ -495,7 +495,7 @@ TRANS(Reopen) (int type, int trans_id, int fd, char *port)
if (thistrans == NULL)
{
PRMSG (1,"Reopen: Unable to tqfind transport id %d\n",
PRMSG (1,"Reopen: Unable to find transport id %d\n",
trans_id, 0, 0);
return NULL;
@ -750,7 +750,7 @@ TRANS(NoListen) (char * protocol)
if ((trans = TRANS(SelectTransport)(protocol)) == NULL)
{
PRMSG (1,"TRANS(TransNoListen): unable to tqfind transport: %s\n",
PRMSG (1,"TRANS(TransNoListen): unable to find transport: %s\n",
protocol, 0, 0);
return -1;

@ -176,7 +176,7 @@ static int IBMsockInit = 0;
/*
* This is the Socket implementation of the X Transport service layer
*
* This file tqcontains the implementation for both the UNIX and INET domains,
* This file contains the implementation for both the UNIX and INET domains,
* and can be built for either one, or both.
*
*/
@ -910,7 +910,7 @@ TRANS(SocketUNIXCreateListener) (XtransConnInfo ciptr, char *port)
{
struct sockaddr_un sockname;
int namelen;
int oldUtqmask;
int oldUmask;
int status;
unsigned int mode;
@ -919,7 +919,7 @@ TRANS(SocketUNIXCreateListener) (XtransConnInfo ciptr, char *port)
/* Make sure the directory is created */
oldUtqmask = umask (0);
oldUmask = umask (0);
#ifdef UNIX_DIR
#ifdef HAS_STICKY_DIR_BIT
@ -930,7 +930,7 @@ TRANS(SocketUNIXCreateListener) (XtransConnInfo ciptr, char *port)
if (trans_mkdir((char*)UNIX_DIR, mode) == -1) {
PRMSG (1, "SocketUNIXCreateListener: mkdir(%s) failed, errno = %d\n",
UNIX_DIR, errno, 0);
(void) umask (oldUtqmask);
(void) umask (oldUmask);
return TRANS_CREATE_LISTENER_FAILED;
}
#endif
@ -952,7 +952,7 @@ TRANS(SocketUNIXCreateListener) (XtransConnInfo ciptr, char *port)
#endif
unlink (sockname.sun_path);
(void) umask (oldUtqmask);
(void) umask (oldUmask);
if ((status = TRANS(SocketCreateListener) (ciptr,
(struct sockaddr *) &sockname, namelen)) < 0)
@ -1011,7 +1011,7 @@ TRANS(SocketUNIXResetListener) (XtransConnInfo ciptr)
S_IFSOCK))
#endif
{
int oldUtqmask = umask (0);
int oldUmask = umask (0);
#ifdef UNIX_DIR
#ifdef HAS_STICKY_DIR_BIT
@ -1022,7 +1022,7 @@ TRANS(SocketUNIXResetListener) (XtransConnInfo ciptr)
if (trans_mkdir((char*)UNIX_DIR, mode) == -1) {
PRMSG (1, "SocketUNIXResetListener: mkdir(%s) failed, errno = %d\n",
UNIX_DIR, errno, 0);
(void) umask (oldUtqmask);
(void) umask (oldUmask);
return TRANS_RESET_FAILURE;
}
#endif
@ -1033,7 +1033,7 @@ TRANS(SocketUNIXResetListener) (XtransConnInfo ciptr)
if ((ciptr->fd = socket (AF_UNIX, SOCK_STREAM, 0)) < 0)
{
TRANS(FreeConnInfo) (ciptr);
(void) umask (oldUtqmask);
(void) umask (oldUmask);
return TRANS_RESET_FAILURE;
}
@ -1048,11 +1048,11 @@ TRANS(SocketUNIXResetListener) (XtransConnInfo ciptr)
{
close (ciptr->fd);
TRANS(FreeConnInfo) (ciptr);
(void) umask (oldUtqmask);
(void) umask (oldUmask);
return TRANS_RESET_FAILURE;
}
umask (oldUtqmask);
umask (oldUmask);
status = TRANS_RESET_NEW_FD;
}

@ -62,12 +62,12 @@ extern unsigned sleep ();
#endif
#endif
static tqStatus read_short (FILE *file, unsigned short *shortp);
static tqStatus read_string (FILE *file, char **stringp);
static tqStatus read_counted_string (FILE *file, unsigned short *countp, char **stringp);
static tqStatus write_short (FILE *file, unsigned short s);
static tqStatus write_string (FILE *file, char *string);
static tqStatus write_counted_string (FILE *file, unsigned short count, char *string);
static Status read_short (FILE *file, unsigned short *shortp);
static Status read_string (FILE *file, char **stringp);
static Status read_counted_string (FILE *file, unsigned short *countp, char **stringp);
static Status write_short (FILE *file, unsigned short s);
static Status write_string (FILE *file, char *string);
static Status write_counted_string (FILE *file, unsigned short count, char *string);
@ -322,7 +322,7 @@ IceAuthFileEntry *auth;
tqStatus
Status
IceWriteAuthFileEntry (auth_file, auth)
FILE *auth_file;
@ -398,7 +398,7 @@ const char *auth_name;
* local routines
*/
static tqStatus
static Status
read_short (FILE *file, unsigned short *shortp)
{
unsigned char file_short[2];
@ -411,7 +411,7 @@ read_short (FILE *file, unsigned short *shortp)
}
static tqStatus
static Status
read_string (FILE *file, char **stringp)
{
unsigned short len;
@ -447,7 +447,7 @@ read_string (FILE *file, char **stringp)
}
static tqStatus
static Status
read_counted_string (FILE *file, unsigned short *countp, char **stringp)
{
unsigned short len;
@ -481,7 +481,7 @@ read_counted_string (FILE *file, unsigned short *countp, char **stringp)
}
static tqStatus
static Status
write_short (FILE *file, unsigned short s)
{
unsigned char file_short[2];
@ -496,7 +496,7 @@ write_short (FILE *file, unsigned short s)
}
static tqStatus
static Status
write_string (FILE *file, char *string)
{
unsigned short count = strlen (string);
@ -511,7 +511,7 @@ write_string (FILE *file, char *string)
}
static tqStatus
static Status
write_counted_string (FILE *file, unsigned short count, char *string)
{
if (!write_short (file, count))

@ -135,7 +135,7 @@ char **errorStringRet;
if (!data)
{
const char *tempstr =
"Could not tqfind correct MIT-MAGIC-COOKIE-1 authentication";
"Could not find correct MIT-MAGIC-COOKIE-1 authentication";
*errorStringRet = (char *) malloc (strlen (tempstr) + 1);
if (*errorStringRet)
@ -243,7 +243,7 @@ char **errorStringRet;
/*
* We should never get here because in the ConnectionReply
* we should have passed all the valid methods. So we should
* always tqfind a valid entry.
* always find a valid entry.
*/
const char *tempstr =

@ -36,7 +36,7 @@ Author: Ralph Mor, X Consortium
#include <string.h>
tqStatus
Status
IceListenForConnections (countRet, listenObjsRet, errorLength, errorStringRet)
int *countRet;
@ -50,7 +50,7 @@ char *errorStringRet;
int transCount, partial, i, j;
int result = -1;
int count = 0;
tqStatus status = 1;
Status status = 1;
XtransConnInfo *transConns = NULL;
while ((result < 0) && (count < 5))

@ -33,7 +33,7 @@ in this Software without prior written authorization from The Open Group.
#include <string.h>
tqStatus
Status
IceListenForWellKnownConnections (port, countRet, listenObjsRet, errorLength, errorStringRet)
char *port;
@ -46,7 +46,7 @@ char *errorStringRet;
struct _IceListenObj *listenObjs;
char *networkId;
int transCount, partial, i, j;
tqStatus status = 1;
Status status = 1;
XtransConnInfo *transConns = NULL;

@ -32,7 +32,7 @@ Author: Ralph Mor, X Consortium
*/
tqStatus
Status
IceInitThreads ()
{

@ -26,7 +26,7 @@ Author: Ralph Mor, X Consortium
#include <KDE-ICE/ICElib.h>
#include "KDE-ICE/ICElibint.h"
tqStatus
Status
IcePing (iceConn, pingReplyProc, clientData)
IceConn iceConn;

@ -27,7 +27,7 @@ Author: Ralph Mor, X Consortium
#include "KDE-ICE/ICElibint.h"
#include "KDE-ICE/globals.h"
tqStatus
Status
IceAddConnectionWatch (watchProc, clientData)
IceWatchProc watchProc;

@ -148,7 +148,7 @@ else {
Currently the only real way to receive data from DCOP is to multiply
inherit from the normal class that you are inheriting (usually some
sort of QWidget subclass or TQObject) as well as the DCOPObject class.
sort of QWidget subclass or QObject) as well as the DCOPObject class.
DCOPObject provides one very important method: DCOPObject::process().
This is a pure virtual method that you must implement in order to
process DCOP messages that you receive. It takes a function
@ -289,7 +289,7 @@ but virtual, not pure virtual.
Example:
\code
class MyClass: public TQObject, virtual public MyInterface
class MyClass: public QObject, virtual public MyInterface
{
Q_OBJECT
@ -301,7 +301,7 @@ class MyClass: public TQObject, virtual public MyInterface
QRect mySynchronousMethod();
};
\endcode
\note (Qt issue) Remember that if you are inheriting from TQObject, you must
\note (Qt issue) Remember that if you are inheriting from QObject, you must
place it first in the list of inherited classes.
In the implementation of your class' ctor, you must explicitly initialize
@ -313,7 +313,7 @@ Example:
\code
MyClass::MyClass()
: TQObject(),
: QObject(),
DCOPObject("MyInterface")
{
// whatever...
@ -338,7 +338,7 @@ abstract class of its own, like we did in the example above. We could
just as well have defined a k_dcop section directly within MyClass:
\code
class MyClass: public TQObject, virtual public DCOPObject
class MyClass: public QObject, virtual public DCOPObject
{
Q_OBJECT
K_DCOP
@ -373,7 +373,7 @@ b) the authentication must be ensured
For the first step, you simply pass the server address (as
found in .DCOPserver) to the second process. For the authentication,
you can use the ICEAUTHORITY environment variable to tell the
second process where to tqfind the authentication information.
second process where to find the authentication information.
(Note that this implies that the second process is able to
read the authentication file, so it will probably only work
if the second process runs as root. If it should run as another

@ -21,7 +21,7 @@ exit-code of '0' means success. An exit-code of '1' means error, the error
msg is printed to stderr and no data is printed to stdout.
dcoptqfind [-l] [-a] <app-id> [<object-id> [<select_func> [args]]]
dcopfind [-l] [-a] <app-id> [<object-id> [<select_func> [args]]]
Finds an existing DCOP application/object. The select_func can be used to
select a specific single instance out of many based on some criteria.
@ -38,7 +38,7 @@ With the -a option it prints out "<app-id>" instead of a DCOPRef.
With the -l option it calls "dcopstart <app-id>" if no object is found,
stripping off any wildcard from the <app-id>. If the dcopstart command is
successful the tqfind command is repeated, if the dcopstart command fails, an
successful the find command is repeated, if the dcopstart command fails, an
error message is printed to stderr and the command exits with exit-code '2'.
The default selection criteria is "any". Applications can declare their own
@ -46,7 +46,7 @@ select_func as they see fit, e.g. konqueror could declare
"isDoingProtocol(QString protocol)" and then the following command would
select a konqueror mainwindow that is currently handling the help-protocol:
"dcoptqfind 'konqueror*' 'konqueror-mainwindow*' 'isDoingProtocol(QString
"dcopfind 'konqueror*' 'konqueror-mainwindow*' 'isDoingProtocol(QString
protocol)' help"
@ -57,7 +57,7 @@ In addtion to the current syntax of
dcop <appid> <object> <function> args
you will now also be able to use <dcopref> to make calls with <dcopref> being
"DCOPRef(<appid>, <objectid>)" as returned by dcoptqfind.
"DCOPRef(<appid>, <objectid>)" as returned by dcopfind.
Additional utilities:

@ -158,9 +158,9 @@ void queryFunctions( const char* app, const char* obj )
int callFunction( const char* app, const char* obj, const char* func, const QCStringList args )
{
TQString f = func; // Qt is better with tqunicode strings, so use one.
int left = f.tqfind( '(' );
int right = f.tqfind( ')' );
TQString f = func; // Qt is better with unicode strings, so use one.
int left = f.find( '(' );
int right = f.find( ')' );
if ( right < left )
{
@ -181,12 +181,12 @@ int callFunction( const char* app, const char* obj, const char* func, const QCSt
return( 1 );
}
for ( QCStringList::Iterator it = funcs.begin(); it != funcs.end(); ++it ) {
int l = (*it).tqfind( '(' );
int l = (*it).find( '(' );
int s;
if (l > 0)
s = (*it).tqfindRev( ' ', l);
s = (*it).findRev( ' ', l);
else
s = (*it).tqfind( ' ' );
s = (*it).find( ' ' );
if ( s < 0 )
s = 0;
@ -195,8 +195,8 @@ int callFunction( const char* app, const char* obj, const char* func, const QCSt
if ( l > 0 && (*it).mid( s, l - s ) == func ) {
realfunc = (*it).mid( s );
const TQString arguments = (*it).mid(l+1,(*it).tqfind( ')' )-l-1);
uint a = arguments.tqcontains(',');
const TQString arguments = (*it).mid(l+1,(*it).find( ')' )-l-1);
uint a = arguments.contains(',');
if ( (a==0 && !arguments.isEmpty()) || a>0)
a++;
if ( a == args.count() )
@ -209,8 +209,8 @@ int callFunction( const char* app, const char* obj, const char* func, const QCSt
return( 1 );
}
f = realfunc;
left = f.tqfind( '(' );
right = f.tqfind( ')' );
left = f.find( '(' );
right = f.find( ')' );
}
doit:
@ -230,7 +230,7 @@ int callFunction( const char* app, const char* obj, const char* func, const QCSt
for ( TQStringList::Iterator it = types.begin(); it != types.end(); ++it ) {
TQString lt = (*it).simplifyWhiteSpace();
int s = lt.tqfind(' ');
int s = lt.find(' ');
// If there are spaces in the name, there may be two
// reasons: the parameter name is still there, ie.
@ -250,7 +250,7 @@ int callFunction( const char* app, const char* obj, const char* func, const QCSt
//
s=1;
while (s < static_cast<int>(partl.count()) && intTypes.tqcontains(partl[s]))
while (s < static_cast<int>(partl.count()) && intTypes.contains(partl[s]))
{
s++;
}
@ -345,7 +345,7 @@ void showHelp( int exitCode = 0 )
<< " in bash, but because no new dcop instance has to be started" << endl
<< " for each line this is generally much faster, especially for" << endl
<< " the slower GNU dynamic linkers." << endl
<< " The '%1' placeholder cannot be used to tqreplace e.g. the" << endl
<< " The '%1' placeholder cannot be used to replace e.g. the" << endl
<< " program, object or method name." << endl
<< " --user <user> Connect to the given user's DCOP server. This option will" << endl
<< " ignore the values of the environment vars $DCOPSERVER and" << endl
@ -464,9 +464,9 @@ int runDCOP( QCStringList args, UserList users, Session session,
QCStringList params;
DCOPClient *client = 0L;
int retval = 0;
if ( !args.isEmpty() && args[ 0 ].tqfind( "DCOPRef(" ) == 0 )
if ( !args.isEmpty() && args[ 0 ].find( "DCOPRef(" ) == 0 )
{
int delimPos = args[ 0 ].tqfindRev( ',' );
int delimPos = args[ 0 ].findRev( ',' );
if( delimPos == -1 )
{
cerr_ << "Error: '" << args[ 0 ]
@ -569,7 +569,7 @@ int runDCOP( QCStringList args, UserList users, Session session,
}
else if( !sessionName.isEmpty() )
{
if( sessions.tqcontains( sessionName ) )
if( sessions.contains( sessionName ) )
{
sessions.clear();
sessions.append( sessionName );
@ -625,7 +625,7 @@ int runDCOP( QCStringList args, UserList users, Session session,
continue;
else
{
cerr_ << "WARNING: Cannot tqfind ICE authority file "
cerr_ << "WARNING: Cannot find ICE authority file "
<< iceFile << "!" << endl
<< "Please check permissions or set the $ICEAUTHORITY"
<< " variable manually before" << endl
@ -706,12 +706,12 @@ int runDCOP( QCStringList args, UserList users, Session session,
sendUserTime( app );
if( readStdin )
{
QCStringList::Iterator tqreplaceArg = params.end();
QCStringList::Iterator replaceArg = params.end();
QCStringList::Iterator it = params.begin();
for( ; it != params.end(); ++it )
if( *it == "%1" )
tqreplaceArg = it;
replaceArg = it;
// Read from stdin until EOF and call function for each
// read line
@ -719,8 +719,8 @@ int runDCOP( QCStringList args, UserList users, Session session,
{
TQString buf = cin_.readLine();
if( tqreplaceArg != params.end() )
*tqreplaceArg = buf.local8Bit();
if( replaceArg != params.end() )
*replaceArg = buf.local8Bit();
if( !buf.isNull() )
{
@ -861,7 +861,7 @@ int main( int argc, char** argv )
if (prog[prog.length()-1] != '*')
{
// Strip a trailing -<PID> part.
int i = prog.tqfindRev('-');
int i = prog.findRev('-');
if ((i >= 0) && prog.mid(i+1).toLong())
{
prog = prog.left(i);

@ -38,11 +38,11 @@ static DCOPClient* dcop = 0;
static bool bAppIdOnly = 0;
static bool bLaunchApp = 0;
bool tqfindObject( const char* app, const char* obj, const char* func, QCStringList args )
bool findObject( const char* app, const char* obj, const char* func, QCStringList args )
{
TQString f = func; // Qt is better with tqunicode strings, so use one.
int left = f.tqfind( '(' );
int right = f.tqfind( ')' );
TQString f = func; // Qt is better with unicode strings, so use one.
int left = f.find( '(' );
int right = f.find( ')' );
if ( right < left )
{
@ -66,7 +66,7 @@ bool tqfindObject( const char* app, const char* obj, const char* func, QCStringL
for ( TQStringList::Iterator it = types.begin(); it != types.end(); ++it ) {
TQString lt = (*it).simplifyWhiteSpace();
int s = lt.tqfind(' ');
int s = lt.find(' ');
// If there are spaces in the name, there may be two
// reasons: the parameter name is still there, ie.
@ -86,7 +86,7 @@ bool tqfindObject( const char* app, const char* obj, const char* func, QCStringL
//
s=1;
while (s < (int)partl.count() && intTypes.tqcontains(partl[s]))
while (s < (int)partl.count() && intTypes.contains(partl[s]))
{
s++;
}
@ -139,7 +139,7 @@ bool tqfindObject( const char* app, const char* obj, const char* func, QCStringL
TQCString foundApp;
TQCString foundObj;
if ( dcop->tqfindObject( app, obj, f.latin1(), data, foundApp, foundObj) )
if ( dcop->findObject( app, obj, f.latin1(), data, foundApp, foundObj) )
{
if (bAppIdOnly)
puts(foundApp.data());
@ -192,7 +192,7 @@ bool launchApp(TQString app)
void usage()
{
fprintf( stderr, "Usage: dcoptqfind [-l] [-a] application [object [function [arg1] [arg2] [arg3] ... ] ] ] \n" );
fprintf( stderr, "Usage: dcopfind [-l] [-a] application [object [function [arg1] [arg2] [arg3] ... ] ] ] \n" );
exit(0);
}
@ -267,7 +267,7 @@ int main( int argc, char** argv )
QCStringList params;
for( int i = 0; i < argc; i++ )
params.append( args[ i ] );
bool ok = tqfindObject( app, objid, function, params );
bool ok = findObject( app, objid, function, params );
if (ok)
return 0;
if (bLaunchApp)
@ -275,7 +275,7 @@ int main( int argc, char** argv )
ok = launchApp(app);
if (!ok)
return 2;
ok = tqfindObject( app, objid, function, params );
ok = findObject( app, objid, function, params );
}
return 1;

@ -33,7 +33,7 @@ static DCOPClient* dcop = 0;
void startApp(const char *_app, int argc, const char **args)
{
const char *function = 0;
TQString app = TQString::tqfromLatin1(_app);
TQString app = TQString::fromLatin1(_app);
if (app.endsWith(".desktop"))
function = "start_service_by_desktop_path(TQString,TQStringList)";
else

@ -102,12 +102,12 @@ TQCString demarshal( TQDataStream &stream, const TQString &type )
{
TQCString result;
if ( type == "int" || type == "TQ_INT32" )
if ( type == "int" || type == "Q_INT32" )
{
int i;
stream >> i;
result.setNum( i );
} else if ( type == "uint" || type == "TQ_UINT32" || type == "unsigned int" )
} else if ( type == "uint" || type == "Q_UINT32" || type == "unsigned int" )
{
uint i;
stream >> i;
@ -132,12 +132,12 @@ TQCString demarshal( TQDataStream &stream, const TQString &type )
double d;
stream >> d;
result.setNum( d, 'f' );
} else if ( type == "TQ_INT64" ) {
TQ_INT64 i;
} else if ( type == "Q_INT64" ) {
Q_INT64 i;
stream >> i;
result.sprintf( "%lld", i );
} else if ( type == "TQ_UINT64" ) {
TQ_UINT64 i;
} else if ( type == "Q_UINT64" ) {
Q_UINT64 i;
stream >> i;
result.sprintf( "%llu", i );
} else if ( type == "bool" )
@ -190,7 +190,7 @@ TQCString demarshal( TQDataStream &stream, const TQString &type )
result.sprintf( "%dx%d+%d+%d", r.width(), r.height(), r.x(), r.y() );
} else if ( type == "TQVariant" )
{
TQ_INT32 type;
Q_INT32 type;
stream >> type;
return demarshal( stream, TQVariant::typeToName( (TQVariant::Type)type ) );
} else if ( type == "DCOPRef" )
@ -205,7 +205,7 @@ TQCString demarshal( TQDataStream &stream, const TQString &type )
result = r.url().local8Bit();
} else if ( type.left( 11 ) == "TQValueList<" )
{
if ( (uint)type.tqfind( '>', 11 ) != type.length() - 1 )
if ( (uint)type.find( '>', 11 ) != type.length() - 1 )
return result;
TQString nestedType = type.mid( 11, type.length() - 12 );
@ -213,10 +213,10 @@ TQCString demarshal( TQDataStream &stream, const TQString &type )
if ( nestedType.isEmpty() )
return result;
TQ_UINT32 count;
Q_UINT32 count;
stream >> count;
TQ_UINT32 i = 0;
Q_UINT32 i = 0;
for (; i < count; ++i )
{
TQCString arg = demarshal( stream, nestedType );
@ -227,21 +227,21 @@ TQCString demarshal( TQDataStream &stream, const TQString &type )
}
} else if ( type.left( 5 ) == "TQMap<" )
{
int commaPos = type.tqfind( ',', 5 );
int commaPos = type.find( ',', 5 );
if ( commaPos == -1 )
return result;
if ( (uint)type.tqfind( '>', commaPos ) != type.length() - 1 )
if ( (uint)type.find( '>', commaPos ) != type.length() - 1 )
return result;
TQString keyType = type.mid( 5, commaPos - 5 );
TQString valueType = type.mid( commaPos + 1, type.length() - commaPos - 2 );
TQ_UINT32 count;
Q_UINT32 count;
stream >> count;
TQ_UINT32 i = 0;
Q_UINT32 i = 0;
for (; i < count; ++i )
{
TQCString key = demarshal( stream, keyType );
@ -291,15 +291,15 @@ void marshall( TQDataStream &arg, QCStringList args, uint &i, TQString type )
arg << s.toUInt();
else if ( type == "unsigned int" )
arg << s.toUInt();
else if ( type == "TQ_INT32" )
else if ( type == "Q_INT32" )
arg << s.toInt();
else if ( type == "TQ_INT64" ) {
else if ( type == "Q_INT64" ) {
TQVariant qv = TQVariant( s );
arg << qv.toLongLong();
}
else if ( type == "TQ_UINT32" )
else if ( type == "Q_UINT32" )
arg << s.toUInt();
else if ( type == "TQ_UINT64" ) {
else if ( type == "Q_UINT64" ) {
TQVariant qv = TQVariant( s );
arg << qv.toULongLong();
}
@ -376,7 +376,7 @@ void marshall( TQDataStream &arg, QCStringList args, uint &i, TQString type )
marshall( dummy_arg, args, j, type );
count++;
}
arg << (TQ_UINT32) count;
arg << (Q_UINT32) count;
// Parse the list for real
while (true) {
if( i > args.count() )

@ -182,7 +182,7 @@ dcop_process_message(
)
{
struct DCOPMsg * pMsg = 0L;
tqStatus status = False;
Status status = False;
char * buf = 0L;
char * senderId = 0L;
@ -390,7 +390,7 @@ dcop_send_signal(
free(header);
if (IceConnectiontqStatus(dcop_ice_conn) != IceConnectAccepted)
if (IceConnectionStatus(dcop_ice_conn) != IceConnectAccepted)
return False;
return True;
@ -412,7 +412,7 @@ dcop_call(
)
{
IceReplyWaitInfo waitInfo;
IceProcessMessagestqStatus status;
IceProcessMessagesStatus status;
struct dcop_reply_struct replyStruct;
char * pos = 0L;
@ -472,7 +472,7 @@ dcop_call(
free(outputData);
outputData = NULL;
if (IceConnectiontqStatus(dcop_ice_conn) != IceConnectAccepted) {
if (IceConnectionStatus(dcop_ice_conn) != IceConnectAccepted) {
fprintf(stderr, "dcop_call(): Connection not accepted\n");
return False;
}
@ -544,7 +544,7 @@ dcop_register(const char * app_name, Bool add_pid)
char * data = 0L;
char * pos = 0L;
int dataLength = 0;
Bool calltqStatus = False;
Bool callStatus = False;
fprintf(stderr, "dcop_register(`%s')\n", app_name);
@ -558,9 +558,9 @@ dcop_register(const char * app_name, Bool add_pid)
fprintf(stderr, "dcop_init(): Reregistering as `%s'\n", app_name);
calltqStatus = dcop_detach();
callStatus = dcop_detach();
if (False == calltqStatus) {
if (False == callStatus) {
fprintf(stderr, "dcop_init(): Could not detach before reregistering\n");
return 0L;
}
@ -584,7 +584,7 @@ dcop_register(const char * app_name, Bool add_pid)
pos = dcop_write_string(pos, dcop_requested_name);
dataLength = pos - data;
calltqStatus =
callStatus =
dcop_call(
dcop_requested_name,
"DCOPServer",
@ -600,7 +600,7 @@ dcop_register(const char * app_name, Bool add_pid)
free(dcop_requested_name);
free(data);
if (False == calltqStatus) {
if (False == callStatus) {
fprintf(stderr, "dcop_register(): dcop_call() failed\n");
return 0L;
}
@ -769,7 +769,7 @@ dcop_protocol_setup()
return (
(status == IceProtocolSetupSuccess) &&
(IceConnectiontqStatus(dcop_ice_conn) == IceConnectAccepted)
(IceConnectionStatus(dcop_ice_conn) == IceConnectAccepted)
);
}

@ -95,15 +95,15 @@ client_map_t *cliMap()
return DCOPClient_CliMap;
}
DCOPClient *DCOPClient::tqfindLocalClient( const TQCString &_appId )
DCOPClient *DCOPClient::findLocalClient( const TQCString &_appId )
{
return cliMap()->tqfind(_appId.data());
return cliMap()->find(_appId.data());
}
static
void registerLocalClient( const TQCString &_appId, DCOPClient *client )
{
cliMap()->tqreplace(_appId.data(), client);
cliMap()->replace(_appId.data(), client);
}
static
@ -141,7 +141,7 @@ public:
TQCString* replyType;
TQByteArray* replyData;
int replyId;
TQ_INT32 transactionId;
Q_INT32 transactionId;
TQCString calledApp;
TQGuardedPtr<TQObject> replyObject;
TQCString replySlot;
@ -173,7 +173,7 @@ public:
TQCString defaultObject;
TQPtrList<DCOPClientTransaction> *transactionList;
bool transaction;
TQ_INT32 transactionId;
Q_INT32 transactionId;
int opcode;
// Special key values:
@ -205,7 +205,7 @@ public:
class DCOPClientTransaction
{
public:
TQ_INT32 id;
Q_INT32 id;
CARD32 key;
TQCString senderId;
};
@ -263,12 +263,12 @@ static TQCString dcopServerFile(const TQCString &hostname, bool old)
disp = "NODISPLAY";
int i;
if((i = disp.tqfindRev('.')) > disp.tqfindRev(KPATH_SEPARATOR) && i >= 0)
if((i = disp.findRev('.')) > disp.findRev(KPATH_SEPARATOR) && i >= 0)
disp.truncate(i);
if (!old)
{
while( (i = disp.tqfind(KPATH_SEPARATOR)) >= 0)
while( (i = disp.find(KPATH_SEPARATOR)) >= 0)
disp[i] = '_';
}
@ -382,7 +382,7 @@ static void DCOPProcessMessage(IceConn iceConn, IcePointer clientObject,
case DCOPReplyWait:
if ( replyStruct ) {
TQCString calledApp, app;
TQ_INT32 id;
Q_INT32 id;
TQDataStream ds( dataReceived, IO_ReadOnly );
ds >> calledApp >> app >> id;
replyStruct->transactionId = id;
@ -398,7 +398,7 @@ static void DCOPProcessMessage(IceConn iceConn, IcePointer clientObject,
{
TQDataStream ds( dataReceived, IO_ReadOnly );
TQCString calledApp, app;
TQ_INT32 id;
Q_INT32 id;
ds >> calledApp >> app >> id;
if (replyStruct && (id == replyStruct->transactionId) && (calledApp == replyStruct->calledApp))
@ -517,7 +517,7 @@ void DCOPProcessInternal( DCOPClientPrivate *d, int opcode, CARD32 key, const TQ
d->currentKey = key;
if ( opcode == DCOPFind )
b = c->tqfind(app, objId, fun, data, replyType, replyData );
b = c->find(app, objId, fun, data, replyType, replyData );
else
b = c->receive( app, objId, fun, data, replyType, replyData );
// set notifier back to previous state
@ -531,7 +531,7 @@ void DCOPProcessInternal( DCOPClientPrivate *d, int opcode, CARD32 key, const TQ
TQByteArray reply;
TQDataStream replyStream( reply, IO_WriteOnly );
TQ_INT32 id = c->transactionId();
Q_INT32 id = c->transactionId();
if (id) {
// Call delayed. Send back the transaction ID.
replyStream << d->appId << fromApp << id;
@ -672,9 +672,9 @@ bool DCOPClient::attach()
void DCOPClient::bindToApp()
{
// check if we have a tqApp instantiated. If we do,
// check if we have a qApp instantiated. If we do,
// we can create a TQSocketNotifier and use it for receiving data.
if (tqApp) {
if (qApp) {
if ( d->notifier )
delete d->notifier;
d->notifier = new TQSocketNotifier(socket(),
@ -690,7 +690,7 @@ void DCOPClient::suspend()
if (!d->notifier)
return;
#endif
assert(d->notifier); // Suspending makes no sense if we didn't had a tqApp yet
assert(d->notifier); // Suspending makes no sense if we didn't had a qApp yet
d->notifier->setEnabled(false);
}
@ -764,7 +764,7 @@ bool DCOPClient::attachInternal( bool registerAsAnonymous )
DCOPAuthCount,
const_cast<char **>(DCOPAuthNames),
DCOPClientAuthProcs, 0L)) < 0) {
emit attachFailed(TQString::tqfromLatin1( "Communications could not be established." ));
emit attachFailed(TQString::fromLatin1( "Communications could not be established." ));
return false;
}
@ -779,7 +779,7 @@ bool DCOPClient::attachInternal( bool registerAsAnonymous )
TQCString fName = dcopServerFile();
TQFile f(TQFile::decodeName(fName));
if (!f.open(IO_ReadOnly)) {
emit attachFailed(TQString::tqfromLatin1( "Could not read network connection list.\n" )+TQFile::decodeName(fName));
emit attachFailed(TQString::fromLatin1( "Could not read network connection list.\n" )+TQFile::decodeName(fName));
return false;
}
int size = QMIN( (qint64)1024, f.size() ); // protection against a huge file
@ -790,7 +790,7 @@ bool DCOPClient::attachInternal( bool registerAsAnonymous )
// Should we abort ?
}
contents[size] = '\0';
int pos = contents.tqfind('\n');
int pos = contents.find('\n');
if ( pos == -1 ) // Shouldn't happen
{
qDebug("Only one line in dcopserver file !: %s", contents.data());
@ -819,7 +819,7 @@ bool DCOPClient::attachInternal( bool registerAsAnonymous )
delete [] d->serverAddr;
d->serverAddr = 0;
}
emit attachFailed(TQString::tqfromLatin1( errBuf ));
emit attachFailed(TQString::fromLatin1( errBuf ));
return false;
}
fcntl(socket(), F_SETFL, FD_CLOEXEC);
@ -845,7 +845,7 @@ bool DCOPClient::attachInternal( bool registerAsAnonymous )
delete [] d->serverAddr;
d->serverAddr = 0;
}
emit attachFailed(TQString::tqfromLatin1( errBuf ));
emit attachFailed(TQString::fromLatin1( errBuf ));
return false;
} else if (setupstat == IceProtocolAlreadyActive) {
if (bClearServerAddr) {
@ -853,7 +853,7 @@ bool DCOPClient::attachInternal( bool registerAsAnonymous )
d->serverAddr = 0;
}
/* should not happen because 3rd arg to IceOpenConnection was 0. */
emit attachFailed(TQString::tqfromLatin1( "internal error in IceOpenConnection" ));
emit attachFailed(TQString::fromLatin1( "internal error in IceOpenConnection" ));
return false;
}
@ -863,7 +863,7 @@ bool DCOPClient::attachInternal( bool registerAsAnonymous )
delete [] d->serverAddr;
d->serverAddr = 0;
}
emit attachFailed(TQString::tqfromLatin1( "DCOP server did not accept the connection." ));
emit attachFailed(TQString::fromLatin1( "DCOP server did not accept the connection." ));
return false;
}
@ -1017,7 +1017,7 @@ TQCString DCOPClient::normalizeFunctionSignature( const TQCString& fun ) {
if ( fun.isEmpty() ) // nothing to do
return fun.copy();
TQCString result( fun.size() );
char *from = const_cast<TQCString&>(fun).data();
char *from = fun.data();
char *to = result.data();
char *first = to;
char last = 0;
@ -1052,11 +1052,11 @@ bool DCOPClient::send(const TQCString &remApp, const TQCString &remObjId,
{
if (remApp.isEmpty())
return false;
DCOPClient *localClient = tqfindLocalClient( remApp );
DCOPClient *localClient = findLocalClient( remApp );
if ( localClient ) {
bool saveTransaction = d->transaction;
TQ_INT32 saveTransactionId = d->transactionId;
Q_INT32 saveTransactionId = d->transactionId;
TQCString saveSenderId = d->senderId;
d->senderId = 0; // Local call
@ -1110,15 +1110,15 @@ bool DCOPClient::send(const TQCString &remApp, const TQCString &remObjId,
return send(remApp, remObjId, remFun, ba);
}
bool DCOPClient::tqfindObject(const TQCString &remApp, const TQCString &remObj,
bool DCOPClient::findObject(const TQCString &remApp, const TQCString &remObj,
const TQCString &remFun, const TQByteArray &data,
TQCString &foundApp, TQCString &foundObj,
bool useEventLoop)
{
return tqfindObject( remApp, remObj, remFun, data, foundApp, foundObj, useEventLoop, -1 );
return findObject( remApp, remObj, remFun, data, foundApp, foundObj, useEventLoop, -1 );
}
bool DCOPClient::tqfindObject(const TQCString &remApp, const TQCString &remObj,
bool DCOPClient::findObject(const TQCString &remApp, const TQCString &remObj,
const TQCString &remFun, const TQByteArray &data,
TQCString &foundApp, TQCString &foundObj,
bool useEventLoop, int timeout)
@ -1162,18 +1162,18 @@ bool DCOPClient::tqfindObject(const TQCString &remApp, const TQCString &remObj,
TQCString replyType;
TQByteArray replyData;
bool result = false;
DCOPClient *localClient = tqfindLocalClient( remApp );
DCOPClient *localClient = findLocalClient( remApp );
if ( (phase == 1) && localClient ) {
// In phase 1 we do all local clients
bool saveTransaction = d->transaction;
TQ_INT32 saveTransactionId = d->transactionId;
Q_INT32 saveTransactionId = d->transactionId;
TQCString saveSenderId = d->senderId;
d->senderId = 0; // Local call
result = localClient->tqfind( remApp, remObj, remFun, data, replyType, replyData );
result = localClient->find( remApp, remObj, remFun, data, replyType, replyData );
TQ_INT32 id = localClient->transactionId();
Q_INT32 id = localClient->transactionId();
if (id) {
// Call delayed. We have to wait till it has been processed.
do {
@ -1202,7 +1202,7 @@ bool DCOPClient::tqfindObject(const TQCString &remApp, const TQCString &remObj,
if (ref.app() == remApp) // Consistency check
{
// replyType tqcontains objId.
// replyType contains objId.
foundApp = ref.app();
foundObj = ref.object();
return true;
@ -1298,7 +1298,7 @@ void DCOPClient::setNotifications(bool enabled)
{
TQByteArray data;
TQDataStream ds(data, IO_WriteOnly);
ds << static_cast<TQ_INT8>(enabled);
ds << static_cast<Q_INT8>(enabled);
TQCString replyType;
TQByteArray reply;
@ -1310,7 +1310,7 @@ void DCOPClient::setDaemonMode( bool daemonMode )
{
TQByteArray data;
TQDataStream ds(data, IO_WriteOnly);
ds << static_cast<TQ_INT8>( daemonMode );
ds << static_cast<Q_INT8>( daemonMode );
TQCString replyType;
TQByteArray reply;
@ -1331,9 +1331,9 @@ static void fillQtObjects( QCStringList& l, TQObject* o, TQCString path )
path += '/';
int unnamed = 0;
const TQObjectList list = o ? o->tqchildren() : TQObject::tqobjectTrees();
if ( !list.isEmpty() ) {
TQObjectListIt it( list );
const TQObjectList *list = o ? o->tqchildren() : TQObject::objectTrees();
if ( list ) {
TQObjectListIt it( *list );
TQObject *obj;
while ( (obj=it.current()) ) {
++it;
@ -1341,11 +1341,11 @@ static void fillQtObjects( QCStringList& l, TQObject* o, TQCString path )
if ( n == "unnamed" || n.isEmpty() )
{
n.sprintf("%p", (void *) obj);
n = TQString(TQString("unnamed%1(%2, %3)").arg(++unnamed).arg(obj->className()).arg(TQString(n))).latin1();
n = TQString("unnamed%1(%2, %3)").arg(++unnamed).arg(obj->className()).arg(TQString(n)).latin1();
}
TQCString fn = path + n;
l.append( fn );
if ( !obj->tqchildren().isEmpty() )
if ( obj->tqchildren() )
fillQtObjects( l, obj, fn );
}
}
@ -1368,9 +1368,9 @@ static void fillQtObjectsEx( TQValueList<O>& l, TQObject* o, TQCString path )
path += '/';
int unnamed = 0;
const TQObjectList list = o ? o->tqchildren() : TQObject::tqobjectTrees();
if ( !list.isEmpty() ) {
TQObjectListIt it( list );
const TQObjectList *list = o ? o->tqchildren() : TQObject::objectTrees();
if ( list ) {
TQObjectListIt it( *list );
TQObject *obj;
while ( (obj=it.current()) ) {
++it;
@ -1378,42 +1378,42 @@ static void fillQtObjectsEx( TQValueList<O>& l, TQObject* o, TQCString path )
if ( n == "unnamed" || n.isEmpty() )
{
n.sprintf("%p", (void *) obj);
n = TQString(TQString("unnamed%1(%2, %3)").arg(++unnamed).arg(obj->className()).arg(TQString(n))).latin1();
n = TQString("unnamed%1(%2, %3)").arg(++unnamed).arg(obj->className()).arg(TQString(n)).latin1();
}
TQCString fn = path + n;
l.append( O( fn, obj ) );
if ( !obj->tqchildren().isEmpty() )
if ( obj->tqchildren() )
fillQtObjectsEx( l, obj, fn );
}
}
}
static TQObject* tqfindQtObject( TQCString id )
static TQObject* findQtObject( TQCString id )
{
TQRegExp expr( id );
TQValueList<O> l;
fillQtObjectsEx( l, 0, "qt" );
// Prefer an exact match, but fall-back on the first that tqcontains the substring
// Prefer an exact match, but fall-back on the first that contains the substring
TQObject* firstContains = 0L;
for ( TQValueList<O>::ConstIterator it = l.begin(); it != l.end(); ++it ) {
if ( (*it).s == id ) // exact match
return (*it).o;
if ( !firstContains && (*it).s.tqcontains( expr ) ) {
if ( !firstContains && (*it).s.contains( expr ) ) {
firstContains = (*it).o;
}
}
return firstContains;
}
static QCStringList tqfindQtObjects( TQCString id )
static QCStringList findQtObjects( TQCString id )
{
TQRegExp expr( id );
TQValueList<O> l;
fillQtObjectsEx( l, 0, "qt" );
QCStringList result;
for ( TQValueList<O>::ConstIterator it = l.begin(); it != l.end(); ++it ) {
if ( (*it).s.tqcontains( expr ) )
if ( (*it).s.contains( expr ) )
result << (*it).s;
}
return result;
@ -1438,7 +1438,7 @@ static bool receiveQtObject( const TQCString &objId, const TQCString &fun, const
l << "QCStringList functions()";
l << "QCStringList interfaces()";
l << "QCStringList objects()";
l << "QCStringList tqfind(TQCString)";
l << "QCStringList find(TQCString)";
reply << l;
return true;
} else if ( fun == "objects()" ) {
@ -1448,17 +1448,17 @@ static bool receiveQtObject( const TQCString &objId, const TQCString &fun, const
fillQtObjects( l, 0, "qt" );
reply << l;
return true;
} else if ( fun == "tqfind(TQCString)" ) {
} else if ( fun == "find(TQCString)" ) {
TQDataStream ds( data, IO_ReadOnly );
TQCString id;
ds >> id ;
replyType = "QCStringList";
TQDataStream reply( replyData, IO_WriteOnly );
reply << tqfindQtObjects( id ) ;
reply << findQtObjects( id ) ;
return true;
}
} else if ( objId.left(3) == "qt/" ) {
TQObject* o = tqfindQtObject( objId );
TQObject* o = findQtObject( objId );
if ( !o )
return false;
if ( fun == "functions()" ) {
@ -1470,13 +1470,13 @@ static bool receiveQtObject( const TQCString &objId, const TQCString &fun, const
l << "QCStringList properties()";
l << "bool setProperty(TQCString,TQVariant)";
l << "TQVariant property(TQCString)";
TQStrList lst = o->tqmetaObject()->slotNames( true );
TQStrList lst = o->metaObject()->slotNames( true );
int i = 0;
for ( TQPtrListIterator<char> it( lst ); it.current(); ++it ) {
if ( o->tqmetaObject()->slot( i++, true )->tqt_mo_access != TQMetaData::Public )
if ( o->metaObject()->slot( i++, true )->tqaccess != QMetaData::Public )
continue;
TQCString slot = it.current();
if ( slot.tqcontains( "()" ) ) {
if ( slot.contains( "()" ) ) {
slot.prepend("void ");
l << slot;
}
@ -1487,10 +1487,10 @@ static bool receiveQtObject( const TQCString &objId, const TQCString &fun, const
replyType = "QCStringList";
TQDataStream reply( replyData, IO_WriteOnly );
QCStringList l;
TQMetaObject *meta = o->tqmetaObject();
TQMetaObject *meta = o->metaObject();
while ( meta ) {
l.prepend( meta->className() );
meta = const_cast<TQMetaObject*>(TQT_TQMETAOBJECT_CONST(meta->superClass()));
meta = meta->superClass();
}
reply << l;
return true;
@ -1498,10 +1498,10 @@ static bool receiveQtObject( const TQCString &objId, const TQCString &fun, const
replyType = "QCStringList";
TQDataStream reply( replyData, IO_WriteOnly );
QCStringList l;
TQStrList lst = o->tqmetaObject()->propertyNames( true );
TQStrList lst = o->metaObject()->propertyNames( true );
for ( TQPtrListIterator<char> it( lst ); it.current(); ++it ) {
TQMetaObject *mo = o->tqmetaObject();
const TQMetaProperty* p = mo->property( mo->tqfindProperty( it.current(), true ), true );
TQMetaObject *mo = o->metaObject();
const TQMetaProperty* p = mo->property( mo->findProperty( it.current(), true ), true );
if ( !p )
continue;
TQCString prop = p->type();
@ -1529,13 +1529,13 @@ static bool receiveQtObject( const TQCString &objId, const TQCString &fun, const
ds >> name >> value;
replyType = "bool";
TQDataStream reply( replyData, IO_WriteOnly );
reply << (TQ_INT8) o->setProperty( name, value );
reply << (Q_INT8) o->setProperty( name, value );
return true;
} else {
int slot = o->tqmetaObject()->tqfindSlot( fun, true );
int slot = o->metaObject()->findSlot( fun, true );
if ( slot != -1 ) {
replyType = "void";
TQUObject uo[ 1 ];
QUObject uo[ 1 ];
o->qt_invoke( slot, uo );
return true;
}
@ -1608,7 +1608,7 @@ bool DCOPClient::receive(const TQCString &/*app*/, const TQCString &objId,
if ( objId.isEmpty() || objId == "default" ) {
if ( !d->defaultObject.isEmpty() && DCOPObject::hasObject( d->defaultObject ) ) {
DCOPObject *objPtr = DCOPObject::tqfind( d->defaultObject );
DCOPObject *objPtr = DCOPObject::find( d->defaultObject );
objPtr->setCallingDcopClient(this);
if (objPtr->process(fun, data, replyType, replyData))
return true;
@ -1640,7 +1640,7 @@ bool DCOPClient::receive(const TQCString &/*app*/, const TQCString &objId,
return false;
} else {
DCOPObject *objPtr = DCOPObject::tqfind(objId);
DCOPObject *objPtr = DCOPObject::find(objId);
objPtr->setCallingDcopClient(this);
if (!objPtr->process(fun, data, replyType, replyData)) {
// obj doesn't understand function or some other error.
@ -1654,9 +1654,9 @@ bool DCOPClient::receive(const TQCString &/*app*/, const TQCString &objId,
// Check if the function result is a bool with the value "true"
// If so set the function result to DCOPRef pointing to (app,objId) and
// return true. Return false otherwise.
static bool tqfindResultOk(TQCString &replyType, TQByteArray &replyData)
static bool findResultOk(TQCString &replyType, TQByteArray &replyData)
{
TQ_INT8 success; // Tsk.. why is there no operator>>(bool)?
Q_INT8 success; // Tsk.. why is there no operator>>(bool)?
if (replyType != "bool") return false;
TQDataStream reply( replyData, IO_ReadOnly );
@ -1668,7 +1668,7 @@ static bool tqfindResultOk(TQCString &replyType, TQByteArray &replyData)
// set the function result to DCOPRef pointing to (app,objId) and
// return true.
static bool tqfindSuccess(const TQCString &app, const TQCString objId, TQCString &replyType, TQByteArray &replyData)
static bool findSuccess(const TQCString &app, const TQCString objId, TQCString &replyType, TQByteArray &replyData)
{
DCOPRef ref(app, objId);
replyType = "DCOPRef";
@ -1680,7 +1680,7 @@ static bool tqfindSuccess(const TQCString &app, const TQCString objId, TQCString
}
bool DCOPClient::tqfind(const TQCString &app, const TQCString &objId,
bool DCOPClient::find(const TQCString &app, const TQCString &objId,
const TQCString &fun, const TQByteArray &data,
TQCString& replyType, TQByteArray &replyData)
{
@ -1695,14 +1695,14 @@ bool DCOPClient::tqfind(const TQCString &app, const TQCString &objId,
if (fun.isEmpty())
{
if (objId.isEmpty() || DCOPObject::hasObject(objId))
return tqfindSuccess(app, objId, replyType, replyData);
return findSuccess(app, objId, replyType, replyData);
return false;
}
// Message to application or single object...
if (receive(app, objId, fun, data, replyType, replyData))
{
if (tqfindResultOk(replyType, replyData))
return tqfindSuccess(app, objId, replyType, replyData);
if (findResultOk(replyType, replyData))
return findSuccess(app, objId, replyType, replyData);
}
}
else {
@ -1716,11 +1716,11 @@ bool DCOPClient::tqfind(const TQCString &app, const TQCString &objId,
replyType = 0;
replyData = TQByteArray();
if (fun.isEmpty())
return tqfindSuccess(app, objPtr->objId(), replyType, replyData);
return findSuccess(app, objPtr->objId(), replyType, replyData);
objPtr->setCallingDcopClient(this);
if (objPtr->process(fun, data, replyType, replyData))
if (tqfindResultOk(replyType, replyData))
return tqfindSuccess(app, objPtr->objId(), replyType, replyData);
if (findResultOk(replyType, replyData))
return findSuccess(app, objPtr->objId(), replyType, replyData);
}
}
return false;
@ -1742,17 +1742,17 @@ bool DCOPClient::call(const TQCString &remApp, const TQCString &remObjId,
{
if (remApp.isEmpty())
return false;
DCOPClient *localClient = tqfindLocalClient( remApp );
DCOPClient *localClient = findLocalClient( remApp );
if ( localClient ) {
bool saveTransaction = d->transaction;
TQ_INT32 saveTransactionId = d->transactionId;
Q_INT32 saveTransactionId = d->transactionId;
TQCString saveSenderId = d->senderId;
d->senderId = 0; // Local call
bool b = localClient->receive( remApp, remObjId, remFun, data, replyType, replyData );
TQ_INT32 id = localClient->transactionId();
Q_INT32 id = localClient->transactionId();
if (id) {
// Call delayed. We have to wait till it has been processed.
do {
@ -1882,7 +1882,7 @@ bool DCOPClient::callInternal(const TQCString &remApp, const TQCString &remObjId
for(;;) {
bool checkMessages = true;
if ( useEventLoop
? d->notifier != NULL // useEventLoop needs a socket notifier and a tqApp
? d->notifier != NULL // useEventLoop needs a socket notifier and a qApp
: timeout >= 0 ) { // !useEventLoop doesn't block only for timeout >= 0
const int guiTimeout = 100;
checkMessages = false;
@ -1907,7 +1907,7 @@ bool DCOPClient::callInternal(const TQCString &remApp, const TQCString &remObjId
}
if( timeout >= 0 )
d->eventLoopTimer.start(time_left - guiTimeout, true);
tqApp->enter_loop();
qApp->enter_loop();
d->eventLoopTimer.stop();
if ( !old_lock ) {
d->non_blocking_call_lock = false;
@ -1974,7 +1974,7 @@ bool DCOPClient::callInternal(const TQCString &remApp, const TQCString &remObjId
// Wake up parent call, maybe it's reply is available already.
if ( d->non_blocking_call_lock ) {
tqApp->exit_loop();
qApp->exit_loop();
}
d->currentKey = oldCurrentKey;
@ -1983,7 +1983,7 @@ bool DCOPClient::callInternal(const TQCString &remApp, const TQCString &remObjId
void DCOPClient::eventLoopTimeout()
{
tqApp->exit_loop();
qApp->exit_loop();
}
void DCOPClient::processSocketData(int fd)
@ -2000,8 +2000,8 @@ void DCOPClient::processSocketData(int fd)
return;
if ( d->non_blocking_call_lock ) {
if( tqApp )
tqApp->exit_loop();
if( qApp )
qApp->exit_loop();
return;
}
@ -2034,7 +2034,7 @@ TQCString DCOPClient::defaultObject() const
}
bool
DCOPClient::isLocalTransactionFinished(TQ_INT32 id, TQCString &replyType, TQByteArray &replyData)
DCOPClient::isLocalTransactionFinished(Q_INT32 id, TQCString &replyType, TQByteArray &replyData)
{
DCOPClientPrivate::LocalTransactionResult *result = d->localTransActionList.take(id);
if (!result)
@ -2068,7 +2068,7 @@ DCOPClient::beginTransaction()
return trans;
}
TQ_INT32
Q_INT32
DCOPClient::transactionId() const
{
if (d->transaction)
@ -2147,7 +2147,7 @@ DCOPClient::connectDCOPSignal( const TQCString &sender, const TQCString &senderO
{
TQCString replyType;
TQByteArray data, replyData;
TQ_INT8 iVolatile = Volatile ? 1 : 0;
Q_INT8 iVolatile = Volatile ? 1 : 0;
TQDataStream args(data, IO_WriteOnly );
args << sender << senderObj << normalizeFunctionSignature(signal) << receiverObj << normalizeFunctionSignature(slot) << iVolatile;
@ -2163,7 +2163,7 @@ DCOPClient::connectDCOPSignal( const TQCString &sender, const TQCString &senderO
return false;
TQDataStream reply(replyData, IO_ReadOnly );
TQ_INT8 result;
Q_INT8 result;
reply >> result;
return (result != 0);
}
@ -2197,7 +2197,7 @@ DCOPClient::disconnectDCOPSignal( const TQCString &sender, const TQCString &send
return false;
TQDataStream reply(replyData, IO_ReadOnly );
TQ_INT8 result;
Q_INT8 result;
reply >> result;
return (result != 0);
}

@ -42,7 +42,7 @@ typedef TQValueList<TQCString> QCStringList;
*
* This class provides IPC and RPC for KDE applications. Usually you
* will not have to instantiate one yourself because KApplication
* tqcontains a method to return a pointer to a DCOPClient object which
* contains a method to return a pointer to a DCOPClient object which
* can be used for your whole application.
*
* Before being able to send or receive any DCOP messages, you will have
@ -65,10 +65,9 @@ typedef TQValueList<TQCString> QCStringList;
* @see KApplication::dcopClient()
* @author Preston Brown <pbrown@kde.org>, Matthias Ettrich <ettrich@kde.org>
*/
class DCOP_EXPORT DCOPClient : public TQObject
class DCOP_EXPORT DCOPClient : public QObject
{
Q_OBJECT
TQ_OBJECT
public:
/**
@ -84,7 +83,7 @@ class DCOP_EXPORT DCOPClient : public TQObject
* Sets the address of a server to use upon attaching.
*
* If no server address is ever specified, attach will try its best to
* tqfind the server anyway.
* find the server anyway.
* @param addr the new address of the server
*/
static void setServerAddress(const TQCString &addr);
@ -346,7 +345,7 @@ class DCOP_EXPORT DCOPClient : public TQObject
/**
* Searches for an object which matches a criteria.
*
* tqfindObject calls @p remFun in the applications and objects identified
* findObject calls @p remFun in the applications and objects identified
* by @p remApp and @p remObj until @p remFun returns true. The name of
* the application and object that returned true are returned in
* @p foundApp and @p foundObj respectively.
@ -354,7 +353,7 @@ class DCOP_EXPORT DCOPClient : public TQObject
* If @p remFun is empty a default function is called in the object
* which always returns @p true.
*
* A tqfindObject blocks the application until the process receives the
* A findObject blocks the application until the process receives the
* answer.
*
* If @p useEventLoop is true, a local event loop will be started after
@ -379,7 +378,7 @@ class DCOP_EXPORT DCOPClient : public TQObject
*
* @see send()
*/
bool tqfindObject(const TQCString &remApp, const TQCString &remObj,
bool findObject(const TQCString &remApp, const TQCString &remObj,
const TQCString &remFun, const TQByteArray &data,
TQCString &foundApp, TQCString &foundObj,
bool useEventLoop/*=false*/, int timeout/*=-1*/);
@ -388,7 +387,7 @@ class DCOP_EXPORT DCOPClient : public TQObject
* @deprecated
*/
// KDE4 merge with above
bool tqfindObject(const TQCString &remApp, const TQCString &remObj,
bool findObject(const TQCString &remApp, const TQCString &remObj,
const TQCString &remFun, const TQByteArray &data,
TQCString &foundApp, TQCString &foundObj,
bool useEventLoop=false);
@ -512,7 +511,7 @@ class DCOP_EXPORT DCOPClient : public TQObject
* @see process()
* @see beginTransaction()
*/
TQ_INT32 transactionId() const;
Q_INT32 transactionId() const;
/**
* Checks whether @p remApp is registered with the DCOP server.
@ -590,7 +589,7 @@ class DCOP_EXPORT DCOPClient : public TQObject
* @param replyType write the reply type in this string
* @param replyData write the reply data in this array
*/
bool tqfind(const TQCString &app, const TQCString &obj,
bool find(const TQCString &app, const TQCString &obj,
const TQCString &fun, const TQByteArray& data,
TQCString& replyType, TQByteArray &replyData);
@ -694,7 +693,7 @@ class DCOP_EXPORT DCOPClient : public TQObject
* to check whether a given client (by name) is running in the same
* process or in another one.
*/
static DCOPClient* tqfindLocalClient( const TQCString &_appId );
static DCOPClient* findLocalClient( const TQCString &_appId );
/**
* @internal Do not use.
@ -716,7 +715,7 @@ class DCOP_EXPORT DCOPClient : public TQObject
* File with information how to reach the dcopserver.
* @param hostname Hostname to use, if empty current hostname of
* the system is used.
* @return Filename that tqcontains information how to contact the
* @return Filename that contains information how to contact the
* DCOPserver.
*/
static TQCString dcopServerFile(const TQCString &hostname=0);
@ -759,7 +758,7 @@ signals:
*
* Usually attached to a dialog box or some other visual
* aid.
* @param msg the message tha tqcontains further information
* @param msg the message tha contains further information
*/
void attachFailed(const TQString &msg);
@ -817,7 +816,7 @@ public:
private:
bool isLocalTransactionFinished(TQ_INT32 id, TQCString &replyType, TQByteArray &replyData);
bool isLocalTransactionFinished(Q_INT32 id, TQCString &replyType, TQByteArray &replyData);
bool attachInternal( bool registerAsAnonymous = true );

@ -803,7 +803,7 @@ static int yy_lp;
*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
yy_cp = yy_full_match; /* restore poss. backed-over text */ \
++yy_lp; \
goto tqfind_rule; \
goto find_rule; \
}
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
@ -1140,11 +1140,11 @@ yy_match:
}
while ( yy_current_state != 310 );
yy_tqfind_action:
yy_find_action:
yy_current_state = *--yy_state_ptr;
yy_lp = yy_accept[yy_current_state];
tqfind_rule: /* we branch to this label when backing up */
for ( ; ; ) /* until we tqfind what rule we matched */
find_rule: /* we branch to this label when backing up */
for ( ; ; ) /* until we find what rule we matched */
{
if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
{
@ -1226,8 +1226,8 @@ YY_RULE_SETUP
#line 170 "scanner.ll"
{
TQString s( yytext );
int i = s.tqfind(TQRegExp("[\"<]"))+1;
int j = s.tqfind(TQRegExp("[\">]"), i);
int i = s.find(TQRegExp("[\"<]"))+1;
int j = s.find(TQRegExp("[\">]"), i);
yylval._str = new TQString( s.mid( i, j - i ) );
idl_line_no++;
return T_INCLUDE;
@ -1686,7 +1686,7 @@ ECHO;
else
{
yy_cp = yy_c_buf_p;
goto yy_tqfind_action;
goto yy_find_action;
}
}
@ -1739,7 +1739,7 @@ ECHO;
yy_cp = yy_c_buf_p;
yy_bp = yytext_ptr + YY_MORE_ADJ;
goto yy_tqfind_action;
goto yy_find_action;
}
break;
}

@ -169,8 +169,8 @@ Kidl_Identifier [_a-zA-Z][a-zA-Z0-9_]*
}
"#include"[ \t]*[<\"][^>"]*[>\"]\s*\n {
TQString s( yytext );
int i = s.tqfind(TQRegExp("[\"<]"))+1;
int j = s.tqfind(TQRegExp("[\">]"), i);
int i = s.find(TQRegExp("[\"<]"))+1;
int j = s.find(TQRegExp("[\">]"), i);
yylval._str = new TQString( s.mid( i, j - i ) );
idl_line_no++;
return T_INCLUDE;

@ -1643,7 +1643,7 @@ yyreduce:
case 15:
#line 221 "yacc.yy"
{
int pos = in_namespace.tqfindRev( "::", -3 );
int pos = in_namespace.findRev( "::", -3 );
if( pos >= 0 )
in_namespace = in_namespace.left( pos + 2 );
else

@ -219,7 +219,7 @@ declaration
}
main T_RIGHT_CURLY_BRACKET opt_semicolon
{
int pos = in_namespace.tqfindRev( "::", -3 );
int pos = in_namespace.findRev( "::", -3 );
if( pos >= 0 )
in_namespace = in_namespace.left( pos + 2 );
else

@ -104,11 +104,11 @@ int main( int argc, char** argv )
TQString base( argv[argpos] );
TQString idl = base;
int pos = base.tqfindRev( '.' );
int pos = base.findRev( '.' );
if ( pos != -1 )
base = base.left( pos );
pos = idl.tqfindRev('/');
pos = idl.findRev('/');
if ( pos != -1 )
idl = idl.mid( pos+1 );
@ -118,7 +118,7 @@ int main( int argc, char** argv )
if ( generate_stub ) {
TQString header = base;
generateStub( idl, header + "_stub.h", de );
pos = header.tqfindRev('/');
pos = header.findRev('/');
if ( pos != -1 )
header = header.mid( pos+1 );
generateStubImpl( idl, header + "_stub.h", base+".h", base + "_stub." + suffix, de);

@ -92,7 +92,7 @@ void generateSkel( const TQString& idl, const TQString& filename, TQDomElement d
TQDomElement n = e.firstChild().toElement();
Q_ASSERT( n.tagName() == "NAME" );
TQString className = n.firstChild().toText().data();
// tqfind dcop parent ( rightmost super class )
// find dcop parent ( rightmost super class )
TQString DCOPParent;
TQDomElement s = n.nextSibling().toElement();
for( ; !s.isNull(); s = s.nextSibling().toElement() ) {
@ -177,7 +177,7 @@ void generateSkel( const TQString& idl, const TQString& filename, TQDomElement d
TQString namespace_tmp = className;
str << endl;
for(;;) {
int pos = namespace_tmp.tqfind( "::" );
int pos = namespace_tmp.find( "::" );
if( pos < 0 ) {
className = namespace_tmp;
break;
@ -223,7 +223,7 @@ void generateSkel( const TQString& idl, const TQString& filename, TQDomElement d
str << "\t fdict->insert( " << className << "_ftable[i][1], new int( i ) );" << endl;
str << " }" << endl;
str << " int* fp = fdict->tqfind( fun );" << endl;
str << " int* fp = fdict->find( fun );" << endl;
str << " switch ( fp?*fp:-1) {" << endl;
}
s = n.nextSibling().toElement();

@ -54,7 +54,7 @@ void generateStub( const TQString& idl, const TQString& filename, TQDomElement d
str << endl;
TQString ifdefstring = idl.upper();
int pos = idl.tqfindRev( '.' );
int pos = idl.findRev( '.' );
if ( pos != -1 )
ifdefstring = ifdefstring.left( pos );
@ -99,7 +99,7 @@ void generateStub( const TQString& idl, const TQString& filename, TQDomElement d
n = n.nextSibling().toElement();
}
// tqfind dcop parent ( rightmost super class )
// find dcop parent ( rightmost super class )
TQString DCOPParent;
for( ; !n.isNull(); n = n.nextSibling().toElement() ) {
if ( n.tagName() == "SUPER" )
@ -107,13 +107,13 @@ void generateStub( const TQString& idl, const TQString& filename, TQDomElement d
}
if( DCOPParent != "DCOPObject" ) { // we need to include the .h file for the base stub
if( all_includes.tqcontains( DCOPParent + ".h" ))
if( all_includes.contains( DCOPParent + ".h" ))
str << "#include <" << DCOPParent << "_stub.h>" << endl;
else if( all_includes.tqcontains( DCOPParent.lower() + ".h" ))
else if( all_includes.contains( DCOPParent.lower() + ".h" ))
str << "#include <" << DCOPParent.lower() << "_stub.h>" << endl;
else {// damn ... let's assume it's the last include
TQString stub_h = all_includes.last();
unsigned int pos = stub_h.tqfind( ".h" );
unsigned int pos = stub_h.find( ".h" );
if( pos > 0 ) {
stub_h = stub_h.remove( pos, 100000 );
str << "#include <" << stub_h << "_stub.h>" << endl;
@ -128,7 +128,7 @@ void generateStub( const TQString& idl, const TQString& filename, TQDomElement d
int namespace_count = 0;
TQString namespace_tmp = className;
for(;;) {
int pos = namespace_tmp.tqfind( "::" );
int pos = namespace_tmp.find( "::" );
if( pos < 0 ) {
className = namespace_tmp;
break;

@ -98,7 +98,7 @@ void generateStubImpl( const TQString& idl, const TQString& header, const TQStri
TQString namespace_tmp = className_stub;
str << endl;
for(;;) {
int pos = namespace_tmp.tqfind( "::" );
int pos = namespace_tmp.find( "::" );
if( pos < 0 ) {
className_stub = namespace_tmp;
break;

@ -10,7 +10,7 @@ static TQString writeType( TQTextStream& str, const TQDomElement& r )
if ( r.hasAttribute( "qleft" ) )
str << r.attribute("qleft") << " ";
TQString t = r.firstChild().toText().data();
t = t.tqreplace( ">>", "> >" );
t = t.replace( ">>", "> >" );
str << t;
if ( r.hasAttribute( "qright" ) )
str << r.attribute("qright") << " ";

@ -67,14 +67,14 @@ $exe = basename $0;
@inputqueue = ();
@codeqobject = split "\n", <<CODE;
public:
virtual QMetaObject *tqmetaObject() const;
virtual QMetaObject *metaObject() const;
virtual const char *className() const;
virtual void* qt_cast( const char* );
virtual bool qt_invoke( int, QUObject* );
virtual bool qt_emit( int, QUObject* );
virtual bool qt_property( int, int, QVariant* );
static QMetaObject* staticMetaObject();
TQObject* qObject();
QObject* qObject();
static QString tr( const char *, const char * = 0 );
static QString trUtf8( const char *, const char * = 0 );
private:
@ -116,7 +116,7 @@ $allowed_k_dcop_accesors_re = join("|", @allowed_k_dcop_accesors);
Q_WS_MAC => 'undef',
Q_OBJECT => <<'CODE',
public:
virtual QMetaObject *tqmetaObject() const;
virtual QMetaObject *metaObject() const;
virtual const char *className() const;
virtual bool qt_invoke( int, QUObject* );
virtual bool qt_emit( int, QUObject* );
@ -419,7 +419,7 @@ LOOP:
}
next if ( $p =~ /^\s*$/s ); # blank lines
# || $p =~ /^\s*Q_OBJECT/ # TQObject macro
# || $p =~ /^\s*Q_OBJECT/ # QObject macro
# );
#
@ -514,7 +514,7 @@ sub readCxxCodeBlock
return $lastLine if ( $open || $close) && $count == 0;
}
# tqfind opening brace
# find opening brace
if ( $count == 0 ) {
while( $count == 0 ) {
$l = readCxxLine();
@ -529,7 +529,7 @@ sub readCxxCodeBlock
$count -= kdocUtil::countReg( $l, "}" );
}
# tqfind associated closing brace
# find associated closing brace
while ( $count > 0 ) {
$l = readCxxLine();
croak "Confused by unmatched braces" if !defined $l;
@ -1096,8 +1096,8 @@ sub newClass
my $access = "private";
$access = "public" if $cNodeType ne "class";
# try to tqfind an exisiting node, or create a new one
# We need to make the fully-qualified-name otherwise tqfindRef will look
# try to find an exisiting node, or create a new one
# We need to make the fully-qualified-name otherwise findRef will look
# for that classname in the global namespace
# testcase: class Foo; namespace Bar { class Foo { ... } }
my @parents;
@ -1105,7 +1105,7 @@ sub newClass
push @parents, $name;
my $fullyQualifiedName = join "::", @parents;
print "looking for $fullyQualifiedName\n" if($debug);
my $oldnode = kdocAstUtil::tqfindRef( $cNode, $fullyQualifiedName );
my $oldnode = kdocAstUtil::findRef( $cNode, $fullyQualifiedName );
my $node = defined $oldnode ? $oldnode : Ast::New( $name );
if ( $endTag ne "{" ) {
@ -1344,15 +1344,15 @@ sub newMethod
# ALWAYS IGNORE...
return undef;
my $node = kdocAstUtil::tqfindRef( $cNode, $class );
my $node = kdocAstUtil::findRef( $cNode, $class );
if ( !defined $node ) {
# if we couldn't tqfind the name, try again with
# if we couldn't find the name, try again with
# all template parameters stripped off:
my $strippedClass = $class;
$strippedClass =~ s/<[^<>]*>//g;
$node = kdocAstUtil::tqfindRef( $cNode, $strippedClass );
$node = kdocAstUtil::findRef( $cNode, $strippedClass );
# if still not found: give up
if ( !defined $node ) {
@ -1370,7 +1370,7 @@ sub newMethod
$class = $globalSpaceClassName; # FIXME - sanitize the naming system?
$isGlobalSpace = 1;
my $opsNode = kdocAstUtil::tqfindRef( $cNode, $class );
my $opsNode = kdocAstUtil::findRef( $cNode, $class );
if (!$opsNode) {
# manually create a "GlobalSpace" class
$opsNode = Ast::New( $class );
@ -1468,7 +1468,7 @@ sub newMethod
* 1 for enums
Adds a property "ParamList" to the method node.
This property tqcontains a list of nodes, one for each parameter.
This property contains a list of nodes, one for each parameter.
Each parameter node has the following properties:
* ArgType the type of the argument, e.g. const QString&

@ -17,13 +17,13 @@ use strict;
use vars qw/ $depth $refcalls $refiters @noreflist %noref /;
sub BEGIN {
# statistics for tqfindRef
# statistics for findRef
$depth = 0;
$refcalls = 0;
$refiters = 0;
# tqfindRef will ignore these words
# findRef will ignore these words
@noreflist = qw( const int char long double template
unsigned signed float void bool true false uint
@ -35,22 +35,22 @@ sub BEGIN {
}
=head2 tqfindRef
=head2 findRef
Parameters: root, ident, report-on-fail
Returns: node, or undef
Given a root node and a fully qualified identifier (:: separated),
this function will try to tqfind a child of the root node that matches
this function will try to find a child of the root node that matches
the identifier.
=cut
sub tqfindRef
sub findRef
{
my( $root, $name, $r ) = @_;
confess "tqfindRef: no name" if !defined $name || $name eq "";
confess "findRef: no name" if !defined $name || $name eq "";
$name =~ s/\s+//g;
return undef if exists $noref{ $name };
@ -65,7 +65,7 @@ sub tqfindRef
# Upward search for the first token
return undef if !defined $iter;
while ( !defined tqfindIn( $root, $iter ) ) {
while ( !defined findIn( $root, $iter ) ) {
return undef if !defined $root->{Parent};
$root = $root->{Parent};
}
@ -77,8 +77,8 @@ sub tqfindRef
confess "iter in $name is undefined\n" if !defined $iter;
next if $iter =~ /^\s*$/;
unless ( defined tqfindIn( $root, $iter ) ) {
confess "tqfindRef: failed on '$name' at '$iter'\n"
unless ( defined findIn( $root, $iter ) ) {
confess "findRef: failed on '$name' at '$iter'\n"
if defined $r;
return undef;
}
@ -90,13 +90,13 @@ sub tqfindRef
return $root;
}
=head2 tqfindIn
=head2 findIn
node, name: search for a child
=cut
sub tqfindIn
sub findIn
{
return undef unless defined $_[0]->{KidHash};
@ -147,7 +147,7 @@ ANITER:
next ANITER;
}
my $ref = kdocAstUtil::tqfindRef( $rnode,
my $ref = kdocAstUtil::findRef( $rnode,
$in->{astNodeName} );
if( !defined $ref ) {
@ -302,16 +302,16 @@ sub allMembers
}
}
=head2 tqfindOverride
=head2 findOverride
Parameters: root, node, name
Looks for nodes of the same name as the parameter, in its parent
and the parent's ancestors. It returns a node if it tqfinds one.
and the parent's ancestors. It returns a node if it finds one.
=cut
sub tqfindOverride
sub findOverride
{
my ( $root, $node, $name ) = @_;
return undef if !exists $node->{InList};
@ -325,7 +325,7 @@ sub tqfindOverride
return $n if defined $ref && $ref->{NodeType} eq "method";
if ( exists $n->{InList} ) {
$ref = tqfindOverride( $root, $n, $name );
$ref = findOverride( $root, $n, $name );
return $ref if defined $ref;
}
}
@ -464,14 +464,14 @@ sub testRef {
my $rootNode = $_[ 0 ];
my $term = new Term::ReadLine 'Testing tqfindRef';
my $term = new Term::ReadLine 'Testing findRef';
my $OUT = $term->OUT || *STDOUT{IO};
my $prompt = "Identifier: ";
while( defined ($_ = $term->readline($prompt)) ) {
my $node = kdocAstUtil::tqfindRef( $rootNode, $_ );
my $node = kdocAstUtil::findRef( $rootNode, $_ );
if( defined $node ) {
print $OUT "Reference: '", $node->{astNodeName},
@ -487,7 +487,7 @@ sub testRef {
sub printDebugStats
{
print "tqfindRef: ", $refcalls, " calls, ",
print "findRef: ", $refcalls, " calls, ",
$refiters, " iterations.\n";
}

@ -30,7 +30,7 @@ sub countReg
return $count;
}
=head2 tqfindCommonPrefix
=head2 findCommonPrefix
Parameters: string, string
@ -39,7 +39,7 @@ sub countReg
=cut
sub tqfindCommonPrefix
sub findCommonPrefix
{
my @s1 = split( "/", $_[0] );
my @s2 = split( "/", $_[1] );
@ -72,7 +72,7 @@ sub makeRelativePath
$from .= '/' unless $from =~ m#/$#;
$to .= '/' unless $to =~ m#/$#;
my $pfx = tqfindCommonPrefix( $from, $to );
my $pfx = findCommonPrefix( $from, $to );
if ( $pfx ne "" ) {
$from =~ s/^$pfx//g;

@ -58,7 +58,7 @@ DCOPObject::DCOPObject(TQObject *obj)
while (currentObj != 0L) {
ident.prepend( currentObj->name() );
ident.prepend("/");
currentObj = currentObj->tqparent();
currentObj = currentObj->parent();
}
if ( ident[0] == '/' )
ident = ident.mid(1);
@ -97,7 +97,7 @@ void DCOPObject::setCallingDcopClient(DCOPClient *client)
bool DCOPObject::setObjId(const TQCString &objId)
{
if (objMap()->tqfind(objId)!=objMap()->end()) return false;
if (objMap()->find(objId)!=objMap()->end()) return false;
DCOPClient *client = DCOPClient::mainClient();
if ( d->m_signalConnections > 0 && client )
@ -116,16 +116,16 @@ TQCString DCOPObject::objId() const
bool DCOPObject::hasObject(const TQCString &_objId)
{
if (objMap()->tqcontains(_objId))
if (objMap()->contains(_objId))
return true;
else
return false;
}
DCOPObject *DCOPObject::tqfind(const TQCString &_objId)
DCOPObject *DCOPObject::find(const TQCString &_objId)
{
TQMap<TQCString, DCOPObject *>::ConstIterator it;
it = objMap()->tqfind(_objId);
it = objMap()->find(_objId);
if (it != objMap()->end())
return *it;
else
@ -155,7 +155,7 @@ TQCString DCOPObject::objectName( TQObject* obj )
{
identity.prepend( currentObj->name() );
identity.prepend("/");
currentObj = currentObj->tqparent();
currentObj = currentObj->parent();
}
if ( identity[0] == '/' )
identity = identity.mid(1);

@ -299,16 +299,16 @@ public:
static bool hasObject(const TQCString &objId);
/**
* Try to tqfind a dcop object with the given id.
* Try to find a dcop object with the given id.
* This function does not query the DCOPObjectProxy.
* @param objId the object id to search
* @return the DCOPObject for the id @p objId.
*/
static DCOPObject *tqfind(const TQCString &objId);
static DCOPObject *find(const TQCString &objId);
/**
* Tries to tqfind an object using a partial object id.
* Tries to find an object using a partial object id.
* This function is used for multicasting a DCOP message to
* several objects inside a single process.
*

@ -62,9 +62,9 @@ DCOPReply DCOPRef::callInternal( const TQCString& fun, const TQCString& args, co
return reply;
}
TQCString sig = fun;
if ( fun.tqfind('(') == -1 ) {
if ( fun.find('(') == -1 ) {
sig += args;
if( args.tqfind( "<unknown" ) != -1 )
if( args.find( "<unknown" ) != -1 )
qWarning("DCOPRef: unknown type error "
"<\"%s\",\"%s\">::call(\"%s\",%s",
STR(m_app), STR(m_obj), STR(fun), args.data()+1 );
@ -87,9 +87,9 @@ bool DCOPRef::sendInternal( const TQCString& fun, const TQCString& args, const T
}
Q_UNUSED( data );
TQCString sig = fun;
if ( fun.tqfind('(') == -1 ) {
if ( fun.find('(') == -1 ) {
sig += args;
if( args.tqfind( "<unknown" ) != -1 )
if( args.find( "<unknown" ) != -1 )
qWarning("DCOPRef: unknown type error "
"<\"%s\",\"%s\">::send(\"%s\",%s",
STR(m_app), STR(m_obj), STR(fun), args.data()+1 );

@ -396,7 +396,7 @@ public:
* Flag for allowing entering the event loop if the call blocks too long.
* @p NoEventLoop disables entering the event loop.
* @p UseEventLoop allows entering the event loop while waiting for long
* blocking DCOP call, thus making the GUI tqrepaint if needed, and possibly
* blocking DCOP call, thus making the GUI repaint if needed, and possibly
* allowing also other code in the application to be executed.
* @see DCOPClient::call()
*/

@ -82,7 +82,7 @@ template class TQPtrList<DCOPListener>;
#define _DCOPIceSendEnd() \
fcntl(fd, F_SETFL, fd_fl);
static TQCString tqfindDcopserverShutdown()
static TQCString findDcopserverShutdown()
{
#ifdef Q_OS_WIN32
char szPath[512];
@ -124,9 +124,9 @@ void DCOPIceWriteChar(register IceConn iceConn, unsigned long nbytes, char *ptr)
static TQCString readQCString(TQDataStream &ds)
{
TQCString result;
TQ_UINT32 len;
Q_UINT32 len;
ds >> len;
TQIODevice *device = ds.tqdevice();
TQIODevice *device = ds.device();
int bytesLeft = device->size()-device->at();
if ((bytesLeft < 0 ) || (len > (uint) bytesLeft))
{
@ -142,9 +142,9 @@ static TQCString readQCString(TQDataStream &ds)
static TQByteArray readQByteArray(TQDataStream &ds)
{
TQByteArray result;
TQ_UINT32 len;
Q_UINT32 len;
ds >> len;
TQIODevice *device = ds.tqdevice();
TQIODevice *device = ds.device();
int bytesLeft = device->size()-device->at();
if ((bytesLeft < 0 ) || (len > (uint) bytesLeft))
{
@ -238,7 +238,7 @@ static unsigned long writeIceData(IceConn iceConn, unsigned long nbytes, char *p
void DCOPIceWriteChar(register IceConn iceConn, unsigned long nbytes, char *ptr)
{
DCOPConnection* conn = the_server->tqfindConn( iceConn );
DCOPConnection* conn = the_server->findConn( iceConn );
#ifdef DCOP_DEBUG
qWarning("DCOPServer: DCOPIceWriteChar() Writing %d bytes to %d [%s]", nbytes, fd, conn ? conn->appId.data() : "<unknown>");
#endif
@ -270,7 +270,7 @@ qWarning("DCOPServer: _IceWrite() outputBlocked. Queuing %d bytes.", _data.size(
static void DCOPIceWrite(IceConn iceConn, const TQByteArray &_data)
{
DCOPConnection* conn = the_server->tqfindConn( iceConn );
DCOPConnection* conn = the_server->findConn( iceConn );
#ifdef DCOP_DEBUG
qWarning("DCOPServer: DCOPIceWrite() Writing %d bytes to %d [%s]", _data.size(), fd, conn ? conn->appId.data() : "<unknown>");
#endif
@ -287,7 +287,7 @@ qWarning("DCOPServer: DCOPIceWrite() outputBlocked. Queuing %d bytes.", _data.si
// assert(conn->outputBuffer.isEmpty());
}
unsigned long nleft = writeIceData(iceConn, _data.size(), const_cast<TQByteArray&>(_data).data());
unsigned long nleft = writeIceData(iceConn, _data.size(), _data.data());
if ((nleft > 0) && conn)
{
conn->waitForOutputReady(_data, _data.size() - nleft);
@ -319,7 +319,7 @@ void DCOPServer::slotOutputReady(int socket)
qWarning("DCOPServer: slotOutputReady fd = %d", socket);
#endif
// Find out connection.
DCOPConnection *conn = fd_clients.tqfind(socket);
DCOPConnection *conn = fd_clients.find(socket);
//assert(conn);
//assert(conn->outputBlocked);
//assert(conn->socket() == socket);
@ -396,7 +396,7 @@ qWarning("DCOPServer: Flushing data, fd = %d", IceConnectionNumber(_iceConn));
DCOPIceWrite(_iceConn, _data);
}
class DCOPListener : public TQSocketNotifier
class DCOPListener : public QSocketNotifier
{
public:
DCOPListener( IceListenObj obj )
@ -487,7 +487,7 @@ write_iceauth (FILE *addfp, IceAuthDataEntry *entry)
SUFFIX_LEN tells us how long <suffix> is (it can be zero length).
The last six characters of TEMPLATE before <suffix> must be "XXXXXX";
they are tqreplaced with a string that makes the filename unique.
they are replaced with a string that makes the filename unique.
Returns a file descriptor open on the file for reading and writing. */
@ -535,7 +535,7 @@ int mkstemps (char* _template, int suffix_len)
with (module 2^32). */
value += 7777;
}
/* We return the null string if we can't tqfind a unique file name. */
/* We return the null string if we can't find a unique file name. */
_template[0] = '\0';
return -1;
}
@ -710,7 +710,7 @@ void DCOPProcessMessage( IceConn iceConn, IcePointer /*clientData*/,
void DCOPServer::processMessage( IceConn iceConn, int opcode,
unsigned long length, Bool /*swap*/)
{
DCOPConnection* conn = clients.tqfind( iceConn );
DCOPConnection* conn = clients.find( iceConn );
if ( !conn ) {
qWarning("DCOPServer::processMessage message from unknown connection. [opcode = %d]", opcode);
return;
@ -728,7 +728,7 @@ void DCOPServer::processMessage( IceConn iceConn, int opcode,
TQCString fromApp = readQCString(ds);
TQCString toApp = readQCString(ds);
DCOPConnection* target = tqfindApp( toApp );
DCOPConnection* target = findApp( toApp );
int datalen = ba.size();
if ( opcode == DCOPReplyDelayed ) {
if ( !target )
@ -805,7 +805,7 @@ if (opcode == DCOPSend)
TQDataStream ds( ba, IO_ReadOnly );
TQCString fromApp = readQCString(ds);
TQCString toApp = readQCString(ds);
DCOPConnection* target = tqfindApp( toApp );
DCOPConnection* target = findApp( toApp );
int datalen = ba.size();
if ( target ) {
@ -888,7 +888,7 @@ if (opcode == DCOPCall)
TQCString fromApp = readQCString(ds);
TQCString toApp = readQCString(ds);
DCOPConnection* connreply = tqfindApp( toApp );
DCOPConnection* connreply = findApp( toApp );
int datalen = ba.size();
if ( !connreply )
@ -1090,7 +1090,7 @@ DCOPServer::DCOPServer(bool _suicide)
DCOPServer::~DCOPServer()
{
system(tqfindDcopserverShutdown()+" --nokill");
system(findDcopserverShutdown()+" --nokill");
IceFreeListenObjs(numTransports, listenObjs);
FreeAuthenticationData(numTransports, authDataEntries);
delete dcopSignals;
@ -1105,11 +1105,11 @@ DCOPServer::~DCOPServer()
#endif
}
DCOPConnection* DCOPServer::tqfindApp( const TQCString& appId )
DCOPConnection* DCOPServer::findApp( const TQCString& appId )
{
if ( appId.isNull() )
return 0;
DCOPConnection* conn = appIds.tqfind( appId );
DCOPConnection* conn = appIds.find( appId );
return conn;
}
@ -1204,7 +1204,7 @@ void DCOPServer::removeConnection( void* data )
while (!conn->waitingForReply.isEmpty()) {
IceConn iceConn = conn->waitingForReply.take(0);
if (iceConn) {
DCOPConnection* target = clients.tqfind( iceConn );
DCOPConnection* target = clients.find( iceConn );
qWarning("DCOP aborting call from '%s' to '%s'", target ? target->appId.data() : "<unknown>" , conn->appId.data() );
TQByteArray reply;
DCOPMsg *pMsg;
@ -1226,7 +1226,7 @@ void DCOPServer::removeConnection( void* data )
while (!conn->waitingForDelayedReply.isEmpty()) {
IceConn iceConn = conn->waitingForDelayedReply.take(0);
if (iceConn) {
DCOPConnection* target = clients.tqfind( iceConn );
DCOPConnection* target = clients.find( iceConn );
qWarning("DCOP aborting (delayed) call from '%s' to '%s'", target ? target->appId.data() : "<unknown>", conn->appId.data() );
TQByteArray reply;
DCOPMsg *pMsg;
@ -1247,7 +1247,7 @@ void DCOPServer::removeConnection( void* data )
{
IceConn iceConn = conn->waitingOnReply.take(0);
if (iceConn) {
DCOPConnection* target = clients.tqfind( iceConn );
DCOPConnection* target = clients.find( iceConn );
if (!target)
{
qWarning("DCOP Error: still waiting for answer from non-existing client.");
@ -1295,7 +1295,7 @@ void DCOPServer::slotTerminate()
dcopSignals->emitSignal(0L /* dcopserver */, "terminateKDE()", data, false);
disconnect( m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTerminate()) );
connect( m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotSuicide()) );
system(tqfindDcopserverShutdown()+" --nokill");
system(findDcopserverShutdown()+" --nokill");
}
void DCOPServer::slotSuicide()
@ -1359,7 +1359,7 @@ bool DCOPServer::receive(const TQCString &/*app*/, const TQCString &obj,
if ( obj == "emit")
{
DCOPConnection* conn = clients.tqfind( iceConn );
DCOPConnection* conn = clients.find( iceConn );
if (conn) {
//qDebug("DCOPServer: %s emits %s", conn->appId.data(), fun.data());
dcopSignals->emitSignal(conn, fun, data, false);
@ -1370,13 +1370,13 @@ bool DCOPServer::receive(const TQCString &/*app*/, const TQCString &obj,
if ( fun == "setDaemonMode(bool)" ) {
TQDataStream args( data, IO_ReadOnly );
if ( !args.atEnd() ) {
TQ_INT8 iDaemon;
Q_INT8 iDaemon;
bool daemon;
args >> iDaemon;
daemon = static_cast<bool>( iDaemon );
DCOPConnection* conn = clients.tqfind( iceConn );
DCOPConnection* conn = clients.find( iceConn );
if ( conn && !conn->appId.isNull() ) {
if ( daemon ) {
if ( !conn->daemon )
@ -1414,10 +1414,10 @@ bool DCOPServer::receive(const TQCString &/*app*/, const TQCString &obj,
if (!args.atEnd()) {
TQCString app2 = readQCString(args);
TQDataStream reply( replyData, IO_WriteOnly );
DCOPConnection* conn = clients.tqfind( iceConn );
DCOPConnection* conn = clients.find( iceConn );
if ( conn && !app2.isEmpty() ) {
if ( !conn->appId.isNull() &&
appIds.tqfind( conn->appId ) == conn ) {
appIds.find( conn->appId ) == conn ) {
appIds.remove( conn->appId );
}
@ -1440,7 +1440,7 @@ bool DCOPServer::receive(const TQCString &/*app*/, const TQCString &obj,
#endif
conn->appId = app2;
if ( appIds.tqfind( app2 ) != 0 ) {
if ( appIds.find( app2 ) != 0 ) {
// we already have this application, unify
int n = 1;
TQCString tmp;
@ -1449,12 +1449,12 @@ bool DCOPServer::receive(const TQCString &/*app*/, const TQCString &obj,
tmp.setNum( n );
tmp.prepend("-");
tmp.prepend( app2 );
} while ( appIds.tqfind( tmp ) != 0 );
} while ( appIds.find( tmp ) != 0 );
conn->appId = tmp;
}
appIds.insert( conn->appId, conn );
int c = conn->appId.tqfind( '-' );
int c = conn->appId.find( '-' );
if ( c > 0 )
conn->plainAppId = conn->appId.left( c );
else
@ -1486,7 +1486,7 @@ bool DCOPServer::receive(const TQCString &/*app*/, const TQCString &obj,
if (!args.atEnd()) {
TQCString s = readQCString(args);
TQDataStream reply( replyData, IO_WriteOnly );
int b = ( tqfindApp( s ) != 0 );
int b = ( findApp( s ) != 0 );
replyType = "bool";
reply << b;
return true;
@ -1494,9 +1494,9 @@ bool DCOPServer::receive(const TQCString &/*app*/, const TQCString &obj,
} else if ( fun == "setNotifications(bool)" ) {
TQDataStream args( data, IO_ReadOnly );
if (!args.atEnd()) {
TQ_INT8 notifyActive;
Q_INT8 notifyActive;
args >> notifyActive;
DCOPConnection* conn = clients.tqfind( iceConn );
DCOPConnection* conn = clients.find( iceConn );
if ( conn ) {
if ( notifyActive )
conn->notifyRegister++;
@ -1507,7 +1507,7 @@ bool DCOPServer::receive(const TQCString &/*app*/, const TQCString &obj,
return true;
}
} else if ( fun == "connectSignal(TQCString,TQCString,TQCString,TQCString,TQCString,bool)") {
DCOPConnection* conn = clients.tqfind( iceConn );
DCOPConnection* conn = clients.find( iceConn );
if (!conn) return false;
TQDataStream args(data, IO_ReadOnly );
if (args.atEnd()) return false;
@ -1516,16 +1516,16 @@ bool DCOPServer::receive(const TQCString &/*app*/, const TQCString &obj,
TQCString signal = readQCString(args);
TQCString receiverObj = readQCString(args);
TQCString slot = readQCString(args);
TQ_INT8 Volatile;
Q_INT8 Volatile;
args >> Volatile;
//qDebug("DCOPServer: connectSignal(sender = %s senderObj = %s signal = %s recvObj = %s slot = %s)", sender.data(), senderObj.data(), signal.data(), receiverObj.data(), slot.data());
bool b = dcopSignals->connectSignal(sender, senderObj, signal, conn, receiverObj, slot, (Volatile != 0));
replyType = "bool";
TQDataStream reply( replyData, IO_WriteOnly );
reply << (TQ_INT8) (b?1:0);
reply << (Q_INT8) (b?1:0);
return true;
} else if ( fun == "disconnectSignal(TQCString,TQCString,TQCString,TQCString,TQCString)") {
DCOPConnection* conn = clients.tqfind( iceConn );
DCOPConnection* conn = clients.find( iceConn );
if (!conn) return false;
TQDataStream args(data, IO_ReadOnly );
if (args.atEnd()) return false;
@ -1538,7 +1538,7 @@ bool DCOPServer::receive(const TQCString &/*app*/, const TQCString &obj,
bool b = dcopSignals->disconnectSignal(sender, senderObj, signal, conn, receiverObj, slot);
replyType = "bool";
TQDataStream reply( replyData, IO_WriteOnly );
reply << (TQ_INT8) (b?1:0);
reply << (Q_INT8) (b?1:0);
return true;
}
@ -1618,7 +1618,7 @@ static bool isRunning(const TQCString &fName, bool printNetworkId = false)
TQCString contents( size+1 );
bool ok = f.readBlock( contents.data(), size ) == size;
contents[size] = '\0';
int pos = contents.tqfind('\n');
int pos = contents.find('\n');
ok = ok && ( pos != -1 );
pid_t pid = ok ? contents.mid(pos+1).toUInt(&ok) : 0;
f.close();
@ -1739,7 +1739,7 @@ extern "C" DCOP_EXPORT int kdemain( int argc, char* argv[] )
return 0;
}
qWarning("DCOPServer self-test failed.");
system(tqfindDcopserverShutdown()+" --kill");
system(findDcopserverShutdown()+" --kill");
return 1;
}
close(ready[0]);

@ -66,7 +66,7 @@ typedef TQValueList<TQCString> QCStringList;
/**
* @internal
*/
class DCOPConnection : public TQSocketNotifier
class DCOPConnection : public QSocketNotifier
{
public:
DCOPConnection( IceConn conn );
@ -88,11 +88,11 @@ public:
int notifyRegister;
/**
* When client A has called client B then for the duration of the call:
* A->waitingOnReply tqcontains B
* A->waitingOnReply contains B
* and either
* B->waitingForReply tqcontains A
* B->waitingForReply contains A
* or
* B->waitingForDelayedReply tqcontains A
* B->waitingForDelayedReply contains A
*
* This allows us to do proper bookkeeping in case client A, client B
* or both unregister during the call.
@ -112,7 +112,7 @@ public:
/**
* @internal
*/
class DCOPServer : public TQObject
class DCOPServer : public QObject
{
Q_OBJECT
public:
@ -128,9 +128,9 @@ public:
const TQCString &fun, const TQByteArray& data,
TQCString& replyType, TQByteArray &replyData, IceConn iceConn);
DCOPConnection *tqfindApp(const TQCString &appId);
DCOPConnection *tqfindConn(IceConn iceConn)
{ return clients.tqfind(iceConn); }
DCOPConnection *findApp(const TQCString &appId);
DCOPConnection *findConn(IceConn iceConn)
{ return clients.find(iceConn); }
void sendMessage(DCOPConnection *conn, const TQCString &sApp,
const TQCString &rApp, const TQCString &rObj,

@ -52,7 +52,7 @@ BOOL WINAPI DCOPServer::dcopServerConsoleProc(DWORD dwCtrlType)
case CTRL_LOGOFF_EVENT:
case CTRL_SHUTDOWN_EVENT:
case CTRL_C_EVENT:
system(tqfindDcopserverShutdown()+" --nokill");
system(findDcopserverShutdown()+" --nokill");
ret = TRUE;
break;
default:

@ -39,14 +39,14 @@ DCOPSignals::emitSignal( DCOPConnection *conn, const TQCString &_fun, const TQBy
{
TQCString senderObj;
TQCString fun = _fun;
int i = fun.tqfind('#');
int i = fun.find('#');
if (i > -1)
{
senderObj = fun.left(i);
fun = fun.mid(i+1);
}
DCOPSignalConnectionList *list = connections.tqfind(fun);
DCOPSignalConnectionList *list = connections.find(fun);
if (!list) return;
for(DCOPSignalConnection *current = list->first(); current; current = list->next())
{
@ -102,16 +102,16 @@ DCOPSignals::connectSignal( const TQCString &sender, const TQCString &senderObj,
// TODO: Check if signal and slot match
TQCString signalArgs, slotArgs;
int i,j;
i = signal.tqfind('(');
i = signal.find('(');
if (i < 0) return false;
signalArgs = signal.mid(i+1);
j = signalArgs.tqfind(')');
j = signalArgs.find(')');
if (j < 0) return false;
signalArgs.truncate(j);
i = slot.tqfind('(');
i = slot.find('(');
if (i < 0) return false;
slotArgs = slot.mid(i+1);
j = slotArgs.tqfind(')');
j = slotArgs.find(')');
if (j < 0) return false;
slotArgs.truncate(j);
@ -129,7 +129,7 @@ DCOPSignals::connectSignal( const TQCString &sender, const TQCString &senderObj,
DCOPConnection *senderConn = 0;
if (Volatile)
{
senderConn = the_server->tqfindApp(sender);
senderConn = the_server->findApp(sender);
if (!senderConn)
return false; // Sender does not exist.
}
@ -142,7 +142,7 @@ DCOPSignals::connectSignal( const TQCString &sender, const TQCString &senderObj,
current->recvObj = receiverObj;
current->slot = slot;
DCOPSignalConnectionList *list = connections.tqfind(signal);
DCOPSignalConnectionList *list = connections.find(signal);
if (!list)
{
list = new DCOPSignalConnectionList;
@ -177,7 +177,7 @@ DCOPSignals::disconnectSignal( const TQCString &sender, const TQCString &senderO
return true;
}
DCOPSignalConnectionList *list = connections.tqfind(signal);
DCOPSignalConnectionList *list = connections.find(signal);
if (!list)
return false; // Not found...
@ -255,7 +255,7 @@ DCOPSignals::removeConnections(DCOPConnection *conn, const TQCString &obj)
if (current->recvConn != conn)
current->recvConn->signalConnectionList()->removeRef(current);
DCOPSignalConnectionList *signalList = connections.tqfind(current->signal);
DCOPSignalConnectionList *signalList = connections.find(current->signal);
if (signalList)
{
signalList->removeRef(current);

@ -64,12 +64,12 @@ DCOPClient* DCOPStub::dcopClient()
return DCOPClient::mainClient();
}
DCOPStub::tqStatus DCOPStub::status() const
DCOPStub::Status DCOPStub::status() const
{
return m_status;
}
void DCOPStub::setStatus( tqStatus _status )
void DCOPStub::setStatus( Status _status )
{
m_status = _status;
}

@ -75,7 +75,7 @@ public:
*/
TQCString obj() const;
enum tqStatus{ CallSucceeded, CallFailed };
enum Status{ CallSucceeded, CallFailed };
/**
* Return the status of the last call, either @p CallSucceeded or
* @p CallFailed.
@ -83,7 +83,7 @@ public:
* @return the status of the last call
* @see ok();
*/
tqStatus status() const;
Status status() const;
/**
@ -101,7 +101,7 @@ protected:
@param _status the new status
@see status()
*/
void setStatus( tqStatus _status );
void setStatus( Status _status );
/**
Invoked whenever a call fails. The default implementation
@ -134,7 +134,7 @@ protected:
private:
TQCString m_app;
TQCString m_obj;
tqStatus m_status;
Status m_status;
protected:
virtual void virtual_hook( int id, void* data );

@ -6,13 +6,13 @@
#ifdef USE_QT3
inline TQDataStream & operator << (TQDataStream & str, bool b)
{
str << TQ_INT8(b);
str << Q_INT8(b);
return str;
}
inline TQDataStream & operator >> (TQDataStream & str, bool & b)
{
TQ_INT8 l;
Q_INT8 l;
str >> l;
b = bool(l);
return str;
@ -22,7 +22,7 @@ inline TQDataStream & operator >> (TQDataStream & str, bool & b)
#if QT_VERSION < 0x030200 && !defined(Q_WS_WIN) && !defined(Q_WS_MAC)
inline TQDataStream & operator << (TQDataStream & str, long long int ll)
{
TQ_UINT32 l1,l2;
Q_UINT32 l1,l2;
l1 = ll & 0xffffffffLL;
l2 = ll >> 32;
str << l1 << l2;
@ -31,7 +31,7 @@ inline TQDataStream & operator << (TQDataStream & str, long long int ll)
inline TQDataStream & operator >> (TQDataStream & str, long long int&ll)
{
TQ_UINT32 l1,l2;
Q_UINT32 l1,l2;
str >> l1 >> l2;
ll = ((unsigned long long int)(l2) << 32) + (long long int) l1;
return str;
@ -39,7 +39,7 @@ inline TQDataStream & operator >> (TQDataStream & str, long long int&ll)
inline TQDataStream & operator << (TQDataStream & str, unsigned long long int ll)
{
TQ_UINT32 l1,l2;
Q_UINT32 l1,l2;
l1 = ll & 0xffffffffLL;
l2 = ll >> 32;
str << l1 << l2;
@ -48,7 +48,7 @@ inline TQDataStream & operator << (TQDataStream & str, unsigned long long int ll
inline TQDataStream & operator >> (TQDataStream & str, unsigned long long int &ll)
{
TQ_UINT32 l1,l2;
Q_UINT32 l1,l2;
str >> l1 >> l2;
ll = ((unsigned long long int)(l2) << 32) + (unsigned long long int) l1;
return str;

@ -248,23 +248,23 @@ int main(int argc, char **argv)
// Find a object called "object1" in any application that
// meets the criteria "canLaunchRockets()"
// bool boolResult = client->tqfindObject( "", "object1", "canLaunchRockets()", data, foundApp, foundObj);
// qDebug("tqfindObject: result = %s, %s, %s\n", boolResult ? "true" : "false",
// bool boolResult = client->findObject( "", "object1", "canLaunchRockets()", data, foundApp, foundObj);
// qDebug("findObject: result = %s, %s, %s\n", boolResult ? "true" : "false",
// foundApp.data(), foundObj.data());
// Find an application that matches with "konqueror*"
bool boolResult = client->tqfindObject( "konqueror*", "", "", data, foundApp, foundObj);
qDebug("tqfindObject: result = %s, %s, %s\n", boolResult ? "true" : "false",
bool boolResult = client->findObject( "konqueror*", "", "", data, foundApp, foundObj);
qDebug("findObject: result = %s, %s, %s\n", boolResult ? "true" : "false",
foundApp.data(), foundObj.data());
// Find an object called "object1" in any application.
boolResult = client->tqfindObject( "", "ksycoca", "", data, foundApp, foundObj);
qDebug("tqfindObject: result = %s, %s, %s\n", boolResult ? "true" : "false",
boolResult = client->findObject( "", "ksycoca", "", data, foundApp, foundObj);
qDebug("findObject: result = %s, %s, %s\n", boolResult ? "true" : "false",
foundApp.data(), foundObj.data());
// Find ourselves in any application.
boolResult = client->tqfindObject( "testdcop", "ksycoca", "", data, foundApp, foundObj);
qDebug("tqfindObject: result = %s, %s, %s\n", boolResult ? "true" : "false",
boolResult = client->findObject( "testdcop", "ksycoca", "", data, foundApp, foundObj);
qDebug("findObject: result = %s, %s, %s\n", boolResult ? "true" : "false",
foundApp.data(), foundObj.data());
DCOPClient *client2 = new DCOPClient();
@ -287,8 +287,8 @@ qDebug("Calling countDown() in object1");
qDebug("return type was '%s'", replyType.data() );
// Find ourselves in any application.
boolResult = client2->tqfindObject( "testdcop", "object1", "", data, foundApp, foundObj);
qDebug("tqfindObject: result = %s, %s, %s\n", boolResult ? "true" : "false",
boolResult = client2->findObject( "testdcop", "object1", "", data, foundApp, foundObj);
qDebug("findObject: result = %s, %s, %s\n", boolResult ? "true" : "false",
foundApp.data(), foundObj.data());
client->detach();

@ -35,13 +35,13 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <stdio.h>
/**
$QTDIR/bin/tqmoc testdcop.cpp -o testdcop.moc
$QTDIR/bin/moc testdcop.cpp -o testdcop.moc
g++ -o testdcop testdcop.cpp -I$QTDIR/include -L$QTDIR/lib
@internal
**/
class TestObject : public TQObject
class TestObject : public QObject
{
Q_OBJECT
public:

@ -19,7 +19,7 @@
# 2. First you put shell like argument:
# "string with spaces" 4 string_without_spaces
# Then you should put c++ style arguments:
# QString::tqfromLatin1("string with spaces"),4,"string_with_spaces"
# QString::fromLatin1("string with spaces"),4,"string_with_spaces"
#
# Note that the first argument has type QString and the last type const char*
# (adapt accordingly)
@ -29,7 +29,7 @@ QString
url
()
{
return QString::tqfromLatin1( "http://www.kde.org/");
return QString::fromLatin1( "http://www.kde.org/");
}
-
@ -63,7 +63,7 @@ identity
{
return x;
}
"test";QString::tqfromLatin1("test")
"test";QString::fromLatin1("test")
// 2.3 unsigned long int
unsigned long int

@ -11,12 +11,12 @@ Apple's developer documentation provides lots of information about Bonjour
in its <a href="http://developer.apple.com/documentation/Cocoa/Conceptual/NetServices/Articles/about.html#//apple_ref/doc/uid/TP40002458-SW1">Bonjour overview</a>.
If you are writing an application that wants to discover services on the network,
use DNSSD::ServiceBrowser. You can also tqfind available service types using ServiceTypeBrowser.
use DNSSD::ServiceBrowser. You can also find available service types using ServiceTypeBrowser.
If you want to announce the availability of a service provided by your application,
use DNSSD::PublicService.
DNSSD::DomainBrowser allows you to tqfind domains (other than the local one) recommended
DNSSD::DomainBrowser allows you to find domains (other than the local one) recommended
for browsing or publishing to.
Note that DNSSD::ServiceBrowser::isAvailable() provides information about the availability

@ -4,7 +4,7 @@ INCLUDES = -I$(top_srcdir) $(all_includes) $(AVAHI_CFLAGS)
# these are the headers for your project
noinst_HEADERS = sdevent.h
# let autotqmoc handle all of the meta source files (tqmoc)
# let automoc handle all of the meta source files (moc)
METASOURCES = AUTO
lib_LTLIBRARIES = libkdnssd.la

@ -1,7 +1,7 @@
Checklist to ensure that zeroconf will work:
1) Install Avahi, at least version 0.3
2) compile kdnssd-avahi and install it to tqreplace 'stub' libkdnssd.so provided by kdelibs
2) compile kdnssd-avahi and install it to replace 'stub' libkdnssd.so provided by kdelibs
3) check /etc/nsswitch.conf and ensure that there is 'mdns' before 'dns' in
line starting with 'host:'. It should be something like:
host: files mdns dns

@ -125,7 +125,7 @@ void DomainBrowser::startBrowse()
void DomainBrowser::gotNewDomain(const TQString& domain)
{
if (d->m_domains.tqcontains(domain)) return;
if (d->m_domains.contains(domain)) return;
d->m_domains.append(domain);
emit domainAdded(domain);
}

@ -38,7 +38,7 @@ class DomainBrowserPrivate;
@short Class used to provide current list of domains for browsing.
@author Jakub Stachowski
*/
class KDNSSD_EXPORT DomainBrowser : public TQObject
class KDNSSD_EXPORT DomainBrowser : public QObject
{
Q_OBJECT
public:

@ -36,7 +36,7 @@ name, either multicast or unicast DNS will be used.
@short Class that represents service query in one domain.
@author Jakub Stachowski
*/
class KDNSSD_EXPORT Query : public TQObject
class KDNSSD_EXPORT Query : public QObject
{
Q_OBJECT
public:

@ -166,7 +166,7 @@ void RemoteService::virtual_hook(int, void*)
TQDataStream & operator<< (TQDataStream & s, const RemoteService & a)
{
s << (static_cast<ServiceBase>(a));
TQ_INT8 resolved = a.d->m_resolved ? 1:0;
Q_INT8 resolved = a.d->m_resolved ? 1:0;
s << resolved;
return s;
}
@ -177,7 +177,7 @@ TQDataStream & operator>> (TQDataStream & s, RemoteService & a)
#ifdef HAVE_DNSSD
a.d->stop();
#endif
TQ_INT8 resolved;
Q_INT8 resolved;
operator>>(s,(static_cast<ServiceBase&>(a)));
s >> resolved;
a.d->m_resolved = (resolved == 1);

@ -72,7 +72,7 @@ Responder& Responder::self()
void Responder::process()
{
tqApp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput);
qApp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput);
}
#ifdef HAVE_DNSSD

@ -41,7 +41,7 @@ This class should not be used directly.
@author Jakub Stachowski
@short Internal class wrapping avahi client
*/
class Responder : public TQObject
class Responder : public QObject
{
Q_OBJECT

@ -34,7 +34,7 @@ ServiceBase::~ServiceBase()
TQString ServiceBase::encode()
{
return m_serviceName.tqreplace(".","\\.").tqreplace("\\","\\\\") + TQString(".") + m_type +
return m_serviceName.replace(".","\\.").replace("\\","\\\\") + TQString(".") + m_type +
TQString(".") + m_domain;
}
@ -50,15 +50,15 @@ void ServiceBase::decode(const TQString& name)
rest=name;
} else { // normal service or domain
TQString decoded_name=name;
decoded_name=decoded_name.tqreplace("\\\\","\\");
int i = decoded_name.tqfind(TQRegExp("[^\\\\]\\."));
if (i==-1) return; // first tqfind service name
decoded_name=decoded_name.replace("\\\\","\\");
int i = decoded_name.find(TQRegExp("[^\\\\]\\."));
if (i==-1) return; // first find service name
rest = decoded_name.mid(i+2);
m_serviceName=decoded_name.left(i+1).tqreplace("\\.",".");
m_serviceName=decoded_name.left(i+1).replace("\\.",".");
}
m_type = rest.section('.',0,1);
// does it really have a type?
if (m_type[0]=='_' && m_type[m_type.tqfind('.')+1]=='_')
if (m_type[0]=='_' && m_type[m_type.find('.')+1]=='_')
m_domain = rest.section('.',2,-1,TQString::SectionIncludeTrailingSep);
else {
m_type="";
@ -100,13 +100,13 @@ void ServiceBase::virtual_hook(int, void*)
TQDataStream & operator<< (TQDataStream & s, const ServiceBase & a)
{
s << a.m_serviceName << a.m_type << a.m_domain << a.m_hostName << TQ_INT16(a.m_port) << a.m_textData;
s << a.m_serviceName << a.m_type << a.m_domain << a.m_hostName << Q_INT16(a.m_port) << a.m_textData;
return s;
}
TQDataStream & operator>> (TQDataStream & s, ServiceBase & a)
{
TQ_INT16 port;
Q_INT16 port;
s >> a.m_serviceName >> a.m_type >> a.m_domain >> a.m_hostName >> port >> a.m_textData;
a.m_port = port;
return s;

@ -138,7 +138,7 @@ void ServiceBrowser::startBrowse()
void ServiceBrowser::gotNewService(RemoteService::Ptr svr)
{
if (tqfindDuplicate(svr)==(d->m_services.end())) {
if (findDuplicate(svr)==(d->m_services.end())) {
if (d->m_flags & AutoResolve) {
connect(svr,TQT_SIGNAL(resolved(bool )),this,TQT_SLOT(serviceResolved(bool )));
d->m_duringResolve+=svr;
@ -152,7 +152,7 @@ void ServiceBrowser::gotNewService(RemoteService::Ptr svr)
void ServiceBrowser::gotRemoveService(RemoteService::Ptr svr)
{
TQValueList<RemoteService::Ptr>::Iterator it = tqfindDuplicate(svr);
TQValueList<RemoteService::Ptr>::Iterator it = findDuplicate(svr);
if (it!=(d->m_services.end())) {
emit serviceRemoved(*it);
d->m_services.remove(it);
@ -212,7 +212,7 @@ const TQValueList<RemoteService::Ptr>& ServiceBrowser::services() const
void ServiceBrowser::virtual_hook(int, void*)
{}
TQValueList<RemoteService::Ptr>::Iterator ServiceBrowser::tqfindDuplicate(RemoteService::Ptr src)
TQValueList<RemoteService::Ptr>::Iterator ServiceBrowser::findDuplicate(RemoteService::Ptr src)
{
TQValueList<RemoteService::Ptr>::Iterator itEnd = d->m_services.end();
for (TQValueList<RemoteService::Ptr>::Iterator it = d->m_services.begin(); it!=itEnd; ++it)

@ -51,7 +51,7 @@ to constructor, domains configured by user will be searched.
@author Jakub Stachowski
@short Browsing for specific type of services or all available service types
*/
class KDNSSD_EXPORT ServiceBrowser : public TQObject
class KDNSSD_EXPORT ServiceBrowser : public QObject
{
Q_OBJECT
public:
@ -213,7 +213,7 @@ private:
bool allFinished();
void init(const TQStringList&, DomainBrowser*, int);
TQValueList<RemoteService::Ptr>::Iterator tqfindDuplicate(RemoteService::Ptr src);
TQValueList<RemoteService::Ptr>::Iterator findDuplicate(RemoteService::Ptr src);
private slots:
void serviceResolved(bool success);
void gotNewService(DNSSD::RemoteService::Ptr);

@ -60,7 +60,7 @@ EXCLUDE_PATTERNS = */.svn/* \
*/.git/* \
*/cmake/* \
*.moc.* \
tqmoc* \
moc* \
*.all_cpp.* \
*unload.* \
*/test/* \

@ -2,9 +2,9 @@
*** README for KDE's Doxygen tools
***
This directory tqcontains tools and data files for Doxygen
This directory contains tools and data files for Doxygen
generation. These are the GENERIC files; any module may
override them by putting specific tqreplacements in doc/api/ .
override them by putting specific replacements in doc/api/ .
This allows modules to customize their appearance as desired.
The files that may be overridden are:
@ -55,9 +55,9 @@ doxygen.sh [--recurse] [--modulename] [--doxdatadir=<dir>] [--installdir=<dir>]
a subdirectory apidocs/ . Modulename is the last part of
the <top_srcdir> (usually a KDE SVN module name).
--doxdatadir=<dir> Locate the HTML header files and support graphics.
In kdelibs, the subdirectory doc/common/ tqcontains these
In kdelibs, the subdirectory doc/common/ contains these
files (and this README). In an installed KDE system,
$KDEDIR/share/doc/HTML/en/common/ tqcontains a copy.
$KDEDIR/share/doc/HTML/en/common/ contains a copy.
This argument is mandatory if doxygen.sh can't guess where
the doxdata lives.
--installdir=<dir> Locate the directory where apidox from other modules
@ -111,6 +111,6 @@ Differences with current dox: <TODO>
# Typically, this means $(top_builddir)/apidocs and something like
# libfoo/html for the output. For the top-level dig, set relative-html
# to "." . In non-top directories, both <!-- menu --> and <!-- gmenu -->
# are calculated and tqreplaced. Top directories get an empty <!-- menu -->
# are calculated and replaced. Top directories get an empty <!-- menu -->
# if any.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

@ -35,7 +35,7 @@ principally for works whose purpose is instruction or reference.
1. APPLICABILITY AND DEFINITIONS
This License applies to any manual or other work, in any medium, that
tqcontains a notice placed by the copyright holder saying it can be
contains a notice placed by the copyright holder saying it can be
distributed under the terms of this License. Such a notice grants a
world-wide, royalty-free license, unlimited in duration, to use that
work under the conditions stated herein. The "Document", below,
@ -51,7 +51,7 @@ modifications and/or translated into another language.
A "Secondary Section" is a named appendix or a front-matter section of
the Document that deals exclusively with the relationship of the
publishers or authors of the Document to the Document's overall subject
(or to related matters) and tqcontains nothing that could fall directly
(or to related matters) and contains nothing that could fall directly
within that overall subject. (Thus, if the Document is in part a
textbook of mathematics, a Secondary Section may not explain any
mathematics.) The relationship could be a matter of historical
@ -104,7 +104,7 @@ the text near the most prominent appearance of the work's title,
preceding the beginning of the body of the text.
A section "Entitled XYZ" means a named subunit of the Document whose
title either is precisely XYZ or tqcontains XYZ in parentheses following
title either is precisely XYZ or contains XYZ in parentheses following
text that translates XYZ in another language. (Here XYZ stands for a
specific section name mentioned below, such as "Acknowledgements",
"Dedications", "Endorsements", or "History".) To "Preserve the Title"
@ -237,7 +237,7 @@ of these sections as invariant. To do this, add their titles to the
list of Invariant Sections in the Modified Version's license notice.
These titles must be distinct from any other section titles.
You may add a section Entitled "Endorsements", provided it tqcontains
You may add a section Entitled "Endorsements", provided it contains
nothing but endorsements of your Modified Version by various
parties--for example, statements of peer review or that the text has
been approved by an organization as the authoritative definition of a
@ -250,7 +250,7 @@ Front-Cover Text and one of Back-Cover Text may be added by (or
through arrangements made by) any one entity. If the Document already
includes a cover text for the same cover, previously added by you or
by arrangement made by the same entity you are acting on behalf of,
you may not add another; but you may tqreplace the old one, on explicit
you may not add another; but you may replace the old one, on explicit
permission from the previous publisher that added the old one.
The author(s) and publisher(s) of the Document do not by this License
@ -268,7 +268,7 @@ list them all as Invariant Sections of your combined work in its
license notice, and that you preserve all their Warranty Disclaimers.
The combined work need only contain one copy of this License, and
multiple identical Invariant Sections may be tqreplaced with a single
multiple identical Invariant Sections may be replaced with a single
copy. If there are multiple Invariant Sections with the same name but
different contents, make the title of each such section unique by
adding at the end of it, in parentheses, the name of the original
@ -286,7 +286,7 @@ Entitled "Endorsements".
6. COLLECTIONS OF DOCUMENTS
You may make a collection consisting of the Document and other documents
released under this License, and tqreplace the individual copies of this
released under this License, and replace the individual copies of this
License in the various documents with a single copy that is included in
the collection, provided that you follow the rules of this License for
verbatim copying of each of the documents in all other respects.
@ -382,7 +382,7 @@ license notices just after the title page:
Free Documentation License".
If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
tqreplace the "with...Texts." line with this:
replace the "with...Texts." line with this:
with the Invariant Sections being LIST THEIR TITLES, with the
Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST.
@ -391,7 +391,7 @@ If you have Invariant Sections without Cover Texts, or some other
combination of the three, merge those two alternatives to suit the
situation.
If your document tqcontains nontrivial examples of program code, we
If your document contains nontrivial examples of program code, we
recommend releasing these examples in parallel under your choice of
free software license, such as the GNU General Public License,
to permit their use in free software.

@ -61,7 +61,7 @@
<p>
This License applies to any manual or other work, in any medium, that
tqcontains a notice placed by the copyright holder saying it can be
contains a notice placed by the copyright holder saying it can be
distributed under the terms of this License. Such a notice grants a
world-wide, royalty-free license, unlimited in duration, to use that
work under the conditions stated herein. The "Document", below,
@ -81,7 +81,7 @@
A "Secondary Section" is a named appendix or a front-matter section of
the Document that deals exclusively with the relationship of the
publishers or authors of the Document to the Document's overall subject
(or to related matters) and tqcontains nothing that could fall directly
(or to related matters) and contains nothing that could fall directly
within that overall subject. (Thus, if the Document is in part a
textbook of mathematics, a Secondary Section may not explain any
mathematics.) The relationship could be a matter of historical
@ -146,7 +146,7 @@
<p>
A section "Entitled XYZ" means a named subunit of the Document whose
title either is precisely XYZ or tqcontains XYZ in parentheses following
title either is precisely XYZ or contains XYZ in parentheses following
text that translates XYZ in another language. (Here XYZ stands for a
specific section name mentioned below, such as "Acknowledgements",
"Dedications", "Endorsements", or "History".) To "Preserve the Title"
@ -304,7 +304,7 @@
</p>
<p>
You may add a section Entitled "Endorsements", provided it tqcontains
You may add a section Entitled "Endorsements", provided it contains
nothing but endorsements of your Modified Version by various
parties--for example, statements of peer review or that the text has
been approved by an organization as the authoritative definition of a
@ -319,7 +319,7 @@
through arrangements made by) any one entity. If the Document already
includes a cover text for the same cover, previously added by you or
by arrangement made by the same entity you are acting on behalf of,
you may not add another; but you may tqreplace the old one, on explicit
you may not add another; but you may replace the old one, on explicit
permission from the previous publisher that added the old one.
</p>
@ -344,7 +344,7 @@
<p>
The combined work need only contain one copy of this License, and
multiple identical Invariant Sections may be tqreplaced with a single
multiple identical Invariant Sections may be replaced with a single
copy. If there are multiple Invariant Sections with the same name but
different contents, make the title of each such section unique by
adding at the end of it, in parentheses, the name of the original
@ -367,7 +367,7 @@
<p>
You may make a collection consisting of the Document and other documents
released under this License, and tqreplace the individual copies of this
released under this License, and replace the individual copies of this
License in the various documents with a single copy that is included in
the collection, provided that you follow the rules of this License for
verbatim copying of each of the documents in all other respects.
@ -488,7 +488,7 @@
<p>
If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
tqreplace the "with...Texts." line with this:
replace the "with...Texts." line with this:
</p>
<pre>
@ -503,7 +503,7 @@
</p>
<p>
If your document tqcontains nontrivial examples of program code, we
If your document contains nontrivial examples of program code, we
recommend releasing these examples in parallel under your choice of
free software license, such as the GNU General Public License,
to permit their use in free software.

@ -59,7 +59,7 @@ modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which tqcontains
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
@ -96,7 +96,7 @@ above, provided that you also meet all of these conditions:
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part tqcontains or is derived from the Program or any
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
@ -154,7 +154,7 @@ Sections 1 and 2 above provided that you also do one of the following:
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it tqcontains, plus any
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include

@ -73,7 +73,7 @@ modification follow.</P>
<H2><A NAME="show-c">GNU General Public License<BR>
Terms And Conditions For Copying, Distribution And Modification</A></H2>
<P>0. This License applies to any program or other work which tqcontains
<P>0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
@ -114,7 +114,7 @@ stating that you changed the files and the date of any change.</P>
<LI>
<P>You must cause any work that you distribute or publish, that in
whole or in part tqcontains or is derived from the Program or any
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.</P>
</LI>
@ -184,7 +184,7 @@ an offer, in accord with Subsection b above.)</P>
<P>The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it tqcontains, plus any
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include

@ -193,7 +193,7 @@ table.programlisting
table.screen {
border-style: none;
background-color: rgb(224,224,224);
table-tqlayout: auto; /* 100%? */
table-layout: auto; /* 100%? */
color: rgb(0,0,0); /* should be inherit */
}
@ -202,7 +202,7 @@ table.screen {
TABLE[class~=programlisting]
TABLE[class~=screen] { border-style: none;
background-color: rgb(224,224,224);
table-tqlayout: auto;
table-layout: auto;
color: inherit;
}
*/
@ -263,7 +263,7 @@ h1, h2, h3, h4, h5, h6 {
background-color: transparent;
}
.arg, .parameter, .tqreplaceable {
.arg, .parameter, .replaceable {
background-color: rgb(255,255,255);
color: rgb(0,128,64);
font-style: italic;

@ -85,7 +85,7 @@ DIV.INFORMALEXAMPLE { border-style: dotted;
TABLE.programlisting
TABLE.screen { border-style: none;
background-color: rgb(224,224,224);
table-tqlayout: auto; /* 100%? */
table-layout: auto; /* 100%? */
color: rgb(0,0,0); /* should be inherit */
}
@ -94,7 +94,7 @@ TABLE.screen { border-style: none;
TABLE[class~=programlisting]
TABLE[class~=screen] { border-style: none;
background-color: rgb(224,224,224);
table-tqlayout: auto;
table-layout: auto;
color: inherit;
}
*/
@ -146,7 +146,7 @@ P, H1, H2, H3, H4, H5, TD, TH { font-family: sans-serif;
h1, h2, h3, h4, h5, h6 { color: rgb(82,80,82);
}
.arg, .parameter, .tqreplaceable{ background-color: rgb(255,255,255);
.arg, .parameter, .replaceable{ background-color: rgb(255,255,255);
color: rgb(0,128,64);
font-style: italic;
}

@ -109,14 +109,14 @@ that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former tqcontains code derived from the library, whereas the latter must
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
program which tqcontains a notice placed by the copyright holder or
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
@ -135,7 +135,7 @@ included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it tqcontains, plus any associated
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
@ -237,7 +237,7 @@ source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that tqcontains no derivative of any portion of the
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
@ -245,7 +245,7 @@ therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
tqcontains portions of the Library), rather than a "work that uses the
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
@ -257,7 +257,7 @@ linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure tqlayouts and accessors, and small macros and small inline
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
@ -344,7 +344,7 @@ permitted, and provided that you do these two things:
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to tqfind the accompanying uncombined form of the same work.
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any

@ -123,14 +123,14 @@ that program using a modified version of the Library.</P>
<P>The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former tqcontains code derived from the library, whereas the latter must
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.</P>
<H2>GNU Lesser General Public License<BR>
Terms And Conditions For Copying, Distribution And Modification</H2>
<P>0. This License Agreement applies to any software library or other
program which tqcontains a notice placed by the copyright holder or
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".</P>
@ -149,7 +149,7 @@ included without limitation in the term "modification".)</P>
<P>"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it tqcontains, plus any associated
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.</P>
@ -261,7 +261,7 @@ source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.</P>
<P>5. A program that tqcontains no derivative of any portion of the
<P>5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
@ -269,7 +269,7 @@ therefore falls outside the scope of this License.</P>
<P>However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
tqcontains portions of the Library), rather than a "work that uses the
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.</P>
@ -281,7 +281,7 @@ linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.</P>
<P>If such an object file uses only numerical parameters, data
structure tqlayouts and accessors, and small macros and small inline
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
@ -384,7 +384,7 @@ Sections above.</P>
<LI>
<P>Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to tqfind the accompanying uncombined form of the same work.</P>
where to find the accompanying uncombined form of the same work.</P>
</LI>
</OL>

@ -31,7 +31,7 @@
<option>-e, --error</option><option>-w,
--warning</option><option>-i,--info</option>
</group>
<arg><tqreplaceable>message</tqreplaceable></arg>
<arg><replaceable>message</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

@ -21,7 +21,7 @@
<refsynopsisdiv>
<cmdsynopsis>
<command>checkXML</command> <arg><tqreplaceable>filename</tqreplaceable></arg>
<command>checkXML</command> <arg><replaceable>filename</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

@ -26,19 +26,19 @@
<cmdsynopsis>
<command>dcop</command>
<group><option>--pipe</option></group>
<group><option>--user</option> <tqreplaceable> user</tqreplaceable></group>
<group><option>--user</option> <replaceable> user</replaceable></group>
<group><option>--all-users</option></group>
<group><option>--session</option> <tqreplaceable> session</tqreplaceable></group>
<group><option>--session</option> <replaceable> session</replaceable></group>
<group><option>--all-sessions</option></group>
<group><option>--list-sessions</option></group>
<group><option>--no-user-time</option></group>
<group>
<arg><tqreplaceable>application</tqreplaceable></arg>
<arg><replaceable>application</replaceable></arg>
<group>
<arg><tqreplaceable>object</tqreplaceable></arg>
<arg><replaceable>object</replaceable></arg>
<group>
<arg choice="opt"><tqreplaceable>function</tqreplaceable></arg>
<group><arg choice="opt" rep="repeat"><tqreplaceable>arguments</tqreplaceable></arg></group>
<arg choice="opt"><replaceable>function</replaceable></arg>
<group><arg choice="opt" rep="repeat"><replaceable>arguments</replaceable></arg></group>
</group>
</group>
</group>
@ -70,7 +70,7 @@ linkers.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>--user</option> <tqreplaceable>user</tqreplaceable></term>
<term><option>--user</option> <replaceable>user</replaceable></term>
<listitem>
<para>Connect to the given user's &DCOP; server. This option will
ignore the values of the environment vars $<envar>DCOPSERVER</envar>
@ -92,7 +92,7 @@ be generated.</para>
</varlistentry>
<varlistentry>
<term><option>--session</option>
<tqreplaceable>session</tqreplaceable></term>
<replaceable>session</replaceable></term>
<listitem><para>Send to the given &kde; session. This option can only
be used in combination with the <option>--user</option> option.</para>
</listitem>
@ -148,14 +148,14 @@ options.</para>
<refsect1>
<title>See Also</title>
<para>dcopclient(1) dcopref(1) dcoptqfind(1) kdcop(1)</para>
<para>dcopclient(1) dcopref(1) dcopfind(1) kdcop(1)</para>
<para>Inside &kde;, you can enter <userinput>help:/kdcop</userinput>
in &konqueror; to see the User Manual for
<application>kdcop</application> graphical dcop tool.</para>
<!--
<para> Info on where to tqfind proper dcop docs </para>
<para> Info on where to find proper dcop docs </para>
-->
</refsect1>
</refentry>

@ -23,7 +23,7 @@
<refsynopsisdiv>
<cmdsynopsis>
<command><tqreplaceable>KDE application</tqreplaceable></command>
<command><replaceable>KDE application</replaceable></command>
<arg choice="opt">KDE Generic Options</arg>
</cmdsynopsis>
</refsynopsisdiv>
@ -67,8 +67,8 @@ titlebar.</para></listitem>
<listitem><para>Sets the appliction &GUI; style.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>--tqgeometry</option> <parameter>tqgeometry</parameter></term>
<listitem><para>Sets the client tqgeometry of the main widget.</para></listitem>
<term><option>--geometry</option> <parameter>geometry</parameter></term>
<listitem><para>Sets the client geometry of the main widget.</para></listitem>
</varlistentry>
</variablelist>

@ -23,7 +23,7 @@
<refsynopsisdiv>
<cmdsynopsis>
<command><tqreplaceable>Qt application</tqreplaceable></command>
<command><replaceable>Qt application</replaceable></command>
<arg choice="opt">Qt Generic Options</arg>
</cmdsynopsis>
</refsynopsisdiv>

@ -52,10 +52,10 @@ url="http://aspell.sourceforge.net/">ASpell home page</ulink>.)
<para><anchor id="spelldlg"/>
The top line in the dialog displays a possibly misspelled word which was found in your
document. &kspell; attempts to tqfind an appropriate tqreplacement word. One or
document. &kspell; attempts to find an appropriate replacement word. One or
several may be found. The best guess is shown to the right of <guilabel>Replacement:</guilabel>.
To accept this tqreplacement, click on <guibutton>Replace</guibutton>. You may also select a word
from the list of <guilabel>Suggestions</guilabel> and then click <guibutton>Replace</guibutton> to tqreplace the
To accept this replacement, click on <guibutton>Replace</guibutton>. You may also select a word
from the list of <guilabel>Suggestions</guilabel> and then click <guibutton>Replace</guibutton> to replace the
misspelled word with the selected word.</para>
<para>To keep your original spelling, click on <guilabel>Ignore</guilabel>.</para>
@ -67,8 +67,8 @@ on <guibutton>Stop</guibutton>.</para>
<guibutton>Cancel</guibutton>.</para>
<para>Clicking on <guibutton>Replace All</guibutton> will initially perform the same function as
clicking on <guibutton>Replace</guibutton>, but will automatically tqreplace the misspelled word
with the chosen tqreplacement word, if it appears again (at a later point) in your
clicking on <guibutton>Replace</guibutton>, but will automatically replace the misspelled word
with the chosen replacement word, if it appears again (at a later point) in your
document.</para>
<para>The <guibutton>Ignore All</guibutton> button ignores this and all future occurrences of the
@ -132,7 +132,7 @@ your dictionary's distribution for more information.</para>
<para>You may choose to use <application>Ispell</application> or <application>Aspell</application> as the spell-checking
backend for &kspell;. <application>Ispell</application> is more widely available and may
have better international support, but <application>Aspell</application> is gaining
popularity as it claims to give better suggestions for word tqreplacements.</para>
popularity as it claims to give better suggestions for word replacements.</para>
</sect1>
<sect1 id="other">
@ -147,7 +147,7 @@ read the International <application>ISpell</application> man page.</para>
<title>Contact Information</title>
<para>For more information about &kspell;, visit the <ulink url="http://www.chaos.umd.edu/~dsweet/KDE/KSpell">&kspell;
Home Page</ulink>. In particular, you will tqfind information about programming the &kspell; C++ class.</para>
Home Page</ulink>. In particular, you will find information about programming the &kspell; C++ class.</para>
<para>You may email the author/maintainer with questions and/or comments at
&David.Sweet.mail;.</para>

@ -143,8 +143,8 @@ class BytesEditInterface
virtual bool isModified() const = 0;
public: // call for action
/** tqrepaint the indizes from i1 to i2 */
virtual void tqrepaintRange( int i1, int i2 ) = 0;
/** repaint the indizes from i1 to i2 */
virtual void repaintRange( int i1, int i2 ) = 0;
};
@ -221,7 +221,7 @@ inline BytesEditInterface *bytesEditInterface( T *t )
inline TQWidget *createBytesEditWidget( TQWidget *Parent = 0, const char *Name = 0 )
{
return KParts::ComponentFactory::createInstanceFromQuery<TQWidget>
( TQString::tqfromLatin1("KHexEdit/KBytesEdit"), TQString::null, Parent, Name );
( TQString::fromLatin1("KHexEdit/KBytesEdit"), TQString::null, Parent, Name );
}
}

@ -52,14 +52,14 @@ class ClipboardInterface
virtual void cut() = 0;
/** tries to paste.
* If there is nothing to paste or paste is not possible this call is a noop.
* Use BytesEditInterface::isReadOnly() to tqfind out if you can paste at all.
* Use BytesEditInterface::isReadOnly() to find out if you can paste at all.
*/
virtual void paste() = 0;
public: // signals
/** signal: tells whether copy is possible or not.
* Remember to use the created object, not the interface for connecting
* Use BytesEditInterface::isReadOnly() to tqfind out if you can also cut
* Use BytesEditInterface::isReadOnly() to find out if you can also cut
* As this function symbol serves as a signal, this is a noop. Don't use it
* for anything else.
*/

@ -47,14 +47,14 @@ class ValueColumnInterface
MaxCodingId=0xFFFF
};
/** collection of ids for the fitting of the tqlayout into the available widget's width */
/** collection of ids for the fitting of the layout into the available widget's width */
enum KResizeStyle
{
/** we don't care about the actual sizing of the widget
* but stick to the given NoOfBytesPerLine
*/
NoResize=0,
/** we try to fit the tqlayout to the available width
/** we try to fit the layout to the available width
* but only with full groups like set in NoOfGroupedBytes
* with minimum of one full group
*/

@ -179,7 +179,7 @@ k_dcop:
*
* @see allContacts()
* @see presenceString()
* @see presencetqStatus()
* @see presenceStatus()
* @see KABC::Addressee::uid()
*/
virtual bool isPresent( const TQString & uid ) = 0;
@ -197,7 +197,7 @@ k_dcop:
*
* @see isPresent()
* @see presenceString()
* @see presencetqStatus()
* @see presenceStatus()
* @see KABC::Addressee::uid()
*/
virtual TQString displayName( const TQString & uid ) = 0;
@ -214,7 +214,7 @@ k_dcop:
* TQString::null if the UID is unknown
*
* @see isPresent()
* @see presencetqStatus()
* @see presenceStatus()
* @see KABC::Addressee::uid()
*/
virtual TQString presenceString( const TQString & uid ) = 0;
@ -247,7 +247,7 @@ k_dcop:
* @see presenceString()
* @see KABC::Addressee::uid()
*/
virtual int presencetqStatus( const TQString & uid ) = 0;
virtual int presenceStatus( const TQString & uid ) = 0;
/**
* @brief Indicate if a given contact can receive files
@ -309,7 +309,7 @@ k_dcop:
*
* @see isPresent()
* @see presenceString()
* @see presencetqStatus()
* @see presenceStatus()
* @see KABC::Addressee::uid()
*/
virtual TQPixmap icon( const TQString & uid ) = 0;
@ -467,7 +467,7 @@ k_dcop_signals:
/**
* @brief Indicates that a contact's presence has changed
*
* Notifies connected DCOP tqreceivers about a change in a contact's
* Notifies connected DCOP receivers about a change in a contact's
* presence.
*
* Implementations just have to call this method with the appropriate
@ -476,9 +476,9 @@ k_dcop_signals:
* @param uid the KABC UID whose presence changed
* @param appId the DCOP application ID of the program the signal
* originates from
* @param presence the new presence's numeric value. See presencetqStatus()
* @param presence the new presence's numeric value. See presenceStatus()
*
* @see presencetqStatus()
* @see presenceStatus()
* @see KABC::Addressee::uid()
* @see DCOPClient::appId()
*/

@ -248,7 +248,7 @@ bool KIMProxy::initialize()
{
m_apps_available = true;
//kdDebug( 790 ) << " app name: " << (*offer)->name() << ", has instance " << *app << ", dcopService: " << dcopService << endl;
if ( !m_im_client_stubs.tqfind( dcopService ) )
if ( !m_im_client_stubs.find( dcopService ) )
{
kdDebug( 790 ) << "App " << *app << ", dcopObjectId " << dcopObjectId << " found, using it for presence info." << endl;
m_im_client_stubs.insert( *app, new KIMIface_stub( d->dc, *app, dcopObjectId ) );
@ -284,7 +284,7 @@ void KIMProxy::registeredToDCOP( const TQCString& appId )
if ( appId.left( dcopService.length() ) == dcopService )
{
// if it's not already known, insert it
if ( !m_im_client_stubs.tqfind( appId ) )
if ( !m_im_client_stubs.find( appId ) )
{
newApp = true;
kdDebug( 790 ) << "App: " << appId << ", dcopService: " << dcopService << " started, using it for presence info."<< endl;
@ -301,7 +301,7 @@ void KIMProxy::registeredToDCOP( const TQCString& appId )
void KIMProxy::unregisteredFromDCOP( const TQCString& appId )
{
//kdDebug( 790 ) << k_funcinfo << appId << endl;
if ( m_im_client_stubs.tqfind( appId ) )
if ( m_im_client_stubs.find( appId ) )
{
kdDebug( 790 ) << appId << " quit, removing its presence info." << endl;
@ -558,14 +558,14 @@ bool KIMProxy::imAppsAvailable()
bool KIMProxy::startPreferredApp()
{
TQString preferences = TQString("[X-DCOP-ServiceName] = '%1'").arg( preferredApp() );
// start/tqfind an instance of DCOP/InstantMessenger
// start/find an instance of DCOP/InstantMessenger
TQString error;
TQCString dcopService;
// Get a preferred IM client.
// The app will notify itself to us using registeredToDCOP, so we don't need to record a stub for it here
// FIXME: error in preferences, see debug output
preferences = TQString::null;
int result = KDCOPServiceStarter::self()->tqfindServiceFor( IM_SERVICE_TYPE, TQString::null, preferences, &error, &dcopService );
int result = KDCOPServiceStarter::self()->findServiceFor( IM_SERVICE_TYPE, TQString::null, preferences, &error, &dcopService );
kdDebug( 790 ) << k_funcinfo << "error was: " << error << ", dcopService: " << dcopService << endl;
@ -578,14 +578,14 @@ void KIMProxy::pollAll( const TQString &uid )
/* // We only need to call this function if we don't have any data at all
// otherwise, the data will be kept fresh by received presence change
// DCOP signals
if ( !d->presence_map.tqcontains( uid ) )
if ( !d->presence_map.contains( uid ) )
{
AppPresence *presence = new AppPresence();
// record current presence from known clients
TQDictIterator<KIMIface_stub> it( m_im_client_stubs );
for ( ; it.current(); ++it )
{
presence->insert( it.currentKey().ascii(), it.current()->presencetqStatus( uid ) ); // m_im_client_stubs has qstring keys...
presence->insert( it.currentKey().ascii(), it.current()->presenceStatus( uid ) ); // m_im_client_stubs has qstring keys...
}
d->presence_map.insert( uid, presence );
}*/
@ -603,7 +603,7 @@ void KIMProxy::pollApp( const TQCString & appId )
ContactPresenceListCurrent current = d->presence_map[ *it ];
AppPresenceCurrent ap;
ap.appId = appId;
ap.presence = appStub->presencetqStatus( *it );
ap.presence = appStub->presenceStatus( *it );
current.append( ap );
d->presence_map.insert( *it, current );
@ -618,7 +618,7 @@ KIMIface_stub * KIMProxy::stubForUid( const TQString &uid )
// get best appPresence
AppPresenceCurrent ap = d->presence_map[ uid ].best();
// look up the presence string from that app
return m_im_client_stubs.tqfind( ap.appId );
return m_im_client_stubs.find( ap.appId );
}
KIMIface_stub * KIMProxy::stubForProtocol( const TQString &protocol)
@ -626,7 +626,7 @@ KIMIface_stub * KIMProxy::stubForProtocol( const TQString &protocol)
KIMIface_stub * app;
// see if the preferred client supports this protocol
TQString preferred = preferredApp();
if ( ( app = m_im_client_stubs.tqfind( preferred ) ) )
if ( ( app = m_im_client_stubs.find( preferred ) ) )
{
if ( app->protocols().grep( protocol ).count() > 0 )
return app;

@ -43,8 +43,8 @@ class KURL;
class ContactPresenceListCurrent;
/** FIXME: remove for KDE4, binary compability again. */
typedef TQMap<TQCString, int> AppPresence; // appId->presence; tqcontains all applications' ideas of a user's presence
typedef TQDict<AppPresence> PresenceMap; // uid->AppPresence; tqcontains a AppPresences for all users
typedef TQMap<TQCString, int> AppPresence; // appId->presence; contains all applications' ideas of a user's presence
typedef TQDict<AppPresence> PresenceMap; // uid->AppPresence; contains a AppPresences for all users
/** FIXME: remove presenceMap and call this presenceMap in KDE4. This hack is for binary compatibility */
typedef TQMap<TQString, ContactPresenceListCurrent> PresenceStringMap;
@ -301,7 +301,7 @@ class KIMPROXY_EXPORT KIMProxy : public TQObject, virtual public KIMProxyIface
* @see isPresent()
* @see presenceString()
* @see presenceIcon()
* @see KIMIface::presencetqStatus()
* @see KIMIface::presenceStatus()
* @see KABC::Addressee::uid()
*/
int presenceNumeric( const TQString& uid );

@ -65,8 +65,8 @@ KFileAudioPreview::KFileAudioPreview( TQWidget *parent, const char *name )
m_supportedFormats.insert( *it, (void*) 1 );
TQVGroupBox *box = new TQVGroupBox( i18n("Media Player"), this );
TQVBoxLayout *tqlayout = new TQVBoxLayout( this );
tqlayout->addWidget( box );
TQVBoxLayout *layout = new TQVBoxLayout( this );
layout->addWidget( box );
(void) new TQWidget( box ); // spacer
@ -83,7 +83,7 @@ KFileAudioPreview::KFileAudioPreview( TQWidget *parent, const char *name )
{
TQHBox *frame = new TQHBox( box );
frame->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
frame->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );
frame->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );
view->videoWidget()->reparent( frame, TQPoint(0,0) );
}
@ -110,7 +110,7 @@ void KFileAudioPreview::showPreview( const KURL &url )
return;
KMimeType::Ptr mt = KMimeType::findByURL( url );
bool supported = m_supportedFormats.tqfind( mt->name() );
bool supported = m_supportedFormats.find( mt->name() );
d->player->view()->setEnabled( supported );
if ( !supported )
return;

@ -28,7 +28,7 @@
#include <kmediaplayer/playerdcopobject.h>
#include <kmediaplayer/view.h>
/** KMediaPlayer tqcontains an interface to reusable media player components.
/** KMediaPlayer contains an interface to reusable media player components.
*/
namespace KMediaPlayer
{
@ -56,7 +56,7 @@ public:
/** This constructor is what to use when a GUI is required, as in the
* case of a KMediaPlayer/Player.
*/
Player(TQWidget *tqparentWidget, const char *widgetName, TQObject *parent, const char *name);
Player(TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name);
virtual ~Player(void);

@ -59,8 +59,8 @@
* // now use the editor.
* editor->setRegExp("^kde$");
* // Finally insert the widget into the tqlayout of its parent
* tqlayout->addWidget( editorWidget );
* // Finally insert the widget into the layout of its parent
* layout->addWidget( editorWidget );
* }
* else {
* // Don't offer the editor widget.

@ -12,7 +12,7 @@ Comment[ca]=Aquest és un enginy per a provar la interfície de l'script.
Comment[cs]=Toto je obecný testovací skript pro testování skriptovacího rozhranní.
Comment[csb]=Mòduł testowaniô skriptowegò interfejsu.
Comment[cy]=Mae hyn yn beiriant sgript prawf generig i brofi y sgript rhyngwyneb.
Comment[da]=Dette er en generisk testscript-tqmaskine til at teste scriptgrænsefladen.
Comment[da]=Dette er en generisk testscript-maskine til at teste scriptgrænsefladen.
Comment[de]=Dies ist eine allgemeine Sammlung von Testroutinen für die Skript-Schnittstelle.
Comment[el]=Αυτό είναι μια γενική μηχανή ελέγχου σεναρίων για τον έλεγχο της διασύνδεσης σεναρίων.
Comment[eo]=Tio estas testprogram-maŝino por testi la programinterfaco.

@ -44,7 +44,7 @@ class KScriptClientInterface;
* @author Ian Reinhart Geiser <geiseri@kde.org>
*
**/
class KDE_EXPORT KScriptInterface : public TQObject
class KDE_EXPORT KScriptInterface : public QObject
{
Q_OBJECT
public:

@ -26,7 +26,7 @@
/**
* Script loader
*/
class ScriptLoader : virtual public TQObject
class ScriptLoader : virtual public QObject
{
Q_OBJECT
public:

@ -126,7 +126,7 @@ void KScriptManager::runScript( const TQString &scriptName, TQObject *context, c
}
}
else
KMessageBox::sorry(0, i18n("Unable tqfind script \"%1\".").arg(scriptName), i18n("KScript Error"));
KMessageBox::sorry(0, i18n("Unable find script \"%1\".").arg(scriptName), i18n("KScript Error"));
}
#include "scriptmanager.moc"
#include "scriptinterface.moc"

@ -442,7 +442,7 @@
* a Spanish synthesizer would likely be unintelligible). So the language
* attribute is said to have "priority".
* If an application does not specify a language attribute, a default one will be assumed.
* The rest of the attributes are said to be "preferred". If %KTTSD cannot tqfind
* The rest of the attributes are said to be "preferred". If %KTTSD cannot find
* a talker with the exact preferred attributes requested, the closest matching
* talker will likely still be understandable.
*
@ -458,7 +458,7 @@
* and Soft volume would not be picked as long as an English Female talker is
* available.
*
* The algorithm used by %KTTSD to tqfind a matching talker is as follows:
* The algorithm used by %KTTSD to find a matching talker is as follows:
*
* - If language code is not specified by the application, assume default configured
* by user. The primary language code automatically has priority.
@ -511,8 +511,8 @@
* and if there are none, display an error message to the user.
*
* Applications can implement their own talker-matching algorithm by
* calling getTalkers, then tqfinding the desired talker from the returned
* list. When the full talker code is passed in, %KKTSD will tqfind an exact
* calling getTalkers, then finding the desired talker from the returned
* list. When the full talker code is passed in, %KKTSD will find an exact
* match and use the specified talker.
*
* If an application requires a configuration that user has not created,
@ -708,7 +708,7 @@ class KSpeech : virtual public DCOPObject {
* defaults to the closest matching talker.
*
* If an existing Screen Reader output is in progress, it is stopped and discarded and
* tqreplaced with this new message.
* replaced with this new message.
*/
virtual ASYNC sayScreenReaderOutput(const TQString &msg, const TQString &talker) = 0;
@ -748,14 +748,14 @@ class KSpeech : virtual public DCOPObject {
@endverbatim
*
* Note that backward slashes must be escaped.
* When %KTTSD parses the text, it tqreplaces all tabs, spaces, and formfeeds
* with a single space, and then tqreplaces the sentence delimiters using
* When %KTTSD parses the text, it replaces all tabs, spaces, and formfeeds
* with a single space, and then replaces the sentence delimiters using
* the following statement:
@verbatim
TQString::tqreplace(sentenceDelimiter, "\\1\t");
TQString::replace(sentenceDelimiter, "\\1\t");
@endverbatim
*
* which tqreplaces all sentence delimiters with a tab, but
* which replaces all sentence delimiters with a tab, but
* preserving the first capture text (first parenthesis). In other
* words, the sentence punctuation is preserved.
* The tab is later used to separate the text into sentences.
@ -922,7 +922,7 @@ class KSpeech : virtual public DCOPObject {
* @return A TQDataStream containing information about the job.
* Blank if no such job.
*
* The stream tqcontains the following elements:
* The stream contains the following elements:
* - int state - Job state.
* - TQCString appId - DCOP senderId of the application that requested the speech job.
* - TQString talker - Talker Code requested by application.

@ -1 +1 @@
kate: space-indent on; indent-width 2; tqreplace-tabs on;
kate: space-indent on; indent-width 2; replace-tabs on;

@ -24,7 +24,7 @@ namespace KTextEditor
Construct a new interface object for the text editor.
@param Parent the parent BlockSelectionInterface object
that will provide us with the functions for the interface.
@param name the TQObject's name
@param name the QObject's name
*/
BlockSelectionDCOPInterface( BlockSelectionInterface *Parent, const char *name );
/**

@ -24,7 +24,7 @@ namespace KTextEditor
Construct a new interface object for the text editor.
@param Parent the parent ClipboardInterface object
that will provide us with the functions for the interface.
@param name the TQObject's name
@param name the QObject's name
*/
ClipboardDCOPInterface( ClipboardInterface *Parent, const char *name );
/**

@ -25,7 +25,7 @@ namespace KTextEditor
Construct a new interface object for the text editor.
@param Parent the parent DocumentInfoInterface object
that will provide us with the functions for the interface.
@param name the TQObject's name
@param name the QObject's name
*/
DocumentInfoDCOPInterface( DocumentInfoInterface *Parent, const char *name );
/**

@ -24,7 +24,7 @@ namespace KTextEditor
Construct a new interface object for the text editor.
@param Parent the parent EditInterface object
that will provide us with the functions for the interface.
@param name the TQObject's name
@param name the QObject's name
*/
EditDCOPInterface( EditInterface *Parent, const char *name );
/**

@ -44,7 +44,7 @@ class KTEXTEDITOR_EXPORT EditInterfaceExt
/**
* Begin an editing sequence. Edit commands during this sequence will be
* bunched together such that they represent a single undo command in the
* editor, and so that tqrepaint events do not occur inbetween.
* editor, and so that repaint events do not occur inbetween.
*
* Your application should not return control to the event loop while it
* has an unterminated (no matching editEnd() call) editing sequence

@ -32,7 +32,7 @@ namespace KTextEditor
* Usage: Load it, merge it's gui + be happy
* Extensibility: Use the Document / View classes if you want
* advanced features, interfaces, etc. This class is just a good text editor
* widget tqreplacement for applications which just need an embedded text edtor
* widget replacement for applications which just need an embedded text edtor
* and are not interested in using advanced interfaces.
*/
@ -57,7 +57,7 @@ class KTEXTEDITOR_EXPORT Editor : public KParts::ReadWritePart
unsigned int myEditorNumber;
};
KTEXTEDITOR_EXPORT Editor *createEditor ( const char* libname, TQWidget *tqparentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0 );
KTEXTEDITOR_EXPORT Editor *createEditor ( const char* libname, TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0 );
}

@ -55,7 +55,7 @@ EditorChooser::EditorChooser(TQWidget *parent,const char *name) :
for (KTrader::OfferList::Iterator it = offers.begin(); it != offers.end(); ++it)
{
if ((*it)->desktopEntryName().tqcontains(editor))
if ((*it)->desktopEntryName().contains(editor))
{
d->chooser->editorCombo->insertItem(i18n("System Default (%1)").arg((*it)->name()));
break;
@ -82,7 +82,7 @@ void EditorChooser::readAppSetting(const TQString& postfix){
if (editor.isEmpty()) d->chooser->editorCombo->setCurrentItem(0);
else
{
int idx=d->elements.tqfindIndex(editor);
int idx=d->elements.findIndex(editor);
idx=idx+1;
d->chooser->editorCombo->setCurrentItem(idx);
}
@ -130,7 +130,7 @@ KTextEditor::Document *EditorChooser::createDocument(TQObject *parent,const char
return 0;
}
KTextEditor::Editor *EditorChooser::createEditor(TQWidget *tqparentWidget,TQObject *parent,const char* widgetName,
KTextEditor::Editor *EditorChooser::createEditor(TQWidget *parentWidget,TQObject *parent,const char* widgetName,
const char* name,const TQString& postfix,bool fallBackToKatePart){
KTextEditor::Editor *tmpEd=0;
@ -151,11 +151,11 @@ KTextEditor::Editor *EditorChooser::createEditor(TQWidget *tqparentWidget,TQObje
KService::Ptr serv=KService::serviceByDesktopName(editor);
if (serv)
{
tmpEd=KTextEditor::createEditor(serv->library().latin1(),tqparentWidget,widgetName,parent,name);
tmpEd=KTextEditor::createEditor(serv->library().latin1(),parentWidget,widgetName,parent,name);
if (tmpEd) return tmpEd;
}
if (fallBackToKatePart)
return KTextEditor::createEditor("libkatepart",tqparentWidget,widgetName,parent,name);
return KTextEditor::createEditor("libkatepart",parentWidget,widgetName,parent,name);
return 0;
}

@ -28,7 +28,7 @@ class KTEXTEDITOR_EXPORT EditorChooser: public QWidget
void writeAppSetting(const TQString& postfix=TQString::null);
static KTextEditor::Document *createDocument(TQObject* parent=0,const char *name=0,const TQString& postfix=TQString::null, bool fallBackToKatePart=true);
static KTextEditor::Editor *createEditor(TQWidget *tqparentWidget,TQObject *parent,const char* widgetName=0,const char* name=0,const TQString& postfix=TQString::null,bool fallBackToKatePart=true);
static KTextEditor::Editor *createEditor(TQWidget *parentWidget,TQObject *parent,const char* widgetName=0,const char* name=0,const TQString& postfix=TQString::null,bool fallBackToKatePart=true);
private:
class PrivateEditorChooser *d;
};

@ -4,7 +4,7 @@
<property name="name">
<cstring>EditorChooser</cstring>
</property>
<property name="tqgeometry">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
@ -21,7 +21,7 @@
</property>
<widget class="QLayoutWidget">
<property name="name">
<cstring>tqlayout4</cstring>
<cstring>layout4</cstring>
</property>
<vbox>
<property name="name">
@ -31,7 +31,7 @@
<property name="name">
<cstring>TextLabel1</cstring>
</property>
<property name="tqminimumSize">
<property name="minimumSize">
<size>
<width>460</width>
<height>0</height>
@ -40,7 +40,7 @@
<property name="text">
<string>Please choose the default text editing component that you wish to use in this application. If you choose &lt;B&gt;System Default&lt;/B&gt;, the application will honor your changes in the Control Center. All other choices will override that setting.</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter|AlignLeft</set>
</property>
</widget>
@ -59,6 +59,6 @@
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
<tqlayoutdefaults spacing="6" margin="11"/>
<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
<layoutdefaults spacing="6" margin="11"/>
<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>

@ -24,7 +24,7 @@ namespace KTextEditor
Construct a new interface object for the text editor.
@param Parent the parent EncodingInterface object
that will provide us with the functions for the interface.
@param name the TQObject's name
@param name the QObject's name
*/
EncodingDCOPInterface( EncodingInterface *Parent, const char *name );
/**

@ -206,9 +206,9 @@ unsigned int Editor::editorNumber () const
return myEditorNumber;
}
Editor *KTextEditor::createEditor ( const char* libname, TQWidget *tqparentWidget, const char *widgetName, TQObject *parent, const char *name )
Editor *KTextEditor::createEditor ( const char* libname, TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name )
{
return KParts::ComponentFactory::createPartInstanceFromLibrary<Editor>( libname, tqparentWidget, widgetName, parent, name );
return KParts::ComponentFactory::createPartInstanceFromLibrary<Editor>( libname, parentWidget, widgetName, parent, name );
}
Document *KTextEditor::createDocument ( const char* libname, TQObject *parent, const char *name )

@ -63,7 +63,7 @@ class KTEXTEDITOR_EXPORT MarkInterface
/**
* Adds a mark of type @p markType to @p line.
* Has no effect if the line allready tqcontains a mark of that type.
* Has no effect if the line allready contains a mark of that type.
*/
virtual void setMark (uint line, uint markType) = 0;
/**

@ -33,7 +33,7 @@ class View;
* Basic KTextEditor plugin class.
* This plugin will be bound to a Document.
*/
class KTEXTEDITOR_EXPORT Plugin : public TQObject
class KTEXTEDITOR_EXPORT Plugin : public QObject
{
friend class PrivatePlugin;

@ -24,7 +24,7 @@ namespace KTextEditor
Construct a new interface object for the text editor.
@param Parent the parent PrintInterface object
that will provide us with the functions for the interface.
@param name the TQObject's name
@param name the QObject's name
*/
PrintDCOPInterface( PrintInterface *Parent, const char *name );
/**

@ -20,16 +20,16 @@ SearchDCOPInterface::~SearchDCOPInterface()
}
bool SearchDCOPInterface::tqfindFirstString( TQString text, bool caseSensitive)
bool SearchDCOPInterface::findFirstString( TQString text, bool caseSensitive)
{
return m_parent->searchText(0, 0, text, &m_currentrow, &m_currentcol, &m_currentmatchlen, caseSensitive);
}
bool SearchDCOPInterface::tqfindNextString( TQString text, bool caseSensitive)
bool SearchDCOPInterface::findNextString( TQString text, bool caseSensitive)
{
return m_parent->searchText(m_currentrow, m_currentcol+1, text, &m_currentrow, &m_currentcol, &m_currentmatchlen, caseSensitive);
}
bool SearchDCOPInterface::tqfindPreviousString( TQString text, bool caseSensitive)
bool SearchDCOPInterface::findPreviousString( TQString text, bool caseSensitive)
{
if( m_currentcol == 0)
m_currentrow--;
@ -38,28 +38,28 @@ bool SearchDCOPInterface::tqfindPreviousString( TQString text, bool caseSensitiv
return m_parent->searchText(m_currentrow, m_currentcol, text, &m_currentrow, &m_currentcol, &m_currentmatchlen, caseSensitive, true);
}
bool SearchDCOPInterface::tqfindLastString( TQString text, bool caseSensitive)
bool SearchDCOPInterface::findLastString( TQString text, bool caseSensitive)
{
return m_parent->searchText(0,0, text, &m_currentrow, &m_currentcol, &m_currentmatchlen, caseSensitive, true);
}
bool SearchDCOPInterface::tqfindStringAt( uint row, uint col, TQString text, bool caseSensitive)
bool SearchDCOPInterface::findStringAt( uint row, uint col, TQString text, bool caseSensitive)
{
return m_parent->searchText(row,col, text, &m_currentrow, &m_currentcol, &m_currentmatchlen, caseSensitive);
}
bool SearchDCOPInterface::tqfindFirstRegExp( TQString regexp)
bool SearchDCOPInterface::findFirstRegExp( TQString regexp)
{
return m_parent->searchText( 0,0, TQRegExp(regexp), &m_currentrow, &m_currentcol, &m_currentmatchlen);
}
bool SearchDCOPInterface::tqfindNextRegExp( TQString regexp)
bool SearchDCOPInterface::findNextRegExp( TQString regexp)
{
return m_parent->searchText( m_currentrow, m_currentcol+1, TQRegExp(regexp), &m_currentrow, &m_currentcol, &m_currentmatchlen);
}
bool SearchDCOPInterface::tqfindPreviousRegExp( TQString regexp)
bool SearchDCOPInterface::findPreviousRegExp( TQString regexp)
{
if( m_currentcol == 0)
m_currentrow--;
@ -69,12 +69,12 @@ bool SearchDCOPInterface::tqfindPreviousRegExp( TQString regexp)
}
bool SearchDCOPInterface::tqfindLastRegExp(TQString regexp)
bool SearchDCOPInterface::findLastRegExp(TQString regexp)
{
return m_parent->searchText( 0,0, TQRegExp(regexp), &m_currentrow, &m_currentcol, &m_currentmatchlen, true);
}
bool SearchDCOPInterface::tqfindRegExpAt( uint row, uint col, TQString regexp)
bool SearchDCOPInterface::findRegExpAt( uint row, uint col, TQString regexp)
{
return m_parent->searchText( row, col, TQRegExp(regexp), &m_currentrow, &m_currentcol, &m_currentmatchlen, false);
}

@ -24,7 +24,7 @@ namespace KTextEditor
Construct a new interface object for the text editor.
@param Parent the parent SearchInterface object
that will provide us with the functions for the interface.
@param name the TQObject's name
@param name the QObject's name
*/
SearchDCOPInterface( SearchInterface *Parent, const char *name );
/**
@ -33,17 +33,17 @@ namespace KTextEditor
**/
virtual ~SearchDCOPInterface();
k_dcop:
bool tqfindFirstString(TQString text, bool caseSensitive);
bool tqfindNextString(TQString text, bool caseSensitive);
bool tqfindPreviousString( TQString text, bool caseSensitive);
bool tqfindLastString(TQString text, bool caseSensitive);
bool tqfindStringAt( uint row, uint col, TQString text, bool caseSensitive);
bool findFirstString(TQString text, bool caseSensitive);
bool findNextString(TQString text, bool caseSensitive);
bool findPreviousString( TQString text, bool caseSensitive);
bool findLastString(TQString text, bool caseSensitive);
bool findStringAt( uint row, uint col, TQString text, bool caseSensitive);
bool tqfindFirstRegExp( TQString regexp);
bool tqfindNextRegExp( TQString regexp);
bool tqfindPreviousRegExp( TQString regexp);
bool tqfindLastRegExp( TQString regexp);
bool tqfindRegExpAt( uint row, uint col, TQString regexp);
bool findFirstRegExp( TQString regexp);
bool findNextRegExp( TQString regexp);
bool findPreviousRegExp( TQString regexp);
bool findLastRegExp( TQString regexp);
bool findRegExpAt( uint row, uint col, TQString regexp);
uint currentMatchLine();
uint currentMatchCol();

@ -24,7 +24,7 @@ namespace KTextEditor
Construct a new interface object for the text editor.
@param Parent the parent SelectionInterface object
that will provide us with the functions for the interface.
@param name the TQObject's name
@param name the QObject's name
*/
SelectionDCOPInterface( SelectionInterface *Parent, const char *name );
/**

@ -74,7 +74,7 @@ bool TemplateInterface::expandMacros( TQMap<TQString, TQString> &map, TQWidget *
{
KABC::StdAddressBook *addrBook = 0;
KABC::Addressee userAddress;
TQDateTime datetime = TQDateTime::tqcurrentDateTime();
TQDateTime datetime = TQDateTime::currentDateTime();
TQDate date = datetime.date();
TQTime time = datetime.time();
@ -173,7 +173,7 @@ bool TemplateInterface::insertTemplateText ( uint line, uint column, const TQStr
}
}
TQString placeholder = rx.cap( 1 );
if ( ! enhancedInitValues.tqcontains( placeholder ) )
if ( ! enhancedInitValues.contains( placeholder ) )
enhancedInitValues[ placeholder ] = "";
pos += rx.matchedLength();

@ -43,7 +43,7 @@ class KTEXTEDITOR_EXPORT TemplateInterface //should be named AbstractTemplateInt
virtual ~TemplateInterface();
/**
* Parses @p templateString for macros in the form [$%]{NAME} and tqfinds
* Parses @p templateString for macros in the form [$%]{NAME} and finds
* the value corresponding to NAME if any. The NAME string may contain
* any non-whitespace character execpt '}'
* @param initialValues a map with the keys for the macros to expand.
@ -101,7 +101,7 @@ class KTEXTEDITOR_EXPORT TemplateInterface //should be named AbstractTemplateInt
* differing from the macro name is found.
*
* If the editor supports some kind of smart indentation, the inserted code
* should be tqlayouted by the indenter.
* should be layouted by the indenter.
*/
bool insertTemplateText ( uint line, uint column, const TQString &templateString, const TQMap<TQString,TQString> &initialValues, TQWidget *parentWindow=0);

@ -24,7 +24,7 @@ namespace KTextEditor
Construct a new interface object for the text editor.
@param Parent the parent UndoInterface object
that will provide us with the functions for the interface.
@param name the TQObject's name
@param name the QObject's name
*/
UndoDCOPInterface( UndoInterface *Parent, const char *name );
/**

@ -24,7 +24,7 @@ namespace KTextEditor
Construct a new interface object for the text editor.
@param Parent the parent ViewCursorInterface object
that will provide us with the functions for the interface.
@param name the TQObject's name
@param name the QObject's name
*/
ViewCursorDCOPInterface( ViewCursorInterface *Parent, const char *name );
/**

@ -6,24 +6,24 @@
#include <dcopclient.h>
using namespace KTextEditor;
ViewtqStatusMsgDCOPInterface::ViewtqStatusMsgDCOPInterface( ViewtqStatusMsgInterface *Parent, const char *name)
ViewStatusMsgDCOPInterface::ViewStatusMsgDCOPInterface( ViewStatusMsgInterface *Parent, const char *name)
: DCOPObject(name)
{
m_parent = Parent;
}
ViewtqStatusMsgDCOPInterface::~ViewtqStatusMsgDCOPInterface()
ViewStatusMsgDCOPInterface::~ViewStatusMsgDCOPInterface()
{
}
uint ViewtqStatusMsgDCOPInterface::viewtqStatusMsgInterfaceNumber ()
uint ViewStatusMsgDCOPInterface::viewStatusMsgInterfaceNumber ()
{
return m_parent->viewtqStatusMsgInterfaceNumber ();
return m_parent->viewStatusMsgInterfaceNumber ();
}
void ViewtqStatusMsgDCOPInterface::viewtqStatusMsg (TQString msg)
void ViewStatusMsgDCOPInterface::viewStatusMsg (TQString msg)
{
m_parent->viewtqStatusMsg(msg);
m_parent->viewStatusMsg(msg);
}

@ -1,5 +1,5 @@
#ifndef ViewtqStatusMsg_DCOP_INTERFACE_H
#define ViewtqStatusMsg_DCOP_INTERFACE_H
#ifndef ViewStatusMsg_DCOP_INTERFACE_H
#define ViewStatusMsg_DCOP_INTERFACE_H
#include <dcopobject.h>
#include <dcopref.h>
@ -8,36 +8,36 @@
//#include "editdcopinterface.moc"
namespace KTextEditor
{
class ViewtqStatusMsgInterface;
class ViewStatusMsgInterface;
/**
This is the main interface to the ViewtqStatusMsgInterface of KTextEdit.
This is the main interface to the ViewStatusMsgInterface of KTextEdit.
This will provide a consistant dcop interface to all KDE applications that use it.
@short DCOP interface to ViewtqStatusMsgInterface.
@short DCOP interface to ViewStatusMsgInterface.
@author Ian Reinhart Geiser <geiseri@kde.org>
*/
class KTEXTEDITOR_EXPORT ViewtqStatusMsgDCOPInterface : virtual public DCOPObject
class KTEXTEDITOR_EXPORT ViewStatusMsgDCOPInterface : virtual public DCOPObject
{
K_DCOP
public:
/**
Construct a new interface object for the text editor.
@param Parent the parent ViewtqStatusMsgInterface object
@param Parent the parent ViewStatusMsgInterface object
that will provide us with the functions for the interface.
@param name the TQObject's name
@param name the QObject's name
*/
ViewtqStatusMsgDCOPInterface( ViewtqStatusMsgInterface *Parent, const char *name );
ViewStatusMsgDCOPInterface( ViewStatusMsgInterface *Parent, const char *name );
/**
Destructor
Cleans up the object.
*/
virtual ~ViewtqStatusMsgDCOPInterface();
virtual ~ViewStatusMsgDCOPInterface();
k_dcop:
uint viewtqStatusMsgInterfaceNumber ();
void viewtqStatusMsg (class TQString msg) ;
uint viewStatusMsgInterfaceNumber ();
void viewStatusMsg (class TQString msg) ;
private:
ViewtqStatusMsgInterface *m_parent;
ViewStatusMsgInterface *m_parent;
};
}