<trbgcolor=#f0f0f0><td><b><ahref="tqdomprocessinginstruction.html">TQDomProcessingInstruction</a></b><td>Represents an XML processing instruction
<trbgcolor=#f0f0f0><td><b><ahref="tqdomtext.html">TQDomText</a></b><td>Represents text data in the parsed XML document
<trbgcolor=#f0f0f0><td><b><ahref="qdoublevalidator.html">TQDoubleValidator</a></b><td>Range checking of floating-point numbers
<trbgcolor=#f0f0f0><td><b><ahref="qdragenterevent.html">TQDragEnterEvent</a></b><td>Event which is sent to the widget when a drag and drop first drags onto the widget
<trbgcolor=#f0f0f0><td><b><ahref="qdragleaveevent.html">TQDragLeaveEvent</a></b><td>Event which is sent to the widget when a drag and drop leaves the widget
<trbgcolor=#f0f0f0><td><b><ahref="qdragmoveevent.html">TQDragMoveEvent</a></b><td>Event which is sent while a drag and drop is in progress
<trbgcolor=#f0f0f0><td><b><ahref="ntqdragobject.html">TQDragObject</a></b><td>Encapsulates MIME-based data transfer
<trbgcolor=#f0f0f0><td><b><ahref="qdropevent.html">TQDropEvent</a></b><td>Event which is sent when a drag and drop is completed
<trbgcolor=#f0f0f0><td><b><ahref="tqdragenterevent.html">TQDragEnterEvent</a></b><td>Event which is sent to the widget when a drag and drop first drags onto the widget
<trbgcolor=#f0f0f0><td><b><ahref="tqdragleaveevent.html">TQDragLeaveEvent</a></b><td>Event which is sent to the widget when a drag and drop leaves the widget
<trbgcolor=#f0f0f0><td><b><ahref="tqdragmoveevent.html">TQDragMoveEvent</a></b><td>Event which is sent while a drag and drop is in progress
<trbgcolor=#f0f0f0><td><b><ahref="tqdragobject.html">TQDragObject</a></b><td>Encapsulates MIME-based data transfer
<trbgcolor=#f0f0f0><td><b><ahref="tqdropevent.html">TQDropEvent</a></b><td>Event which is sent when a drag and drop is completed
<trbgcolor=#f0f0f0><td><b><ahref="tqeditorfactory.html">TQEditorFactory</a></b><td>Used to create editor widgets for TQVariant data types
<trbgcolor=#f0f0f0><td><b><ahref="qlistviewitemiterator.html">TQListViewItemIterator</a></b><td>Iterator for collections of TQListViewItems
<trbgcolor=#f0f0f0><td><b><ahref="ntqlocalfs.html">TQLocalFs</a></b><td>Implementation of a TQNetworkProtocol that works on the local file system
<trbgcolor=#f0f0f0><td><b><ahref="ntqlocale.html">TQLocale</a></b><td>Converts between numbers and their string representations in various languages
<trbgcolor=#f0f0f0><td><b><ahref="qmacmime.html">TQMacMime</a></b><td>Maps open-standard MIME to Mac flavors
<trbgcolor=#f0f0f0><td><b><ahref="tqmacmime.html">TQMacMime</a></b><td>Maps open-standard MIME to Mac flavors
<trbgcolor=#f0f0f0><td><b><ahref="qmacstyle.html">TQMacStyle</a></b><td>Implements an Appearance Manager style
<trbgcolor=#f0f0f0><td><b><ahref="tqmainwindow.html">TQMainWindow</a></b><td>Main application window, with a menu bar, dock windows (e.g. for toolbars), and a status bar
<trbgcolor=#f0f0f0><td><b><ahref="tqmap.html">TQMap</a></b><td>Value-based template class that provides a dictionary
<trbgcolor=#f0f0f0><td><b><ahref="ntqmessagebox.html">TQMessageBox</a></b><td>Modal dialog with a short message, an icon, and some buttons
<trbgcolor=#f0f0f0><td><b><ahref="ntqmetaobject.html">TQMetaObject</a></b><td>Meta information about TQt objects
<trbgcolor=#f0f0f0><td><b><ahref="qmetaproperty.html">TQMetaProperty</a></b><td>Stores meta data about a property
<trbgcolor=#f0f0f0><td><b><ahref="qmimesource.html">TQMimeSource</a></b><td>Abstraction of objects which provide formatted data of a certain MIME type
<trbgcolor=#f0f0f0><td><b><ahref="qmimesourcefactory.html">TQMimeSourceFactory</a></b><td>Extensible provider of mime-typed data
<trbgcolor=#f0f0f0><td><b><ahref="tqmimesource.html">TQMimeSource</a></b><td>Abstraction of objects which provide formatted data of a certain MIME type
<trbgcolor=#f0f0f0><td><b><ahref="tqmimesourcefactory.html">TQMimeSourceFactory</a></b><td>Extensible provider of mime-typed data
<trbgcolor=#f0f0f0><td><b><ahref="qmotif.html">TQMotif</a></b><td>The basis of the <ahref="motif-extension.html#Motif">Motif</a> Extension
<trbgcolor=#f0f0f0><td><b><ahref="qmotifdialog.html">TQMotifDialog</a></b><td>The TQDialog API for Motif-based dialogs
<trbgcolor=#f0f0f0><td><b><ahref="ntqmotifplusstyle.html">TQMotifPlusStyle</a></b><td>More sophisticated Motif-ish look and feel
<trbgcolor=#f0f0f0><td><b><ahref="ntqtranslator.html">TQTranslator</a></b><td><ahref="i18n.html#internationalization">Internationalization</a> support for text output
<trbgcolor=#f0f0f0><td><b><ahref="qtranslatormessage.html">TQTranslatorMessage</a></b><td>Translator message and its properties
<trbgcolor=#f0f0f0><td><b><ahref="tqtsciicodec.html">TQTsciiCodec</a></b><td>Conversion to and from the Tamil TSCII encoding
<trbgcolor=#f0f0f0><td><b><ahref="quridrag.html">TQUriDrag</a></b><td>Drag object for a list of URI references
<trbgcolor=#f0f0f0><td><b><ahref="tquridrag.html">TQUriDrag</a></b><td>Drag object for a list of URI references
<trbgcolor=#f0f0f0><td><b><ahref="ntqurl.html">TQUrl</a></b><td>URL parser and simplifies working with URLs
<trbgcolor=#f0f0f0><td><b><ahref="ntqurlinfo.html">TQUrlInfo</a></b><td>Stores information about URLs
<trbgcolor=#f0f0f0><td><b><ahref="ntqurloperator.html">TQUrlOperator</a></b><td>Common operations on URLs
<aname="x1684"></a>void DirectoryView::<ahref="ntqlistview.html#contentsMousePressEvent">contentsMousePressEvent</a>( <ahref="qmouseevent.html">TQMouseEvent</a>* e )
<aname="x1683"></a>void DirectoryView::<ahref="ntqlistview.html#contentsMouseMoveEvent">contentsMouseMoveEvent</a>( <ahref="qmouseevent.html">TQMouseEvent</a>* e )
<aname="1"></a><p> To start a drag, for example in a <ahref="tqwidget.html#mouseMoveEvent">mouse motion event</a>, create an object of the <ahref="ntqdragobject.html">TQDragObject</a>
<aname="1"></a><p> To start a drag, for example in a <ahref="tqwidget.html#mouseMoveEvent">mouse motion event</a>, create an object of the <ahref="tqdragobject.html">TQDragObject</a>
subclass appropriate for your media, such as <ahref="tqtextdrag.html">TQTextDrag</a> for text and
<ahref="tqimagedrag.html">TQImageDrag</a> for images. Then call the drag() method. This is all you
need for simple dragging of existing types.
@ -70,8 +70,8 @@ need for simple dragging of existing types.
<pre>
void MyWidget::startDrag()
{
<ahref="ntqdragobject.html">TQDragObject</a> *d = new <ahref="tqtextdrag.html">TQTextDrag</a>( myHighlightedText(), this );
<aname="3"></a><p> The <ahref="ntqdragobject.html">TQDragObject</a>, <ahref="qdragenterevent.html">TQDragEnterEvent</a>, <ahref="qdragmoveevent.html">TQDragMoveEvent</a>, and <ahref="qdropevent.html">TQDropEvent</a>
<aname="3"></a><p> The <ahref="tqdragobject.html">TQDragObject</a>, <ahref="tqdragenterevent.html">TQDragEnterEvent</a>, <ahref="tqdragmoveevent.html">TQDragMoveEvent</a>, and <ahref="tqdropevent.html">TQDropEvent</a>
classes are all subclasses of TQMimeSource: the class of objects which
provide typed information. If you base your data transfers on
TQDragObject, you not only get drag-and-drop, but you also get
traditional cut-and-paste for free. The <ahref="ntqclipboard.html">TQClipboard</a> has two functions:
With these functions you can trivially put your drag-and-drop oriented
@ -154,7 +154,7 @@ void MyWidget::paste()
}
</pre>
You can even use <ahref="ntqdragobject.html">TQDragObject</a> subclasses as part of file IO. For
You can even use <ahref="tqdragobject.html">TQDragObject</a> subclasses as part of file IO. For
example, if your application has a subclass of TQDragObject that
encodes CAD designs in DXF format, your saving and loading code might
be:
@ -182,14 +182,14 @@ void MyWidget::load()
}
</pre>
Note how the <ahref="ntqdragobject.html">TQDragObject</a> subclass is called "MyCadDrag", not
Note how the <ahref="tqdragobject.html">TQDragObject</a> subclass is called "MyCadDrag", not
"MyDxfDrag": because in the future you might extend it to provide
DXF, DWG, SVF, WMF, or even <ahref="ntqpicture.html">TQPicture</a> data to other applications.
<p><h2> Drag and Drop Actions
</h2>
<aname="4"></a><p> In the simpler cases, the target of a drag-and-drop receives a copy of
the data being dragged and the source decides whether to delete the
original. This is the "Copy" action in <ahref="qdropevent.html">TQDropEvent</a>. The target may also
original. This is the "Copy" action in <ahref="tqdropevent.html">TQDropEvent</a>. The target may also
choose to understand other actions, specifically the Move and Link
actions. If the target understands the Move action, <em>the target</em> is responsible for both the copy and delete operations and
the source will not attempt to delete the data itself. If the target
@ -214,11 +214,11 @@ which of those it can accept. For example, <a href="tqtextdrag.html">TQTextDrag<
for the "<tt>text/plain</tt>" MIME type (ordinary unformatted text), and
the Unicode formats "<tt>text/utf16</tt>" and "<tt>text/utf8</tt>"; <ahref="tqimagedrag.html">TQImageDrag</a>
provides for "<tt>image/*</tt>", where <tt>*</tt> is any image format that
<ahref="tqimageio.html">TQImageIO</a> supports; and the <ahref="quridrag.html">TQUriDrag</a> subclass provides
<ahref="tqimageio.html">TQImageIO</a> supports; and the <ahref="tquridrag.html">TQUriDrag</a> subclass provides
"<tt>text/uri-list</tt>", a standard format for transferring a list of
filenames (or URLs).
<p> To implement drag-and-drop of some type of information for which there
is no available <ahref="ntqdragobject.html">TQDragObject</a> subclass, the first and most important
is no available <ahref="tqdragobject.html">TQDragObject</a> subclass, the first and most important
step is to look for existing formats that are appropriate: the
Internet Assigned Numbers Authority (<ahref="http://www.iana.org">IANA</a>) provides a <ahref="http://www.isi.edu/in-notes/iana/assignments/media-types/">hierarchical
list of MIME media types</a> at the Information Sciences Institute
@ -226,12 +226,12 @@ list of MIME media types</a> at the Information Sciences Institute
maximizes the inter-operability of your application with other
software now and in the future.
<p> To support an additional media type, subclass either TQDragObject or
<ahref="qstoreddrag.html">TQStoredDrag</a>. Subclass TQDragObject when you need to provide support for
<ahref="tqstoreddrag.html">TQStoredDrag</a>. Subclass TQDragObject when you need to provide support for
multiple media types. Subclass the simpler TQStoredDrag when one type
is sufficient.
<p> Subclasses of TQDragObject will override the
<ahref="qmimesource.html#format">const char* format(int i) const</a> and
@ -37,21 +37,21 @@ encoding and decoding. See also <a href="dnd.html">Drag and Drop with
TQt.</a>
<p>
<p><tablewidth="100%">
<trbgcolor=#f0f0f0><td><b><ahref="qcolordrag.html">TQColorDrag</a></b><td>Drag and drop object for transferring colors
<trbgcolor=#f0f0f0><td><b><ahref="qdragenterevent.html">TQDragEnterEvent</a></b><td>Event which is sent to the widget when a drag and drop first drags onto the widget
<trbgcolor=#f0f0f0><td><b><ahref="qdragleaveevent.html">TQDragLeaveEvent</a></b><td>Event which is sent to the widget when a drag and drop leaves the widget
<trbgcolor=#f0f0f0><td><b><ahref="qdragmoveevent.html">TQDragMoveEvent</a></b><td>Event which is sent while a drag and drop is in progress
<trbgcolor=#f0f0f0><td><b><ahref="ntqdragobject.html">TQDragObject</a></b><td>Encapsulates MIME-based data transfer
<trbgcolor=#f0f0f0><td><b><ahref="qdropevent.html">TQDropEvent</a></b><td>Event which is sent when a drag and drop is completed
<trbgcolor=#f0f0f0><td><b><ahref="tqcolordrag.html">TQColorDrag</a></b><td>Drag and drop object for transferring colors
<trbgcolor=#f0f0f0><td><b><ahref="tqdragenterevent.html">TQDragEnterEvent</a></b><td>Event which is sent to the widget when a drag and drop first drags onto the widget
<trbgcolor=#f0f0f0><td><b><ahref="tqdragleaveevent.html">TQDragLeaveEvent</a></b><td>Event which is sent to the widget when a drag and drop leaves the widget
<trbgcolor=#f0f0f0><td><b><ahref="tqdragmoveevent.html">TQDragMoveEvent</a></b><td>Event which is sent while a drag and drop is in progress
<trbgcolor=#f0f0f0><td><b><ahref="tqdragobject.html">TQDragObject</a></b><td>Encapsulates MIME-based data transfer
<trbgcolor=#f0f0f0><td><b><ahref="tqdropevent.html">TQDropEvent</a></b><td>Event which is sent when a drag and drop is completed
<trbgcolor=#f0f0f0><td><b><ahref="tqicondrag.html">TQIconDrag</a></b><td>Supports drag and drop operations within a TQIconView
<trbgcolor=#f0f0f0><td><b><ahref="tqicondragitem.html">TQIconDragItem</a></b><td>Encapsulates a drag item
<trbgcolor=#f0f0f0><td><b><ahref="tqimagedrag.html">TQImageDrag</a></b><td>Drag and drop object for transferring images
<trbgcolor=#f0f0f0><td><b><ahref="qmacmime.html">TQMacMime</a></b><td>Maps open-standard MIME to Mac flavors
<trbgcolor=#f0f0f0><td><b><ahref="qmimesource.html">TQMimeSource</a></b><td>Abstraction of objects which provide formatted data of a certain MIME type
<trbgcolor=#f0f0f0><td><b><ahref="qstoreddrag.html">TQStoredDrag</a></b><td>Simple stored-value drag object for arbitrary MIME data
<trbgcolor=#f0f0f0><td><b><ahref="tqmacmime.html">TQMacMime</a></b><td>Maps open-standard MIME to Mac flavors
<trbgcolor=#f0f0f0><td><b><ahref="tqmimesource.html">TQMimeSource</a></b><td>Abstraction of objects which provide formatted data of a certain MIME type
<trbgcolor=#f0f0f0><td><b><ahref="tqstoreddrag.html">TQStoredDrag</a></b><td>Simple stored-value drag object for arbitrary MIME data
<trbgcolor=#f0f0f0><td><b><ahref="tqtextdrag.html">TQTextDrag</a></b><td>Drag and drop object for transferring plain and Unicode text
<trbgcolor=#f0f0f0><td><b><ahref="quridrag.html">TQUriDrag</a></b><td>Drag object for a list of URI references
<trbgcolor=#f0f0f0><td><b><ahref="qwindowsmime.html">TQWindowsMime</a></b><td>Maps open-standard MIME to Window Clipboard formats
<trbgcolor=#f0f0f0><td><b><ahref="tquridrag.html">TQUriDrag</a></b><td>Drag object for a list of URI references
<trbgcolor=#f0f0f0><td><b><ahref="tqwindowsmime.html">TQWindowsMime</a></b><td>Maps open-standard MIME to Window Clipboard formats
@ -40,7 +40,7 @@ event handling, access to system settings, <a href="i18n.html#internationalizati
<trbgcolor=#f0f0f0><td><b><ahref="ntqdesktopwidget.html">TQDesktopWidget</a></b><td>Access to screen information on multi-head systems
<trbgcolor=#f0f0f0><td><b><ahref="ntqevent.html">TQEvent</a></b><td>The base class of all event classes. Event objects contain event parameters
<trbgcolor=#f0f0f0><td><b><ahref="ntqfontdatabase.html">TQFontDatabase</a></b><td>Information about the fonts available in the underlying window system
<trbgcolor=#f0f0f0><td><b><ahref="qmimesourcefactory.html">TQMimeSourceFactory</a></b><td>Extensible provider of mime-typed data
<trbgcolor=#f0f0f0><td><b><ahref="tqmimesourcefactory.html">TQMimeSourceFactory</a></b><td>Extensible provider of mime-typed data
<trbgcolor=#f0f0f0><td><b><ahref="tqmutex.html">TQMutex</a></b><td>Access serialization between threads
<trbgcolor=#f0f0f0><td><b><ahref="tqmutexlocker.html">TQMutexLocker</a></b><td>Simplifies locking and unlocking TQMutexes
<trbgcolor=#f0f0f0><td><b><ahref="ntqpixmapcache.html">TQPixmapCache</a></b><td>Application-global cache for pixmaps
@ -41,10 +41,10 @@ and <a href="signalsandslots.html">Signals and Slots</a>.
<trbgcolor=#f0f0f0><td><b><ahref="qcloseevent.html">TQCloseEvent</a></b><td>Parameters that describe a close event
<trbgcolor=#f0f0f0><td><b><ahref="qcontextmenuevent.html">TQContextMenuEvent</a></b><td>Parameters that describe a context menu event
<trbgcolor=#f0f0f0><td><b><ahref="qcustomevent.html">TQCustomEvent</a></b><td>Support for custom events
<trbgcolor=#f0f0f0><td><b><ahref="qdragenterevent.html">TQDragEnterEvent</a></b><td>Event which is sent to the widget when a drag and drop first drags onto the widget
<trbgcolor=#f0f0f0><td><b><ahref="qdragleaveevent.html">TQDragLeaveEvent</a></b><td>Event which is sent to the widget when a drag and drop leaves the widget
<trbgcolor=#f0f0f0><td><b><ahref="qdragmoveevent.html">TQDragMoveEvent</a></b><td>Event which is sent while a drag and drop is in progress
<trbgcolor=#f0f0f0><td><b><ahref="qdropevent.html">TQDropEvent</a></b><td>Event which is sent when a drag and drop is completed
<trbgcolor=#f0f0f0><td><b><ahref="tqdragenterevent.html">TQDragEnterEvent</a></b><td>Event which is sent to the widget when a drag and drop first drags onto the widget
<trbgcolor=#f0f0f0><td><b><ahref="tqdragleaveevent.html">TQDragLeaveEvent</a></b><td>Event which is sent to the widget when a drag and drop leaves the widget
<trbgcolor=#f0f0f0><td><b><ahref="tqdragmoveevent.html">TQDragMoveEvent</a></b><td>Event which is sent while a drag and drop is in progress
<trbgcolor=#f0f0f0><td><b><ahref="tqdropevent.html">TQDropEvent</a></b><td>Event which is sent when a drag and drop is completed
<trbgcolor=#f0f0f0><td><b><ahref="ntqevent.html">TQEvent</a></b><td>The base class of all event classes. Event objects contain event parameters
<trbgcolor=#f0f0f0><td><b><ahref="ntqeventloop.html">TQEventLoop</a></b><td>Manages the event queue
<trbgcolor=#f0f0f0><td><b><ahref="qfocusevent.html">TQFocusEvent</a></b><td>Event parameters for widget focus events
@ -52,9 +52,9 @@ devices, processes, files etc. as well as manipulating files and directories.
<trbgcolor=#f0f0f0><td><b><ahref="tqimageio.html">TQImageIO</a></b><td>Parameters for loading and saving images
<trbgcolor=#f0f0f0><td><b><ahref="ntqiodevice.html">TQIODevice</a></b><td>The base class of I/O devices
<trbgcolor=#f0f0f0><td><b><ahref="ntqlocalfs.html">TQLocalFs</a></b><td>Implementation of a TQNetworkProtocol that works on the local file system
<trbgcolor=#f0f0f0><td><b><ahref="qmacmime.html">TQMacMime</a></b><td>Maps open-standard MIME to Mac flavors
<trbgcolor=#f0f0f0><td><b><ahref="qmimesource.html">TQMimeSource</a></b><td>Abstraction of objects which provide formatted data of a certain MIME type
<trbgcolor=#f0f0f0><td><b><ahref="qmimesourcefactory.html">TQMimeSourceFactory</a></b><td>Extensible provider of mime-typed data
<trbgcolor=#f0f0f0><td><b><ahref="tqmacmime.html">TQMacMime</a></b><td>Maps open-standard MIME to Mac flavors
<trbgcolor=#f0f0f0><td><b><ahref="tqmimesource.html">TQMimeSource</a></b><td>Abstraction of objects which provide formatted data of a certain MIME type
<trbgcolor=#f0f0f0><td><b><ahref="tqmimesourcefactory.html">TQMimeSourceFactory</a></b><td>Extensible provider of mime-typed data
<trbgcolor=#f0f0f0><td><b><ahref="qnetworkoperation.html">TQNetworkOperation</a></b><td>Common operations for network protocols
<trbgcolor=#f0f0f0><td><b><ahref="ntqnetworkprotocol.html">TQNetworkProtocol</a></b><td>Common API for network protocols
<trbgcolor=#f0f0f0><td><b><ahref="ntqprocess.html">TQProcess</a></b><td>Used to start external programs and to communicate with them
@ -71,7 +71,7 @@ devices, processes, files etc. as well as manipulating files and directories.
<trbgcolor=#f0f0f0><td><b><ahref="ntqurl.html">TQUrl</a></b><td>URL parser and simplifies working with URLs
<trbgcolor=#f0f0f0><td><b><ahref="ntqurlinfo.html">TQUrlInfo</a></b><td>Stores information about URLs
<trbgcolor=#f0f0f0><td><b><ahref="ntqurloperator.html">TQUrlOperator</a></b><td>Common operations on URLs
<trbgcolor=#f0f0f0><td><b><ahref="qwindowsmime.html">TQWindowsMime</a></b><td>Maps open-standard MIME to Window Clipboard formats
<trbgcolor=#f0f0f0><td><b><ahref="tqwindowsmime.html">TQWindowsMime</a></b><td>Maps open-standard MIME to Window Clipboard formats
<trbgcolor=#f0f0f0><td><b><ahref="ntqfocusdata.html">TQFocusData</a></b><td>Maintains the list of widgets in the focus chain
<trbgcolor=#f0f0f0><td><b><ahref="qintvalidator.html">TQIntValidator</a></b><td>Validator which ensures that a string contains a valid integer within a specified range
<trbgcolor=#f0f0f0><td><b><ahref="ntqkeysequence.html">TQKeySequence</a></b><td>Encapsulates a key sequence as used by accelerators
<trbgcolor=#f0f0f0><td><b><ahref="qmacmime.html">TQMacMime</a></b><td>Maps open-standard MIME to Mac flavors
<trbgcolor=#f0f0f0><td><b><ahref="tqmacmime.html">TQMacMime</a></b><td>Maps open-standard MIME to Mac flavors
<trbgcolor=#f0f0f0><td><b><ahref="tqmenudata.html">TQMenuData</a></b><td>Base class for TQMenuBar and TQPopupMenu
<trbgcolor=#f0f0f0><td><b><ahref="qmimesource.html">TQMimeSource</a></b><td>Abstraction of objects which provide formatted data of a certain MIME type
<trbgcolor=#f0f0f0><td><b><ahref="tqmimesource.html">TQMimeSource</a></b><td>Abstraction of objects which provide formatted data of a certain MIME type
<trbgcolor=#f0f0f0><td><b><ahref="ntqprocess.html">TQProcess</a></b><td>Used to start external programs and to communicate with them
<trbgcolor=#f0f0f0><td><b><ahref="ntqrangecontrol.html">TQRangeControl</a></b><td>Integer value within a range
<trbgcolor=#f0f0f0><td><b><ahref="ntqregexp.html">TQRegExp</a></b><td>Pattern matching using regular expressions
</h3> Convenience function. Gets the data associated with the absolute
name <em>abs_name</em> from the default mime source factory and decodes it
to a pixmap.
<p><p>See also <ahref="qmimesourcefactory.html">TQMimeSourceFactory</a>, <ahref="tqimage.html#fromMimeSource">TQImage::fromMimeSource</a>(), and <ahref="tqimagedrag.html#decode">TQImageDrag::decode</a>().
<p><p>See also <ahref="tqmimesourcefactory.html">TQMimeSourceFactory</a>, <ahref="tqimage.html#fromMimeSource">TQImage::fromMimeSource</a>(), and <ahref="tqimagedrag.html#decode">TQImageDrag::decode</a>().
@ -3085,7 +3085,7 @@ works only if the viewport accepts drops. Specifying FALSE
disables this autoscroll feature.
<p> <b>Warning:</b> Enabling this property might not be enough to
effectively turn on autoscrolling. If you put a custom widget in
the QScrollView, you might need to call QDragEvent::ignore() on
the QScrollView, you might need to call TQDragEvent::ignore() on
the event in the <a href="tqwidget.html#dragEnterEvent">dragEnterEvent</a>() and <a href="tqwidget.html#dragMoveEvent">dragMoveEvent</a>()
reimplementations.
@ -3823,7 +3823,7 @@ source factory, you must ensure that the factory knows about the
encoding of specified files; otherwise no data will be available.
The default factory handles a couple of common file extensions
such as <tt>*.html</tt> and <tt>*.txt</tt> with reasonable defaults. See
<a href="qmimesourcefactory.html#data">QMimeSourceFactory::data</a>() for details.
<a href="tqmimesourcefactory.html#data">TQMimeSourceFactory::data</a>() for details.
<p>Set this property's value with <a href="tqtextbrowser.html#setSource">setSource</a>() and get this property's value with <a href="tqtextbrowser.html#source">source</a>().
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQColorDrag</h1>
<p>This is the complete list of member functions for
<ahref="qcolordrag.html">TQColorDrag</a>, including inherited members.
<ahref="tqcolordrag.html">TQColorDrag</a>, including inherited members.
Constructs a color drag object with the color <em>col</em>. Passes <em>dragsource</em> and <em>name</em> to the <ahref="qstoreddrag.html">TQStoredDrag</a> constructor.
Constructs a color drag object with the color <em>col</em>. Passes <em>dragsource</em> and <em>name</em> to the <ahref="tqstoreddrag.html">TQStoredDrag</a> constructor.
Constructs a color drag object with a white color. Passes <em>dragsource</em> and <em>name</em> to the <ahref="qstoreddrag.html">TQStoredDrag</a> constructor.
Constructs a color drag object with a white color. Passes <em>dragsource</em> and <em>name</em> to the <ahref="tqstoreddrag.html">TQStoredDrag</a> constructor.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQDragEnterEvent</h1>
<p>This is the complete list of member functions for
<ahref="qdragenterevent.html">TQDragEnterEvent</a>, including inherited members.
<ahref="tqdragenterevent.html">TQDragEnterEvent</a>, including inherited members.
The TQDragEnterEvent class provides an event which is sent to the widget when a drag and drop first drags onto the widget.
<p>
<p> This event is always immediately followed by a <ahref="qdragmoveevent.html">TQDragMoveEvent</a>, so
<p> This event is always immediately followed by a <ahref="tqdragmoveevent.html">TQDragMoveEvent</a>, so
you only need to respond to one or the other event. This class
inherits most of its functionality from TQDragMoveEvent, which in
turn inherits most of its functionality from <ahref="qdropevent.html">TQDropEvent</a>.
<p><p>See also <ahref="qdragleaveevent.html">TQDragLeaveEvent</a>, <ahref="qdragmoveevent.html">TQDragMoveEvent</a>, <ahref="qdropevent.html">TQDropEvent</a>, <ahref="draganddrop.html">Drag And Drop Classes</a>, and <ahref="events.html">Event Classes</a>.
turn inherits most of its functionality from <ahref="tqdropevent.html">TQDropEvent</a>.
<p><p>See also <ahref="tqdragleaveevent.html">TQDragLeaveEvent</a>, <ahref="tqdragmoveevent.html">TQDragMoveEvent</a>, <ahref="tqdropevent.html">TQDropEvent</a>, <ahref="draganddrop.html">Drag And Drop Classes</a>, and <ahref="events.html">Event Classes</a>.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQDragLeaveEvent</h1>
<p>This is the complete list of member functions for
<ahref="qdragleaveevent.html">TQDragLeaveEvent</a>, including inherited members.
<ahref="tqdragleaveevent.html">TQDragLeaveEvent</a>, including inherited members.
The TQDragLeaveEvent class provides an event which is sent to the widget when a drag and drop leaves the widget.
<p>
<p> This event is always preceded by a <ahref="qdragenterevent.html">TQDragEnterEvent</a> and a series of
<ahref="qdragmoveevent.html">TQDragMoveEvent</a>s. It is not sent if a <ahref="qdropevent.html">TQDropEvent</a> is sent
<p> This event is always preceded by a <ahref="tqdragenterevent.html">TQDragEnterEvent</a> and a series of
<ahref="tqdragmoveevent.html">TQDragMoveEvent</a>s. It is not sent if a <ahref="tqdropevent.html">TQDropEvent</a> is sent
instead.
<p><p>See also <ahref="qdragenterevent.html">TQDragEnterEvent</a>, <ahref="qdragmoveevent.html">TQDragMoveEvent</a>, <ahref="qdropevent.html">TQDropEvent</a>, <ahref="draganddrop.html">Drag And Drop Classes</a>, and <ahref="events.html">Event Classes</a>.
<p><p>See also <ahref="tqdragenterevent.html">TQDragEnterEvent</a>, <ahref="tqdragmoveevent.html">TQDragMoveEvent</a>, <ahref="tqdropevent.html">TQDropEvent</a>, <ahref="draganddrop.html">Drag And Drop Classes</a>, and <ahref="events.html">Event Classes</a>.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQDragMoveEvent</h1>
<p>This is the complete list of member functions for
<ahref="qdragmoveevent.html">TQDragMoveEvent</a>, including inherited members.
<ahref="tqdragmoveevent.html">TQDragMoveEvent</a>, including inherited members.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQDragObject</h1>
<p>This is the complete list of member functions for
<ahref="ntqdragobject.html">TQDragObject</a>, including inherited members.
<ahref="tqdragobject.html">TQDragObject</a>, including inherited members.
<p>Inherits <ahref="tqobject.html">TQObject</a> and <ahref="qmimesource.html">TQMimeSource</a>.
<p>Inherited by <ahref="qstoreddrag.html">TQStoredDrag</a>, <ahref="tqtextdrag.html">TQTextDrag</a>, <ahref="tqimagedrag.html">TQImageDrag</a>, and <ahref="tqicondrag.html">TQIconDrag</a>.
<p><ahref="qdragobject-members.html">List of all member functions.</a>
<p>Inherits <ahref="tqobject.html">TQObject</a> and <ahref="tqmimesource.html">TQMimeSource</a>.
<p>Inherited by <ahref="tqstoreddrag.html">TQStoredDrag</a>, <ahref="tqtextdrag.html">TQTextDrag</a>, <ahref="tqimagedrag.html">TQImageDrag</a>, and <ahref="tqicondrag.html">TQIconDrag</a>.
<p><ahref="tqdragobject-members.html">List of all member functions.</a>
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQDropEvent</h1>
<p>This is the complete list of member functions for
<ahref="qdropevent.html">TQDropEvent</a>, including inherited members.
<ahref="tqdropevent.html">TQDropEvent</a>, including inherited members.
<p> The TQDropEvent class provides an event which is sent when a drag and drop is completed.
<p> When a widget <ahref="tqwidget.html#setAcceptDrops">accepts drop
events</a>, it will receive this event if it has accepted the
most recent <ahref="qdragenterevent.html">TQDragEnterEvent</a> or <ahref="qdragmoveevent.html">TQDragMoveEvent</a> sent to it.
most recent <ahref="tqdragenterevent.html">TQDragEnterEvent</a> or <ahref="tqdragmoveevent.html">TQDragMoveEvent</a> sent to it.
<p> The widget should use <ahref="#data">data</a>() to extract the data in an appropriate
format.
<p>See also <ahref="draganddrop.html">Drag And Drop Classes</a> and <ahref="events.html">Event Classes</a>.
@ -88,7 +88,7 @@ a Copy.
special actions. This feature is not currently
supported.
</ul><p> The Link and Move actions only makes sense if the data is a
reference, for example, text/uri-list file lists (see <ahref="quridrag.html">TQUriDrag</a>).
reference, for example, text/uri-list file lists (see <ahref="tquridrag.html">TQUriDrag</a>).
<hr><h2>Member Function Documentation</h2>
<h3class=fn><aname="TQDropEvent"></a>TQDropEvent::TQDropEvent ( const <ahref="ntqpoint.html">TQPoint</a> & pos, <ahref="ntqevent.html#Type-enum">Type</a> typ = Drop )
@ -104,7 +104,7 @@ reference, for example, text/uri-list file lists (see <a href="quridrag.html">TQ
which your widget processed. Set <em>y</em> to TRUE (the default) if
your widget could process the data, otherwise set <em>y</em> to FALSE.
To get the data, use <ahref="#encodedData">encodedData</a>(), or preferably, the decode()
methods of existing <ahref="ntqdragobject.html">TQDragObject</a> subclasses, such as
methods of existing <ahref="tqdragobject.html">TQDragObject</a> subclasses, such as
<ahref="tqtextdrag.html#decode">TQTextDrag::decode</a>(), or your own subclasses.
<p><p>See also <ahref="#acceptAction">acceptAction</a>().
@ -118,7 +118,7 @@ the default copy action. If you call <a href="#acceptAction">acceptAction</a>(TR
no need to also call <ahref="#accept">accept</a>(TRUE).
<p>Examples: <ahref="dirview-example.html#x1671">dirview/dirview.cpp</a> and <ahref="fileiconview-example.html#x816">fileiconview/qfileiconview.cpp</a>.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQDropSite</h1>
<p>This is the complete list of member functions for
<ahref="ntqdropsite.html">TQDropSite</a>, including inherited members.
<ahref="tqdropsite.html">TQDropSite</a>, including inherited members.
@ -544,7 +544,7 @@ existing image or <a href="ntqcolor.html#rgb">TQColor::rgb</a>() to use a specif
</h3> Convenience function. Gets the data associated with the absolute
name <em>abs_name</em> from the default mime source factory and decodes it
to an image.
<p><p>See also <ahref="qmimesourcefactory.html">TQMimeSourceFactory</a>, <ahref="#fromMimeSource">TQImage::fromMimeSource</a>(), and <ahref="tqimagedrag.html#decode">TQImageDrag::decode</a>().
<p><p>See also <ahref="tqmimesourcefactory.html">TQMimeSourceFactory</a>, <ahref="#fromMimeSource">TQImage::fromMimeSource</a>(), and <ahref="tqimagedrag.html#decode">TQImageDrag::decode</a>().
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQMacMime</h1>
<p>This is the complete list of member functions for
<ahref="qmacmime.html">TQMacMime</a>, including inherited members.
<ahref="tqmacmime.html">TQMacMime</a>, including inherited members.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQMimeSource</h1>
<p>This is the complete list of member functions for
<ahref="qmimesource.html">TQMimeSource</a>, including inherited members.
<ahref="tqmimesource.html">TQMimeSource</a>, including inherited members.
@ -75,13 +75,13 @@ Provided to ensure that subclasses destroy themselves correctly.
format.
<p> Subclasses must reimplement this function.
<p>Reimplemented in <ahref="qstoreddrag.html#encodedData">TQStoredDrag</a>, <ahref="qdropevent.html#encodedData">TQDropEvent</a>, and <ahref="tqicondrag.html#encodedData">TQIconDrag</a>.
<p>Reimplemented in <ahref="tqstoreddrag.html#encodedData">TQStoredDrag</a>, <ahref="tqdropevent.html#encodedData">TQDropEvent</a>, and <ahref="tqicondrag.html#encodedData">TQIconDrag</a>.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQMimeSourceFactory</h1>
<p>This is the complete list of member functions for
<ahref="qmimesourcefactory.html">TQMimeSourceFactory</a>, including inherited members.
<ahref="tqmimesourcefactory.html">TQMimeSourceFactory</a>, including inherited members.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQStoredDrag</h1>
<p>This is the complete list of member functions for
<ahref="qstoreddrag.html">TQStoredDrag</a>, including inherited members.
<ahref="tqstoreddrag.html">TQStoredDrag</a>, including inherited members.
Returns the context of the text edit. The context is a path which
the text edit's <ahref="qmimesourcefactory.html">TQMimeSourceFactory</a> uses to resolve the locations
the text edit's <ahref="tqmimesourcefactory.html">TQMimeSourceFactory</a> uses to resolve the locations
of files and images.
<p><p>See also <ahref="#text-prop">text</a>.
@ -1022,9 +1022,9 @@ See the <a href="tqtextedit.html#linkUnderline-prop">"linkUnderline"</a> propert
Returns the maximum number of lines TQTextEdit can hold in <ahref="ntqt.html#TextFormat-enum">LogText</a> mode. By default the number of lines is unlimited, which
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQUriDrag</h1>
<p>This is the complete list of member functions for
<ahref="quridrag.html">TQUriDrag</a>, including inherited members.
<ahref="tquridrag.html">TQUriDrag</a>, including inherited members.
Constructs an object to drag the list of URIs in <em>uris</em>. The <em>dragSource</em> and <em>name</em> arguments are passed on to <ahref="qstoreddrag.html">TQStoredDrag</a>.
Constructs an object to drag the list of URIs in <em>uris</em>. The <em>dragSource</em> and <em>name</em> arguments are passed on to <ahref="tqstoreddrag.html">TQStoredDrag</a>.
Note that URIs are always in escaped UTF8 encoding.
This event handler is called when a drag is in progress and the
mouse enters this widget.
<p> See the <ahref="dnd.html">Drag-and-drop documentation</a> for an
overview of how to provide drag-and-drop in your application.
<p><p>See also <ahref="tqtextdrag.html">TQTextDrag</a>, <ahref="tqimagedrag.html">TQImageDrag</a>, and <ahref="qdragenterevent.html">TQDragEnterEvent</a>.
<p><p>See also <ahref="tqtextdrag.html">TQTextDrag</a>, <ahref="tqimagedrag.html">TQImageDrag</a>, and <ahref="tqdragenterevent.html">TQDragEnterEvent</a>.
This event handler is called when a drag is in progress and the
mouse leaves this widget.
<p> See the <ahref="dnd.html">Drag-and-drop documentation</a> for an
overview of how to provide drag-and-drop in your application.
<p><p>See also <ahref="tqtextdrag.html">TQTextDrag</a>, <ahref="tqimagedrag.html">TQImageDrag</a>, and <ahref="qdragleaveevent.html">TQDragLeaveEvent</a>.
<p><p>See also <ahref="tqtextdrag.html">TQTextDrag</a>, <ahref="tqimagedrag.html">TQImageDrag</a>, and <ahref="tqdragleaveevent.html">TQDragLeaveEvent</a>.
This event handler is called when a drag is in progress and the
mouse enters this widget, and whenever it moves within the widget.
<p> See the <ahref="dnd.html">Drag-and-drop documentation</a> for an
overview of how to provide drag-and-drop in your application.
<p><p>See also <ahref="tqtextdrag.html">TQTextDrag</a>, <ahref="tqimagedrag.html">TQImageDrag</a>, and <ahref="qdragmoveevent.html">TQDragMoveEvent</a>.
<p><p>See also <ahref="tqtextdrag.html">TQTextDrag</a>, <ahref="tqimagedrag.html">TQImageDrag</a>, and <ahref="tqdragmoveevent.html">TQDragMoveEvent</a>.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQWindowsMime</h1>
<p>This is the complete list of member functions for
<ahref="qwindowsmime.html">TQWindowsMime</a>, including inherited members.
<ahref="tqwindowsmime.html">TQWindowsMime</a>, including inherited members.
.BI "void \fBsetText\fR ( const TQString & text )"
.br
.ti -1c
.BI "QMimeSource * \fBdata\fR () const"
.BI "TQMimeSource * \fBdata\fR () const"
.br
.ti -1c
.BI "void \fBsetData\fR ( QMimeSource * src )"
.BI "void \fBsetData\fR ( TQMimeSource * src )"
.br
.ti -1c
.BI "TQImage \fBimage\fR () const"
@ -108,7 +108,7 @@ The QClipboard class provides access to the window system clipboard.
.PP
The clipboard offers a simple mechanism to copy and paste data between applications.
.PP
QClipboard supports the same data types that QDragObject does, and uses similar mechanisms. For advanced clipboard usage read the drag-and-drop documentation.
QClipboard supports the same data types that TQDragObject does, and uses similar mechanisms. For advanced clipboard usage read the drag-and-drop documentation.
.PP
There is a single QClipboard object in an application, and you can access it using QApplication::clipboard().
.PP
@ -136,7 +136,7 @@ Example:
.br
.fi
.PP
QClipboard features some convenience functions to access common data types: setText() allows the exchange of Unicode text and setPixmap() and setImage() allows the exchange of QPixmaps and TQImages between applications. The setData() function is the ultimate in flexibility: it allows you to add any QMimeSource into the clipboard. There are corresponding getters for each of these, e.g. text(), image() and pixmap().
QClipboard features some convenience functions to access common data types: setText() allows the exchange of Unicode text and setPixmap() and setImage() allows the exchange of QPixmaps and TQImages between applications. The setData() function is the ultimate in flexibility: it allows you to add any TQMimeSource into the clipboard. There are corresponding getters for each of these, e.g. text(), image() and pixmap().
.PP
You can clear the clipboard by calling clear().
.SH "Platform Specific Information"
@ -188,13 +188,13 @@ See also QClipboard::Mode and supportsSelection().
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
This function uses the QClipboard::clear() function which takes a QClipboard::Mode argument. The value of the mode argument is determined by the return value of selectionModeEnabled(). If selectionModeEnabled() returns TRUE, the mode argument is QClipboard::Selection, otherwise the mode argument is QClipboard::Clipboard.
Returns a reference to a TQMimeSource representation of the current clipboard data.
.PP
The \fImode\fR argument is used to control which part of the system clipboard is used. If \fImode\fR is QClipboard::Clipboard, the data is retrieved from the global clipboard. If \fImode\fR is QClipboard::Selection, the data is retrieved from the global mouse selection.
.PP
See also setData().
.SH "QMimeSource * QClipboard::data () const"
.SH "TQMimeSource * QClipboard::data () const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
This function uses the QClipboard::data() function which takes a QClipboard::Mode argument. The value of the mode argument is determined by the return value of selectionModeEnabled(). If selectionModeEnabled() returns TRUE, the mode argument is QClipboard::Selection, otherwise the mode argument is QClipboard::Clipboard.
@ -234,17 +234,17 @@ Use the QClipboard::data(), QClipboard::setData() and related functions which ta
Returns the selection mode.
.PP
See also setSelectionMode() and supportsSelection().
Sets the clipboard data to \fIsrc\fR. Ownership of the data is transferred to the clipboard. If you want to remove the data either call clear() or call setData() again with new data.
.PP
The \fImode\fR argument is used to control which part of the system clipboard is used. If \fImode\fR is QClipboard::Clipboard, the data is retrieved from the global clipboard. If \fImode\fR is QClipboard::Selection, the data is retrieved from the global mouse selection.
.PP
The QDragObject subclasses are reasonable objects to put into the clipboard (but do not try to call QDragObject::drag() on the same object). Any QDragObject placed in the clipboard should have a parent of 0. Do not put QDragMoveEvent or QDropEvent subclasses in the clipboard, as they do not belong to the event handler which receives them.
The TQDragObject subclasses are reasonable objects to put into the clipboard (but do not try to call TQDragObject::drag() on the same object). Any TQDragObject placed in the clipboard should have a parent of 0. Do not put TQDragMoveEvent or TQDropEvent subclasses in the clipboard, as they do not belong to the event handler which receives them.
.PP
The setText(), setImage() and setPixmap() functions are simpler wrappers for setting text, image and pixmap data respectively.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
This function uses the QClipboard::setData() function which takes a QClipboard::Mode argument. The value of the mode argument is determined by the return value of selectionModeEnabled(). If selectionModeEnabled() returns TRUE, the mode argument is QClipboard::Selection, otherwise the mode argument is QClipboard::Clipboard.
.BI "bool \fBdecode\fR ( QMimeSource * e, TQColor & col )"
.BI "bool \fBdecode\fR ( TQMimeSource * e, TQColor & col )"
.br
.in -1c
.SH DESCRIPTION
The QColorDrag class provides a drag and drop object for transferring colors.
The TQColorDrag class provides a drag and drop object for transferring colors.
.PP
This class provides a drag object which can be used to transfer data about colors for drag and drop and in the clipboard. For example, it is used in QColorDialog.
.PP
The color is set in the constructor but can be changed with setColor().
.PP
For more information about drag and drop, see the QDragObject class and the drag and drop documentation.
For more information about drag and drop, see the TQDragObject class and the drag and drop documentation.
The QDragEnterEvent class provides an event which is sent to the widget when a drag and drop first drags onto the widget.
The TQDragEnterEvent class provides an event which is sent to the widget when a drag and drop first drags onto the widget.
.PP
This event is always immediately followed by a QDragMoveEvent, so you only need to respond to one or the other event. This class inherits most of its functionality from QDragMoveEvent, which in turn inherits most of its functionality from QDropEvent.
This event is always immediately followed by a TQDragMoveEvent, so you only need to respond to one or the other event. This class inherits most of its functionality from TQDragMoveEvent, which in turn inherits most of its functionality from TQDropEvent.
.PP
See also QDragLeaveEvent, QDragMoveEvent, QDropEvent, Drag And Drop Classes, and Event Classes.
See also TQDragLeaveEvent, TQDragMoveEvent, TQDropEvent, Drag And Drop Classes, and Event Classes.
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@ -7,18 +7,18 @@
.ad l
.nh
.SH NAME
QDragMoveEvent \- Event which is sent while a drag and drop is in progress
TQDragMoveEvent \- Event which is sent while a drag and drop is in progress
.SH SYNOPSIS
\fC#include <ntqevent.h>\fR
.PP
Inherits QDropEvent.
Inherits TQDropEvent.
.PP
Inherited by QDragEnterEvent.
Inherited by TQDragEnterEvent.
.PP
.SS "Public Members"
.in +1c
.ti -1c
.BI "\fBQDragMoveEvent\fR ( const QPoint & pos, Type type = DragMove )"
.BI "\fBTQDragMoveEvent\fR ( const QPoint & pos, Type type = DragMove )"
.br
.ti -1c
.BI "QRect \fBanswerRect\fR () const"
@ -31,34 +31,34 @@ Inherited by QDragEnterEvent.
.br
.in -1c
.SH DESCRIPTION
The QDragMoveEvent class provides an event which is sent while a drag and drop is in progress.
The TQDragMoveEvent class provides an event which is sent while a drag and drop is in progress.
.PP
When a widget accepts drop events, it will receive this event repeatedly while the drag is within the widget's boundaries. The widget should examine the event to see what data it provides, and accept() the drop if appropriate.
.PP
Note that this class inherits most of its functionality from QDropEvent.
Note that this class inherits most of its functionality from TQDropEvent.
.PP
See also Drag And Drop Classes and Event Classes.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QDragMoveEvent::QDragMoveEvent ( const QPoint & pos, Type type = DragMove )"
Creates a QDragMoveEvent for which the mouse is at point \fIpos\fR, and the event is of type \fItype\fR.
.SH "TQDragMoveEvent::TQDragMoveEvent ( const QPoint & pos, Type type = DragMove )"
Creates a TQDragMoveEvent for which the mouse is at point \fIpos\fR, and the event is of type \fItype\fR.
.PP
\fBWarning:\fR Do not create a QDragMoveEvent yourself since these objects rely on Qt's internal state.
.SH "void QDragMoveEvent::accept ( const QRect & r )"
\fBWarning:\fR Do not create a TQDragMoveEvent yourself since these objects rely on Qt's internal state.
.SH "void TQDragMoveEvent::accept ( const QRect & r )"
The same as accept(), but also notifies that future moves will also be acceptable if they remain within the rectangle \fIr\fR on the widget: this can improve performance, but may also be ignored by the underlying system.
.PP
If the rectangle is empty, then drag move events will be sent continuously. This is useful if the source is scrolling in a timer event.
.PP
Examples:
.)l desktop/desktop.cpp and dirview/dirview.cpp.
.SH "QRect QDragMoveEvent::answerRect () const"
.SH "QRect TQDragMoveEvent::answerRect () const"
Returns the rectangle for which the acceptance of the move event applies.
.SH "void QDragMoveEvent::ignore ( const QRect & r )"
.SH "void TQDragMoveEvent::ignore ( const QRect & r )"
The opposite of accept(const QRect&), i.e. says that moves within rectangle \fIr\fR are not acceptable (will be ignored).
.PP
Example: dirview/dirview.cpp.
.SH "SEE ALSO"
.BR http://doc.trolltech.com/qdragmoveevent.html
.BR http://doc.trolltech.com/tqdragmoveevent.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
@ -67,9 +67,9 @@ Inherited by QStoredDrag, TQTextDrag, TQImageDrag, and TQIconDrag.
.br
.in -1c
.SH DESCRIPTION
The QDragObject class encapsulates MIME-based data transfer.
The TQDragObject class encapsulates MIME-based data transfer.
.PP
QDragObject is the base class for all data that needs to be transferred between and within applications, both for drag and drop and for the clipboard.
TQDragObject is the base class for all data that needs to be transferred between and within applications, both for drag and drop and for the clipboard.
.PP
See the Drag-and-drop documentation for an overview of how to provide drag and drop in your application.
.PP
@ -79,36 +79,36 @@ The drag() function is used to start a drag operation. You can specify the DragM
.PP
See also Drag And Drop Classes.
.SS "Member Type Documentation"
.SH "QDragObject::DragMode"
.SH "TQDragObject::DragMode"
This enum describes the possible drag modes.
.TP
\fCQDragObject::DragDefault\fR - The mode is determined heuristically.
\fCTQDragObject::DragDefault\fR - The mode is determined heuristically.
.TP
\fCQDragObject::DragCopy\fR - The data is copied, never moved.
\fCTQDragObject::DragCopy\fR - The data is copied, never moved.
.TP
\fCQDragObject::DragMove\fR - The data is moved, if dragged at all.
\fCTQDragObject::DragMove\fR - The data is moved, if dragged at all.
.TP
\fCQDragObject::DragLink\fR - The data is linked, if dragged at all.
\fCTQDragObject::DragLink\fR - The data is linked, if dragged at all.
.TP
\fCQDragObject::DragCopyOrMove\fR - The user chooses the mode by using a control key to switch from the default.
\fCTQDragObject::DragCopyOrMove\fR - The user chooses the mode by using a control key to switch from the default.
Destroys the drag object, canceling any drag and drop operation in which it is involved, and frees up the storage used.
.SH "bool QDragObject::drag ()"
.SH "bool TQDragObject::drag ()"
Starts a drag operation using the contents of this object, using DragDefault mode.
.PP
The function returns TRUE if the caller should delete the original copy of the dragged data (but see target()); otherwise returns FALSE.
.PP
If the drag contains \fIreferences\fR to information (e.g. file names in a QUriDrag are references) then the return value should always be ignored, as the target is expected to manipulate the referred-to content directly. On X11 the return value should always be correct anyway, but on Windows this is not necessarily the case (e.g. the file manager starts a background process to move files, so the source \fImust not\fR delete the files!)
If the drag contains \fIreferences\fR to information (e.g. file names in a TQUriDrag are references) then the return value should always be ignored, as the target is expected to manipulate the referred-to content directly. On X11 the return value should always be correct anyway, but on Windows this is not necessarily the case (e.g. the file manager starts a background process to move files, so the source \fImust not\fR delete the files!)
.PP
Note that on Windows the drag operation will spin a blocking modal event loop that will not dispatch any TQTimers.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Starts a drag operation using the contents of this object.
@ -117,26 +117,26 @@ At this point, the object becomes owned by Qt, not the application. You should n
.PP
Returns TRUE if the dragged data was dragged as a \fImove\fR, indicating that the caller should remove the original source of the data (the drag object must continue to have a copy); otherwise returns FALSE.
.PP
The \fImode\fR specifies the drag mode (see QDragObject::DragMode.) Normally one of the simpler drag(), dragMove(), or dragCopy() functions would be used instead.
.SH "void QDragObject::dragCopy ()"
The \fImode\fR specifies the drag mode (see TQDragObject::DragMode.) Normally one of the simpler drag(), dragMove(), or dragCopy() functions would be used instead.
.SH "void TQDragObject::dragCopy ()"
Starts a drag operation using the contents of this object, using DragCopy mode. Be sure to read the constraints described in drag().
.PP
See also drag(), dragMove(), and dragLink().
.PP
Example: iconview/simple_dd/main.cpp.
.SH "void QDragObject::dragLink ()"
.SH "void TQDragObject::dragLink ()"
Starts a drag operation using the contents of this object, using DragLink mode. Be sure to read the constraints described in drag().
.PP
See also drag(), dragCopy(), and dragMove().
.SH "bool QDragObject::dragMove ()"
.SH "bool TQDragObject::dragMove ()"
Starts a drag operation using the contents of this object, using DragMove mode. Be sure to read the constraints described in drag().
.PP
See also drag(), dragCopy(), and dragLink().
.SH "QPixmap QDragObject::pixmap () const"
.SH "QPixmap TQDragObject::pixmap () const"
Returns the currently set pixmap (which isNull() if none is set).
Set the pixmap \fIpm\fR to display while dragging the object. The platform-specific implementation will use this where it can - so provide a small masked pixmap, and do not assume that the user will actually see it. For example, cursors on Windows 95 are of limited size.
.PP
The \fIhotspot\fR is the point on (or off) the pixmap that should be under the cursor as it is dragged. It is relative to the top-left pixel of the pixmap.
@ -144,20 +144,20 @@ The \fIhotspot\fR is the point on (or off) the pixmap that should be under the c
\fBWarning:\fR We have seen problems with drag cursors on different graphics hardware and driver software on Windows. Setting the graphics acceleration in the display settings down one tick solved the problems in all cases.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Uses a hotspot that positions the pixmap below and to the right of the mouse pointer. This allows the user to clearly see the point on the window which they are dragging the data onto.
.SH "TQWidget * QDragObject::source ()"
.SH "TQWidget * TQDragObject::source ()"
Returns a pointer to the drag source where this object originated.
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@ -7,18 +7,18 @@
.ad l
.nh
.SH NAME
QDropEvent \- Event which is sent when a drag and drop is completed
TQDropEvent \- Event which is sent when a drag and drop is completed
.SH SYNOPSIS
\fC#include <ntqevent.h>\fR
.PP
Inherits QEvent and QMimeSource.
Inherits QEvent and TQMimeSource.
.PP
Inherited by QDragMoveEvent.
Inherited by TQDragMoveEvent.
.PP
.SS "Public Members"
.in +1c
.ti -1c
.BI "\fBQDropEvent\fR ( const QPoint & pos, Type typ = Drop )"
.BI "\fBTQDropEvent\fR ( const QPoint & pos, Type typ = Drop )"
.br
.ti -1c
.BI "const QPoint & \fBpos\fR () const"
@ -67,52 +67,52 @@ Inherited by QDragMoveEvent.
.br
.in -1c
.SH DESCRIPTION
The QDropEvent class provides an event which is sent when a drag and drop is completed.
The TQDropEvent class provides an event which is sent when a drag and drop is completed.
.PP
When a widget accepts drop events, it will receive this event if it has accepted the most recent QDragEnterEvent or QDragMoveEvent sent to it.
When a widget accepts drop events, it will receive this event if it has accepted the most recent TQDragEnterEvent or TQDragMoveEvent sent to it.
.PP
The widget should use data() to extract the data in an appropriate format.
.PP
See also Drag And Drop Classes and Event Classes.
.SS "Member Type Documentation"
.SH "QDropEvent::Action"
.SH "TQDropEvent::Action"
This enum describes the action which a source requests that a target perform with dropped data.
.TP
\fCQDropEvent::Copy\fR - The default action. The source simply uses the data provided in the operation.
\fCTQDropEvent::Copy\fR - The default action. The source simply uses the data provided in the operation.
.TP
\fCQDropEvent::Link\fR - The source should somehow create a link to the location specified by the data.
\fCTQDropEvent::Link\fR - The source should somehow create a link to the location specified by the data.
.TP
\fCQDropEvent::Move\fR - The source should somehow move the object from the location specified by the data to a new location.
\fCTQDropEvent::Move\fR - The source should somehow move the object from the location specified by the data to a new location.
.TP
\fCQDropEvent::Private\fR - The target has special knowledge of the MIME type, which the source should respond to in a similar way to a Copy.
\fCTQDropEvent::Private\fR - The target has special knowledge of the MIME type, which the source should respond to in a similar way to a Copy.
.TP
\fCQDropEvent::UserAction\fR - The source and target can co-operate using special actions. This feature is not currently supported.
\fCTQDropEvent::UserAction\fR - The source and target can co-operate using special actions. This feature is not currently supported.
.PP
The Link and Move actions only makes sense if the data is a reference, for example, text/uri-list file lists (see QUriDrag).
The Link and Move actions only makes sense if the data is a reference, for example, text/uri-list file lists (see TQUriDrag).
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QDropEvent::QDropEvent ( const QPoint & pos, Type typ = Drop )"
.SH "TQDropEvent::TQDropEvent ( const QPoint & pos, Type typ = Drop )"
Constructs a drop event that drops a drop of type \fItyp\fR on point \fIpos\fR.
.SH "void QDropEvent::accept ( bool y = TRUE )"
Call this function to indicate whether the event provided data which your widget processed. Set \fIy\fR to TRUE (the default) if your widget could process the data, otherwise set \fIy\fR to FALSE. To get the data, use encodedData(), or preferably, the decode() methods of existing QDragObject subclasses, such as TQTextDrag::decode(), or your own subclasses.
.SH "void TQDropEvent::accept ( bool y = TRUE )"
Call this function to indicate whether the event provided data which your widget processed. Set \fIy\fR to TRUE (the default) if your widget could process the data, otherwise set \fIy\fR to FALSE. To get the data, use encodedData(), or preferably, the decode() methods of existing TQDragObject subclasses, such as TQTextDrag::decode(), or your own subclasses.
.PP
See also acceptAction().
.PP
Example: iconview/simple_dd/main.cpp.
.SH "void QDropEvent::acceptAction ( bool y = TRUE )"
.SH "void TQDropEvent::acceptAction ( bool y = TRUE )"
Call this to indicate that the action described by action() is accepted (i.e. if \fIy\fR is TRUE, which is the default), not merely the default copy action. If you call acceptAction(TRUE), there is no need to also call accept(TRUE).
.PP
Examples:
.)l dirview/dirview.cpp and fileiconview/qfileiconview.cpp.
.SH "Action QDropEvent::action () const"
.SH "Action TQDropEvent::action () const"
Returns the Action which the target is requesting to be performed with the data. If your application understands the action and can process the supplied data, call acceptAction(); if your application can process the supplied data but can only perform the Copy action, call accept().
.PP
Examples:
.)l dirview/dirview.cpp and fileiconview/qfileiconview.cpp.
.SH "QByteArray QDropEvent::data ( const char * f ) const"
.SH "QByteArray TQDropEvent::data ( const char * f ) const"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
Returns a byte array containing the drag's data, in \fIformat\fR.
.PP
data() normally needs to get the data from the drag source, which is potentially very slow, so it's advisable to call this function only if you're sure that you will need the data in \fIformat\fR.
@ -121,8 +121,8 @@ The resulting data will have a size of 0 if the format was not available.
.PP
See also format() and QByteArray::size().
.PP
Reimplemented from QMimeSource.
.SH "const char * QDropEvent::format ( int n = 0 ) const\fC [virtual]\fR"
Reimplemented from TQMimeSource.
.SH "const char * TQDropEvent::format ( int n = 0 ) const\fC [virtual]\fR"
Returns a string describing one of the available data types for this drag. Common examples are "text/plain" and "image/gif". If \fIn\fR is less than zero or greater than the number of available data types, format() returns 0.
.PP
This function is provided mainly for debugging. Most drop targets will use provides().
@ -131,40 +131,40 @@ See also data() and provides().
.PP
Example: iconview/main.cpp.
.PP
Reimplemented from QMimeSource.
.SH "void QDropEvent::ignore ()"
Reimplemented from TQMimeSource.
.SH "void TQDropEvent::ignore ()"
The opposite of accept(), i.e. you have ignored the drop event.
.PP
Example: fileiconview/qfileiconview.cpp.
.SH "bool QDropEvent::isAccepted () const"
.SH "bool TQDropEvent::isAccepted () const"
Returns TRUE if the drop target accepts the event; otherwise returns FALSE.
.SH "bool QDropEvent::isActionAccepted () const"
.SH "bool TQDropEvent::isActionAccepted () const"
Returns TRUE if the drop action was accepted by the drop site; otherwise returns FALSE.
Returns TRUE if this event provides format \fImimeType\fR; otherwise returns FALSE.
.PP
See also data().
.PP
Example: fileiconview/qfileiconview.cpp.
.PP
Reimplemented from QMimeSource.
.SH "void QDropEvent::setAction ( Action a )"
Reimplemented from TQMimeSource.
.SH "void TQDropEvent::setAction ( Action a )"
Sets the action to \fIa\fR. This is used internally, you should not need to call this in your code: the \fIsource\fR decides the action, not the target.
Sets the drop to happen at point \fInp\fR. You do not normally need to use this as it will be set internally before your widget receives the drop event.
.SH "TQWidget * QDropEvent::source () const"
.SH "TQWidget * TQDropEvent::source () const"
If the source of the drag operation is a widget in this application, this function returns that source, otherwise it returns 0. The source of the operation is the first parameter to drag object subclasses.
.PP
This is useful if your widget needs special behavior when dragging to itself, etc.
.PP
See QDragObject::QDragObject() and subclasses.
See TQDragObject::TQDragObject() and subclasses.
.SH "SEE ALSO"
.BR http://doc.trolltech.com/qdropevent.html
.BR http://doc.trolltech.com/tqdropevent.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
@ -11,7 +11,7 @@ TQIconDrag \- Supports drag and drop operations within a TQIconView
.SH SYNOPSIS
\fC#include <tqiconview.h>\fR
.PP
Inherits QDragObject.
Inherits TQDragObject.
.PP
.SS "Public Members"
.in +1c
@ -31,7 +31,7 @@ Inherits QDragObject.
.SS "Static Public Members"
.in +1c
.ti -1c
.BI "bool \fBcanDecode\fR ( QMimeSource * e )"
.BI "bool \fBcanDecode\fR ( TQMimeSource * e )"
.br
.in -1c
.SH DESCRIPTION
@ -41,11 +41,11 @@ A TQIconDrag object is used to maintain information about the positions of dragg
.PP
If you want to use the extended drag-and-drop functionality of TQIconView, create a TQIconDrag object in a reimplementation of TQIconView::dragObject(). Then create a TQIconDragItem for each item which should be dragged, set the data it represents with TQIconDragItem::setData(), and add each TQIconDragItem to the drag object using append().
.PP
The data in TQIconDragItems is stored in a QByteArray and is mime-typed (see QMimeSource and the Drag and Drop overview). If you want to use your own mime-types derive a class from TQIconDrag and reimplement format(), encodedData() and canDecode().
The data in TQIconDragItems is stored in a QByteArray and is mime-typed (see TQMimeSource and the Drag and Drop overview). If you want to use your own mime-types derive a class from TQIconDrag and reimplement format(), encodedData() and canDecode().
.PP
The fileiconview example program demonstrates the use of the TQIconDrag class including subclassing and reimplementing dragObject(), format(), encodedData() and canDecode(). See the files \fCqt/examples/fileiconview/qfileiconview.h\fR and \fCqt/examples/fileiconview/qfileiconview.cpp\fR.
.PP
See also QMimeSource::format() and Drag And Drop Classes.
See also TQMimeSource::format() and Drag And Drop Classes.
.BI "virtual void \fBdrawRubber\fR ( QPainter * p )"
.br
.ti -1c
.BI "virtual QDragObject * \fBdragObject\fR ()"
.BI "virtual TQDragObject * \fBdragObject\fR ()"
.br
.ti -1c
.BI "virtual void \fBstartDrag\fR ()"
@ -419,7 +419,7 @@ The simple approach to dragging items out of the icon view is to subclass TQIcon
.PP
.nf
.br
QDragObject *MyIconView::dragObject()
TQDragObject *MyIconView::dragObject()
.br
{
.br
@ -429,13 +429,13 @@ The simple approach to dragging items out of the icon view is to subclass TQIcon
.br
.fi
.PP
In this example we create a TQTextDrag object, (derived from QDragObject), containing the item's label and return it as the drag object. We could just as easily have created a TQImageDrag from the item's pixmap and returned that instead.
In this example we create a TQTextDrag object, (derived from TQDragObject), containing the item's label and return it as the drag object. We could just as easily have created a TQImageDrag from the item's pixmap and returned that instead.
.PP
TQIconViews and their TQIconViewItems can also be the targets of drag and drops. To make the TQIconView itself able to accept drops connect to the dropped() signal. When a drop occurs this signal will be emitted with a QDragEvent and a TQValueList of TQIconDragItems. To make a TQIconViewItem into a drop target subclass TQIconViewItem and reimplement TQIconViewItem::acceptDrop() and TQIconViewItem::dropped().
TQIconViews and their TQIconViewItems can also be the targets of drag and drops. To make the TQIconView itself able to accept drops connect to the dropped() signal. When a drop occurs this signal will be emitted with a TQDragEvent and a TQValueList of TQIconDragItems. To make a TQIconViewItem into a drop target subclass TQIconViewItem and reimplement TQIconViewItem::acceptDrop() and TQIconViewItem::dropped().
Returns the QDragObject that should be used for drag-and-drop. This function is called by the icon view when starting a drag to get the dragobject that should be used for the drag. Subclasses may reimplement this.
Returns the TQDragObject that should be used for drag-and-drop. This function is called by the icon view when starting a drag to get the dragobject that should be used for the drag. Subclasses may reimplement this.
.PP
See also TQIconDrag.
.PP
@ -588,7 +588,7 @@ The default implementation fills \fIr\fR with the viewport's backgroundBrush().
See also contentsX, contentsY, and drawContents().
.SH "void TQIconView::drawRubber ( QPainter * p )\fC [virtual protected]\fR"
This signal is emitted when a drop event occurs in the viewport (but not on any icon) which the icon view itself can't handle.
.PP
\fIe\fR provides all the information about the drop. If the drag object of the drop was a TQIconDrag, \fIlst\fR contains the list of the dropped items. You can get the data using TQIconDragItem::data() on each item. If the \fIlst\fR is empty, i.e. the drag was not a TQIconDrag, you have to decode the data in \fIe\fR and work with that.
@ -282,8 +282,8 @@ Constructs an icon view item and inserts it into the icon view \fIparent\fR usin
Constructs an icon view item and inserts it into the icon view \fIparent\fR using \fItext\fR as the text and \fIpicture\fR as the icon, after the icon view item \fIafter\fR.
This function is called when something is dropped on the item. \fIe\fR provides all the information about the drop. If the drag object of the drop was a TQIconDrag, \fIlst\fR contains the list of the dropped items. You can get the data by calling TQIconDragItem::data() on each item. If the \fIlst\fR is empty, i.e. the drag was not a TQIconDrag, you must decode the data in \fIe\fR and work with that.
.PP
The default implementation does nothing; subclasses may reimplement this function.
.BI "void \fBitemRenamed\fR ( QListViewItem * item, int col, const TQString & text )"
@ -370,7 +370,7 @@ Inherits QScrollView.
.BI "virtual void \fBcontentsMouseDoubleClickEvent\fR ( QMouseEvent * e )"
.br
.ti -1c
.BI "virtual QDragObject * \fBdragObject\fR ()"
.BI "virtual TQDragObject * \fBdragObject\fR ()"
.br
.ti -1c
.BI "virtual void \fBstartDrag\fR ()"
@ -654,15 +654,15 @@ This signal is emitted whenever an item is double-clicked. It's emitted on the s
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. (use doubleClicked( QListViewItem *, const QPoint&, int ))
.PP
This signal is emitted whenever an item is double-clicked. It's emitted on the second button press, not the second button release. \fIitem\fR is the list view item on which the user did the double-click.
If the user presses the mouse on an item and starts moving the mouse, and the item allow dragging (see QListViewItem::setDragEnabled()), this function is called to get a drag object and a drag is started unless dragObject() returns 0.
.PP
By default this function returns 0. You should reimplement it and create a QDragObject depending on the selected items.
By default this function returns 0. You should reimplement it and create a TQDragObject depending on the selected items.
.SH "void QListView::drawContentsOffset ( QPainter * p, int ox, int oy, int cx, int cy, int cw, int ch )\fC [virtual protected]\fR"
Calls QListViewItem::paintCell() and QListViewItem::paintBranches() as necessary for all list view items that require repainting in the \fIcw\fR pixels wide and \fIch\fR pixels high bounding rectangle starting at position \fIcx\fR, \fIcy\fR with offset \fIox\fR, \fIoy\fR. Uses the painter \fIp\fR.
.PP
Reimplemented from QScrollView.
.SH "void QListView::dropped ( QDropEvent * e )\fC [signal]\fR"
.SH "void QListView::dropped ( TQDropEvent * e )\fC [signal]\fR"
This signal is emitted, when a drop event occurred on the viewport (not onto an item).
.PP
\fIe\fR provides all the information about the drop.
The QMacMime class maps open-standard MIME to Mac flavors.
The TQMacMime class maps open-standard MIME to Mac flavors.
.PP
Qt's drag-and-drop and clipboard facilities use the MIME standard. On X11, this maps trivially to the Xdnd protocol, but on Mac although some applications use MIME types to describe clipboard formats, others use arbitrary non-standardized naming conventions, or unnamed built-in Mac formats.
.PP
By instantiating subclasses of QMacMime that provide conversions between Mac flavors and MIME formats, you can convert proprietary clipboard formats to MIME formats.
By instantiating subclasses of TQMacMime that provide conversions between Mac flavors and MIME formats, you can convert proprietary clipboard formats to MIME formats.
.PP
Qt has predefined support for the following Mac flavors:
.TP
@ -71,61 +71,61 @@ kScrapFlavorTypeText - converted to "text/plain;charset=system" or "text/plain"
.TP
kScrapFlavorTypePicture - converted to "image/format", where format is a TQt image format, and supported by TQImageDrag.
.TP
kDragFlavorTypeHFS - converted to "text/uri-list", and supported by QUriDrag.
kDragFlavorTypeHFS - converted to "text/uri-list", and supported by TQUriDrag.
.PP
You can check if a MIME type is convertible using canConvert() and can perform conversions with convertToMime() and convertFromMime().
.PP
See also Drag And Drop Classes, Input/Output and Networking, and Miscellaneous Classes.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QMacMime::QMacMime ( char t )"
.SH "TQMacMime::TQMacMime ( char t )"
Constructs a new conversion object of type \fIt\fR, adding it to the globally accessed list of available convertors.
.SH "QMacMime::~QMacMime ()\fC [virtual]\fR"
.SH "TQMacMime::~TQMacMime ()\fC [virtual]\fR"
Destroys a conversion object, removing it from the global list of available convertors.
.SH "TQPtrList<QMacMime> QMacMime::all ( QMacMimeType t )\fC [static]\fR"
Returns a list of all currently defined QMacMime objects of type \fIt\fR.
Returns the most-recently created QMacMime of type \fIt\fR that can convert between the \fImime\fR and \fIflav\fR formats. Returns 0 if no such convertor exists.
Returns the most-recently created TQMacMime of type \fIt\fR that can convert between the \fImime\fR and \fIflav\fR formats. Returns 0 if no such convertor exists.
Returns the number of Mac flavors supported by this convertor.
.PP
All subclasses must reimplement this pure virtual function.
.SH "int QMacMime::flavor ( int index )\fC [pure virtual]\fR"
.SH "int TQMacMime::flavor ( int index )\fC [pure virtual]\fR"
Returns the Mac flavor supported by this convertor that is ordinarily at position \fIindex\fR. This means that flavor(0) returns the first Mac flavor supported, and flavor(countFlavors()-1) returns the last. If \fIindex\fR is out of range the return value is undefined.
.PP
All subclasses must reimplement this pure virtual function.
Returns TRUE if the object can provide the data in format \fImimeType\fR; otherwise returns FALSE.
.PP
If you inherit from QMimeSource, for consistency reasons it is better to implement the more abstract canDecode() functions such as TQTextDrag::canDecode() and TQImageDrag::canDecode().
If you inherit from TQMimeSource, for consistency reasons it is better to implement the more abstract canDecode() functions such as TQTextDrag::canDecode() and TQImageDrag::canDecode().
.PP
Example: iconview/simple_dd/main.cpp.
.PP
Reimplemented in QDropEvent.
.SH "int QMimeSource::serialNumber () const"
Reimplemented in TQDropEvent.
.SH "int TQMimeSource::serialNumber () const"
Returns the mime source's globally unique serial number.
.SH "SEE ALSO"
.BR http://doc.trolltech.com/qmimesource.html
.BR http://doc.trolltech.com/tqmimesource.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
.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,
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.
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.
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.
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.
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.
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.
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.
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().
.BI "virtual void \fBcontentsWheelEvent\fR ( QWheelEvent * e )"
@ -521,19 +521,19 @@ See also visibleWidth and visibleHeight.
This event handler is called whenever the QScrollView receives a contextMenuEvent() in \fIe\fR: the mouse position is translated to be a point on the contents.
This event handler is called whenever the QScrollView receives a dropEvent(): the drop position is translated to be a point on the contents.
.PP
Reimplemented in QTable.
@ -851,7 +851,7 @@ This property holds whether autoscrolling in drag move events is enabled.
.PP
If this property is set to TRUE (the default), the QScrollView automatically scrolls the contents in drag move events if the user moves the cursor close to a border of the view. Of course this works only if the viewport accepts drops. Specifying FALSE disables this autoscroll feature.
.PP
\fBWarning:\fR Enabling this property might not be enough to effectively turn on autoscrolling. If you put a custom widget in the QScrollView, you might need to call QDragEvent::ignore() on the event in the dragEnterEvent() and dragMoveEvent() reimplementations.
\fBWarning:\fR Enabling this property might not be enough to effectively turn on autoscrolling. If you put a custom widget in the QScrollView, you might need to call TQDragEvent::ignore() on the event in the dragEnterEvent() and dragMoveEvent() reimplementations.
.PP
Set this property's value with setDragAutoScroll() and get this property's value with dragAutoScroll().
@ -85,15 +85,15 @@ The font is used as a basis for the text rendering. When using rich text renderi
.br
.fi
.PP
\fIcontext\fR is the optional context of the rich text object. This becomes important if \fItext\fR contains relative references, for example within image tags. QSimpleRichText always uses the default mime source factory (see QMimeSourceFactory::defaultFactory()) to resolve those references. The context will then be used to calculate the absolute path. See QMimeSourceFactory::makeAbsolute() for details.
\fIcontext\fR is the optional context of the rich text object. This becomes important if \fItext\fR contains relative references, for example within image tags. QSimpleRichText always uses the default mime source factory (see TQMimeSourceFactory::defaultFactory()) to resolve those references. The context will then be used to calculate the absolute path. See TQMimeSourceFactory::makeAbsolute() for details.
.PP
The \fIsheet\fR is an optional style sheet. If it is 0, the default style sheet will be used (see TQStyleSheet::defaultSheet()).
Constructs a QSimpleRichText from the rich text string \fItext\fR and the font \fIfnt\fR.
.PP
This is a slightly more complex constructor for QSimpleRichText that takes an additional mime source factory \fIfactory\fR, a page break parameter \fIpageBreak\fR and a bool \fIlinkUnderline\fR. \fIlinkColor\fR is only provided for compatibility, but has no effect, as QColorGroup's QColorGroup::link() color is used now.
.PP
\fIcontext\fR is the optional context of the rich text object. This becomes important if \fItext\fR contains relative references, for example within image tags. QSimpleRichText always uses the default mime source factory (see QMimeSourceFactory::defaultFactory()) to resolve those references. The context will then be used to calculate the absolute path. See QMimeSourceFactory::makeAbsolute() for details.
\fIcontext\fR is the optional context of the rich text object. This becomes important if \fItext\fR contains relative references, for example within image tags. QSimpleRichText always uses the default mime source factory (see TQMimeSourceFactory::defaultFactory()) to resolve those references. The context will then be used to calculate the absolute path. See TQMimeSourceFactory::makeAbsolute() for details.
.PP
The \fIsheet\fR is an optional style sheet. If it is 0, the default style sheet will be used (see TQStyleSheet::defaultSheet()).
Sets the encoded data of this drag object to \fIencodedData\fR. The encoded data is what's delivered to the drop sites. It must be in a strictly defined and portable format.
.PP
The drag object can't be dropped (by the user) until this function
has been called.
.SH "SEE ALSO"
.BR http://doc.trolltech.com/qstoreddrag.html
.BR http://doc.trolltech.com/tqstoreddrag.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
\fBThis function is under development and is subject to change.\fR
.PP
Generates an internal object for the tag called \fIname\fR, given the attributes \fIattr\fR, and using additional information provided by the mime source factory \fIfactory\fR.
.PP
\fIcontext\fR is the optional context of the document, i.e. the path to look for relative links. This becomes important if the text contains relative references, for example within image tags. QSimpleRichText always uses the default mime source factory (see QMimeSourceFactory::defaultFactory()) to resolve these references. The context will then be used to calculate the absolute path. See QMimeSourceFactory::makeAbsolute() for details.
\fIcontext\fR is the optional context of the document, i.e. the path to look for relative links. This becomes important if the text contains relative references, for example within image tags. QSimpleRichText always uses the default mime source factory (see TQMimeSourceFactory::defaultFactory()) to resolve these references. The context will then be used to calculate the absolute path. See TQMimeSourceFactory::makeAbsolute() for details.
.PP
\fIemptyTag\fR and \fIdoc\fR are for internal use only.
.BI "void \fBcontextMenuRequested\fR ( int row, int col, const QPoint & pos )"
.br
.ti -1c
.BI "void \fBdropped\fR ( QDropEvent * e )"
.BI "void \fBdropped\fR ( TQDropEvent * e )"
.br
.in -1c
.SS "Properties"
@ -399,19 +399,19 @@ Inherited by TQDataTable.
.BI "void \fBsetEditMode\fR ( EditMode mode, int row, int col )"
.br
.ti -1c
.BI "virtual void \fBcontentsDragEnterEvent\fR ( QDragEnterEvent * e )"
.BI "virtual void \fBcontentsDragEnterEvent\fR ( TQDragEnterEvent * e )"
.br
.ti -1c
.BI "virtual void \fBcontentsDragMoveEvent\fR ( QDragMoveEvent * e )"
.BI "virtual void \fBcontentsDragMoveEvent\fR ( TQDragMoveEvent * e )"
.br
.ti -1c
.BI "virtual void \fBcontentsDragLeaveEvent\fR ( QDragLeaveEvent * e )"
.BI "virtual void \fBcontentsDragLeaveEvent\fR ( TQDragLeaveEvent * e )"
.br
.ti -1c
.BI "virtual void \fBcontentsDropEvent\fR ( QDropEvent * e )"
.BI "virtual void \fBcontentsDropEvent\fR ( TQDropEvent * e )"
.br
.ti -1c
.BI "virtual QDragObject * \fBdragObject\fR ()"
.BI "virtual TQDragObject * \fBdragObject\fR ()"
.br
.ti -1c
.BI "virtual void \fBstartDrag\fR ()"
@ -693,23 +693,23 @@ Returns the width of column \fIcol\fR.
See also setColumnWidth() and rowHeight().
.SH "void QTable::columnWidthChanged ( int col )\fC [virtual protected slot]\fR"
This function should be called whenever the column width of \fIcol\fR has been changed. It updates the geometry of any affected columns and repaints the table to reflect the changes it has made.
.SH "void QTable::contentsDragEnterEvent ( QDragEnterEvent * e )\fC [virtual protected]\fR"
This event handler is called whenever a QTable object receives a QDragEnterEvent \fIe\fR, i.e. when the user pressed the mouse button to drag something.
.SH "void QTable::contentsDragEnterEvent ( TQDragEnterEvent * e )\fC [virtual protected]\fR"
This event handler is called whenever a QTable object receives a TQDragEnterEvent \fIe\fR, i.e. when the user pressed the mouse button to drag something.
.PP
The focus is moved to the cell where the QDragEnterEvent occurred.
The focus is moved to the cell where the TQDragEnterEvent occurred.
.PP
Reimplemented from QScrollView.
.SH "void QTable::contentsDragLeaveEvent ( QDragLeaveEvent * e )\fC [virtual protected]\fR"
.SH "void QTable::contentsDragLeaveEvent ( TQDragLeaveEvent * e )\fC [virtual protected]\fR"
This event handler is called when a drag activity leaves \fIthis\fR QTable object with event \fIe\fR.
.PP
Reimplemented from QScrollView.
.SH "void QTable::contentsDragMoveEvent ( QDragMoveEvent * e )\fC [virtual protected]\fR"
This event handler is called whenever a QTable object receives a QDragMoveEvent \fIe\fR, i.e. when the user actually drags the mouse.
.SH "void QTable::contentsDragMoveEvent ( TQDragMoveEvent * e )\fC [virtual protected]\fR"
This event handler is called whenever a QTable object receives a TQDragMoveEvent \fIe\fR, i.e. when the user actually drags the mouse.
.PP
The focus is moved to the cell where the QDragMoveEvent occurred.
The focus is moved to the cell where the TQDragMoveEvent occurred.
.PP
Reimplemented from QScrollView.
.SH "void QTable::contentsDropEvent ( QDropEvent * e )\fC [virtual protected]\fR"
.SH "void QTable::contentsDropEvent ( TQDropEvent * e )\fC [virtual protected]\fR"
This event handler is called when the user ends a drag and drop by dropping something onto \fIthis\fR QTable and thus triggers the drop event, \fIe\fR.
.PP
Reimplemented from QScrollView.
@ -778,10 +778,10 @@ See also TQt::ButtonState.
If this function returns TRUE, the table supports dragging.
If the user presses the mouse on a selected cell, starts moving (i.e. dragging), and dragEnabled() is TRUE, this function is called to obtain a drag object. A drag using this object begins immediately unless dragObject() returns 0.
.PP
By default this function returns 0. You might reimplement it and create a QDragObject depending on the selected items.
By default this function returns 0. You might reimplement it and create a TQDragObject depending on the selected items.
.PP
See also dropped().
.SH "void QTable::drawContents ( QPainter * p, int cx, int cy, int cw, int ch )\fC [virtual protected]\fR"
@ -790,7 +790,7 @@ Draws the table contents on the painter \fIp\fR. This function is optimized so t
Additionally, drawContents() highlights the current cell.
.PP
Reimplemented from QScrollView.
.SH "void QTable::dropped ( QDropEvent * e )\fC [signal]\fR"
.SH "void QTable::dropped ( TQDropEvent * e )\fC [signal]\fR"
This signal is emitted when a drop event occurred on the table.
@ -95,7 +95,7 @@ This class extends TQTextEdit (in read-only mode), adding some navigation functi
.PP
TQTextBrowser provides backward() and forward() slots which you can use to implement Back and Forward buttons. The home() slot sets the text to the very first document displayed. The linkClicked() signal is emitted when the user clicks a link.
.PP
By using TQTextEdit::setMimeSourceFactory() you can provide your own subclass of QMimeSourceFactory. This makes it possible to access data from anywhere, for example from a network or from a database. See QMimeSourceFactory::data() for details.
By using TQTextEdit::setMimeSourceFactory() you can provide your own subclass of TQMimeSourceFactory. This makes it possible to access data from anywhere, for example from a network or from a database. See TQMimeSourceFactory::data() for details.
.PP
If you intend using the mime factory to read the data directly from the file system, you may have to specify the encoding for the file extension you are using. For example:
.PP
@ -196,7 +196,7 @@ Setting this property uses the mimeSourceFactory() to lookup the named document.
.PP
If the first tag in the document is \fC<qt type=detail>\fR, the document is displayed as a popup rather than as new document in the browser window itself. Otherwise, the document is displayed normally in the text browser with the text set to the contents of the named document with setText().
.PP
If you are using the filesystem access capabilities of the mime source factory, you must ensure that the factory knows about the encoding of specified files; otherwise no data will be available. The default factory handles a couple of common file extensions such as \fC*.html\fR and \fC*.txt\fR with reasonable defaults. See QMimeSourceFactory::data() for details.
If you are using the filesystem access capabilities of the mime source factory, you must ensure that the factory knows about the encoding of specified files; otherwise no data will be available. The default factory handles a couple of common file extensions such as \fC*.html\fR and \fC*.txt\fR with reasonable defaults. See TQMimeSourceFactory::data() for details.
.PP
Set this property's value with setSource() and get this property's value with source().
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Attempts to decode the dropped information in \fIe\fR into \fIstr\fR. Returns TRUE if successful; otherwise returns FALSE. If \fIsubtype\fR is null, any text subtype is accepted; otherwise only the specified \fIsubtype\fR is accepted.
@ -551,7 +551,7 @@ The text edit documentation uses the following concepts:
.TP
\fIcurrent paragraph\fR -- the paragraph which contains the cursor.
.PP
TQTextEdit can display images (using QMimeSourceFactory), lists and tables. If the text is too large to view within the text edit's viewport, scrollbars will appear. The text edit can load both plain text and HTML files (a subset of HTML 3.2 and 4). The rendering style and the set of valid tags are defined by a styleSheet(). Custom tags can be created and placed in a custom style sheet. Change the style sheet with setStyleSheet(); see TQStyleSheet for details. The images identified by image tags are displayed if they can be interpreted using the text edit's QMimeSourceFactory; see setMimeSourceFactory().
TQTextEdit can display images (using TQMimeSourceFactory), lists and tables. If the text is too large to view within the text edit's viewport, scrollbars will appear. The text edit can load both plain text and HTML files (a subset of HTML 3.2 and 4). The rendering style and the set of valid tags are defined by a styleSheet(). Custom tags can be created and placed in a custom style sheet. Change the style sheet with setStyleSheet(); see TQStyleSheet for details. The images identified by image tags are displayed if they can be interpreted using the text edit's TQMimeSourceFactory; see setMimeSourceFactory().
.PP
If you want a text browser with more navigation use TQTextBrowser. If you just need to display a small piece of rich text use QLabel or QSimpleRichText.
.PP
@ -617,7 +617,7 @@ l - l. Keypresses Action UpArrow Move one line up DownArrow Move one line down L
.PP
The text edit may be able to provide some meta-information. For example, the documentTitle() function will return the text from within HTML \fC<title>\fR tags.
.PP
The text displayed in a text edit has a \fIcontext\fR. The context is a path which the text edit's QMimeSourceFactory uses to resolve the locations of files and images. It is passed to the mimeSourceFactory() when quering data. (See TQTextEdit() and context().)
The text displayed in a text edit has a \fIcontext\fR. The context is a path which the text edit's TQMimeSourceFactory uses to resolve the locations of files and images. It is passed to the mimeSourceFactory() when quering data. (See TQTextEdit() and context().)
Constructs a TQTextEdit called \fIname\fR, with parent \fIparent\fR. The text edit will display the text \fItext\fR using context \fIcontext\fR.
.PP
The \fIcontext\fR is a path which the text edit's QMimeSourceFactory uses to resolve the locations of files and images. It is passed to the mimeSourceFactory() when quering data.
The \fIcontext\fR is a path which the text edit's TQMimeSourceFactory uses to resolve the locations of files and images. It is passed to the mimeSourceFactory() when quering data.
.PP
For example if the text contains an image tag, \fC<img src="image.png">\fR, and the context is "path/to/look/in", the QMimeSourceFactory will try to load the image from" path/to/look/in/image.png". If the tag was \fC<img src="/image.png">\fR, the context will not be used (because QMimeSourceFactory recognizes that we have used an absolute path) and will try to load "/image.png". The context is applied in exactly the same way to \fIhrefs\fR, for example, \fC<a href="target.html">Target</a>\fR, would resolve to" path/to/look/in/target.html".
For example if the text contains an image tag, \fC<img src="image.png">\fR, and the context is "path/to/look/in", the TQMimeSourceFactory will try to load the image from" path/to/look/in/image.png". If the tag was \fC<img src="/image.png">\fR, the context will not be used (because TQMimeSourceFactory recognizes that we have used an absolute path) and will try to load "/image.png". The context is applied in exactly the same way to \fIhrefs\fR, for example, \fC<a href="target.html">Target</a>\fR, would resolve to" path/to/look/in/target.html".
Constructs an empty TQTextEdit called \fIname\fR, with parent \fIparent\fR.
.SH "int TQTextEdit::alignment () const"
@ -817,7 +817,7 @@ Returns the color of the current format.
.PP
See also setColor() and paper.
.SH "TQString TQTextEdit::context () const"
Returns the context of the text edit. The context is a path which the text edit's QMimeSourceFactory uses to resolve the locations of files and images.
Returns the context of the text edit. The context is a path which the text edit's TQMimeSourceFactory uses to resolve the locations of files and images.
.PP
See also text.
.PP
@ -1001,8 +1001,8 @@ Returns the number of lines in paragraph \fIpara\fR, or -1 if there is no paragr
Returns TRUE if hypertext links will be underlined; otherwise returns FALSE. See the "linkUnderline" property for details.
.SH "int TQTextEdit::maxLogLines ()\fC [slot]\fR"
Returns the maximum number of lines TQTextEdit can hold in LogText mode. By default the number of lines is unlimited, which is signified by a value of -1.
Returns the TQMimeSourceFactory which is being used by this text edit.
.PP
See also setMimeSourceFactory().
.PP
@ -1126,8 +1126,8 @@ Sets whether hypertext links will be underlined. See the "linkUnderline" propert
Sets the maximum number of lines a TQTextEdit can hold in LogText mode to \fIlimit\fR. If \fIlimit\fR is -1 (the default), this signifies an unlimited number of lines.
.PP
\fBWarning:\fR Never use formatting tags that span more than one line when the maximum log lines is set. When lines are removed from the top of the buffer it could result in an unbalanced tag pair, i.e. the left formatting tag is removed before the right one.
Sets the text edit's mimesource factory to \fIfactory\fR. See TQMimeSourceFactory for further details.
.PP
See also mimeSourceFactory().
.SH "void TQTextEdit::setModified ( bool m )\fC [virtual slot]\fR"
@ -1179,7 +1179,7 @@ Changes the text of the text edit to the string \fItext\fR and the context to \f
.PP
For rich text the rendering style and available tags are defined by a styleSheet(); see TQStyleSheet for details.
.PP
The optional \fIcontext\fR is a path which the text edit's QMimeSourceFactory uses to resolve the locations of files and images. (See TQTextEdit::TQTextEdit().) It is passed to the text edit's QMimeSourceFactory when quering data.
The optional \fIcontext\fR is a path which the text edit's TQMimeSourceFactory uses to resolve the locations of files and images. (See TQTextEdit::TQTextEdit().) It is passed to the text edit's TQMimeSourceFactory when quering data.
.PP
Note that the undo/redo history is cleared by this function.
.BI "bool \fBcanDecode\fR ( const QMimeSource * e )"
.BI "bool \fBcanDecode\fR ( const TQMimeSource * e )"
.br
.ti -1c
.BI "bool \fBdecode\fR ( const QMimeSource * e, TQStrList & l )"
.BI "bool \fBdecode\fR ( const TQMimeSource * e, TQStrList & l )"
.br
.ti -1c
.BI "bool \fBdecodeToUnicodeUris\fR ( const QMimeSource * e, TQStringList & l )"
.BI "bool \fBdecodeToUnicodeUris\fR ( const TQMimeSource * e, TQStringList & l )"
.br
.ti -1c
.BI "bool \fBdecodeLocalFiles\fR ( const QMimeSource * e, TQStringList & l )"
.BI "bool \fBdecodeLocalFiles\fR ( const TQMimeSource * e, TQStringList & l )"
.br
.in -1c
.SH DESCRIPTION
The QUriDrag class provides a drag object for a list of URI references.
The TQUriDrag class provides a drag object for a list of URI references.
.PP
URIs are a useful way to refer to files that may be distributed across multiple machines. A URI will often refer to a file on a machine local to both the drag source and the drop target, so the URI can be equivalent to passing a file name but is more extensible.
.PP
@ -77,57 +77,57 @@ Static functions are provided to convert between filenames and URIs, e.g. uriToL
Constructs an object to drag the list of URIs in \fIuris\fR. The \fIdragSource\fR and \fIname\fR arguments are passed on to QStoredDrag. Note that URIs are always in escaped UTF8 encoding.
Constructs an object to drag. You must call setUris() before you start the drag(). Passes \fIdragSource\fR and \fIname\fR to the QStoredDrag constructor.
Constructs an object to drag the list of URIs in \fIuris\fR. The \fIdragSource\fR and \fIname\fR arguments are passed on to TQStoredDrag. Note that URIs are always in escaped UTF8 encoding.
Constructs an object to drag. You must call setUris() before you start the drag(). Passes \fIdragSource\fR and \fIname\fR to the TQStoredDrag constructor.
.SH "TQUriDrag::~TQUriDrag ()"
Destroys the object.
.SH "bool QUriDrag::canDecode ( const QMimeSource * e )\fC [static]\fR"
.SH "bool TQUriDrag::canDecode ( const TQMimeSource * e )\fC [static]\fR"
Returns TRUE if decode() would be able to decode \fIe\fR; otherwise returns FALSE.
.SH "bool QUriDrag::decode ( const QMimeSource * e, TQStrList & l )\fC [static]\fR"
.SH "bool TQUriDrag::decode ( const TQMimeSource * e, TQStrList & l )\fC [static]\fR"
Decodes URIs from \fIe\fR, placing the result in \fIl\fR (which is first cleared).
.PP
Returns TRUE if \fIe\fR contained a valid list of URIs; otherwise returns FALSE.
.PP
Example: dirview/dirview.cpp.
.SH "bool QUriDrag::decodeLocalFiles ( const QMimeSource * e, TQStringList & l )\fC [static]\fR"
.SH "bool TQUriDrag::decodeLocalFiles ( const TQMimeSource * e, TQStringList & l )\fC [static]\fR"
Decodes URIs from the mime source event \fIe\fR, converts them to local files if they refer to local files, and places them in \fIl\fR (which is first cleared).
.PP
Returns TRUE if \fIcontained\fR a valid list of URIs; otherwise returns FALSE. The list will be empty if no URIs were local files.
.PP
Example: fileiconview/qfileiconview.cpp.
.SH "bool QUriDrag::decodeToUnicodeUris ( const QMimeSource * e, TQStringList & l )\fC [static]\fR"
.SH "bool TQUriDrag::decodeToUnicodeUris ( const TQMimeSource * e, TQStringList & l )\fC [static]\fR"
Decodes URIs from the mime source event \fIe\fR, converts them to Unicode URIs (only useful for displaying to humans), placing them in \fIl\fR (which is first cleared).
.PP
Returns TRUE if \fIcontained\fR a valid list of URIs; otherwise returns FALSE.
@ -1290,26 +1290,26 @@ Frees up window system resources. Destroys the widget window if \fIdestroyWindow
destroy() calls itself recursively for all the child widgets, passing \fIdestroySubWindows\fR for the \fIdestroyWindow\fR parameter. To have more control over destruction of subwidgets, destroy subwidgets selectively first.
.PP
This function is usually called from the TQWidget destructor.
@ -103,7 +103,7 @@ Subclass TQWidgetFactory. Then reimplement this function to create and return an
where MyWidgetFactory is your TQWidgetFactory subclass.
.IP
.SH "void TQWidgetFactory::loadImages ( const TQString & dir )\fC [static]\fR"
If you use a pixmap collection (which is the default for new projects) rather than saving the pixmaps within the .ui XML file, you must load the pixmap collection. TQWidgetFactory looks in the default QMimeSourceFactory for the pixmaps. Either add it there manually, or call this function and specify the directory where the images can be found, as \fIdir\fR. This is normally the directory called \fCimages\fR in the project's directory.
If you use a pixmap collection (which is the default for new projects) rather than saving the pixmaps within the .ui XML file, you must load the pixmap collection. TQWidgetFactory looks in the default TQMimeSourceFactory for the pixmaps. Either add it there manually, or call this function and specify the directory where the images can be found, as \fIdir\fR. This is normally the directory called \fCimages\fR in the project's directory.
The QWindowsMime class maps open-standard MIME to Window Clipboard formats.
The TQWindowsMime class maps open-standard MIME to Window Clipboard formats.
.PP
Qt's drag-and-drop and clipboard facilities use the MIME standard. On X11, this maps trivially to the Xdnd protocol, but on Windows although some applications use MIME types to describe clipboard formats, others use arbitrary non-standardized naming conventions, or unnamed built-in formats of Windows.
.PP
By instantiating subclasses of QWindowsMime that provide conversions between Windows Clipboard and MIME formats, you can convert proprietary clipboard formats to MIME formats.
By instantiating subclasses of TQWindowsMime that provide conversions between Windows Clipboard and MIME formats, you can convert proprietary clipboard formats to MIME formats.
.PP
Qt has predefined support for the following Windows Clipboard formats:
.TP
@ -74,7 +74,7 @@ CF_TEXT - converted to "text/plain;charset=system" or "text/plain" and supported
.TP
CF_DIB - converted to "image/*", where * is a TQt image format, and supported by TQImageDrag.
.TP
CF_HDROP - converted to "text/uri-list", and supported by QUriDrag.
CF_HDROP - converted to "text/uri-list", and supported by TQUriDrag.
.PP
An example use of this class would be to map the Windows Metafile clipboard format (CF_METAFILEPICT) to and from the MIME type "image/x-wmf". This conversion might simply be adding or removing a header, or even just passing on the data. See the Drag-and-Drop documentation for more information on choosing and definition MIME types.
.PP
@ -82,57 +82,57 @@ You can check if a MIME type is convertible using canConvert() and can perform c
.PP
See also Drag And Drop Classes, Input/Output and Networking, and Miscellaneous Classes.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QWindowsMime::QWindowsMime ()"
.SH "TQWindowsMime::TQWindowsMime ()"
Constructs a new conversion object, adding it to the globally accessed list of available convertors.
Returns TRUE if the convertor can convert (both ways) between \fImime\fR and \fIcf\fR; otherwise returns FALSE.
.PP
All subclasses must reimplement this pure virtual function.
.SH "int QWindowsMime::cf ( int index )\fC [pure virtual]\fR"
.SH "int TQWindowsMime::cf ( int index )\fC [pure virtual]\fR"
Returns the Windows Clipboard format supported by this convertor that is ordinarily at position \fIindex\fR. This means that cf(0) returns the first Windows Clipboard format supported, and cf(countCf()-1) returns the last. If \fIindex\fR is out of range the return value is undefined.
.PP
All subclasses must reimplement this pure virtual function.