summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqmimesourcefactory.3qt
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-07-07 13:06:00 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-07-07 13:06:00 +0900
commit628b0bb74c3fc327efff8add9c73ada04b1cbea2 (patch)
tree16062922d35b5e0153b9f866e440f36603bd4f55 /doc/man/man3/tqmimesourcefactory.3qt
parent7552c6d73043b1040139033f6864db48ae5446cf (diff)
downloadtqt-628b0bb7.tar.gz
tqt-628b0bb7.zip
Rename drag-n-drop nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/man/man3/tqmimesourcefactory.3qt')
-rw-r--r--doc/man/man3/tqmimesourcefactory.3qt86
1 files changed, 43 insertions, 43 deletions
diff --git a/doc/man/man3/tqmimesourcefactory.3qt b/doc/man/man3/tqmimesourcefactory.3qt
index 1ca7c8d7c..2b5370533 100644
--- a/doc/man/man3/tqmimesourcefactory.3qt
+++ b/doc/man/man3/tqmimesourcefactory.3qt
@@ -1,5 +1,5 @@
'\" t
-.TH QMimeSourceFactory 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
+.TH TQMimeSourceFactory 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@@ -7,26 +7,26 @@
.ad l
.nh
.SH NAME
-QMimeSourceFactory \- Extensible provider of mime-typed data
+TQMimeSourceFactory \- Extensible provider of mime-typed data
.SH SYNOPSIS
-\fC#include <ntqmime.h>\fR
+\fC#include <tqmime.h>\fR
.PP
.SS "Public Members"
.in +1c
.ti -1c
-.BI "\fBQMimeSourceFactory\fR ()"
+.BI "\fBTQMimeSourceFactory\fR ()"
.br
.ti -1c
-.BI "virtual \fB~QMimeSourceFactory\fR ()"
+.BI "virtual \fB~TQMimeSourceFactory\fR ()"
.br
.ti -1c
-.BI "virtual const QMimeSource * \fBdata\fR ( const TQString & abs_name ) const"
+.BI "virtual const TQMimeSource * \fBdata\fR ( const TQString & abs_name ) const"
.br
.ti -1c
.BI "virtual TQString \fBmakeAbsolute\fR ( const TQString & abs_or_rel_name, const TQString & context ) const"
.br
.ti -1c
-.BI "const QMimeSource * \fBdata\fR ( const TQString & abs_or_rel_name, const TQString & context ) const"
+.BI "const TQMimeSource * \fBdata\fR ( const TQString & abs_or_rel_name, const TQString & context ) const"
.br
.ti -1c
.BI "virtual void \fBsetText\fR ( const TQString & abs_name, const TQString & text )"
@@ -38,7 +38,7 @@ QMimeSourceFactory \- Extensible provider of mime-typed data
.BI "virtual void \fBsetPixmap\fR ( const TQString & abs_name, const QPixmap & pixmap )"
.br
.ti -1c
-.BI "virtual void \fBsetData\fR ( const TQString & abs_name, QMimeSource * data )"
+.BI "virtual void \fBsetData\fR ( const TQString & abs_name, TQMimeSource * data )"
.br
.ti -1c
.BI "virtual void \fBsetFilePath\fR ( const TQStringList & path )"
@@ -56,29 +56,29 @@ QMimeSourceFactory \- Extensible provider of mime-typed data
.SS "Static Public Members"
.in +1c
.ti -1c
-.BI "QMimeSourceFactory * \fBdefaultFactory\fR ()"
+.BI "TQMimeSourceFactory * \fBdefaultFactory\fR ()"
.br
.ti -1c
-.BI "void \fBsetDefaultFactory\fR ( QMimeSourceFactory * factory )"
+.BI "void \fBsetDefaultFactory\fR ( TQMimeSourceFactory * factory )"
.br
.ti -1c
-.BI "QMimeSourceFactory * \fBtakeDefaultFactory\fR ()"
+.BI "TQMimeSourceFactory * \fBtakeDefaultFactory\fR ()"
.br
.ti -1c
-.BI "void \fBaddFactory\fR ( QMimeSourceFactory * f )"
+.BI "void \fBaddFactory\fR ( TQMimeSourceFactory * f )"
.br
.ti -1c
-.BI "void \fBremoveFactory\fR ( QMimeSourceFactory * f )"
+.BI "void \fBremoveFactory\fR ( TQMimeSourceFactory * f )"
.br
.in -1c
.SH DESCRIPTION
-The QMimeSourceFactory class is an extensible provider of mime-typed data.
+The TQMimeSourceFactory class is an extensible provider of mime-typed data.
.PP
-A QMimeSourceFactory provides an abstract interface to a collection of information. Each piece of information is represented by a QMimeSource object which can be examined and converted to concrete data types by functions such as TQImageDrag::canDecode() and TQImageDrag::decode().
+A TQMimeSourceFactory provides an abstract interface to a collection of information. Each piece of information is represented by a TQMimeSource object which can be examined and converted to concrete data types by functions such as TQImageDrag::canDecode() and TQImageDrag::decode().
.PP
-The base QMimeSourceFactory can be used in two ways: as an abstraction of a collection of files or as specifically stored data. For it to access files, call setFilePath() before accessing data. For stored data, call setData() for each item (there are also convenience functions, e.g. setText(), setImage() and setPixmap(), that simply call setData() with appropriate parameters).
+The base TQMimeSourceFactory can be used in two ways: as an abstraction of a collection of files or as specifically stored data. For it to access files, call setFilePath() before accessing data. For stored data, call setData() for each item (there are also convenience functions, e.g. setText(), setImage() and setPixmap(), that simply call setData() with appropriate parameters).
.PP
-The rich text widgets, TQTextEdit and TQTextBrowser, use QMimeSourceFactory to resolve references such as images or links within rich text documents. They either access the default factory (see defaultFactory()) or their own (see TQTextEdit::setMimeSourceFactory()). Other classes that are capable of displaying rich text (such as QLabel, QWhatsThis or QMessageBox) always use the default factory.
+The rich text widgets, TQTextEdit and TQTextBrowser, use TQMimeSourceFactory to resolve references such as images or links within rich text documents. They either access the default factory (see defaultFactory()) or their own (see TQTextEdit::setMimeSourceFactory()). Other classes that are capable of displaying rich text (such as QLabel, QWhatsThis or QMessageBox) always use the default factory.
.PP
A factory can also be used as a container to store data associated with a name. This technique is useful whenever rich text contains images that are stored in the program itself, not loaded from the hard disk. Your program may, for example, define some image data as:
.PP
@@ -98,7 +98,7 @@ To be able to use this image within some rich text, for example inside a QLabel,
.PP
.nf
.br
- QMimeSourceFactory::defaultFactory()->setImage( "myimage", TQImage(myimage_data) );
+ TQMimeSourceFactory::defaultFactory()->setImage( "myimage", TQImage(myimage_data) );
.br
.fi
.PP
@@ -120,25 +120,25 @@ When no longer needed, you can clear the data from the factory:
.br
delete label;
.br
- QMimeSourceFactory::defaultFactory()->setData( "myimage", 0 );
+ TQMimeSourceFactory::defaultFactory()->setData( "myimage", 0 );
.br
.fi
.PP
See also Environment Classes and Input/Output and Networking.
.SH MEMBER FUNCTION DOCUMENTATION
-.SH "QMimeSourceFactory::QMimeSourceFactory ()"
-Constructs a QMimeSourceFactory that has no file path and no stored content.
-.SH "QMimeSourceFactory::~QMimeSourceFactory ()\fC [virtual]\fR"
-Destroys the QMimeSourceFactory, deleting all stored content.
-.SH "void QMimeSourceFactory::addFactory ( QMimeSourceFactory * f )\fC [static]\fR"
-Adds the QMimeSourceFactory \fIf\fR to the list of available mimesource factories. If the defaultFactory() can't resolve a data() it iterates over the list of installed mimesource factories until the data can be resolved.
+.SH "TQMimeSourceFactory::TQMimeSourceFactory ()"
+Constructs a TQMimeSourceFactory that has no file path and no stored content.
+.SH "TQMimeSourceFactory::~TQMimeSourceFactory ()\fC [virtual]\fR"
+Destroys the TQMimeSourceFactory, deleting all stored content.
+.SH "void TQMimeSourceFactory::addFactory ( TQMimeSourceFactory * f )\fC [static]\fR"
+Adds the TQMimeSourceFactory \fIf\fR to the list of available mimesource factories. If the defaultFactory() can't resolve a data() it iterates over the list of installed mimesource factories until the data can be resolved.
.PP
See also removeFactory().
-.SH "void QMimeSourceFactory::addFilePath ( const TQString & p )"
+.SH "void TQMimeSourceFactory::addFilePath ( const TQString & p )"
Adds another search path, \fIp\fR to the existing search paths.
.PP
See also setFilePath().
-.SH "const QMimeSource * QMimeSourceFactory::data ( const TQString & abs_name ) const\fC [virtual]\fR"
+.SH "const TQMimeSource * TQMimeSourceFactory::data ( const TQString & abs_name ) const\fC [virtual]\fR"
Returns a reference to the data associated with \fIabs_name\fR. The return value remains valid only until the next data() or setData() call, so you should immediately decode the result.
.PP
If there is no data associated with \fIabs_name\fR in the factory's store, the factory tries to access the local filesystem. If \fIabs_name\fR isn't an absolute file name, the factory will search for it in all defined paths (see setFilePath()).
@@ -158,57 +158,57 @@ The factory understands all the image formats supported by TQImageIO. Any other
.fi
The effect of these is that file names ending in "txt" will be treated as text encoded in the local encoding; those ending in" xml" will be treated as text encoded in Unicode UTF-8 encoding. The text/html type is treated specially, since the encoding can be specified in the html file itself. "html" or "htm" will be treated as text encoded in the encoding specified by the html meta tag, if none could be found, the charset of the mime type will be used. The text subtype ("html", "plain", or "xml") does not affect the factory, but users of the factory may behave differently. We recommend creating "xml" files where practical. These files can be viewed regardless of the runtime encoding and can encode any Unicode characters without resorting to encoding definitions inside the file.
.PP
-Any file data that is not recognized will be retrieved as a QMimeSource providing the "application/octet-stream" mime type, meaning uninterpreted binary data.
+Any file data that is not recognized will be retrieved as a TQMimeSource providing the "application/octet-stream" mime type, meaning uninterpreted binary data.
.PP
-You can add further extensions or change existing ones with subsequent calls to setExtensionType(). If the extension mechanism is not sufficient for your problem domain, you can inherit QMimeSourceFactory and reimplement this function to perform some more specialized mime-type detection. The same applies if you want to use the mime source factory to access URL referenced data over a network.
-.SH "const QMimeSource * QMimeSourceFactory::data ( const TQString & abs_or_rel_name, const TQString & context ) const"
+You can add further extensions or change existing ones with subsequent calls to setExtensionType(). If the extension mechanism is not sufficient for your problem domain, you can inherit TQMimeSourceFactory and reimplement this function to perform some more specialized mime-type detection. The same applies if you want to use the mime source factory to access URL referenced data over a network.
+.SH "const TQMimeSource * TQMimeSourceFactory::data ( const TQString & abs_or_rel_name, const TQString & context ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
A convenience function. See data(const TQString& abs_name). The file name is given in \fIabs_or_rel_name\fR and the path is in \fIcontext\fR.
-.SH "QMimeSourceFactory * QMimeSourceFactory::defaultFactory ()\fC [static]\fR"
+.SH "TQMimeSourceFactory * TQMimeSourceFactory::defaultFactory ()\fC [static]\fR"
Returns the application-wide default mime source factory. This factory is used by rich text rendering classes such as QSimpleRichText, QWhatsThis and QMessageBox to resolve named references within rich text documents. It serves also as the initial factory for the more complex render widgets, TQTextEdit and TQTextBrowser.
.PP
See also setDefaultFactory().
.PP
Examples:
.)l action/application.cpp and application/application.cpp.
-.SH "TQStringList QMimeSourceFactory::filePath () const\fC [virtual]\fR"
+.SH "TQStringList TQMimeSourceFactory::filePath () const\fC [virtual]\fR"
Returns the currently set search paths.
-.SH "TQString QMimeSourceFactory::makeAbsolute ( const TQString & abs_or_rel_name, const TQString & context ) const\fC [virtual]\fR"
+.SH "TQString TQMimeSourceFactory::makeAbsolute ( const TQString & abs_or_rel_name, const TQString & context ) const\fC [virtual]\fR"
Converts the absolute or relative data item name \fIabs_or_rel_name\fR to an absolute name, interpreted within the context (path) of the data item named \fIcontext\fR (this must be an absolute name).
-.SH "void QMimeSourceFactory::removeFactory ( QMimeSourceFactory * f )\fC [static]\fR"
+.SH "void TQMimeSourceFactory::removeFactory ( TQMimeSourceFactory * f )\fC [static]\fR"
Removes the mimesource factory \fIf\fR from the list of available mimesource factories.
.PP
See also addFactory().
-.SH "void QMimeSourceFactory::setData ( const TQString & abs_name, QMimeSource * data )\fC [virtual]\fR"
+.SH "void TQMimeSourceFactory::setData ( const TQString & abs_name, TQMimeSource * data )\fC [virtual]\fR"
Sets \fIdata\fR to be the data item associated with the absolute name \fIabs_name\fR. Note that the ownership of \fIdata\fR is transferred to the factory: do not delete or access the pointer after passing it to this function.
.PP
Passing 0 for data removes previously stored data.
-.SH "void QMimeSourceFactory::setDefaultFactory ( QMimeSourceFactory * factory )\fC [static]\fR"
+.SH "void TQMimeSourceFactory::setDefaultFactory ( TQMimeSourceFactory * factory )\fC [static]\fR"
Sets the default \fIfactory\fR, destroying any previously set mime source provider. The ownership of the factory is transferred to Qt.
.PP
See also defaultFactory().
-.SH "void QMimeSourceFactory::setExtensionType ( const TQString & ext, const char * mimetype )\fC [virtual]\fR"
+.SH "void TQMimeSourceFactory::setExtensionType ( const TQString & ext, const char * mimetype )\fC [virtual]\fR"
Sets the mime-type to be associated with the file name extension, \fIext\fR to \fImimetype\fR. This determines the mime-type for files found via the paths set by setFilePath().
-.SH "void QMimeSourceFactory::setFilePath ( const TQStringList & path )\fC [virtual]\fR"
+.SH "void TQMimeSourceFactory::setFilePath ( const TQStringList & path )\fC [virtual]\fR"
Sets the list of directories that will be searched when named data is requested to the those given in the string list \fIpath\fR.
.PP
See also filePath().
-.SH "void QMimeSourceFactory::setImage ( const TQString & abs_name, const TQImage & image )\fC [virtual]\fR"
+.SH "void TQMimeSourceFactory::setImage ( const TQString & abs_name, const TQImage & image )\fC [virtual]\fR"
Sets \fIimage\fR to be the data item associated with the absolute name \fIabs_name\fR.
.PP
Equivalent to setData(abs_name, new TQImageDrag(image)).
-.SH "void QMimeSourceFactory::setPixmap ( const TQString & abs_name, const QPixmap & pixmap )\fC [virtual]\fR"
+.SH "void TQMimeSourceFactory::setPixmap ( const TQString & abs_name, const QPixmap & pixmap )\fC [virtual]\fR"
Sets \fIpixmap\fR to be the data item associated with the absolute name \fIabs_name\fR.
-.SH "void QMimeSourceFactory::setText ( const TQString & abs_name, const TQString & text )\fC [virtual]\fR"
+.SH "void TQMimeSourceFactory::setText ( const TQString & abs_name, const TQString & text )\fC [virtual]\fR"
Sets \fItext\fR to be the data item associated with the absolute name \fIabs_name\fR.
.PP
Equivalent to setData(abs_name, new TQTextDrag(text)).
-.SH "QMimeSourceFactory * QMimeSourceFactory::takeDefaultFactory ()\fC [static]\fR"
+.SH "TQMimeSourceFactory * TQMimeSourceFactory::takeDefaultFactory ()\fC [static]\fR"
Sets the defaultFactory() to 0 and returns the previous one.
.SH "SEE ALSO"
-.BR http://doc.trolltech.com/qmimesourcefactory.html
+.BR http://doc.trolltech.com/tqmimesourcefactory.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the