diff options
Diffstat (limited to 'doc/kdearch/index.docbook')
-rw-r--r-- | doc/kdearch/index.docbook | 102 |
1 files changed, 51 insertions, 51 deletions
diff --git a/doc/kdearch/index.docbook b/doc/kdearch/index.docbook index 97dee33d..517d90b0 100644 --- a/doc/kdearch/index.docbook +++ b/doc/kdearch/index.docbook @@ -116,7 +116,7 @@ Initializes and controls a KDE application. </formalpara></listitem> <listitem><formalpara> -<title><ulink url="kdeapi:tdecore/KUniqueApplication">KUniqueApplication</ulink></title> +<title><ulink url="kdeapi:tdecore/TDEUniqueApplication">TDEUniqueApplication</ulink></title> <para> Makes sure only one instance of an application can run simultaneously. </para> @@ -149,13 +149,13 @@ Provides access to KDE's configuration database. </para> </formalpara></listitem> -<listitem><formalpara><title><ulink url="kdeapi:tdecore/KSimpleConfig">KSimpleConfig</ulink></title> +<listitem><formalpara><title><ulink url="kdeapi:tdecore/TDESimpleConfig">TDESimpleConfig</ulink></title> <para> Access to simple, non-hierarchical configuration files. </para> </formalpara></listitem> -<listitem><formalpara><title><ulink url="kdeapi:tdecore/KDesktopFile">KDesktopFile</ulink></title> +<listitem><formalpara><title><ulink url="kdeapi:tdecore/TDEDesktopFile">TDEDesktopFile</ulink></title> <para> Access to <literal>.desktop</literal> files. </para> @@ -337,7 +337,7 @@ Pixmap effects like gradients and patterns. <listitem><formalpara><title><ulink url="kdeapi:tdeui/KPixmapIO">KPixmapIO</ulink></title> <para> -Fast <classname>QImage</classname> to <classname>QPixmap</classname> conversion. +Fast <classname>TQImage</classname> to <classname>QPixmap</classname> conversion. </para> </formalpara></listitem> @@ -684,7 +684,7 @@ The central graphics class for 2D painting with Qt is draw on a <ulink url="kdeapi:qt/QPaintDevice">QPaintDevice</ulink>. There are three possible paint devices implemented: One is -<ulink url="kdeapi:qt/QWidget">QWidget</ulink> +<ulink url="kdeapi:qt/TQWidget">TQWidget</ulink> which represents a widget on the screen. The second is <ulink url="kdeapi:qt/QPrinter">QPrinter</ulink> which represents a printer and produces Postscript output. The third it @@ -878,7 +878,7 @@ stored in it are a style, a color, a join style and a cap style. <para> The pen style is member of the enum -<ulink url="kdeapi:qt/Qt#PenStyle-enum">Qt::PenStyle</ulink>. +<ulink url="kdeapi:qt/Qt#PenStyle-enum">TQt::PenStyle</ulink>. and can take one of the following values: </para> @@ -888,7 +888,7 @@ and can take one of the following values: <para> The join style is a member of the enum -<ulink url="kdeapi:qt/Qt#PenJoinStyle-enum">Qt::PenJoinStyle</ulink>. +<ulink url="kdeapi:qt/Qt#PenJoinStyle-enum">TQt::PenJoinStyle</ulink>. It specifies how the junction between multiple lines which are attached to each other is drawn. It takes one of the following values: </para> @@ -918,7 +918,7 @@ other is drawn. It takes one of the following values: <para> The cap style is a member of the enum -<ulink url="kdeapi:qt/Qt#PenCapStyle-enum">Qt::PenCapStyle</ulink>and specifies how the end points of lines are drawn. It takes one of the values +<ulink url="kdeapi:qt/Qt#PenCapStyle-enum">TQt::PenCapStyle</ulink>and specifies how the end points of lines are drawn. It takes one of the values from the following table: </para> @@ -967,18 +967,18 @@ Brushes can be constructed in four different ways: patterns shown below.</para> </listitem> <listitem> -<para>QBrush::QBrush(const QColor &, BrushStyle) - This creates a colored brush +<para>QBrush::QBrush(const TQColor &, BrushStyle) - This creates a colored brush with one of the patterns shown below.</para> </listitem> <listitem> -<para>QBrush::QBrush(const QColor &, const QPixmap) - This creates a colored +<para>QBrush::QBrush(const TQColor &, const QPixmap) - This creates a colored brush with the custom pattern you give as second parameter.</para> </listitem> </itemizedlist> <para> A default brush style is from the enum -<ulink url="kdeapi:qt/Qt#BrushStyle-enum">Qt::BrushStyle</ulink>. +<ulink url="kdeapi:qt/Qt#BrushStyle-enum">TQt::BrushStyle</ulink>. Here is a picture of all predefined patterns: </para> @@ -1000,7 +1000,7 @@ QPainter::setBrushOrigin(). <para> Colors play a role both when stroking curves and when filling shapes. In Qt, colors are represented by the class -<ulink url="kdeapi:qt/QColor">QColor</ulink>. Qt does not support +<ulink url="kdeapi:qt/TQColor">TQColor</ulink>. Qt does not support advanced graphics features like ICC color profiles and color correction. Colors are usually constructed by specifying their red, green and blue components, as the RGB model is the way pixels are composed of on a monitor. @@ -1104,14 +1104,14 @@ to avoid flicker. </para> <para> -In contrast, <ulink url="kdeapi:qt/QImage">QImage</ulink> objects +In contrast, <ulink url="kdeapi:qt/TQImage">TQImage</ulink> objects live on the client side. Their emphasis in on providing direct access to the pixels of the image. This makes them of use for image manipulation, and things -like loading and saving to disk (QPixmap's load() method takes QImage as +like loading and saving to disk (QPixmap's load() method takes TQImage as intermediate step). On the other hand, painting an image on a widget is a relatively expensive operation, as it implies a transfer to the X server, which can take some time, especially for large images and for remote servers. -Depending on the color depth, the conversion from QImage to QPixmap may also +Depending on the color depth, the conversion from TQImage to QPixmap may also require dithering. </para> @@ -1123,12 +1123,12 @@ require dithering. <para> Text can be drawn with one of the overloaded variants of the method -QPainter::drawText(). These draw a QString either at a given point or in a given +QPainter::drawText(). These draw a TQString either at a given point or in a given rectangle, using the font set by QPainter::setFont(). There is also a parameter which takes an ORed combination of some flags from the enums -<ulink url="kdeapi:qt/Qt#AlignmentFlags-enum">Qt::AlignmentFlags</ulink> +<ulink url="kdeapi:qt/Qt#AlignmentFlags-enum">TQt::AlignmentFlags</ulink> and -<ulink url="kdeapi:qt/Qt#TextFlags-enum">Qt::TextFlags</ulink> +<ulink url="kdeapi:qt/Qt#TextFlags-enum">TQt::TextFlags</ulink> </para> <para> @@ -1420,23 +1420,23 @@ The corresponding part of the setup in C++ is: </para> <programlisting> - KStdAction::zoomIn ( this, SLOT(slotZoomIn()), actionCollection() ); - KStdAction::zoomOut ( this, SLOT(slotZoomOut()), actionCollection() ); - KStdAction::zoom ( this, SLOT(slotZoom()), actionCollection() ); + KStdAction::zoomIn ( this, TQ_SLOT(slotZoomIn()), actionCollection() ); + KStdAction::zoomOut ( this, TQ_SLOT(slotZoomOut()), actionCollection() ); + KStdAction::zoom ( this, TQ_SLOT(slotZoom()), actionCollection() ); new TDEAction ( i18n("&Half size"), ALT+Key_0, - this, SLOT(slotHalfSize()), + this, TQ_SLOT(slotHalfSize()), actionCollection(), "zoom50" ); new TDEAction ( i18n("&Normal size"), ALT+Key_1, - this, SLOT(slotDoubleSize()), + this, TQ_SLOT(slotDoubleSize()), actionCollection(), "zoom100" ); new TDEAction ( i18n("&Double size"), ALT+Key_2, - this, SLOT(slotDoubleSize()), + this, TQ_SLOT(slotDoubleSize()), actionCollection(), "zoom200" ); new TDEAction ( i18n("&Fill Screen"), ALT+Key_3, - this, SLOT(slotFillScreen()), + this, TQ_SLOT(slotFillScreen()), actionCollection(), "zoomMaxpect" ); new TDEAction ( i18n("Fullscreen &Mode"), CTRL+SHIFT+Key_F, - this, SLOT(slotFullScreen()), + this, TQ_SLOT(slotFullScreen()), actionCollection(), "fullscreen" ); </programlisting> @@ -1658,7 +1658,7 @@ ask the client's factory for it: <programlisting> void MainWindow::popupRequested() { - QWidget *w = factory()->container("context_popup", this); + TQWidget *w = factory()->container("context_popup", this); QPopupMenu *popup = static_cast<QPopupMenu *>(w); popup->exec(QCursor::pos()); } @@ -1814,7 +1814,7 @@ class. In order to show the manual of your application, just use </para> <programlisting> -kapp->invokeHelp() +tdeApp->invokeHelp() </programlisting> <para> @@ -1929,13 +1929,13 @@ X-TDE-ServiceType=TDevelop/Part Name=TDevelop Part [PropertyDef::X-TDevelop-Scope] -Type=QString +Type=TQString [PropertyDef::X-TDevelop-ProgrammingLanguages] Type=QStringList [PropertyDef::X-TDevelop-Args] -Type=QString +Type=TQString </programlisting> <para> @@ -2032,11 +2032,11 @@ load the library and get a pointer to its factory object: <programlisting> KService *service = ... -QString libName = QFile::encodeName(service->library()); +TQString libName = QFile::encodeName(service->library()); KLibFactory *factory = KLibLoader::self()->factory(libName); if (!factory) { - QString name = service->name(); - QString errorMessage = KLibLoader::self()->lastErrorMessage(); + TQString name = service->name(); + TQString errorMessage = KLibLoader::self()->lastErrorMessage(); KMessageBox::error(0, i18n("There was an error loading service %1.\n" "The diagnostics from libtool is:\n%2") .arg(name).arg(errorMessage); @@ -2054,7 +2054,7 @@ its create() method: <programlisting> if (factory->inherits("KParts::Factory")) { KParts::Factory *partFactory = static_cast<KParts::Factory*>(factory); - QObject *obj = partFactory->createPart(parentWidget, widgetName, + TQObject *obj = partFactory->createPart(parentWidget, widgetName, parent, name, "KParts::ReadOnlyPart"); ... } else { @@ -2097,7 +2097,7 @@ registered with DCOP and uses the running service. If it is not registered yet, KDE will start it up and wait until is registered. Thus, you can immediately send DCOP calls to the service. In such a case, the service should be implemented as a -<ulink url="kdeapi:tdecore/KUniqueApplication.html">KUniqueApplication</ulink>. +<ulink url="kdeapi:tdecore/TDEUniqueApplication.html">TDEUniqueApplication</ulink>. </para> <para> @@ -2139,10 +2139,10 @@ class: </para> <programlisting> -DCOPClient *client = kapp->dcopClient(); +DCOPClient *client = tdeApp->dcopClient(); client->attach(); if (!client->isApplicationRegistered("tdeio_uiserver")) { - QString error; + TQString error; if (TDEApplication::startServiceByName("tdeio_uiserver", QStringList(), &error)) cout << "Starting kioserver failed with message " << error << endl; } @@ -2176,7 +2176,7 @@ the file name of its desktop file as argument, i.e. in this case <para> All these calls take a list of URLs as a second argument, which is given to the service on the command line. The third argument is a pointer to a -<classname>QString</classname>. If starting the service fails, this argument +<classname>TQString</classname>. If starting the service fails, this argument is set to a translated error message. </para> @@ -2385,7 +2385,7 @@ contents of a local file. For remote files, there is a further possibility: <programlisting> KURL url("http://developer.kde.org/favicon.ico"); -QString type = TDEIO::NetAccess::mimetype(url); +TQString type = TDEIO::NetAccess::mimetype(url); if (type == KMimeType::defaultMimeType()) cout << "Could not find out type" << endl; else @@ -2409,8 +2409,8 @@ void FooClass::findType() { KURL url("http://developer.kde.org/favicon.ico"); TDEIO::MimetypeJob *job = TDEIO::mimetype(url); - connect( job, SIGNAL(result(TDEIO::Job*)), - this, SLOT(mimeResult(TDEIO::Job*)) ); + connect( job, TQ_SIGNAL(result(TDEIO::Job*)), + this, TQ_SLOT(mimeResult(TDEIO::Job*)) ); } void FooClass::mimeResult(TDEIO::Job *job) @@ -2514,7 +2514,7 @@ and returns the associated icon. <programlisting> KURL url("ftp://ftp.kde.org/pub/incoming/wibble.c"); -QString icon = KMimeType::iconForURL(url); +TQString icon = KMimeType::iconForURL(url); </programlisting> <para> @@ -2603,8 +2603,8 @@ deletes itself. Thus, a typical use case will look like this: void FooClass::makeDirectory() { SimpleJob *job = TDEIO::mkdir(KURL("file:/home/bernd/tdeiodir")); - connect( job, SIGNAL(result(TDEIO::Job*)), - this, SLOT(mkdirResult(TDEIO::Job*)) ); + connect( job, TQ_SIGNAL(result(TDEIO::Job*)), + this, TQ_SLOT(mkdirResult(TDEIO::Job*)) ); } void FooClass::mkdirResult(TDEIO::Job *job) @@ -2652,7 +2652,7 @@ Renames a file. </para></listitem> </varlistentry> -<varlistentry><term>TDEIO::symlink(const QString &target, const KURL &dest, +<varlistentry><term>TDEIO::symlink(const TQString &target, const KURL &dest, bool overwrite, bool showProgressInfo)</term> <listitem><para> Creates a symbolic link. @@ -2892,7 +2892,7 @@ files regardless of their location is the following code snippet: <programlisting> KURL url; url = ...; -QString tempFile; +TQString tempFile; if (TDEIO::NetAccess::download(url, tempFile) { // load the file with the name tempFile TDEIO::NetAccess::removeTempFile(tempFile); @@ -2942,18 +2942,18 @@ void FooClass::printModifiedDate() { KURL url("http://developer.kde.org/documentation/kde2arch/index.html"); TDEIO::TransferJob *job = TDEIO::get(url, true, false); - connect( job, SIGNAL(result(TDEIO::Job*)), - this, SLOT(transferResult(TDEIO::Job*)) ); + connect( job, TQ_SIGNAL(result(TDEIO::Job*)), + this, TQ_SLOT(transferResult(TDEIO::Job*)) ); } void FooClass::transferResult(TDEIO::Job *job) { - QString mimetype; + TQString mimetype; if (job->error()) job->showErrorDialog(); else { TDEIO::TransferJob *transferJob = (TDEIO::TransferJob*) job; - QString modified = transferJob->queryMetaData("modified"); + TQString modified = transferJob->queryMetaData("modified"); cout << "Last modified: " << modified << endl; } </programlisting> @@ -3193,7 +3193,7 @@ or not (i.e. the default implementation returns an error). <listitem><para>copy(const KURL &url, const KURL &dest, int permissions, bool overwrite)</para></listitem></varlistentry> <varlistentry><term>Creates a symbolic link.</term> -<listitem><para>void symlink(const QString &target, const KURL &dest, bool overwrite)</para></listitem></varlistentry> +<listitem><para>void symlink(const TQString &target, const KURL &dest, bool overwrite)</para></listitem></varlistentry> </variablelist> |