From 628b0bb74c3fc327efff8add9c73ada04b1cbea2 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 7 Jul 2024 13:06:00 +0900 Subject: Rename drag-n-drop nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/annotated.html | 24 +-- doc/html/classchart.html | 8 +- doc/html/classes.html | 24 +-- doc/html/desktop-example.html | 16 +- doc/html/dirview-example.html | 66 +++--- doc/html/dnd.html | 30 +-- doc/html/draganddrop.html | 22 +- doc/html/environment.html | 2 +- doc/html/events.html | 8 +- doc/html/fileiconview-example.html | 60 +++--- doc/html/functions.html | 132 ++++++------ doc/html/headerfilesynonyms | 26 +-- doc/html/headers.html | 6 +- doc/html/hierarchy.html | 26 +-- doc/html/iconview-example.html | 14 +- doc/html/iconview-simple_dd-main-cpp.html | 18 +- doc/html/iconview-simple_dd-main-h.html | 12 +- doc/html/index | 210 +++++++++---------- doc/html/io.html | 8 +- doc/html/misc.html | 6 +- doc/html/ntqclipboard.html | 20 +- doc/html/ntqdragobject.html | 220 -------------------- doc/html/ntqdropsite.html | 75 ------- doc/html/ntqevent.html | 10 +- doc/html/ntqlistview.html | 6 +- doc/html/ntqpixmap.html | 2 +- doc/html/ntqscrollview.html | 8 +- doc/html/ntqsimplerichtext.html | 10 +- doc/html/ntqtable.html | 22 +- doc/html/ntqwhatsthis.html | 2 +- doc/html/porting.html | 2 +- doc/html/propertydocs | 4 +- doc/html/qcolordrag-members.html | 106 ---------- doc/html/qcolordrag.html | 98 --------- doc/html/qdragenterevent-members.html | 65 ------ doc/html/qdragenterevent.html | 73 ------- doc/html/qdragleaveevent-members.html | 49 ----- doc/html/qdragleaveevent.html | 72 ------- doc/html/qdragmoveevent-members.html | 65 ------ doc/html/qdragmoveevent.html | 105 ---------- doc/html/qdragobject-h.html | 323 ----------------------------- doc/html/qdragobject-members.html | 103 --------- doc/html/qdropevent-members.html | 64 ------ doc/html/qdropevent.html | 225 -------------------- doc/html/qdropsite-h.html | 104 ---------- doc/html/qdropsite-members.html | 48 ----- doc/html/qevent-h.html | 2 +- doc/html/qlistviewitem.html | 6 +- doc/html/qmacmime-members.html | 59 ------ doc/html/qmacmime.html | 181 ---------------- doc/html/qmime-h.html | 245 ---------------------- doc/html/qmimesource-members.html | 52 ----- doc/html/qmimesource.html | 109 ---------- doc/html/qmimesourcefactory-members.html | 63 ------ doc/html/qmimesourcefactory.html | 277 ------------------------- doc/html/qstoreddrag-members.html | 104 ---------- doc/html/qstoreddrag.html | 93 --------- doc/html/qt.dcf | 288 ++++++++++++------------- doc/html/quridrag-members.html | 116 ----------- doc/html/quridrag.html | 187 ----------------- doc/html/qwindowsmime-members.html | 60 ------ doc/html/qwindowsmime.html | 196 ----------------- doc/html/simple-application-example.html | 2 +- doc/html/simple-application.html | 2 +- doc/html/simple_dd-example.html | 30 +-- doc/html/tetrix-example.html | 2 +- doc/html/titleindex | 58 +++--- doc/html/tqaction-application-example.html | 2 +- doc/html/tqcolordrag-members.html | 106 ++++++++++ doc/html/tqcolordrag.html | 98 +++++++++ doc/html/tqdragenterevent-members.html | 65 ++++++ doc/html/tqdragenterevent.html | 73 +++++++ doc/html/tqdragleaveevent-members.html | 49 +++++ doc/html/tqdragleaveevent.html | 72 +++++++ doc/html/tqdragmoveevent-members.html | 65 ++++++ doc/html/tqdragmoveevent.html | 105 ++++++++++ doc/html/tqdragobject-h.html | 323 +++++++++++++++++++++++++++++ doc/html/tqdragobject-members.html | 103 +++++++++ doc/html/tqdragobject.html | 220 ++++++++++++++++++++ doc/html/tqdropevent-members.html | 64 ++++++ doc/html/tqdropevent.html | 225 ++++++++++++++++++++ doc/html/tqdropsite-h.html | 104 ++++++++++ doc/html/tqdropsite-members.html | 48 +++++ doc/html/tqdropsite.html | 75 +++++++ doc/html/tqicondrag-members.html | 24 +-- doc/html/tqicondrag.html | 12 +- doc/html/tqiconview-h.html | 2 +- doc/html/tqiconview.html | 14 +- doc/html/tqiconviewitem.html | 6 +- doc/html/tqimage.html | 2 +- doc/html/tqimagedrag-members.html | 28 +-- doc/html/tqimagedrag.html | 14 +- doc/html/tqmacmime-members.html | 59 ++++++ doc/html/tqmacmime.html | 181 ++++++++++++++++ doc/html/tqmime-h.html | 245 ++++++++++++++++++++++ doc/html/tqmimesource-members.html | 52 +++++ doc/html/tqmimesource.html | 109 ++++++++++ doc/html/tqmimesourcefactory-members.html | 63 ++++++ doc/html/tqmimesourcefactory.html | 277 +++++++++++++++++++++++++ doc/html/tqobject.html | 2 +- doc/html/tqstoreddrag-members.html | 104 ++++++++++ doc/html/tqstoreddrag.html | 93 +++++++++ doc/html/tqstylesheet.html | 8 +- doc/html/tqtextbrowser.html | 6 +- doc/html/tqtextdrag-members.html | 28 +-- doc/html/tqtextdrag.html | 14 +- doc/html/tqtextedit.html | 20 +- doc/html/tquridrag-members.html | 116 +++++++++++ doc/html/tquridrag.html | 187 +++++++++++++++++ doc/html/tqwidget.html | 16 +- doc/html/tqwidgetfactory.html | 2 +- doc/html/tqwindowsmime-members.html | 60 ++++++ doc/html/tqwindowsmime.html | 196 +++++++++++++++++ doc/html/whatsthis | 24 +-- 114 files changed, 4246 insertions(+), 4246 deletions(-) delete mode 100644 doc/html/ntqdragobject.html delete mode 100644 doc/html/ntqdropsite.html delete mode 100644 doc/html/qcolordrag-members.html delete mode 100644 doc/html/qcolordrag.html delete mode 100644 doc/html/qdragenterevent-members.html delete mode 100644 doc/html/qdragenterevent.html delete mode 100644 doc/html/qdragleaveevent-members.html delete mode 100644 doc/html/qdragleaveevent.html delete mode 100644 doc/html/qdragmoveevent-members.html delete mode 100644 doc/html/qdragmoveevent.html delete mode 100644 doc/html/qdragobject-h.html delete mode 100644 doc/html/qdragobject-members.html delete mode 100644 doc/html/qdropevent-members.html delete mode 100644 doc/html/qdropevent.html delete mode 100644 doc/html/qdropsite-h.html delete mode 100644 doc/html/qdropsite-members.html delete mode 100644 doc/html/qmacmime-members.html delete mode 100644 doc/html/qmacmime.html delete mode 100644 doc/html/qmime-h.html delete mode 100644 doc/html/qmimesource-members.html delete mode 100644 doc/html/qmimesource.html delete mode 100644 doc/html/qmimesourcefactory-members.html delete mode 100644 doc/html/qmimesourcefactory.html delete mode 100644 doc/html/qstoreddrag-members.html delete mode 100644 doc/html/qstoreddrag.html delete mode 100644 doc/html/quridrag-members.html delete mode 100644 doc/html/quridrag.html delete mode 100644 doc/html/qwindowsmime-members.html delete mode 100644 doc/html/qwindowsmime.html create mode 100644 doc/html/tqcolordrag-members.html create mode 100644 doc/html/tqcolordrag.html create mode 100644 doc/html/tqdragenterevent-members.html create mode 100644 doc/html/tqdragenterevent.html create mode 100644 doc/html/tqdragleaveevent-members.html create mode 100644 doc/html/tqdragleaveevent.html create mode 100644 doc/html/tqdragmoveevent-members.html create mode 100644 doc/html/tqdragmoveevent.html create mode 100644 doc/html/tqdragobject-h.html create mode 100644 doc/html/tqdragobject-members.html create mode 100644 doc/html/tqdragobject.html create mode 100644 doc/html/tqdropevent-members.html create mode 100644 doc/html/tqdropevent.html create mode 100644 doc/html/tqdropsite-h.html create mode 100644 doc/html/tqdropsite-members.html create mode 100644 doc/html/tqdropsite.html create mode 100644 doc/html/tqmacmime-members.html create mode 100644 doc/html/tqmacmime.html create mode 100644 doc/html/tqmime-h.html create mode 100644 doc/html/tqmimesource-members.html create mode 100644 doc/html/tqmimesource.html create mode 100644 doc/html/tqmimesourcefactory-members.html create mode 100644 doc/html/tqmimesourcefactory.html create mode 100644 doc/html/tqstoreddrag-members.html create mode 100644 doc/html/tqstoreddrag.html create mode 100644 doc/html/tquridrag-members.html create mode 100644 doc/html/tquridrag.html create mode 100644 doc/html/tqwindowsmime-members.html create mode 100644 doc/html/tqwindowsmime.html (limited to 'doc/html') diff --git a/doc/html/annotated.html b/doc/html/annotated.html index fba80fe4e..608ae9887 100644 --- a/doc/html/annotated.html +++ b/doc/html/annotated.html @@ -86,7 +86,7 @@ body { background: #ffffff; color: black; } TQCloseEventParameters that describe a close event TQColorColors based on RGB or HSV values TQColorDialogDialog widget for specifying colors -TQColorDragDrag and drop object for transferring colors +TQColorDragDrag and drop object for transferring colors TQColorGroupGroup of widget colors TQComboBoxCombined button and popup list TQComboTableItemMeans of using comboboxes in TQTables @@ -133,11 +133,11 @@ body { background: #ffffff; color: black; } TQDomProcessingInstructionRepresents an XML processing instruction TQDomTextRepresents text data in the parsed XML document TQDoubleValidatorRange checking of floating-point numbers -TQDragEnterEventEvent which is sent to the widget when a drag and drop first drags onto the widget -TQDragLeaveEventEvent which is sent to the widget when a drag and drop leaves the widget -TQDragMoveEventEvent which is sent while a drag and drop is in progress -TQDragObjectEncapsulates MIME-based data transfer -TQDropEventEvent which is sent when a drag and drop is completed +TQDragEnterEventEvent which is sent to the widget when a drag and drop first drags onto the widget +TQDragLeaveEventEvent which is sent to the widget when a drag and drop leaves the widget +TQDragMoveEventEvent which is sent while a drag and drop is in progress +TQDragObjectEncapsulates MIME-based data transfer +TQDropEventEvent which is sent when a drag and drop is completed TQEditorFactoryUsed to create editor widgets for TQVariant data types TQErrorMessageError message display dialog TQEucJpCodecConversion to and from EUC-JP character sets @@ -226,7 +226,7 @@ body { background: #ffffff; color: black; } TQListViewItemIteratorIterator for collections of TQListViewItems TQLocalFsImplementation of a TQNetworkProtocol that works on the local file system TQLocaleConverts between numbers and their string representations in various languages -TQMacMimeMaps open-standard MIME to Mac flavors +TQMacMimeMaps open-standard MIME to Mac flavors TQMacStyleImplements an Appearance Manager style TQMainWindowMain application window, with a menu bar, dock windows (e.g. for toolbars), and a status bar TQMapValue-based template class that provides a dictionary @@ -238,8 +238,8 @@ body { background: #ffffff; color: black; } TQMessageBoxModal dialog with a short message, an icon, and some buttons TQMetaObjectMeta information about TQt objects TQMetaPropertyStores meta data about a property -TQMimeSourceAbstraction of objects which provide formatted data of a certain MIME type -TQMimeSourceFactoryExtensible provider of mime-typed data +TQMimeSourceAbstraction of objects which provide formatted data of a certain MIME type +TQMimeSourceFactoryExtensible provider of mime-typed data TQMotifThe basis of the Motif Extension TQMotifDialogThe TQDialog API for Motif-based dialogs TQMotifPlusStyleMore sophisticated Motif-ish look and feel @@ -337,7 +337,7 @@ body { background: #ffffff; color: black; } TQSqlResultAbstract interface for accessing data from SQL databases TQSqlSelectCursorBrowsing of general SQL SELECT statements TQStatusBarHorizontal bar suitable for presenting status information -TQStoredDragSimple stored-value drag object for arbitrary MIME data +TQStoredDragSimple stored-value drag object for arbitrary MIME data TQStrIListDoubly-linked list of char* with case-insensitive comparison TQStrListDoubly-linked list of char* TQStrListIteratorIterator for the TQStrList and TQStrIList classes @@ -382,7 +382,7 @@ body { background: #ffffff; color: black; } TQTranslatorInternationalization support for text output TQTranslatorMessageTranslator message and its properties TQTsciiCodecConversion to and from the Tamil TSCII encoding -TQUriDragDrag object for a list of URI references +TQUriDragDrag object for a list of URI references TQUrlURL parser and simplifies working with URLs TQUrlInfoStores information about URLs TQUrlOperatorCommon operations on URLs @@ -407,7 +407,7 @@ body { background: #ffffff; color: black; } TQWidgetItemLayout item that represents a widget TQWidgetPluginAbstract base for custom TQWidget plugins TQWidgetStackStack of widgets of which only the top widget is user-visible -TQWindowsMimeMaps open-standard MIME to Window Clipboard formats +TQWindowsMimeMaps open-standard MIME to Window Clipboard formats TQWindowsStyleMicrosoft Windows-like look and feel TQWizardFramework for wizard dialogs TQWorkspaceWorkspace window that can contain decorated windows, e.g. for MDI diff --git a/doc/html/classchart.html b/doc/html/classchart.html index 5d79438bf..be3bd47a2 100644 --- a/doc/html/classchart.html +++ b/doc/html/classchart.html @@ -69,7 +69,7 @@ body { background: #ffffff; color: black; } - + @@ -101,7 +101,7 @@ body { background: #ffffff; color: black; } - + @@ -267,7 +267,7 @@ body { background: #ffffff; color: black; } - + @@ -303,7 +303,7 @@ body { background: #ffffff; color: black; } - + diff --git a/doc/html/classes.html b/doc/html/classes.html index d04db71df..468874e0b 100644 --- a/doc/html/classes.html +++ b/doc/html/classes.html @@ -315,7 +315,7 @@ classes, see TQt's Main Classes. TQBitVal -TQDragEnterEvent +TQDragEnterEvent TQLayoutItem @@ -326,7 +326,7 @@ classes, see TQt's Main Classes. TQBoxLayout -TQDragLeaveEvent +TQDragLeaveEvent TQLayoutIterator @@ -337,7 +337,7 @@ classes, see TQt's Main Classes. TQBrush -TQDragMoveEvent +TQDragMoveEvent TQLCDNumber S @@ -348,7 +348,7 @@ classes, see TQt's Main Classes. TQBuffer -TQDragObject +TQDragObject TQLibrary @@ -359,7 +359,7 @@ classes, see TQt's Main Classes. TQButton -TQDropEvent +TQDropEvent TQLineEdit @@ -387,7 +387,7 @@ classes, see TQt's Main Classes. TQSessionManager U -TQUriDrag +TQUriDrag C TQCache @@ -471,7 +471,7 @@ classes, see TQt's Main Classes. TQFileInfo M -TQMacMime +TQMacMime TQSizeGrip @@ -603,7 +603,7 @@ classes, see TQt's Main Classes. G TQGb18030Codec -TQMimeSource +TQMimeSource TQSql @@ -614,7 +614,7 @@ classes, see TQt's Main Classes. TQGb2312Codec -TQMimeSourceFactory +TQMimeSourceFactory TQSqlCursor @@ -651,7 +651,7 @@ classes, see TQt's Main Classes. TQSqlDriverPlugin -TQWindowsMime +TQWindowsMime TQCloseEvent @@ -687,7 +687,7 @@ classes, see TQt's Main Classes. TQWMatrix -TQColorDrag +TQColorDrag TQGLContext @@ -802,7 +802,7 @@ classes, see TQt's Main Classes. TQNPStream * -TQStoredDrag +TQStoredDrag TQXmlDefaultHandler diff --git a/doc/html/desktop-example.html b/doc/html/desktop-example.html index d3b42c938..38ca90d74 100644 --- a/doc/html/desktop-example.html +++ b/doc/html/desktop-example.html @@ -53,8 +53,8 @@ any other. #include <ntqbitmap.h> #include <ntqpainter.h> #include <ntqapplication.h> -#include <ntqdropsite.h> -#include <ntqdragobject.h> +#include <tqdropsite.h> +#include <tqdragobject.h> #include <stdio.h> @@ -234,22 +234,22 @@ public: ~DesktopWidget(); void paintEvent( TQPaintEvent * ); - void dragEnterEvent( TQDragEnterEvent *e ) + void dragEnterEvent( TQDragEnterEvent *e ) { if ( TQImageDrag::canDecode(e) ) - e->accept(); + e->accept(); } - void dragLeaveEvent( TQDragLeaveEvent * ) + void dragLeaveEvent( TQDragLeaveEvent * ) { } - void dragMoveEvent( TQDragMoveEvent *e ) + void dragMoveEvent( TQDragMoveEvent *e ) { - e->accept(); + e->accept(); } - void dropEvent( TQDropEvent * e ) + void dropEvent( TQDropEvent * e ) { TQPixmap pmp; if ( TQImageDrag::decode( e, pmp ) ) { diff --git a/doc/html/dirview-example.html b/doc/html/dirview-example.html index 8a04e9cef..b48f054c5 100644 --- a/doc/html/dirview-example.html +++ b/doc/html/dirview-example.html @@ -130,10 +130,10 @@ protected slots: void openFolder(); protected: - void contentsDragEnterEvent( TQDragEnterEvent *e ); - void contentsDragMoveEvent( TQDragMoveEvent *e ); - void contentsDragLeaveEvent( TQDragLeaveEvent *e ); - void contentsDropEvent( TQDropEvent *e ); + void contentsDragEnterEvent( TQDragEnterEvent *e ); + void contentsDragMoveEvent( TQDragMoveEvent *e ); + void contentsDragLeaveEvent( TQDragLeaveEvent *e ); + void contentsDropEvent( TQDropEvent *e ); void contentsMouseMoveEvent( TQMouseEvent *e ); void contentsMousePressEvent( TQMouseEvent *e ); void contentsMouseReleaseEvent( TQMouseEvent *e ); @@ -176,8 +176,8 @@ can be used in any other trees. #include <ntqevent.h> #include <ntqpoint.h> #include <ntqmessagebox.h> -#include <ntqdragobject.h> -#include <ntqmime.h> +#include <tqdragobject.h> +#include <tqmime.h> #include <tqstrlist.h> #include <tqstringlist.h> #include <ntqapplication.h> @@ -477,16 +477,16 @@ void DirectoryView::openFolder() static const int autoopenTime = 750; -void DirectoryView::contentsDragEnterEvent( TQDragEnterEvent *e ) +void DirectoryView::contentsDragEnterEvent( TQDragEnterEvent *e ) { if ( !TQUriDrag::canDecode(e) ) { - e->ignore(); + e->ignore(); return; } oldCurrent = currentItem(); - TQListViewItem *i = itemAt( contentsToViewport(e->pos()) ); + TQListViewItem *i = itemAt( contentsToViewport(e->pos()) ); if ( i ) { dropItem = i; autoopen_timer->start( autoopenTime ); @@ -494,10 +494,10 @@ static const int autoopenTime = 750; } -void DirectoryView::contentsDragMoveEvent( TQDragMoveEvent *e ) +void DirectoryView::contentsDragMoveEvent( TQDragMoveEvent *e ) { if ( !TQUriDrag::canDecode(e) ) { - e->ignore(); + e->ignore(); return; } @@ -505,32 +505,32 @@ static const int autoopenTime = 750; TQListViewItem *i = itemAt( vp ); if ( i ) { setSelected( i, TRUE ); - e->accept(); + e->accept(); if ( i != dropItem ) { autoopen_timer->stop(); dropItem = i; autoopen_timer->start( autoopenTime ); } - switch ( e->action() ) { + switch ( e->action() ) { case TQDropEvent::Copy: break; case TQDropEvent::Move: - e->acceptAction(); + e->acceptAction(); break; case TQDropEvent::Link: - e->acceptAction(); + e->acceptAction(); break; default: ; } } else { - e->ignore(); + e->ignore(); autoopen_timer->stop(); dropItem = 0; } } -void DirectoryView::contentsDragLeaveEvent( TQDragLeaveEvent * ) +void DirectoryView::contentsDragLeaveEvent( TQDragLeaveEvent * ) { autoopen_timer->stop(); dropItem = 0; @@ -539,35 +539,35 @@ static const int autoopenTime = 750; setSelected( oldCurrent, TRUE ); } -void DirectoryView::contentsDropEvent( TQDropEvent *e ) +void DirectoryView::contentsDropEvent( TQDropEvent *e ) { autoopen_timer->stop(); if ( !TQUriDrag::canDecode(e) ) { - e->ignore(); + e->ignore(); return; } - TQListViewItem *item = itemAt( contentsToViewport(e->pos()) ); + TQListViewItem *item = itemAt( contentsToViewport(e->pos()) ); if ( item ) { TQStrList lst; - TQUriDrag::decode( e, lst ); + TQUriDrag::decode( e, lst ); TQString str; - switch ( e->action() ) { + switch ( e->action() ) { case TQDropEvent::Copy: str = "Copy"; break; case TQDropEvent::Move: str = "Move"; - e->acceptAction(); + e->acceptAction(); break; case TQDropEvent::Link: str = "Link"; - e->acceptAction(); + e->acceptAction(); break; default: str = "Unknown"; @@ -575,10 +575,10 @@ static const int autoopenTime = 750; str += "\n\n"; - e->accept(); + e->accept(); for ( uint i = 0; i < lst.count(); ++i ) { - TQString filename = TQDir::convertSeparators(TQUriDrag::uriToLocalFile(lst.at(i))); + TQString filename = TQDir::convertSeparators(TQUriDrag::uriToLocalFile(lst.at(i))); str += filename + "\n"; } str += TQString( "\nTo\n\n %1" ) @@ -586,7 +586,7 @@ static const int autoopenTime = 750; TQMessageBox::information( this, "Drop target", str, "Not implemented" ); } else - e->ignore(); + e->ignore(); } @@ -613,14 +613,14 @@ TQString DirectoryView::fullPath(TQListViewItem* item) void DirectoryView::contentsMousePressEvent( TQMouseEvent* e ) { TQListView::contentsMousePressEvent(e); - TQPoint p( contentsToViewport( e->pos() ) ); + TQPoint p( contentsToViewport( e->pos() ) ); TQListViewItem *i = itemAt( p ); if ( i ) { // if the user clicked into the root decoration of the item, don't try to start a drag! if ( p.x() > header()->cellPos( header()->mapToActual( 0 ) ) + treeStepSize() * ( i->depth() + ( rootIsDecorated() ? 1 : 0) ) + itemMargin() || p.x() < header()->cellPos( header()->mapToActual( 0 ) ) ) { - presspos = e->pos(); + presspos = e->pos(); mousePressed = TRUE; } } @@ -628,15 +628,15 @@ TQString DirectoryView::fullPath(TQListViewItem* item) void DirectoryView::contentsMouseMoveEvent( TQMouseEvent* e ) { - if ( mousePressed && ( presspos - e->pos() ).manhattanLength() > TQApplication::startDragDistance() ) { + if ( mousePressed && ( presspos - e->pos() ).manhattanLength() > TQApplication::startDragDistance() ) { mousePressed = FALSE; TQListViewItem *item = itemAt( contentsToViewport(presspos) ); if ( item ) { TQString source = fullPath(item); if ( TQFile::exists(source) ) { - TQUriDrag* ud = new TQUriDrag(viewport()); - ud->setFileNames( source ); - if ( ud->drag() ) + TQUriDrag* ud = new TQUriDrag(viewport()); + ud->setFileNames( source ); + if ( ud->drag() ) TQMessageBox::information( this, "Drag source", TQString("Delete ") + TQDir::convertSeparators(source), "Not implemented" ); } diff --git a/doc/html/dnd.html b/doc/html/dnd.html index 08e41e137..abd016e8b 100644 --- a/doc/html/dnd.html +++ b/doc/html/dnd.html @@ -62,7 +62,7 @@ sophistication): qt/examples/iconview/simple_dd, qt/examples/dragdr TQTextEdit widget source code.

Dragging

-

To start a drag, for example in a mouse motion event, create an object of the TQDragObject +

To start a drag, for example in a mouse motion event, create an object of the TQDragObject subclass appropriate for your media, such as TQTextDrag for text and TQImageDrag 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.

 void MyWidget::startDrag()
 {
-    TQDragObject *d = new TQTextDrag( myHighlightedText(), this );
-    d->dragCopy();
+    TQDragObject *d = new TQTextDrag( myHighlightedText(), this );
+    d->dragCopy();
     // do NOT delete d.
 }
 
@@ -127,14 +127,14 @@ void MyWidget::dropEvent(TQDropEvent* event)

The Clipboard

-

The TQDragObject, TQDragEnterEvent, TQDragMoveEvent, and TQDropEvent +

The TQDragObject, TQDragEnterEvent, TQDragMoveEvent, and TQDropEvent 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 TQClipboard has two functions:

     setData(TQMimeSource*)
-    TQMimeSource* data()const
+    TQMimeSource* data()const
 
With these functions you can trivially put your drag-and-drop oriented @@ -154,7 +154,7 @@ void MyWidget::paste() } -You can even use TQDragObject subclasses as part of file IO. For +You can even use TQDragObject 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() } -Note how the TQDragObject subclass is called "MyCadDrag", not +Note how the TQDragObject subclass is called "MyCadDrag", not "MyDxfDrag": because in the future you might extend it to provide DXF, DWG, SVF, WMF, or even TQPicture data to other applications.

Drag and Drop Actions

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 TQDropEvent. The target may also +original. This is the "Copy" action in TQDropEvent. The target may also choose to understand other actions, specifically the Move and Link actions. If the target understands the Move action, the target 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, TQTextDrag< for the "text/plain" MIME type (ordinary unformatted text), and the Unicode formats "text/utf16" and "text/utf8"; TQImageDrag provides for "image/*", where * is any image format that -TQImageIO supports; and the TQUriDrag subclass provides +TQImageIO supports; and the TQUriDrag subclass provides "text/uri-list", a standard format for transferring a list of filenames (or URLs).

To implement drag-and-drop of some type of information for which there -is no available TQDragObject subclass, the first and most important +is no available TQDragObject subclass, the first and most important step is to look for existing formats that are appropriate: the Internet Assigned Numbers Authority (IANA) provides a hierarchical list of MIME media types at the Information Sciences Institute @@ -226,12 +226,12 @@ list of MIME media types at the Information Sciences Institute maximizes the inter-operability of your application with other software now and in the future.

To support an additional media type, subclass either TQDragObject or -TQStoredDrag. Subclass TQDragObject when you need to provide support for +TQStoredDrag. Subclass TQDragObject when you need to provide support for multiple media types. Subclass the simpler TQStoredDrag when one type is sufficient.

Subclasses of TQDragObject will override the -const char* format(int i) const and -TQByteArray encodedData(const char* mimetype) const +const char* format(int i) const and +TQByteArray encodedData(const char* mimetype) const members, and provide a set-method to encode the media data and static members canDecode() and decode() to decode incoming data, similar to bool canDecode(TQMimeSource*) const and @@ -259,8 +259,8 @@ the drag start point and the drop event might look like this:

 void MyEditor::startDrag()
 {
-    TQDragObject *d = new TQTextDrag(myHighlightedText(), this);
-    if ( d->drag() && d->target() != this )
+    TQDragObject *d = new TQTextDrag(myHighlightedText(), this);
+    if ( d->drag() && d->target() != this )
         cutMyHighlightedText();
 }
 
diff --git a/doc/html/draganddrop.html b/doc/html/draganddrop.html
index bb6bc4399..4961aa690 100644
--- a/doc/html/draganddrop.html
+++ b/doc/html/draganddrop.html
@@ -37,21 +37,21 @@ encoding and decoding. See also Drag and Drop with
 TQt.
 

-
TQColorDragDrag and drop object for transferring colors -
TQDragEnterEventEvent which is sent to the widget when a drag and drop first drags onto the widget -
TQDragLeaveEventEvent which is sent to the widget when a drag and drop leaves the widget -
TQDragMoveEventEvent which is sent while a drag and drop is in progress -
TQDragObjectEncapsulates MIME-based data transfer -
TQDropEventEvent which is sent when a drag and drop is completed +
TQColorDragDrag and drop object for transferring colors +
TQDragEnterEventEvent which is sent to the widget when a drag and drop first drags onto the widget +
TQDragLeaveEventEvent which is sent to the widget when a drag and drop leaves the widget +
TQDragMoveEventEvent which is sent while a drag and drop is in progress +
TQDragObjectEncapsulates MIME-based data transfer +
TQDropEventEvent which is sent when a drag and drop is completed
TQIconDragSupports drag and drop operations within a TQIconView
TQIconDragItemEncapsulates a drag item
TQImageDragDrag and drop object for transferring images -
TQMacMimeMaps open-standard MIME to Mac flavors -
TQMimeSourceAbstraction of objects which provide formatted data of a certain MIME type -
TQStoredDragSimple stored-value drag object for arbitrary MIME data +
TQMacMimeMaps open-standard MIME to Mac flavors +
TQMimeSourceAbstraction of objects which provide formatted data of a certain MIME type +
TQStoredDragSimple stored-value drag object for arbitrary MIME data
TQTextDragDrag and drop object for transferring plain and Unicode text -
TQUriDragDrag object for a list of URI references -
TQWindowsMimeMaps open-standard MIME to Window Clipboard formats +
TQUriDragDrag object for a list of URI references +
TQWindowsMimeMaps open-standard MIME to Window Clipboard formats


diff --git a/doc/html/environment.html b/doc/html/environment.html index b45d71550..39461c50f 100644 --- a/doc/html/environment.html +++ b/doc/html/environment.html @@ -40,7 +40,7 @@ event handling, access to system settings, TQDesktopWidgetAccess to screen information on multi-head systems TQEventThe base class of all event classes. Event objects contain event parameters TQFontDatabaseInformation about the fonts available in the underlying window system -TQMimeSourceFactoryExtensible provider of mime-typed data +TQMimeSourceFactoryExtensible provider of mime-typed data TQMutexAccess serialization between threads TQMutexLockerSimplifies locking and unlocking TQMutexes TQPixmapCacheApplication-global cache for pixmaps diff --git a/doc/html/events.html b/doc/html/events.html index bf161f9ad..014b78329 100644 --- a/doc/html/events.html +++ b/doc/html/events.html @@ -41,10 +41,10 @@ and Signals and Slots. TQCloseEventParameters that describe a close event TQContextMenuEventParameters that describe a context menu event TQCustomEventSupport for custom events -TQDragEnterEventEvent which is sent to the widget when a drag and drop first drags onto the widget -TQDragLeaveEventEvent which is sent to the widget when a drag and drop leaves the widget -TQDragMoveEventEvent which is sent while a drag and drop is in progress -TQDropEventEvent which is sent when a drag and drop is completed +TQDragEnterEventEvent which is sent to the widget when a drag and drop first drags onto the widget +TQDragLeaveEventEvent which is sent to the widget when a drag and drop leaves the widget +TQDragMoveEventEvent which is sent while a drag and drop is in progress +TQDropEventEvent which is sent when a drag and drop is completed TQEventThe base class of all event classes. Event objects contain event parameters TQEventLoopManages the event queue TQFocusEventEvent parameters for widget focus events diff --git a/doc/html/fileiconview-example.html b/doc/html/fileiconview-example.html index 2116877b9..efb5f37b9 100644 --- a/doc/html/fileiconview-example.html +++ b/doc/html/fileiconview-example.html @@ -80,7 +80,7 @@ public: const char* format( int i ) const; TQByteArray encodedData( const char* mime ) const; - static bool canDecode( TQMimeSource* e ); + static bool canDecode( TQMimeSource* e ); void append( const TQIconDragItem &item, const TQRect &pr, const TQRect &tr, const TQString &url ); private: @@ -127,7 +127,7 @@ signals: protected slots: void itemDoubleClicked( TQIconViewItem *i ); - void slotDropped( TQDropEvent *e, const TQValueList<TQIconDragItem> & ); + void slotDropped( TQDropEvent *e, const TQValueList<TQIconDragItem> & ); void viewLarge(); void viewSmall(); @@ -186,7 +186,7 @@ public: { return itemType; } TQString filename() const { return itemFileName; } - virtual bool acceptDrop( const TQMimeSource *e ) const; + virtual bool acceptDrop( const TQMimeSource *e ) const; virtual void setText( const TQString &text ); virtual TQPixmap *pixmap() const; @@ -198,7 +198,7 @@ public: void paintItem( TQPainter *p, const TQColorGroup &cg ); protected: - virtual void dropped( TQDropEvent *e, const TQValueList<TQIconDragItem> & ); + virtual void dropped( TQDropEvent *e, const TQValueList<TQIconDragItem> & ); TQString itemFileName; TQFileInfo *itemFileInfo; @@ -229,9 +229,9 @@ protected: #include <ntqpainter.h> #include <tqstringlist.h> #include <ntqpixmap.h> -#include <ntqmime.h> +#include <tqmime.h> #include <tqstrlist.h> -#include <ntqdragobject.h> +#include <tqdragobject.h> #include <ntqmessagebox.h> #include <ntqevent.h> #include <tqpopupmenu.h> @@ -474,7 +474,7 @@ static void cleanup() { } -const char* TQtFileIconDrag::format( int i ) const +const char* TQtFileIconDrag::format( int i ) const { if ( i == 0 ) return "application/x-qiconlist"; @@ -497,10 +497,10 @@ static void cleanup() return a; } -bool TQtFileIconDrag::canDecode( TQMimeSource* e ) +bool TQtFileIconDrag::canDecode( TQMimeSource* e ) { - return e->provides( "application/x-qiconlist" ) || - e->provides( "text/uri-list" ); + return e->provides( "application/x-qiconlist" ) || + e->provides( "text/uri-list" ); } void TQtFileIconDrag::append( const TQIconDragItem &item, const TQRect &pr, @@ -514,7 +514,7 @@ static void cleanup() ourUrl = dir.absPath(); } #endif - urls << TQUriDrag::localFileToUri(ourUrl); + urls << TQUriDrag::localFileToUri(ourUrl); } /***************************************************************************** @@ -622,29 +622,29 @@ TQtFileIconViewItem::~TQtFileIconViewItem() } } -bool TQtFileIconViewItem::acceptDrop( const TQMimeSource *e ) const +bool TQtFileIconViewItem::acceptDrop( const TQMimeSource *e ) const { - if ( type() == Dir && e->provides( "text/uri-list" ) && + if ( type() == Dir && e->provides( "text/uri-list" ) && dropEnabled() ) return TRUE; return FALSE; } -void TQtFileIconViewItem::dropped( TQDropEvent *e, const TQValueList<TQIconDragItem> & ) +void TQtFileIconViewItem::dropped( TQDropEvent *e, const TQValueList<TQIconDragItem> & ) { timer.stop(); if ( !TQUriDrag::canDecode( e ) ) { - e->ignore(); + e->ignore(); return; } TQStringList lst; - TQUriDrag::decodeLocalFiles( e, lst ); + TQUriDrag::decodeLocalFiles( e, lst ); TQString str; - if ( e->action() == TQDropEvent::Copy ) + if ( e->action() == TQDropEvent::Copy ) str = "Copy\n\n"; else str = "Move\n\n"; @@ -654,10 +654,10 @@ TQtFileIconViewItem::~TQtFileIconViewItem() "To\n\n" " %1" ).arg( filename() ); - TQMessageBox::information( iconView(), e->action() == TQDropEvent::Copy ? "Copy" : "Move" , str, "Not Implemented" ); - if ( e->action() == TQDropEvent::Move ) + TQMessageBox::information( iconView(), e->action() == TQDropEvent::Copy ? "Copy" : "Move" , str, "Not Implemented" ); + if ( e->action() == TQDropEvent::Move ) TQMessageBox::information( iconView(), "Remove" , str, "Not Implemented" ); - e->acceptAction(); + e->acceptAction(); } void TQtFileIconViewItem::dragEntered() @@ -720,8 +720,8 @@ TQtFileIconViewItem::~TQtFileIconViewItem() this, TQ_SLOT( itemDoubleClicked( TQIconViewItem * ) ) ); connect( this, TQ_SIGNAL( returnPressed( TQIconViewItem * ) ), this, TQ_SLOT( itemDoubleClicked( TQIconViewItem * ) ) ); - connect( this, TQ_SIGNAL( dropped( TQDropEvent *, const TQValueList<TQIconDragItem> & ) ), - this, TQ_SLOT( slotDropped( TQDropEvent *, const TQValueList<TQIconDragItem> & ) ) ); + connect( this, TQ_SIGNAL( dropped( TQDropEvent *, const TQValueList<TQIconDragItem> & ) ), + this, TQ_SLOT( slotDropped( TQDropEvent *, const TQValueList<TQIconDragItem> & ) ) ); connect( this, TQ_SIGNAL( contextMenuRequested( TQIconViewItem *, const TQPoint & ) ), this, TQ_SLOT( slotRightPressed( TQIconViewItem * ) ) ); @@ -879,7 +879,7 @@ void TQtFileIconView::itemDoubleClicked( TQPoint orig = viewportToContents( viewport()->mapFromGlobal( TQCursor::pos() ) ); TQtFileIconDrag *drag = new TQtFileIconDrag( viewport() ); - drag->setPixmap( *currentItem()->pixmap(), + drag->setPixmap( *currentItem()->pixmap(), TQPoint( currentItem()->pixmapRect().width() / 2, currentItem()->pixmapRect().height() / 2 ) ); for ( TQtFileIconViewItem *item = (TQtFileIconViewItem*)firstItem(); item; item = (TQtFileIconViewItem*)item->nextItem() ) { @@ -909,20 +909,20 @@ void TQtFileIconView::itemDoubleClicked( keyPressEvent( e ); } -void TQtFileIconView::slotDropped( TQDropEvent *e, const TQValueList<TQIconDragItem> & ) +void TQtFileIconView::slotDropped( TQDropEvent *e, const TQValueList<TQIconDragItem> & ) { if ( openItem ) openItem->timer.stop(); if ( !TQUriDrag::canDecode( e ) ) { - e->ignore(); + e->ignore(); return; } TQStringList lst; - TQUriDrag::decodeLocalFiles( e, lst ); + TQUriDrag::decodeLocalFiles( e, lst ); TQString str; - if ( e->action() == TQDropEvent::Copy ) + if ( e->action() == TQDropEvent::Copy ) str = "Copy\n\n"; else str = "Move\n\n"; @@ -932,10 +932,10 @@ void TQtFileIconView::slotDropped( "To\n\n" " %1" ).arg( viewDir.absPath() ); - TQMessageBox::information( this, e->action() == TQDropEvent::Copy ? "Copy" : "Move" , str, "Not Implemented" ); - if ( e->action() == TQDropEvent::Move ) + TQMessageBox::information( this, e->action() == TQDropEvent::Copy ? "Copy" : "Move" , str, "Not Implemented" ); + if ( e->action() == TQDropEvent::Move ) TQMessageBox::information( this, "Remove" , TQDir::convertSeparators(lst.join("\n")), "Not Implemented" ); - e->acceptAction(); + e->acceptAction(); openItem = 0; } diff --git a/doc/html/functions.html b/doc/html/functions.html index e5ae99e38..cbb8bd093 100644 --- a/doc/html/functions.html +++ b/doc/html/functions.html @@ -54,13 +54,13 @@ abort: TQDir TQFileInfo
  • absPath: TQDir
  • accel: TQAction TQButton TQCheckBox TQMenuData TQPopupMenu TQPushButton TQRadioButton
  • accept: - TQCloseEvent TQContextMenuEvent TQDialog TQDragMoveEvent TQDropEvent TQIMEvent TQIconDragEvent TQKeyEvent TQMouseEvent TQSocketDevice TQTabletEvent TQWheelEvent
  • acceptAction: - TQDropEvent
  • acceptCallback: + TQCloseEvent TQContextMenuEvent TQDialog TQDragMoveEvent TQDropEvent TQIMEvent TQIconDragEvent TQKeyEvent TQMouseEvent TQSocketDevice TQTabletEvent TQWheelEvent
  • acceptAction: + TQDropEvent
  • acceptCallback: TQMotifDialog
  • acceptDrop: TQIconViewItem TQListViewItem
  • acceptDrops: TQWidget
  • accum: TQGLFormat
  • action: - TQDropEvent
  • activate: + TQDropEvent
  • activate: TQAction TQCheckListItem TQLayout TQListViewItem TQSignal
  • activateItemAt: TQMenuData
  • activateNextCell: TQTable
  • activateNextWindow: @@ -86,8 +86,8 @@ abort: TQSqlDatabase
  • addDays: TQDate TQDateTime
  • addDockWindow: TQMainWindow
  • addFactory: - TQMimeSourceFactory
  • addFilePath: - TQMimeSourceFactory
  • addFilter: + TQMimeSourceFactory
  • addFilePath: + TQMimeSourceFactory
  • addFilter: TQFileDialog
  • addItem: TQBoxLayout TQGridLayout TQLayout TQToolBox
  • addLabel: TQHeader
  • addLayout: @@ -133,7 +133,7 @@ abort: TQSqlQuery
  • alignment: TQGroupBox TQLabel TQLayoutItem TQLineEdit TQMultiLineEdit TQStyleSheetItem TQTableItem TQTextEdit
  • alignmentRect: TQLayout
  • all: - TQMacMime TQWindowsMime
  • allColumnsShowFocus: + TQMacMime TQWindowsMime
  • allColumnsShowFocus: TQListView
  • allGray: TQImage
  • allItems: TQCanvas
  • allWidgets: @@ -151,7 +151,7 @@ abort: TQCanvasEllipse
  • animateClick: TQButton
  • animated: TQCanvasItem
  • answerRect: - TQDragMoveEvent
  • append: + TQDragMoveEvent
  • append: TQCString TQIconDrag TQPtrList TQSqlCursor TQSqlIndex TQSqlRecord TQString TQTextEdit TQValueList TQValueVector TQXmlAttributes
  • appendChild: TQDomNode
  • appendData: TQDomCharacterData
  • applicationContext: @@ -312,8 +312,8 @@ c: TQIconViewItem
  • calculateField: TQSqlCursor
  • canCast: TQVariant
  • canConvert: - TQMacMime TQWindowsMime
  • canDecode: - TQColorDrag TQIconDrag TQImageDrag TQTextDrag TQUriDrag
  • canDelete: + TQMacMime TQWindowsMime
  • canDecode: + TQColorDrag TQIconDrag TQImageDrag TQTextDrag TQUriDrag
  • canDelete: TQSqlCursor
  • canEncode: TQTextCodec
  • canInsert: TQSqlCursor
  • canReadLine: @@ -349,9 +349,9 @@ c: TQRect TQScrollView
  • centerIndicator: TQProgressBar
  • centralWidget: TQMainWindow
  • cf: - TQWindowsMime
  • cfFor: - TQWindowsMime
  • cfToMime: - TQWindowsMime
  • changeInterval: + TQWindowsMime
  • cfFor: + TQWindowsMime
  • cfToMime: + TQWindowsMime
  • changeInterval: TQTimer
  • changeItem: TQComboBox TQListBox TQMenuData TQPopupMenu
  • changeSize: TQSpacerItem
  • changeTab: @@ -525,23 +525,23 @@ c: TQImage
  • convertDepthWithPalette: TQImage
  • convertFromImage: TQPixmap
  • convertFromMime: - TQMacMime TQWindowsMime
  • convertFromPlainText: + TQMacMime TQWindowsMime
  • convertFromPlainText: TQStyleSheet
  • convertSeparators: TQDir
  • convertToAbs: TQDir TQFileInfo
  • convertToGLFormat: TQGLWidget
  • convertToImage: TQPixmap
  • convertToMime: - TQMacMime TQWindowsMime
  • convertor: - TQMacMime TQWindowsMime
  • convertorName: - TQMacMime TQWindowsMime
  • coords: + TQMacMime TQWindowsMime
  • convertor: + TQMacMime TQWindowsMime
  • convertorName: + TQMacMime TQWindowsMime
  • coords: TQRect
  • copy: TQBitArray TQCString TQImage TQLineEdit TQMemArray TQPalette TQPicture TQPointArray TQTextEdit TQUrlOperator
  • copyAvailable: TQTextEdit
  • copyBlt: TQPixmap
  • cornerWidget: TQScrollView TQTabWidget
  • count: TQAccel TQAsciiCache TQAsciiCacheIterator TQAsciiDict TQAsciiDictIterator TQButtonGroup TQCache TQCacheIterator TQCanvasPixmapArray TQComboBox TQComboTableItem TQDict TQDictIterator TQDir TQDockArea TQDomNamedNodeMap TQDomNodeList TQFocusData TQHeader TQIconView TQIntCache TQIntCacheIterator TQIntDict TQIntDictIterator TQKeyEvent TQKeySequence TQListBox TQMap TQMemArray TQMenuData TQPtrCollection TQPtrDict TQPtrDictIterator TQPtrList TQPtrListIterator TQPtrQueue TQPtrStack TQPtrVector TQSqlForm TQSqlRecord TQTabBar TQTabWidget TQToolBox TQValueList TQValueVector TQXmlAttributes
  • countCf: - TQWindowsMime
  • countFlavors: - TQMacMime
  • country: + TQWindowsMime
  • countFlavors: + TQMacMime
  • country: TQLocale
  • countryToString: TQLocale
  • create: TQGLContext TQImage TQNPlugin TQSqlDriverPlugin TQStyleFactory TQStylePlugin TQWidget TQWidgetFactory TQWidgetPlugin
  • createAlphaMask: @@ -634,7 +634,7 @@ c: TQLineEdit TQTextEdit
  • dark: TQColor TQColorGroup
  • data: - TQClipboard TQCustomEvent TQDomCharacterData TQDomProcessingInstruction TQIconDragItem TQMapConstIterator TQMapIterator TQMemArray TQMimeSourceFactory TQNetworkProtocol TQPicture TQPtrVector TQSqlResult TQUrlOperator TQXmlInputSource
  • dataChanged: + TQClipboard TQCustomEvent TQDomCharacterData TQDomProcessingInstruction TQIconDragItem TQMapConstIterator TQMapIterator TQMemArray TQMimeSourceFactory TQNetworkProtocol TQPicture TQPtrVector TQSqlResult TQUrlOperator TQXmlInputSource
  • dataChanged: TQClipboard
  • dataReadProgress: TQHttp
  • dataSendProgress: TQHttp
  • dataTransferProgress: @@ -655,16 +655,16 @@ dark: TQFont
  • decimals: TQDoubleValidator
  • declHandler: TQXmlReader
  • decode: - TQColorDrag TQImageDecoder TQImageDrag TQImageFormat TQTextDrag TQUriDrag TQUrl
  • decodeLocalFiles: - TQUriDrag
  • decodeName: + TQColorDrag TQImageDecoder TQImageDrag TQImageFormat TQTextDrag TQUriDrag TQUrl
  • decodeLocalFiles: + TQUriDrag
  • decodeName: TQFile
  • decodeToUnicodeUris: - TQUriDrag
  • decoderFor: + TQUriDrag
  • decoderFor: TQImageFormatType
  • decomposition: TQChar
  • decompositionTag: TQChar
  • defaultButtonPressed: TQTabDialog
  • defaultDepth: TQPixmap
  • defaultFactory: - TQEditorFactory TQIconFactory TQMimeSourceFactory TQSqlEditorFactory
  • defaultFamily: + TQEditorFactory TQIconFactory TQMimeSourceFactory TQSqlEditorFactory
  • defaultFamily: TQFont
  • defaultFormat: TQGLFormat
  • defaultMap: TQSqlPropertyMap
  • defaultOptimization: @@ -749,16 +749,16 @@ dark: TQApplication
  • doubleClicked: TQIconView TQListBox TQListView TQTable TQTextEdit
  • downRect: TQSpinBox
  • drag: - TQDragObject
  • dragAutoScroll: + TQDragObject
  • dragAutoScroll: TQScrollView
  • dragCopy: - TQDragObject
  • dragEnabled: + TQDragObject
  • dragEnabled: TQIconViewItem TQLineEdit TQListViewItem TQTable
  • dragEnterEvent: TQWidget
  • dragEntered: TQIconViewItem TQListViewItem
  • dragLeaveEvent: TQWidget
  • dragLeft: TQIconViewItem TQListViewItem
  • dragLink: - TQDragObject
  • dragMove: - TQDragObject
  • dragMoveEvent: + TQDragObject
  • dragMove: + TQDragObject
  • dragMoveEvent: TQWidget
  • dragObject: TQIconView TQListView TQTable
  • draggingSlider: TQScrollBar
  • draw: @@ -835,7 +835,7 @@ echoMode: TQWidget
  • encode: TQUrl
  • encodeName: TQFile
  • encodedData: - TQDropEvent TQIconDrag TQMimeSource TQStoredDrag
  • encodedPathAndQuery: + TQDropEvent TQIconDrag TQMimeSource TQStoredDrag
  • encodedPathAndQuery: TQUrl
  • end: TQImageConsumer TQLineEdit TQMap TQMemArray TQMultiLineEdit TQNPStream TQPainter TQValueList TQValueVector
  • endCDATA: TQXmlLexicalHandler
  • endDTD: @@ -915,7 +915,7 @@ falseText: TQSqlForm
  • fileHighlighted: TQFileDialog
  • fileName: TQFileInfo TQImageIO TQSound TQUrl
  • filePath: - TQDir TQFileInfo TQMimeSourceFactory
  • fileSelected: + TQDir TQFileInfo TQMimeSourceFactory
  • fileSelected: TQFileDialog
  • filesSelected: TQFileDialog
  • fill: TQBitArray TQCString TQImage TQMemArray TQPixmap TQPtrVector TQString TQTextStream
  • fillRect: @@ -948,9 +948,9 @@ falseText: TQFont TQFontInfo
  • fixup: TQValidator
  • flags: TQIODevice TQTextStream
  • flavor: - TQMacMime
  • flavorFor: - TQMacMime
  • flavorToMime: - TQMacMime
  • flush: + TQMacMime
  • flavorFor: + TQMacMime
  • flavorToMime: + TQMacMime
  • flush: TQApplication TQFile TQIODevice TQPainter TQSocket
  • flushX: TQApplication
  • focusData: TQWidget
  • focusInEvent: @@ -976,7 +976,7 @@ falseText: TQColorGroup
  • foregroundColor: TQWidget
  • form: TQDataBrowser TQDataView
  • format: - TQDropEvent TQGLContext TQGLWidget TQImageDecoder TQImageIO TQMimeSource
  • formatName: + TQDropEvent TQGLContext TQGLWidget TQImageDecoder TQImageIO TQMimeSource
  • formatName: TQImageDecoder TQImageFormatType
  • formatValue: TQSqlDriver
  • forward: TQTextBrowser
  • forwardAvailable: @@ -1176,7 +1176,7 @@ icon: TQMenuData TQPopupMenu
  • identifier: TQTab
  • ignorableWhitespace: TQXmlContentHandler
  • ignore: - TQCloseEvent TQContextMenuEvent TQDragMoveEvent TQDropEvent TQIMEvent TQIconDragEvent TQKeyEvent TQMouseEvent TQTabletEvent TQWheelEvent
  • imComposeEvent: + TQCloseEvent TQContextMenuEvent TQDragMoveEvent TQDropEvent TQIMEvent TQIconDragEvent TQKeyEvent TQMouseEvent TQTabletEvent TQWheelEvent
  • imComposeEvent: TQWidget
  • imEndEvent: TQWidget
  • imStartEvent: TQWidget
  • image: @@ -1200,7 +1200,7 @@ icon: TQMessageBox
  • inherits: TQMetaObject TQObject
  • init: TQTableSelection
  • initialize: - TQColor TQCursor TQWindowsMime
  • initializeGL: + TQColor TQCursor TQWindowsMime
  • initializeGL: TQGLWidget
  • initializeOverlayGL: TQGLWidget
  • initialized: TQGLContext
  • inputFormatList: @@ -1261,8 +1261,8 @@ icon: TQIconView TQListBox TQListView
  • ioDevice: TQImageIO
  • isA: TQObject
  • isAccepted: - TQCloseEvent TQContextMenuEvent TQDropEvent TQIMEvent TQIconDragEvent TQKeyEvent TQMouseEvent TQTabletEvent TQWheelEvent
  • isActionAccepted: - TQDropEvent
  • isActive: + TQCloseEvent TQContextMenuEvent TQDropEvent TQIMEvent TQIconDragEvent TQKeyEvent TQMouseEvent TQTabletEvent TQWheelEvent
  • isActionAccepted: + TQDropEvent
  • isActive: TQAccessible TQCanvasItem TQPainter TQSqlQuery TQSqlResult TQTableSelection TQTimer
  • isActiveWindow: TQWidget TQXtWidget
  • isAnchor: TQStyleSheetItem
  • isAsynchronous: @@ -1544,7 +1544,7 @@ label: TQWidgetFactory
  • local8Bit: TQString
  • localData: TQThreadStorage
  • localFileToUri: - TQUriDrag
  • localName: + TQUriDrag
  • localName: TQDomNode TQXmlAttributes
  • locale: TQTextCodec
  • localeAwareCompare: TQString
  • lock: @@ -1573,7 +1573,7 @@ m11: TQApplication TQLayout
  • mainWindow: TQToolBar
  • majorVersion: TQHttpHeader TQHttpRequestHeader TQHttpResponseHeader
  • makeAbsolute: - TQMimeSourceFactory
  • makeArc: + TQMimeSourceFactory
  • makeArc: TQPointArray
  • makeCurrent: TQGLContext TQGLWidget
  • makeDecoder: TQTextCodec
  • makeEllipse: @@ -1646,7 +1646,7 @@ m11: TQFrame TQStyleOption
  • midlight: TQColorGroup
  • mightBeRichText: TQStyleSheet
  • mimeFor: - TQMacMime TQWindowsMime
  • mimeName: + TQMacMime TQWindowsMime
  • mimeName: TQEucJpCodec TQEucKrCodec TQHebrewCodec TQJisCodec TQSjisCodec TQTextCodec
  • mimeSourceFactory: TQTextEdit
  • minLeftBearing: TQFontMetrics
  • minPage: @@ -1916,8 +1916,8 @@ packImage: TQImage
  • pixelMetric: TQStyle
  • pixelSize: TQFont TQFontInfo
  • pixmap: - TQBrush TQButton TQCheckBox TQClipboard TQComboBox TQDragObject TQFileIconProvider TQIconSet TQIconViewItem TQLabel TQListBox TQListBoxItem TQListBoxPixmap TQListViewItem TQMenuData TQPopupMenu TQPushButton TQRadioButton TQSplashScreen TQTable TQTableItem
  • pixmapHotSpot: - TQDragObject
  • pixmapRect: + TQBrush TQButton TQCheckBox TQClipboard TQComboBox TQDragObject TQFileIconProvider TQIconSet TQIconViewItem TQLabel TQListBox TQListBoxItem TQListBoxPixmap TQListViewItem TQMenuData TQPopupMenu TQPushButton TQRadioButton TQSplashScreen TQTable TQTableItem
  • pixmapHotSpot: + TQDragObject
  • pixmapRect: TQIconViewItem
  • pixmapSizeChanged: TQMainWindow
  • place: TQDockWindow
  • placeChanged: @@ -1939,7 +1939,7 @@ packImage: TQComboBox TQPopupMenu TQPushButton TQToolButton
  • popupDelay: TQToolButton
  • port: TQServerSocket TQSocket TQSocketDevice TQSqlDatabase TQUrl
  • pos: - TQContextMenuEvent TQCursor TQDropEvent TQIconViewItem TQMouseEvent TQMoveEvent TQRegExp TQTabletEvent TQWheelEvent TQWidget
  • position: + TQContextMenuEvent TQCursor TQDropEvent TQIconViewItem TQMouseEvent TQMoveEvent TQRegExp TQTabletEvent TQWheelEvent TQWidget
  • position: TQSqlRecord
  • positionFromValue: TQRangeControl
  • post: TQHttp
  • postEvent: @@ -1983,7 +1983,7 @@ packImage: TQMetaObject
  • protocol: TQSocketDevice TQUrl
  • protocolDetail: TQNetworkOperation
  • provides: - TQDropEvent TQMimeSource
  • publicId: + TQDropEvent TQMimeSource
  • publicId: TQDomDocumentType TQDomEntity TQDomNotation TQXmlParseException
  • push: TQPtrStack TQValueStack
  • pushContext: TQXmlNamespaceSupport
  • pushData: @@ -2127,7 +2127,7 @@ rBottom: TQDockArea TQMainWindow
  • removeEntry: TQSettings
  • removeEventFilter: TQObject
  • removeFactory: - TQMimeSourceFactory
  • removeFirst: + TQMimeSourceFactory
  • removeFirst: TQPtrList
  • removeFrom: TQAction
  • removeItem: TQAccel TQComboBox TQLayout TQListBox TQMenuBar TQMenuData TQPopupMenu TQToolBox
  • removeItemAt: @@ -2312,7 +2312,7 @@ sRect: TQDataSource TQIODeviceSource
  • sender: TQObject
  • separator: TQDateEdit TQDir TQTimeEdit
  • serialNumber: - TQMimeSource TQPalette TQPixmap
  • servers: + TQMimeSource TQPalette TQPixmap
  • servers: TQDns
  • sessionId: TQApplication TQSessionManager
  • sessionKey: TQApplication TQSessionManager
  • setAccel: @@ -2320,7 +2320,7 @@ sRect: TQDockArea
  • setAcceptDrops: TQWidget
  • setAccum: TQGLFormat
  • setAction: - TQDropEvent
  • setActive: + TQDropEvent
  • setActive: TQCanvasItem TQPalette TQSqlResult
  • setActiveItem: TQPopupMenu
  • setActiveWindow: TQWidget TQXtWidget
  • setAddress: @@ -2419,7 +2419,7 @@ sRect: TQGridLayout
  • setColStretch: TQGridLayout
  • setCollapsible: TQSplitter
  • setColor: - TQBrush TQCanvasText TQColorDrag TQColorGroup TQImage TQPalette TQPen TQStyleSheetItem TQTextEdit
  • setColorMode: + TQBrush TQCanvasText TQColorDrag TQColorGroup TQImage TQPalette TQPen TQStyleSheetItem TQTextEdit
  • setColorMode: TQPrinter
  • setColorSpec: TQApplication
  • setColormap: TQGLWidget
  • setColumn: @@ -2470,7 +2470,7 @@ sRect: TQColorDialog
  • setCustomHighlighting: TQListBoxItem
  • setDTDHandler: TQXmlReader
  • setData: - TQClipboard TQCustomEvent TQDomCharacterData TQDomProcessingInstruction TQIconDragItem TQMimeSourceFactory TQPicture TQXmlInputSource
  • setDatabaseName: + TQClipboard TQCustomEvent TQDomCharacterData TQDomProcessingInstruction TQIconDragItem TQMimeSourceFactory TQPicture TQXmlInputSource
  • setDatabaseName: TQSqlDatabase
  • setDatabaseText: TQSqlError
  • setDate: TQDateEdit TQDateTime
  • setDateFormat: @@ -2483,7 +2483,7 @@ sRect: TQFile
  • setDefault: TQLocale TQPushButton
  • setDefaultButton: TQTabDialog
  • setDefaultFactory: - TQMimeSourceFactory
  • setDefaultFont: + TQMimeSourceFactory
  • setDefaultFont: TQSimpleRichText
  • setDefaultFormat: TQGLFormat
  • setDefaultOptimization: TQPixmap
  • setDefaultOverlayFormat: @@ -2527,7 +2527,7 @@ sRect: TQMultiLineEdit
  • setEffectEnabled: TQApplication
  • setEnabled: TQAccel TQAction TQCanvasItem TQLayout TQListViewItem TQSocketNotifier TQTab TQTableItem TQToolTipGroup TQWidget
  • setEncodedData: - TQStoredDrag
  • setEncodedPathAndQuery: + TQStoredDrag
  • setEncodedPathAndQuery: TQUrl
  • setEncoding: TQTextStream
  • setEncodingFunction: TQFile
  • setEntityResolver: @@ -2544,14 +2544,14 @@ sRect: TQCString
  • setExpandable: TQListViewItem
  • setExtension: TQDialog
  • setExtensionType: - TQMimeSourceFactory
  • setFalseText: + TQMimeSourceFactory
  • setFalseText: TQDataTable
  • setFamily: TQFont TQTextEdit
  • setFeature: TQXmlReader TQXmlSimpleReader
  • setFile: TQFileInfo TQUrlInfo
  • setFileName: TQImageIO TQUrl
  • setFileNames: - TQUriDrag
  • setFilePath: - TQMimeSourceFactory
  • setFilter: + TQUriDrag
  • setFilePath: + TQMimeSourceFactory
  • setFilter: TQDataBrowser TQDataTable TQDir TQFileDialog TQSqlCursor
  • setFilters: TQFileDialog
  • setFinishEnabled: TQWizard
  • setFixedExtentHeight: @@ -2622,7 +2622,7 @@ sRect: TQWidget
  • setId: TQMenuData
  • setIdentifier: TQTab
  • setImage: - TQCanvasPixmapArray TQClipboard TQImageDrag TQImageIO TQMimeSourceFactory
  • setInactive: + TQCanvasPixmapArray TQClipboard TQImageDrag TQImageIO TQMimeSourceFactory
  • setInactive: TQPalette
  • setIndent: TQLabel
  • setIndicator: TQProgressBar
  • setIndicatorFollowsStyle: @@ -2774,10 +2774,10 @@ sRect: TQImage
  • setPixelAlignment: TQPNGImagePacker
  • setPixelSize: TQFont
  • setPixmap: - TQBrush TQButton TQCheckBox TQClipboard TQDragObject TQIconSet TQIconViewItem TQLabel TQListViewItem TQMimeSourceFactory TQPushButton TQRadioButton TQSplashScreen TQTable TQTableItem
  • setPixmapRect: + TQBrush TQButton TQCheckBox TQClipboard TQDragObject TQIconSet TQIconViewItem TQLabel TQListViewItem TQMimeSourceFactory TQPushButton TQRadioButton TQSplashScreen TQTable TQTableItem
  • setPixmapRect: TQIconViewItem
  • setPlane: TQGLFormat
  • setPoint: - TQDropEvent TQPointArray
  • setPointSize: + TQDropEvent TQPointArray
  • setPointSize: TQFont TQTextEdit
  • setPointSizeFloat: TQFont
  • setPoints: TQCanvasLine TQCanvasPolygon
  • setPopup: @@ -2922,7 +2922,7 @@ sRect: TQPainter
  • setTabToolTip: TQTabWidget
  • setTagName: TQDomElement
  • setText: - TQAccessibleInterface TQAction TQButton TQCanvasText TQCheckBox TQClipboard TQIconViewItem TQImage TQLabel TQLineEdit TQListBoxItem TQListViewItem TQMessageBox TQMimeSourceFactory TQPushButton TQRadioButton TQTab TQTable TQTableItem TQTextDrag TQTextEdit
  • setTextFlags: + TQAccessibleInterface TQAction TQButton TQCanvasText TQCheckBox TQClipboard TQIconViewItem TQImage TQLabel TQLineEdit TQListBoxItem TQListViewItem TQMessageBox TQMimeSourceFactory TQPushButton TQRadioButton TQTab TQTable TQTableItem TQTextDrag TQTextEdit
  • setTextFlags: TQCanvasText
  • setTextFormat: TQLabel TQMessageBox TQTextEdit
  • setTextLabel: TQToolButton
  • setTextPosition: @@ -2961,11 +2961,11 @@ sRect: TQTextEdit
  • setUnicode: TQString
  • setUnicodeCodes: TQString
  • setUnicodeUris: - TQUriDrag
  • setUpLayout: + TQUriDrag
  • setUpLayout: TQMainWindow
  • setUpdatePeriod: TQCanvas
  • setUpdatesEnabled: TQWidget
  • setUris: - TQUriDrag
  • setUrl: + TQUriDrag
  • setUrl: TQFileDialog TQNetworkProtocol
  • setUseHighlightColors: TQMotifStyle
  • setUser: TQUrl
  • setUserName: @@ -3085,7 +3085,7 @@ sRect: TQHeader
  • sortOrder: TQListView
  • sorting: TQDir TQIconView TQTable
  • source: - TQDragObject TQDropEvent TQTextBrowser
  • sourceChanged: + TQDragObject TQDropEvent TQTextBrowser
  • sourceChanged: TQTextBrowser
  • sourceText: TQTranslatorMessage
  • spacePressed: TQListView
  • spacerItem: @@ -3204,10 +3204,10 @@ tab: TQDomElement
  • take: TQAsciiCache TQAsciiDict TQCache TQDict TQIntCache TQIntDict TQPtrDict TQPtrList TQPtrVector
  • takeCurrent: TQGLayoutIterator TQLayoutIterator
  • takeDefaultFactory: - TQMimeSourceFactory
  • takeItem: + TQMimeSourceFactory
  • takeItem: TQIconView TQListBox TQListView TQListViewItem TQTable
  • takeNode: TQPtrList
  • target: - TQDomProcessingInstruction TQDragObject
  • terminate: + TQDomProcessingInstruction TQDragObject
  • terminate: TQThread
  • testBit: TQBitArray
  • testOption: TQGLFormat
  • testWFlags: @@ -3359,7 +3359,7 @@ ucs2: TQDockWindow
  • ungetch: TQFile TQIODevice TQSocket
  • unicode: TQChar TQString
  • unicodeUriToUri: - TQUriDrag
  • uniqueId: + TQUriDrag
  • uniqueId: TQTabletEvent
  • unite: TQRect TQRegion
  • unload: TQLibrary
  • unlock: @@ -3393,8 +3393,8 @@ ucs2: TQScrollView
  • upper: TQCString TQChar TQString
  • uri: TQXmlAttributes TQXmlNamespaceSupport
  • uriToLocalFile: - TQUriDrag
  • uriToUnicodeUri: - TQUriDrag
  • url: + TQUriDrag
  • uriToUnicodeUri: + TQUriDrag
  • url: TQFileDialog TQNPStream TQNetworkProtocol
  • useHighlightColors: TQMotifStyle
  • user: TQUrl
  • userAgent: diff --git a/doc/html/headerfilesynonyms b/doc/html/headerfilesynonyms index 9c23227da..c61cd926a 100644 --- a/doc/html/headerfilesynonyms +++ b/doc/html/headerfilesynonyms @@ -47,11 +47,11 @@ tqdomnotation.h tqdom.h tqdomentity.h tqdom.h tqdomentityreference.h tqdom.h tqdomprocessinginstruction.h tqdom.h -qstoreddrag.h ntqdragobject.h -tqtextdrag.h ntqdragobject.h -tqimagedrag.h ntqdragobject.h -quridrag.h ntqdragobject.h -qcolordrag.h ntqdragobject.h +tqstoreddrag.h tqdragobject.h +tqtextdrag.h tqdragobject.h +tqimagedrag.h tqdragobject.h +tquridrag.h tqdragobject.h +tqcolordrag.h tqdragobject.h tqtimerevent.h ntqevent.h qmouseevent.h ntqevent.h qwheelevent.h ntqevent.h @@ -67,10 +67,10 @@ qshowevent.h ntqevent.h qhideevent.h ntqevent.h qcontextmenuevent.h ntqevent.h qimevent.h ntqevent.h -qdropevent.h ntqevent.h -qdragmoveevent.h ntqevent.h -qdragenterevent.h ntqevent.h -qdragleaveevent.h ntqevent.h +tqdropevent.h ntqevent.h +tqdragmoveevent.h ntqevent.h +tqdragenterevent.h ntqevent.h +tqdragleaveevent.h ntqevent.h qchildevent.h ntqevent.h qcustomevent.h ntqevent.h qfileiconprovider.h ntqfiledialog.h @@ -110,10 +110,10 @@ tqmapiterator.h tqmap.h tqmapconstiterator.h tqmap.h qcustommenuitem.h tqmenudata.h qmetaproperty.h ntqmetaobject.h -qmimesource.h ntqmime.h -qmimesourcefactory.h ntqmime.h -qwindowsmime.h ntqmime.h -qmacmime.h ntqmime.h +tqmimesource.h tqmime.h +tqmimesourcefactory.h tqmime.h +tqwindowsmime.h tqmime.h +tqmacmime.h tqmime.h tqmutexlocker.h tqmutex.h qnetworkoperation.h ntqnetworkprotocol.h qnpstream.h ntqnp.h diff --git a/doc/html/headers.html b/doc/html/headers.html index bd2094388..c83c7ef66 100644 --- a/doc/html/headers.html +++ b/doc/html/headers.html @@ -78,9 +78,9 @@ body { background: #ffffff; color: black; }
  • ntqdockarea.h
  • ntqdockwindow.h
  • tqdom.h -
  • ntqdragobject.h +
  • tqdragobject.h
  • ntqdrawutil.h -
  • ntqdropsite.h +
  • tqdropsite.h
  • tqeditorfactory.h
  • ntqerrormessage.h
  • tqeucjpcodec.h @@ -139,7 +139,7 @@ body { background: #ffffff; color: black; }
  • tqmenudata.h
  • ntqmessagebox.h
  • ntqmetaobject.h -
  • ntqmime.h +
  • tqmime.h
  • qmotif.h
  • qmotifdialog.h
  • ntqmotifplusstyle.h diff --git a/doc/html/hierarchy.html b/doc/html/hierarchy.html index 62d3068fa..bfa81d739 100644 --- a/doc/html/hierarchy.html +++ b/doc/html/hierarchy.html @@ -88,7 +88,7 @@ classes in the TQt API.
  • TQDomProcessingInstruction
  • TQDomNodeList -
  • TQDropSite +
  • TQDropSite
  • TQFileInfo
  • TQFilePreview
  • TQFocusData @@ -142,7 +142,7 @@ classes in the TQt API.
  • TQListViewItemIterator
  • TQLocale -
  • TQMacMime +
  • TQMacMime
  • TQMap
  • TQMapConstIterator
  • TQMapIterator @@ -158,8 +158,8 @@ classes in the TQt API.
  • TQMenuData
  • TQMetaObject
  • TQMetaProperty -
  • TQMimeSource -
  • TQMimeSourceFactory +
  • TQMimeSource +
  • TQMimeSourceFactory
  • TQMovie
  • TQMutex
  • TQMutexLocker @@ -264,12 +264,12 @@ classes in the TQt API.
  • TQCloseEvent
  • TQContextMenuEvent
  • TQCustomEvent -
  • TQDragLeaveEvent -
  • TQDropEvent +
  • TQDragLeaveEvent +
  • TQDropEvent
  • TQFocusEvent @@ -308,14 +308,14 @@ classes in the TQt API.
  • TQClipboard
  • TQDataPump
  • TQDns -
  • TQDragObject +
  • TQDragObject @@ -542,7 +542,7 @@ classes in the TQt API.
  • TQWaitCondition
  • TQWidgetFactory
  • TQWidgetPlugin -
  • TQWindowsMime +
  • TQWindowsMime
  • TQWMatrix
  • TQXmlAttributes
  • TQXmlContentHandler diff --git a/doc/html/iconview-example.html b/doc/html/iconview-example.html index 7bb2e3bea..47caf4ab5 100644 --- a/doc/html/iconview-example.html +++ b/doc/html/iconview-example.html @@ -49,11 +49,11 @@ view modes, rubberband selection, etc. #include <tqiconview.h> #include <ntqapplication.h> -#include <ntqdragobject.h> +#include <tqdragobject.h> #include <ntqpixmap.h> #include <tqiconset.h> -#include <ntqmime.h> +#include <tqmime.h> #include <stdio.h> class ListenDND : public TQObject @@ -66,15 +66,15 @@ public: {} public slots: - void dropped( TQDropEvent *mime ) { + void dropped( TQDropEvent *mime ) { tqDebug( "Dropped Mimesource %p into the view %p", mime, view ); tqDebug( " Formats:" ); int i = 0; - const char *str = mime->format( i ); + const char *str = mime->format( i ); tqDebug( " %s", str ); while ( str ) { tqDebug( " %s", str ); - str = mime->format( ++i ); + str = mime->format( ++i ); } }; void moved() { @@ -101,8 +101,8 @@ int main( int argc, char **argv ) tqiconview.setCaption( "TQt Example - Iconview" ); ListenDND listen_dnd( &tqiconview ); - TQObject::connect( &tqiconview, TQ_SIGNAL( dropped( TQDropEvent *, const TQValueList<TQIconDragItem> & ) ), - &listen_dnd, TQ_SLOT( dropped( TQDropEvent * ) ) ); + TQObject::connect( &tqiconview, TQ_SIGNAL( dropped( TQDropEvent *, const TQValueList<TQIconDragItem> & ) ), + &listen_dnd, TQ_SLOT( dropped( TQDropEvent * ) ) ); TQObject::connect( &tqiconview, TQ_SIGNAL( moved() ), &listen_dnd, TQ_SLOT( moved() ) ); a.setMainWidget( &tqiconview ); diff --git a/doc/html/iconview-simple_dd-main-cpp.html b/doc/html/iconview-simple_dd-main-cpp.html index c414ec7dc..f4a930d0e 100644 --- a/doc/html/iconview-simple_dd-main-cpp.html +++ b/doc/html/iconview-simple_dd-main-cpp.html @@ -118,14 +118,14 @@ const char* green_icon[]={ } -void DDListBox::dragEnterEvent( TQDragEnterEvent *evt ) +void DDListBox::dragEnterEvent( TQDragEnterEvent *evt ) { if ( TQTextDrag::canDecode( evt ) ) - evt->accept(); + evt->accept(); } -void DDListBox::dropEvent( TQDropEvent *evt ) +void DDListBox::dropEvent( TQDropEvent *evt ) { TQString text; @@ -144,8 +144,8 @@ const char* green_icon[]={ void DDListBox::mouseMoveEvent( TQMouseEvent * ) { if ( dragging ) { - TQDragObject *d = new TQTextDrag( currentText(), this ); - d->dragCopy(); // do NOT delete d. + TQDragObject *d = new TQTextDrag( currentText(), this ); + d->dragCopy(); // do NOT delete d. dragging = FALSE; } } @@ -154,15 +154,15 @@ const char* green_icon[]={ // IconViewIcon -- high level drag and drop -bool DDIconViewItem::acceptDrop( const TQMimeSource *mime ) const +bool DDIconViewItem::acceptDrop( const TQMimeSource *mime ) const { - if ( mime->provides( "text/plain" ) ) + if ( mime->provides( "text/plain" ) ) return TRUE; return FALSE; } -void DDIconViewItem::dropped( TQDropEvent *evt, const TQValueList<TQIconDragItem>& ) +void DDIconViewItem::dropped( TQDropEvent *evt, const TQValueList<TQIconDragItem>& ) { TQString label; @@ -178,7 +178,7 @@ const char* green_icon[]={ return new TQTextDrag( currentItem()->text(), this ); } -void DDIconView::slotNewItem( TQDropEvent *evt, const TQValueList<TQIconDragItem>& ) +void DDIconView::slotNewItem( TQDropEvent *evt, const TQValueList<TQIconDragItem>& ) { TQString label; diff --git a/doc/html/iconview-simple_dd-main-h.html b/doc/html/iconview-simple_dd-main-h.html index 85e1bf16c..a18644e31 100644 --- a/doc/html/iconview-simple_dd-main-h.html +++ b/doc/html/iconview-simple_dd-main-h.html @@ -59,8 +59,8 @@ class DDListBox : public TQListBox public: DDListBox( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 ); // Low-level drag and drop - void dragEnterEvent( TQDragEnterEvent *evt ); - void dropEvent( TQDropEvent *evt ); + void dragEnterEvent( TQDragEnterEvent *evt ); + void dropEvent( TQDropEvent *evt ); void mousePressEvent( TQMouseEvent *evt ); void mouseMoveEvent( TQMouseEvent * ); private: @@ -76,8 +76,8 @@ public: DDIconViewItem( TQIconView *parent, const TQString &text ) : TQIconViewItem( parent, text ) {} // High-level drag and drop - bool acceptDrop( const TQMimeSource *mime ) const; - void dropped( TQDropEvent *evt, const TQValueList<TQIconDragItem>& ); + bool acceptDrop( const TQMimeSource *mime ) const; + void dropped( TQDropEvent *evt, const TQValueList<TQIconDragItem>& ); }; @@ -88,9 +88,9 @@ public: DDIconView( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 ) : TQIconView( parent, name, f ) {} // High-level drag and drop - TQDragObject *dragObject(); + TQDragObject *dragObject(); public slots: - void slotNewItem( TQDropEvent *evt, const TQValueList<TQIconDragItem>& list ); + void slotNewItem( TQDropEvent *evt, const TQValueList<TQIconDragItem>& list ); };
  • diff --git a/doc/html/index b/doc/html/index index 17fd27759..85868fc74 100644 --- a/doc/html/index +++ b/doc/html/index @@ -924,10 +924,10 @@ "QColorDialog::setSelectedAlpha" ntqcolordialog.html#setSelectedAlpha "QColorDialog::setStandardColor" ntqcolordialog.html#setStandardColor "QColorDialog::~QColorDialog" ntqcolordialog.html#~QColorDialog -"QColorDrag" qcolordrag.html -"QColorDrag::canDecode" qcolordrag.html#canDecode -"QColorDrag::decode" qcolordrag.html#decode -"QColorDrag::setColor" qcolordrag.html#setColor +"TQColorDrag" tqcolordrag.html +"TQColorDrag::canDecode" tqcolordrag.html#canDecode +"TQColorDrag::decode" tqcolordrag.html#decode +"TQColorDrag::setColor" tqcolordrag.html#setColor "QColorGroup" qcolorgroup.html "QColorGroup::ColorRole" qcolorgroup.html#ColorRole "QColorGroup::background" qcolorgroup.html#background @@ -1834,40 +1834,40 @@ "QDoubleValidator::top" qdoublevalidator.html#top-prop "QDoubleValidator::validate" qdoublevalidator.html#validate "QDoubleValidator::~QDoubleValidator" qdoublevalidator.html#~QDoubleValidator -"QDragEnterEvent" qdragenterevent.html -"QDragLeaveEvent" qdragleaveevent.html -"QDragMoveEvent" qdragmoveevent.html -"QDragMoveEvent::accept" qdragmoveevent.html#accept -"QDragMoveEvent::answerRect" qdragmoveevent.html#answerRect -"QDragMoveEvent::ignore" qdragmoveevent.html#ignore -"QDragObject" ntqdragobject.html -"QDragObject::DragMode" ntqdragobject.html#DragMode -"QDragObject::drag" ntqdragobject.html#drag -"QDragObject::dragCopy" ntqdragobject.html#dragCopy -"QDragObject::dragLink" ntqdragobject.html#dragLink -"QDragObject::dragMove" ntqdragobject.html#dragMove -"QDragObject::pixmap" ntqdragobject.html#pixmap -"QDragObject::pixmapHotSpot" ntqdragobject.html#pixmapHotSpot -"QDragObject::setPixmap" ntqdragobject.html#setPixmap -"QDragObject::source" ntqdragobject.html#source -"QDragObject::target" ntqdragobject.html#target -"QDragObject::~QDragObject" ntqdragobject.html#~QDragObject -"QDropEvent" qdropevent.html -"QDropEvent::Action" qdropevent.html#Action -"QDropEvent::accept" qdropevent.html#accept -"QDropEvent::acceptAction" qdropevent.html#acceptAction -"QDropEvent::action" qdropevent.html#action -"QDropEvent::encodedData" qdropevent.html#encodedData -"QDropEvent::format" qdropevent.html#format -"QDropEvent::ignore" qdropevent.html#ignore -"QDropEvent::isAccepted" qdropevent.html#isAccepted -"QDropEvent::isActionAccepted" qdropevent.html#isActionAccepted -"QDropEvent::pos" qdropevent.html#pos -"QDropEvent::provides" qdropevent.html#provides -"QDropEvent::setAction" qdropevent.html#setAction -"QDropEvent::setPoint" qdropevent.html#setPoint -"QDropEvent::source" qdropevent.html#source -"QDropSite::~QDropSite" ntqdropsite.html#~QDropSite +"TQDragEnterEvent" tqdragenterevent.html +"TQDragLeaveEvent" tqdragleaveevent.html +"TQDragMoveEvent" tqdragmoveevent.html +"TQDragMoveEvent::accept" tqdragmoveevent.html#accept +"TQDragMoveEvent::answerRect" tqdragmoveevent.html#answerRect +"TQDragMoveEvent::ignore" tqdragmoveevent.html#ignore +"TQDragObject" tqdragobject.html +"TQDragObject::DragMode" tqdragobject.html#DragMode +"TQDragObject::drag" tqdragobject.html#drag +"TQDragObject::dragCopy" tqdragobject.html#dragCopy +"TQDragObject::dragLink" tqdragobject.html#dragLink +"TQDragObject::dragMove" tqdragobject.html#dragMove +"TQDragObject::pixmap" tqdragobject.html#pixmap +"TQDragObject::pixmapHotSpot" tqdragobject.html#pixmapHotSpot +"TQDragObject::setPixmap" tqdragobject.html#setPixmap +"TQDragObject::source" tqdragobject.html#source +"TQDragObject::target" tqdragobject.html#target +"TQDragObject::~TQDragObject" tqdragobject.html#~TQDragObject +"TQDropEvent" tqdropevent.html +"TQDropEvent::Action" tqdropevent.html#Action +"TQDropEvent::accept" tqdropevent.html#accept +"TQDropEvent::acceptAction" tqdropevent.html#acceptAction +"TQDropEvent::action" tqdropevent.html#action +"TQDropEvent::encodedData" tqdropevent.html#encodedData +"TQDropEvent::format" tqdropevent.html#format +"TQDropEvent::ignore" tqdropevent.html#ignore +"TQDropEvent::isAccepted" tqdropevent.html#isAccepted +"TQDropEvent::isActionAccepted" tqdropevent.html#isActionAccepted +"TQDropEvent::pos" tqdropevent.html#pos +"TQDropEvent::provides" tqdropevent.html#provides +"TQDropEvent::setAction" tqdropevent.html#setAction +"TQDropEvent::setPoint" tqdropevent.html#setPoint +"TQDropEvent::source" tqdropevent.html#source +"TQDropSite::~TQDropSite" tqdropsite.html#~TQDropSite "TQEditorFactory" tqeditorfactory.html "TQEditorFactory::createEditor" tqeditorfactory.html#createEditor "TQEditorFactory::defaultFactory" tqeditorfactory.html#defaultFactory @@ -3746,19 +3746,19 @@ "QLocale::toULong" ntqlocale.html#toULong "QLocale::toULongLong" ntqlocale.html#toULongLong "QLocale::toUShort" ntqlocale.html#toUShort -"QMacMime" qmacmime.html -"QMacMime::all" qmacmime.html#all -"QMacMime::canConvert" qmacmime.html#canConvert -"QMacMime::convertFromMime" qmacmime.html#convertFromMime -"QMacMime::convertToMime" qmacmime.html#convertToMime -"QMacMime::convertor" qmacmime.html#convertor -"QMacMime::convertorName" qmacmime.html#convertorName -"QMacMime::countFlavors" qmacmime.html#countFlavors -"QMacMime::flavor" qmacmime.html#flavor -"QMacMime::flavorFor" qmacmime.html#flavorFor -"QMacMime::flavorToMime" qmacmime.html#flavorToMime -"QMacMime::mimeFor" qmacmime.html#mimeFor -"QMacMime::~QMacMime" qmacmime.html#~QMacMime +"TQMacMime" tqmacmime.html +"TQMacMime::all" tqmacmime.html#all +"TQMacMime::canConvert" tqmacmime.html#canConvert +"TQMacMime::convertFromMime" tqmacmime.html#convertFromMime +"TQMacMime::convertToMime" tqmacmime.html#convertToMime +"TQMacMime::convertor" tqmacmime.html#convertor +"TQMacMime::convertorName" tqmacmime.html#convertorName +"TQMacMime::countFlavors" tqmacmime.html#countFlavors +"TQMacMime::flavor" tqmacmime.html#flavor +"TQMacMime::flavorFor" tqmacmime.html#flavorFor +"TQMacMime::flavorToMime" tqmacmime.html#flavorToMime +"TQMacMime::mimeFor" tqmacmime.html#mimeFor +"TQMacMime::~TQMacMime" tqmacmime.html#~TQMacMime "QMacStyle" qmacstyle.html "QMacStyle::FocusRectPolicy" qmacstyle.html#FocusRectPolicy "QMacStyle::WidgetSizePolicy" qmacstyle.html#WidgetSizePolicy @@ -4018,29 +4018,29 @@ "QMetaProperty::valueToKey" qmetaproperty.html#valueToKey "QMetaProperty::valueToKeys" qmetaproperty.html#valueToKeys "QMetaProperty::writable" qmetaproperty.html#writable -"QMimeSource" qmimesource.html -"QMimeSource::encodedData" qmimesource.html#encodedData -"QMimeSource::format" qmimesource.html#format -"QMimeSource::provides" qmimesource.html#provides -"QMimeSource::serialNumber" qmimesource.html#serialNumber -"QMimeSource::~QMimeSource" qmimesource.html#~QMimeSource -"QMimeSourceFactory" qmimesourcefactory.html -"QMimeSourceFactory::addFactory" qmimesourcefactory.html#addFactory -"QMimeSourceFactory::addFilePath" qmimesourcefactory.html#addFilePath -"QMimeSourceFactory::data" qmimesourcefactory.html#data -"QMimeSourceFactory::defaultFactory" qmimesourcefactory.html#defaultFactory -"QMimeSourceFactory::filePath" qmimesourcefactory.html#filePath -"QMimeSourceFactory::makeAbsolute" qmimesourcefactory.html#makeAbsolute -"QMimeSourceFactory::removeFactory" qmimesourcefactory.html#removeFactory -"QMimeSourceFactory::setData" qmimesourcefactory.html#setData -"QMimeSourceFactory::setDefaultFactory" qmimesourcefactory.html#setDefaultFactory -"QMimeSourceFactory::setExtensionType" qmimesourcefactory.html#setExtensionType -"QMimeSourceFactory::setFilePath" qmimesourcefactory.html#setFilePath -"QMimeSourceFactory::setImage" qmimesourcefactory.html#setImage -"QMimeSourceFactory::setPixmap" qmimesourcefactory.html#setPixmap -"QMimeSourceFactory::setText" qmimesourcefactory.html#setText -"QMimeSourceFactory::takeDefaultFactory" qmimesourcefactory.html#takeDefaultFactory -"QMimeSourceFactory::~QMimeSourceFactory" qmimesourcefactory.html#~QMimeSourceFactory +"TQMimeSource" tqmimesource.html +"TQMimeSource::encodedData" tqmimesource.html#encodedData +"TQMimeSource::format" tqmimesource.html#format +"TQMimeSource::provides" tqmimesource.html#provides +"TQMimeSource::serialNumber" tqmimesource.html#serialNumber +"TQMimeSource::~TQMimeSource" tqmimesource.html#~TQMimeSource +"TQMimeSourceFactory" tqmimesourcefactory.html +"TQMimeSourceFactory::addFactory" tqmimesourcefactory.html#addFactory +"TQMimeSourceFactory::addFilePath" tqmimesourcefactory.html#addFilePath +"TQMimeSourceFactory::data" tqmimesourcefactory.html#data +"TQMimeSourceFactory::defaultFactory" tqmimesourcefactory.html#defaultFactory +"TQMimeSourceFactory::filePath" tqmimesourcefactory.html#filePath +"TQMimeSourceFactory::makeAbsolute" tqmimesourcefactory.html#makeAbsolute +"TQMimeSourceFactory::removeFactory" tqmimesourcefactory.html#removeFactory +"TQMimeSourceFactory::setData" tqmimesourcefactory.html#setData +"TQMimeSourceFactory::setDefaultFactory" tqmimesourcefactory.html#setDefaultFactory +"TQMimeSourceFactory::setExtensionType" tqmimesourcefactory.html#setExtensionType +"TQMimeSourceFactory::setFilePath" tqmimesourcefactory.html#setFilePath +"TQMimeSourceFactory::setImage" tqmimesourcefactory.html#setImage +"TQMimeSourceFactory::setPixmap" tqmimesourcefactory.html#setPixmap +"TQMimeSourceFactory::setText" tqmimesourcefactory.html#setText +"TQMimeSourceFactory::takeDefaultFactory" tqmimesourcefactory.html#takeDefaultFactory +"TQMimeSourceFactory::~TQMimeSourceFactory" tqmimesourcefactory.html#~TQMimeSourceFactory "QMotif" qmotif.html "QMotif::applicationContext" qmotif.html#applicationContext "QMotif::x11Display" qmotif.html#x11Display @@ -5874,10 +5874,10 @@ "TQStatusBar::setSizeGripEnabled" tqstatusbar.html#setSizeGripEnabled "TQStatusBar::sizeGripEnabled" tqstatusbar.html#sizeGripEnabled-prop "TQStatusBar::~TQStatusBar" tqstatusbar.html#~TQStatusBar -"QStoredDrag" qstoreddrag.html -"QStoredDrag::encodedData" qstoreddrag.html#encodedData -"QStoredDrag::setEncodedData" qstoreddrag.html#setEncodedData -"QStoredDrag::~QStoredDrag" qstoreddrag.html#~QStoredDrag +"TQStoredDrag" tqstoreddrag.html +"TQStoredDrag::encodedData" tqstoreddrag.html#encodedData +"TQStoredDrag::setEncodedData" tqstoreddrag.html#setEncodedData +"TQStoredDrag::~TQStoredDrag" tqstoreddrag.html#~TQStoredDrag "TQStrIList" tqstrilist.html "TQStrIList::~TQStrIList" tqstrilist.html#~TQStrIList "TQStrList" tqstrlist.html @@ -6886,19 +6886,19 @@ "QTranslatorMessage::translation" qtranslatormessage.html#translation "QTranslatorMessage::write" qtranslatormessage.html#write "TQTsciiCodec" tqtsciicodec.html -"QUriDrag" quridrag.html -"QUriDrag::canDecode" quridrag.html#canDecode -"QUriDrag::decode" quridrag.html#decode -"QUriDrag::decodeLocalFiles" quridrag.html#decodeLocalFiles -"QUriDrag::decodeToUnicodeUris" quridrag.html#decodeToUnicodeUris -"QUriDrag::localFileToUri" quridrag.html#localFileToUri -"QUriDrag::setFileNames" quridrag.html#setFileNames -"QUriDrag::setUnicodeUris" quridrag.html#setUnicodeUris -"QUriDrag::setUris" quridrag.html#setUris -"QUriDrag::unicodeUriToUri" quridrag.html#unicodeUriToUri -"QUriDrag::uriToLocalFile" quridrag.html#uriToLocalFile -"QUriDrag::uriToUnicodeUri" quridrag.html#uriToUnicodeUri -"QUriDrag::~QUriDrag" quridrag.html#~QUriDrag +"TQUriDrag" tquridrag.html +"TQUriDrag::canDecode" tquridrag.html#canDecode +"TQUriDrag::decode" tquridrag.html#decode +"TQUriDrag::decodeLocalFiles" tquridrag.html#decodeLocalFiles +"TQUriDrag::decodeToUnicodeUris" tquridrag.html#decodeToUnicodeUris +"TQUriDrag::localFileToUri" tquridrag.html#localFileToUri +"TQUriDrag::setFileNames" tquridrag.html#setFileNames +"TQUriDrag::setUnicodeUris" tquridrag.html#setUnicodeUris +"TQUriDrag::setUris" tquridrag.html#setUris +"TQUriDrag::unicodeUriToUri" tquridrag.html#unicodeUriToUri +"TQUriDrag::uriToLocalFile" tquridrag.html#uriToLocalFile +"TQUriDrag::uriToUnicodeUri" tquridrag.html#uriToUnicodeUri +"TQUriDrag::~TQUriDrag" tquridrag.html#~TQUriDrag "QUrl" ntqurl.html "QUrl::addPath" ntqurl.html#addPath "QUrl::cdUp" ntqurl.html#cdUp @@ -7599,20 +7599,20 @@ "TQWidgetStack::visibleWidget" tqwidgetstack.html#visibleWidget "TQWidgetStack::widget" tqwidgetstack.html#widget "TQWidgetStack::~TQWidgetStack" tqwidgetstack.html#~TQWidgetStack -"QWindowsMime" qwindowsmime.html -"QWindowsMime::all" qwindowsmime.html#all -"QWindowsMime::canConvert" qwindowsmime.html#canConvert -"QWindowsMime::cf" qwindowsmime.html#cf -"QWindowsMime::cfFor" qwindowsmime.html#cfFor -"QWindowsMime::cfToMime" qwindowsmime.html#cfToMime -"QWindowsMime::convertFromMime" qwindowsmime.html#convertFromMime -"QWindowsMime::convertToMime" qwindowsmime.html#convertToMime -"QWindowsMime::convertor" qwindowsmime.html#convertor -"QWindowsMime::convertorName" qwindowsmime.html#convertorName -"QWindowsMime::countCf" qwindowsmime.html#countCf -"QWindowsMime::initialize" qwindowsmime.html#initialize -"QWindowsMime::mimeFor" qwindowsmime.html#mimeFor -"QWindowsMime::~QWindowsMime" qwindowsmime.html#~QWindowsMime +"TQWindowsMime" tqwindowsmime.html +"TQWindowsMime::all" tqwindowsmime.html#all +"TQWindowsMime::canConvert" tqwindowsmime.html#canConvert +"TQWindowsMime::cf" tqwindowsmime.html#cf +"TQWindowsMime::cfFor" tqwindowsmime.html#cfFor +"TQWindowsMime::cfToMime" tqwindowsmime.html#cfToMime +"TQWindowsMime::convertFromMime" tqwindowsmime.html#convertFromMime +"TQWindowsMime::convertToMime" tqwindowsmime.html#convertToMime +"TQWindowsMime::convertor" tqwindowsmime.html#convertor +"TQWindowsMime::convertorName" tqwindowsmime.html#convertorName +"TQWindowsMime::countCf" tqwindowsmime.html#countCf +"TQWindowsMime::initialize" tqwindowsmime.html#initialize +"TQWindowsMime::mimeFor" tqwindowsmime.html#mimeFor +"TQWindowsMime::~TQWindowsMime" tqwindowsmime.html#~TQWindowsMime "QWindowsStyle" ntqwindowsstyle.html "QWizard" ntqwizard.html "QWizard::addPage" ntqwizard.html#addPage diff --git a/doc/html/io.html b/doc/html/io.html index 367b03c84..c4c9f7d58 100644 --- a/doc/html/io.html +++ b/doc/html/io.html @@ -52,9 +52,9 @@ devices, processes, files etc. as well as manipulating files and directories. TQImageIOParameters for loading and saving images TQIODeviceThe base class of I/O devices TQLocalFsImplementation of a TQNetworkProtocol that works on the local file system -TQMacMimeMaps open-standard MIME to Mac flavors -TQMimeSourceAbstraction of objects which provide formatted data of a certain MIME type -TQMimeSourceFactoryExtensible provider of mime-typed data +TQMacMimeMaps open-standard MIME to Mac flavors +TQMimeSourceAbstraction of objects which provide formatted data of a certain MIME type +TQMimeSourceFactoryExtensible provider of mime-typed data TQNetworkOperationCommon operations for network protocols TQNetworkProtocolCommon API for network protocols TQProcessUsed to start external programs and to communicate with them @@ -71,7 +71,7 @@ devices, processes, files etc. as well as manipulating files and directories. TQUrlURL parser and simplifies working with URLs TQUrlInfoStores information about URLs TQUrlOperatorCommon operations on URLs -TQWindowsMimeMaps open-standard MIME to Window Clipboard formats +TQWindowsMimeMaps open-standard MIME to Window Clipboard formats


    diff --git a/doc/html/misc.html b/doc/html/misc.html index 72cd1250f..5de4908d1 100644 --- a/doc/html/misc.html +++ b/doc/html/misc.html @@ -47,9 +47,9 @@ body { background: #ffffff; color: black; } TQFocusDataMaintains the list of widgets in the focus chain TQIntValidatorValidator which ensures that a string contains a valid integer within a specified range TQKeySequenceEncapsulates a key sequence as used by accelerators -TQMacMimeMaps open-standard MIME to Mac flavors +TQMacMimeMaps open-standard MIME to Mac flavors TQMenuDataBase class for TQMenuBar and TQPopupMenu -TQMimeSourceAbstraction of objects which provide formatted data of a certain MIME type +TQMimeSourceAbstraction of objects which provide formatted data of a certain MIME type TQProcessUsed to start external programs and to communicate with them TQRangeControlInteger value within a range TQRegExpPattern matching using regular expressions @@ -63,7 +63,7 @@ body { background: #ffffff; color: black; } TQUrlOperatorCommon operations on URLs TQValidatorValidation of input text TQVariantActs like a union for the most common TQt data types -TQWindowsMimeMaps open-standard MIME to Window Clipboard formats +TQWindowsMimeMaps open-standard MIME to Window Clipboard formats


    diff --git a/doc/html/ntqclipboard.html b/doc/html/ntqclipboard.html index f4d4374d3..0b9109da7 100644 --- a/doc/html/ntqclipboard.html +++ b/doc/html/ntqclipboard.html @@ -79,7 +79,7 @@ The TQClipboard class provides access to the window system clipboard.

    The clipboard offers a simple mechanism to copy and paste data between applications. -

    TQClipboard supports the same data types that TQDragObject does, and +

    TQClipboard supports the same data types that TQDragObject does, and uses similar mechanisms. For advanced clipboard usage read the drag-and-drop documentation.

    There is a single TQClipboard object in an application, and you can @@ -102,7 +102,7 @@ access it using TQApplication::clipboard types: setText() allows the exchange of Unicode text and setPixmap() and setImage() allows the exchange of TQPixmaps and TQImages between applications. The setData() function is the -ultimate in flexibility: it allows you to add any TQMimeSource into 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().

    You can clear the clipboard by calling clear(). @@ -177,9 +177,9 @@ determined by the return value of selectionModeE If selectionModeEnabled() returns TRUE, the mode argument is TQClipboard::Selection, otherwise the mode argument is TQClipboard::Clipboard. -

    TQMimeSource * TQClipboard::data ( Mode mode ) const +

    TQMimeSource * TQClipboard::data ( Mode mode ) const

    -Returns a reference to a TQMimeSource representation of the current +Returns a reference to a TQMimeSource representation of the current clipboard data.

    The mode argument is used to control which part of the system clipboard is used. If mode is TQClipboard::Clipboard, the @@ -188,7 +188,7 @@ TQClipboard::Selection, the data is retrieved from the global mouse selection.

    See also setData(). -

    TQMimeSource * TQClipboard::data () const +

    TQMimeSource * TQClipboard::data () const

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    This function uses the TQClipboard::data() function which takes @@ -273,7 +273,7 @@ which take a TQClipboard::Mode argument.

    Returns the selection mode.

    See also setSelectionMode() and supportsSelection(). -

    void TQClipboard::setData ( TQMimeSource * src, Mode mode ) +

    void TQClipboard::setData ( TQMimeSource * src, Mode mode )

    Sets the clipboard data to src. Ownership of the data is transferred to the clipboard. If you want to remove the data @@ -283,17 +283,17 @@ clipboard is used. If mode is TQClipboard::Clipboard, the data is retrieved from the global clipboard. If mode is TQClipboard::Selection, the data is retrieved from the global mouse selection. -

    The TQDragObject subclasses are reasonable objects to put into the -clipboard (but do not try to call TQDragObject::drag() on the same +

    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 +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.

    The setText(), setImage() and setPixmap() functions are simpler wrappers for setting text, image and pixmap data respectively.

    See also data(). -

    void TQClipboard::setData ( TQMimeSource * src ) +

    void TQClipboard::setData ( TQMimeSource * src )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

    This function uses the TQClipboard::setData() function which takes diff --git a/doc/html/ntqdragobject.html b/doc/html/ntqdragobject.html deleted file mode 100644 index 02537c7b4..000000000 --- a/doc/html/ntqdragobject.html +++ /dev/null @@ -1,220 +0,0 @@ - - - - - -TQDragObject Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQDragObject Class Reference

    - -

    The TQDragObject class encapsulates MIME-based data -transfer. -More... -

    #include <ntqdragobject.h> -

    Inherits TQObject and TQMimeSource. -

    Inherited by TQStoredDrag, TQTextDrag, TQImageDrag, and TQIconDrag. -

    List of all member functions. -

    Public Members

    - -

    Static Public Members

    - -

    Protected Members

    -
      -
    • virtual bool drag ( DragMode mode )
    • -
    -

    Detailed Description

    - - -

    The TQDragObject class encapsulates MIME-based data -transfer. -

    -

    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. -

    See the Drag-and-drop documentation for an -overview of how to provide drag and drop in your application. -

    See the TQClipboard documentation for an overview of how to provide -cut-and-paste in your application. -

    The drag() function is used to start a drag operation. You can -specify the DragMode in the call or use one of the convenience -functions dragCopy(), dragMove() or dragLink(). The drag source -where the data originated is retrieved with source(). If the data -was dropped on a widget within the application, target() will -return a pointer to that widget. Specify the pixmap to display -during the drag with setPixmap(). -

    See also Drag And Drop Classes. - -


    Member Type Documentation

    -

    TQDragObject::DragMode

    - -

    This enum describes the possible drag modes. -

      -
    • TQDragObject::DragDefault - The mode is determined heuristically. -
    • TQDragObject::DragCopy - The data is copied, never moved. -
    • TQDragObject::DragMove - The data is moved, if dragged at all. -
    • TQDragObject::DragLink - The data is linked, if dragged at all. -
    • TQDragObject::DragCopyOrMove - The user chooses the mode by using a -control key to switch from the default. -
    -

    Member Function Documentation

    -

    TQDragObject::TQDragObject ( TQWidget * dragSource = 0, const char * name = 0 ) -

    -Constructs a drag object called name, which is a child of dragSource. -

    Note that the drag object will be deleted when dragSource is -deleted. - -

    TQDragObject::~TQDragObject () [virtual] -

    -Destroys the drag object, canceling any drag and drop operation in -which it is involved, and frees up the storage used. - -

    bool TQDragObject::drag () -

    -Starts a drag operation using the contents of this object, using -DragDefault mode. -

    The function returns TRUE if the caller should delete the original -copy of the dragged data (but see target()); otherwise returns -FALSE. -

    If the drag contains references 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 must not delete the files!) -

    Note that on Windows the drag operation will spin a blocking modal -event loop that will not dispatch any TQTimers. - -

    Example: dirview/dirview.cpp. -

    bool TQDragObject::drag ( DragMode mode ) [virtual protected] -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    Starts a drag operation using the contents of this object. -

    At this point, the object becomes owned by TQt, not the -application. You should not delete the drag object or anything it -references. The actual transfer of data to the target application -will be done during future event processing - after that time the -drag object will be deleted. -

    Returns TRUE if the dragged data was dragged as a move, -indicating that the caller should remove the original source of -the data (the drag object must continue to have a copy); otherwise -returns FALSE. -

    The mode specifies the drag mode (see -TQDragObject::DragMode.) Normally one of the simpler drag(), -dragMove(), or dragCopy() functions would be used instead. - -

    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(). -

    See also drag(), dragMove(), and dragLink(). - -

    Example: iconview/simple_dd/main.cpp. -

    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(). -

    See also drag(), dragCopy(), and dragMove(). - -

    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(). -

    See also drag(), dragCopy(), and dragLink(). - -

    TQPixmap TQDragObject::pixmap () const -

    -Returns the currently set pixmap (which isNull() if none is set). - -

    TQPoint TQDragObject::pixmapHotSpot () const -

    -Returns the currently set pixmap hotspot. - -

    void TQDragObject::setPixmap ( TQPixmap pm, const TQPoint & hotspot ) [virtual] -

    -Set the pixmap pm 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. -

    The hotspot 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. -

    Warning: 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. - -

    Example: fileiconview/qfileiconview.cpp. -

    void TQDragObject::setPixmap ( TQPixmap pm ) [virtual] -

    -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

    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. - -

    TQWidget * TQDragObject::source () -

    -Returns a pointer to the drag source where this object originated. - -

    TQWidget * TQDragObject::target () [static] -

    -After the drag completes, this function will return the TQWidget -which received the drop, or 0 if the data was dropped on another -application. -

    This can be useful for detecting the case where drag and drop is -to and from the same widget. - - -


    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/ntqdropsite.html b/doc/html/ntqdropsite.html deleted file mode 100644 index cd49ff78e..000000000 --- a/doc/html/ntqdropsite.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - -TQDropSite Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQDropSite Class Reference
    [obsolete]

    - -

    The TQDropSite class provides nothing and does nothing. -More... -

    #include <ntqdropsite.h> -

    List of all member functions. -

    Public Members

    - -

    Detailed Description

    - - -The TQDropSite class provides nothing and does nothing. -

    This class is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. -

    If your code uses it, you can safely delete it. -

    It was used in TQt 1.x to do some drag and drop; that has since been -folded into TQWidget. -

    For detailed information about drag-and-drop, see the TQDragObject class. -

    See also TQDragObject, TQTextDrag, and TQImageDrag. - -


    Member Function Documentation

    -

    TQDropSite::TQDropSite ( TQWidget * self ) -

    -Constructs a TQDropSite to handle events for the widget self. -

    Pass this as the self parameter. -This enables dropping by calling TQWidget::setAcceptDrops(TRUE). - -

    TQDropSite::~TQDropSite () [virtual] -

    -Destroys the drop site. - - -

    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/ntqevent.html b/doc/html/ntqevent.html index c43274843..812ef5fd5 100644 --- a/doc/html/ntqevent.html +++ b/doc/html/ntqevent.html @@ -36,7 +36,7 @@ event classes. Event objects contain event parameters. More...

    #include <ntqevent.h>

    Inherits TQt. -

    Inherited by TQTimerEvent, TQMouseEvent, TQWheelEvent, TQTabletEvent, TQKeyEvent, TQFocusEvent, TQPaintEvent, TQMoveEvent, TQResizeEvent, TQCloseEvent, TQIconDragEvent, TQShowEvent, TQHideEvent, TQContextMenuEvent, TQIMEvent, TQDropEvent, TQDragLeaveEvent, TQChildEvent, and TQCustomEvent. +

    Inherited by TQTimerEvent, TQMouseEvent, TQWheelEvent, TQTabletEvent, TQKeyEvent, TQFocusEvent, TQPaintEvent, TQMoveEvent, TQResizeEvent, TQCloseEvent, TQIconDragEvent, TQShowEvent, TQHideEvent, TQContextMenuEvent, TQIMEvent, TQDropEvent, TQDragLeaveEvent, TQChildEvent, and TQCustomEvent.

    List of all member functions.

    Public Members

      @@ -125,10 +125,10 @@ cleaned up.
    • TQEvent::ApplicationPaletteChange - Default application palette changed.
    • TQEvent::Clipboard - Clipboard contents have changed.
    • TQEvent::SockAct - Socket activated, used to implement TQSocketNotifier. -
    • TQEvent::DragEnter - A drag-and-drop enters widget, TQDragEnterEvent. -
    • TQEvent::DragMove - A drag-and-drop is in progress, TQDragMoveEvent. -
    • TQEvent::DragLeave - A drag-and-drop leaves widget, TQDragLeaveEvent. -
    • TQEvent::Drop - A drag-and-drop is completed, TQDropEvent. +
    • TQEvent::DragEnter - A drag-and-drop enters widget, TQDragEnterEvent. +
    • TQEvent::DragMove - A drag-and-drop is in progress, TQDragMoveEvent. +
    • TQEvent::DragLeave - A drag-and-drop leaves widget, TQDragLeaveEvent. +
    • TQEvent::Drop - A drag-and-drop is completed, TQDropEvent.
    • TQEvent::DragResponse - Internal event used by TQt on some platforms.
    • TQEvent::ChildInserted - Object gets a child, TQChildEvent.
    • TQEvent::ChildRemoved - Object loses a child, TQChildEvent. diff --git a/doc/html/ntqlistview.html b/doc/html/ntqlistview.html index 30e8d26f5..47f9ad0ef 100644 --- a/doc/html/ntqlistview.html +++ b/doc/html/ntqlistview.html @@ -588,14 +588,14 @@ emitted on the second button press, not the second button release. item is the list view item on which the user did the double-click. -

      TQDragObject * TQListView::dragObject () [virtual protected] +

      TQDragObject * TQListView::dragObject () [virtual protected]

      If the user presses the mouse on an item and starts moving the mouse, and the item allow dragging (see TQListViewItem::setDragEnabled()), this function is called to get a drag object and a drag is started unless dragObject() returns 0.

      By default this function returns 0. You should reimplement it and -create a TQDragObject depending on the selected items. +create a TQDragObject depending on the selected items.

      void TQListView::drawContentsOffset ( TQPainter * p, int ox, int oy, int cx, int cy, int cw, int ch ) [virtual protected]

      @@ -606,7 +606,7 @@ pixels high bounding rectangle starting at position cx, cy with offset ox, oy. Uses the painter p.

      Reimplemented from TQScrollView. -

      void TQListView::dropped ( TQDropEvent * e ) [signal] +

      void TQListView::dropped ( TQDropEvent * e ) [signal]

      This signal is emitted, when a drop event occurred on the diff --git a/doc/html/ntqpixmap.html b/doc/html/ntqpixmap.html index 1d9939132..97cbf7a71 100644 --- a/doc/html/ntqpixmap.html +++ b/doc/html/ntqpixmap.html @@ -444,7 +444,7 @@ color of the widget. Convenience function. Gets the data associated with the absolute name abs_name from the default mime source factory and decodes it to a pixmap. -

      See also TQMimeSourceFactory, TQImage::fromMimeSource(), and TQImageDrag::decode(). +

      See also TQMimeSourceFactory, TQImage::fromMimeSource(), and TQImageDrag::decode().

      Example: textedit/textedit.cpp.

      TQPixmap TQPixmap::grabWidget ( TQWidget * widget, int x = 0, int y = 0, int w = -1, int h = -1 ) [static] diff --git a/doc/html/ntqscrollview.html b/doc/html/ntqscrollview.html index 104ad7885..e885520fc 100644 --- a/doc/html/ntqscrollview.html +++ b/doc/html/ntqscrollview.html @@ -422,28 +422,28 @@ This event handler is called whenever the TQScrollView receives a be a point on the contents.

      Example: chart/canvasview.cpp. -

      void TQScrollView::contentsDragEnterEvent ( TQDragEnterEvent * ) [virtual protected] +

      void TQScrollView::contentsDragEnterEvent ( TQDragEnterEvent * ) [virtual protected]

      This event handler is called whenever the TQScrollView receives a dragEnterEvent(): the drag position is translated to be a point on the contents.

      Reimplemented in TQTable. -

      void TQScrollView::contentsDragLeaveEvent ( TQDragLeaveEvent * ) [virtual protected] +

      void TQScrollView::contentsDragLeaveEvent ( TQDragLeaveEvent * ) [virtual protected]

      This event handler is called whenever the TQScrollView receives a dragLeaveEvent(): the drag position is translated to be a point on the contents.

      Reimplemented in TQTable. -

      void TQScrollView::contentsDragMoveEvent ( TQDragMoveEvent * ) [virtual protected] +

      void TQScrollView::contentsDragMoveEvent ( TQDragMoveEvent * ) [virtual protected]

      This event handler is called whenever the TQScrollView receives a dragMoveEvent(): the drag position is translated to be a point on the contents.

      Reimplemented in TQTable. -

      void TQScrollView::contentsDropEvent ( TQDropEvent * ) [virtual protected] +

      void TQScrollView::contentsDropEvent ( TQDropEvent * ) [virtual protected]

      This event handler is called whenever the TQScrollView receives a dropEvent(): the drop position is translated to be a point on the diff --git a/doc/html/ntqsimplerichtext.html b/doc/html/ntqsimplerichtext.html index db4908e72..8715d3384 100644 --- a/doc/html/ntqsimplerichtext.html +++ b/doc/html/ntqsimplerichtext.html @@ -97,14 +97,14 @@ the widget's font, for example:

      context is the optional context of the rich text object. This becomes important if text contains relative references, for example within image tags. TQSimpleRichText always uses the default -mime source factory (see TQMimeSourceFactory::defaultFactory()) +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. +TQMimeSourceFactory::makeAbsolute() for details.

      The sheet is an optional style sheet. If it is 0, the default style sheet will be used (see TQStyleSheet::defaultSheet()). -

      TQSimpleRichText::TQSimpleRichText ( const TQString & text, const TQFont & fnt, const TQString & context, const TQStyleSheet * sheet, const TQMimeSourceFactory * factory, int pageBreak = -1, const TQColor & linkColor = TQt::blue, bool linkUnderline = TRUE ) +

      TQSimpleRichText::TQSimpleRichText ( const TQString & text, const TQFont & fnt, const TQString & context, const TQStyleSheet * sheet, const TQMimeSourceFactory * factory, int pageBreak = -1, const TQColor & linkColor = TQt::blue, bool linkUnderline = TRUE )

      Constructs a TQSimpleRichText from the rich text string text and the font fnt. @@ -115,10 +115,10 @@ as TQColorGroup's context is the optional context of the rich text object. This becomes important if text contains relative references, for example within image tags. TQSimpleRichText always uses the default -mime source factory (see TQMimeSourceFactory::defaultFactory()) +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. +TQMimeSourceFactory::makeAbsolute() for details.

      The sheet is an optional style sheet. If it is 0, the default style sheet will be used (see TQStyleSheet::defaultSheet()).

      This constructor is useful for creating a TQSimpleRichText object diff --git a/doc/html/ntqtable.html b/doc/html/ntqtable.html index 835de0fe5..3eab7ae35 100644 --- a/doc/html/ntqtable.html +++ b/doc/html/ntqtable.html @@ -595,29 +595,29 @@ This function should be called whenever the column width of col has been changed. It updates the geometry of any affected columns and repaints the table to reflect the changes it has made. -

      void TQTable::contentsDragEnterEvent ( TQDragEnterEvent * e ) [virtual protected] +

      void TQTable::contentsDragEnterEvent ( TQDragEnterEvent * e ) [virtual protected]

      This event handler is called whenever a TQTable object receives a -TQDragEnterEvent e, i.e. when the user pressed the mouse +TQDragEnterEvent e, i.e. when the user pressed the mouse button to drag something. -

      The focus is moved to the cell where the TQDragEnterEvent occurred. +

      The focus is moved to the cell where the TQDragEnterEvent occurred.

      Reimplemented from TQScrollView. -

      void TQTable::contentsDragLeaveEvent ( TQDragLeaveEvent * e ) [virtual protected] +

      void TQTable::contentsDragLeaveEvent ( TQDragLeaveEvent * e ) [virtual protected]

      This event handler is called when a drag activity leaves this TQTable object with event e.

      Reimplemented from TQScrollView. -

      void TQTable::contentsDragMoveEvent ( TQDragMoveEvent * e ) [virtual protected] +

      void TQTable::contentsDragMoveEvent ( TQDragMoveEvent * e ) [virtual protected]

      This event handler is called whenever a TQTable object receives a -TQDragMoveEvent e, i.e. when the user actually drags the +TQDragMoveEvent e, i.e. when the user actually drags the mouse. -

      The focus is moved to the cell where the TQDragMoveEvent occurred. +

      The focus is moved to the cell where the TQDragMoveEvent occurred.

      Reimplemented from TQScrollView. -

      void TQTable::contentsDropEvent ( TQDropEvent * e ) [virtual protected] +

      void TQTable::contentsDropEvent ( TQDropEvent * e ) [virtual protected]

      This event handler is called when the user ends a drag and drop by dropping something onto this TQTable and thus triggers the drop @@ -716,14 +716,14 @@ double-clicked. The cell where the event took place is at row, If this function returns TRUE, the table supports dragging.

      See also setDragEnabled(). -

      TQDragObject * TQTable::dragObject () [virtual protected] +

      TQDragObject * TQTable::dragObject () [virtual protected]

      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.

      By default this function returns 0. You might reimplement it and -create a TQDragObject depending on the selected items. +create a TQDragObject depending on the selected items.

      See also dropped().

      void TQTable::drawContents ( TQPainter * p, int cx, int cy, int cw, int ch ) [virtual protected] @@ -735,7 +735,7 @@ wide and ch pixels high clipping rectangle at position cx,

      Additionally, drawContents() highlights the current cell.

      Reimplemented from TQScrollView. -

      void TQTable::dropped ( TQDropEvent * e ) [signal] +

      void TQTable::dropped ( TQDropEvent * e ) [signal]

      This signal is emitted when a drop event occurred on the table. diff --git a/doc/html/ntqwhatsthis.html b/doc/html/ntqwhatsthis.html index 1aeaf0655..5986243e6 100644 --- a/doc/html/ntqwhatsthis.html +++ b/doc/html/ntqwhatsthis.html @@ -89,7 +89,7 @@ stylesheet. This makes it possible to embed images. See "Click this button to open a <em>new file</em>. <br>" "You can also select the <b>Open</b> command " "from the <b>File</b> menu.</p>"; - TQMimeSourceFactory::defaultFactory()->setPixmap( "document-open", + TQMimeSourceFactory::defaultFactory()->setPixmap( "document-open", fileOpenAction->iconSet().pixmap() ); fileOpenAction->setWhatsThis( fileOpenText ); diff --git a/doc/html/porting.html b/doc/html/porting.html index 2edb1275d..62bede808 100644 --- a/doc/html/porting.html +++ b/doc/html/porting.html @@ -382,7 +382,7 @@ new code.

    • TQTranslator::find( const char *context, const char *sourceText, const char *comment = 0 ) const
    • TQTranslator::insert( const char *context, const char *sourceText, const TQString & translation )
    • TQTranslator::remove( const char *context, const char *sourceText ) -
    • TQUriDrag::setFilenames( const TQStringList & fnames ) +
    • TQUriDrag::setFilenames( const TQStringList & fnames )
    • TQWidget::backgroundColor() const
    • TQWidget::backgroundPixmap() const
    • TQWidget::iconify() diff --git a/doc/html/propertydocs b/doc/html/propertydocs index 430e9432d..47e0209e1 100644 --- a/doc/html/propertydocs +++ b/doc/html/propertydocs @@ -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>(). diff --git a/doc/html/qcolordrag-members.html b/doc/html/qcolordrag-members.html deleted file mode 100644 index 525cfa64a..000000000 --- a/doc/html/qcolordrag-members.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - -TQColorDrag Member List - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      Complete Member List for TQColorDrag

      - -

      This is the complete list of member functions for -TQColorDrag, including inherited members. - -

      - -


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qcolordrag.html b/doc/html/qcolordrag.html deleted file mode 100644 index 8953f4748..000000000 --- a/doc/html/qcolordrag.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - - -TQColorDrag Class - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      TQColorDrag Class Reference

      - -

      The TQColorDrag class provides a drag and drop object for -transferring colors. -More... -

      #include <ntqdragobject.h> -

      Inherits TQStoredDrag. -

      List of all member functions. -

      Public Members

      -
        -
      • TQColorDrag ( const TQColor & col, TQWidget * dragsource = 0, const char * name = 0 )
      • -
      • TQColorDrag ( TQWidget * dragsource = 0, const char * name = 0 )
      • -
      • void setColor ( const TQColor & col )
      • -
      -

      Static Public Members

      -
        -
      • bool canDecode ( TQMimeSource * e )
      • -
      • bool decode ( TQMimeSource * e, TQColor & col )
      • -
      -

      Detailed Description

      - - -

      The TQColorDrag class provides a drag and drop object for -transferring colors. -

      -

      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 TQColorDialog. -

      The color is set in the constructor but can be changed with -setColor(). -

      For more information about drag and drop, see the TQDragObject class -and the drag and drop documentation. -

      See also Drag And Drop Classes. - -


      Member Function Documentation

      -

      TQColorDrag::TQColorDrag ( const TQColor & col, TQWidget * dragsource = 0, const char * name = 0 ) -

      -Constructs a color drag object with the color col. Passes dragsource and name to the TQStoredDrag constructor. - -

      TQColorDrag::TQColorDrag ( TQWidget * dragsource = 0, const char * name = 0 ) -

      -Constructs a color drag object with a white color. Passes dragsource and name to the TQStoredDrag constructor. - -

      bool TQColorDrag::canDecode ( TQMimeSource * e ) [static] -

      -Returns TRUE if the color drag object can decode the mime source -e; otherwise returns FALSE. - -

      bool TQColorDrag::decode ( TQMimeSource * e, TQColor & col ) [static] -

      -Decodes the mime source e and sets the decoded values to col. - -

      void TQColorDrag::setColor ( const TQColor & col ) -

      -Sets the color of the color drag to col. - - -

      -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qdragenterevent-members.html b/doc/html/qdragenterevent-members.html deleted file mode 100644 index ca63dcae7..000000000 --- a/doc/html/qdragenterevent-members.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - -TQDragEnterEvent Member List - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      Complete Member List for TQDragEnterEvent

      - -

      This is the complete list of member functions for -TQDragEnterEvent, including inherited members. - -

      - -


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qdragenterevent.html b/doc/html/qdragenterevent.html deleted file mode 100644 index 506b86666..000000000 --- a/doc/html/qdragenterevent.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - - -TQDragEnterEvent Class - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      TQDragEnterEvent Class Reference

      - -

      The TQDragEnterEvent class provides an event which is sent to the widget when a drag and drop first drags onto the widget. -More... -

      #include <ntqevent.h> -

      Inherits TQDragMoveEvent. -

      List of all member functions. -

      Public Members

      - -

      Detailed Description

      - - -The TQDragEnterEvent class provides an event which is sent to the widget when a drag and drop first drags onto the widget. -

      - -

      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. -

      See also TQDragLeaveEvent, TQDragMoveEvent, TQDropEvent, Drag And Drop Classes, and Event Classes. - -


      Member Function Documentation

      -

      TQDragEnterEvent::TQDragEnterEvent ( const TQPoint & pos ) -

      - -

      Constructs a TQDragEnterEvent entering at the given point, pos. -

      Warning: Do not create a TQDragEnterEvent yourself since these -objects rely on TQt's internal state. - - -


      -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qdragleaveevent-members.html b/doc/html/qdragleaveevent-members.html deleted file mode 100644 index 32f268fc1..000000000 --- a/doc/html/qdragleaveevent-members.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - -TQDragLeaveEvent Member List - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      Complete Member List for TQDragLeaveEvent

      - -

      This is the complete list of member functions for -TQDragLeaveEvent, including inherited members. - -

      - -


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qdragleaveevent.html b/doc/html/qdragleaveevent.html deleted file mode 100644 index 2028a730d..000000000 --- a/doc/html/qdragleaveevent.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - -TQDragLeaveEvent Class - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      TQDragLeaveEvent Class Reference

      - -

      The TQDragLeaveEvent class provides an event which is sent to the widget when a drag and drop leaves the widget. -More... -

      #include <ntqevent.h> -

      Inherits TQEvent. -

      List of all member functions. -

      Public Members

      - -

      Detailed Description

      - - -The TQDragLeaveEvent class provides an event which is sent to the widget when a drag and drop leaves the widget. -

      - -

      This event is always preceded by a TQDragEnterEvent and a series of -TQDragMoveEvents. It is not sent if a TQDropEvent is sent -instead. -

      See also TQDragEnterEvent, TQDragMoveEvent, TQDropEvent, Drag And Drop Classes, and Event Classes. - -


      Member Function Documentation

      -

      TQDragLeaveEvent::TQDragLeaveEvent () -

      - -

      Constructs a TQDragLeaveEvent. -

      Warning: Do not create a TQDragLeaveEvent yourself since these -objects rely on TQt's internal state. - - -


      -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qdragmoveevent-members.html b/doc/html/qdragmoveevent-members.html deleted file mode 100644 index dde8de5c2..000000000 --- a/doc/html/qdragmoveevent-members.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - -TQDragMoveEvent Member List - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      Complete Member List for TQDragMoveEvent

      - -

      This is the complete list of member functions for -TQDragMoveEvent, including inherited members. - -

      - -


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qdragmoveevent.html b/doc/html/qdragmoveevent.html deleted file mode 100644 index 8d6dcbd5c..000000000 --- a/doc/html/qdragmoveevent.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - -TQDragMoveEvent Class - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      TQDragMoveEvent Class Reference

      - -

      The TQDragMoveEvent class provides an event which is sent while a drag and drop is in progress. -More... -

      #include <ntqevent.h> -

      Inherits TQDropEvent. -

      Inherited by TQDragEnterEvent. -

      List of all member functions. -

      Public Members

      - -

      Detailed Description

      - - - - -The TQDragMoveEvent class provides an event which is sent while a drag and drop is in progress. -

      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. -

      Note that this class inherits most of its functionality from -TQDropEvent. -

      See also Drag And Drop Classes and Event Classes. - -


      Member Function Documentation

      -

      TQDragMoveEvent::TQDragMoveEvent ( const TQPoint & pos, Type type = DragMove ) -

      - -

      Creates a TQDragMoveEvent for which the mouse is at point pos, -and the event is of type type. -

      Warning: Do not create a TQDragMoveEvent yourself since these -objects rely on TQt's internal state. - -

      void TQDragMoveEvent::accept ( const TQRect & r ) -

      - -

      The same as accept(), but also notifies that future moves will -also be acceptable if they remain within the rectangle r on the -widget: this can improve performance, but may also be ignored by -the underlying system. -

      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. - -

      Examples: desktop/desktop.cpp and dirview/dirview.cpp. -

      TQRect TQDragMoveEvent::answerRect () const -

      - -

      Returns the rectangle for which the acceptance of the move event -applies. - -

      void TQDragMoveEvent::ignore ( const TQRect & r ) -

      - -

      The opposite of accept(const TQRect&), i.e. says that moves within -rectangle r are not acceptable (will be ignored). - -

      Example: dirview/dirview.cpp. - -


      -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qdragobject-h.html b/doc/html/qdragobject-h.html deleted file mode 100644 index 251299211..000000000 --- a/doc/html/qdragobject-h.html +++ /dev/null @@ -1,323 +0,0 @@ - - - - - -ntqdragobject.h Include File - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      ntqdragobject.h

      - -

      This is the verbatim text of the ntqdragobject.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


      -
      -/****************************************************************************
      -** $Id: qt/ntqdragobject.h   3.3.8   edited Jan 11 14:38 $
      -**
      -** Definition of TQDragObject
      -**
      -** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
      -**
      -** This file is part of the kernel module of the TQt GUI Toolkit.
      -**
      -** This file may be used under the terms of the GNU General Public
      -** License versions 2.0 or 3.0 as published by the Free Software
      -** Foundation and appearing in the file LICENSE.GPL included in the
      -** packaging of this file. Alternatively you may (at your option) use any
      -** later version of the GNU General Public License if such license has
      -** been publicly approved by Trolltech ASA (or its successors, if any)
      -** and the KDE Free TQt Foundation.
      -**
      -** Please review the following information to ensure GNU General
      -** Public Licensing requirements will be met:
      -** http://trolltech.com/products/qt/licenses/licensing/opensource/.
      -** If you are unsure which license is appropriate for your use, please
      -** review the following information:
      -** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
      -** or contact the sales department at sales@trolltech.com.
      -**
      -** This file may be used under the terms of the Q Public License as
      -** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
      -** included in the packaging of this file.  Licensees holding valid TQt
      -** Commercial licenses may use this file in accordance with the TQt
      -** Commercial License Agreement provided with the Software.
      -**
      -** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
      -** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
      -** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
      -** herein.
      -**
      -**********************************************************************/
      -
      -#ifndef TQDRAGOBJECT_H
      -#define TQDRAGOBJECT_H
      -
      -class TQWidget;
      -class TQTextDragPrivate;
      -class TQDragObjectData;
      -class TQStoredDragData;
      -class TQImageDragData;
      -
      -#ifndef QT_H
      -#include "tqobject.h"
      -#include "tqimage.h"
      -#include "tqstrlist.h"
      -#include "ntqcolor.h"
      -#endif // QT_H
      -
      -#ifndef TQT_NO_MIME
      -
      -class TQ_EXPORT TQDragObject: public TQObject, public TQMimeSource {
      -    TQ_OBJECT
      -public:
      -    TQDragObject( TQWidget * dragSource = 0, const char * name = 0 );
      -    virtual ~TQDragObject();
      -
      -#ifndef TQT_NO_DRAGANDDROP
      -    bool drag();
      -    bool dragMove();
      -    void dragCopy();
      -    void dragLink();
      -
      -    virtual void setPixmap(TQPixmap);
      -    virtual void setPixmap(TQPixmap, const TQPoint& hotspot);
      -    TQPixmap pixmap() const;
      -    TQPoint pixmapHotSpot() const;
      -#endif
      -
      -    TQWidget * source();
      -    static TQWidget * target();
      -
      -    static void setTarget(TQWidget*);
      -
      -#ifndef TQT_NO_DRAGANDDROP
      -    enum DragMode { DragDefault, DragCopy, DragMove, DragLink, DragCopyOrMove };
      -
      -protected:
      -    virtual bool drag(DragMode);
      -#endif
      -
      -private:
      -    TQDragObjectData * d;
      -#if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
      -    TQDragObject( const TQDragObject & );
      -    TQDragObject &operator=( const TQDragObject & );
      -#endif
      -};
      -
      -class TQ_EXPORT TQStoredDrag: public TQDragObject {
      -    TQ_OBJECT
      -    TQStoredDragData * d;
      -
      -public:
      -    TQStoredDrag( const char * mimeType,
      -		 TQWidget * dragSource = 0, const char * name = 0 );
      -    ~TQStoredDrag();
      -
      -    virtual void setEncodedData( const TQByteArray & );
      -
      -    const char * format(int i) const;
      -    virtual TQByteArray encodedData(const char*) const;
      -
      -private:
      -#if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
      -    TQStoredDrag( const TQStoredDrag & );
      -    TQStoredDrag &operator=( const TQStoredDrag & );
      -#endif
      -};
      -
      -class TQ_EXPORT TQTextDrag: public TQDragObject {
      -    TQ_OBJECT
      -    TQTextDragPrivate* d;
      -public:
      -    TQTextDrag( const TQString &,
      -	       TQWidget * dragSource = 0, const char * name = 0 );
      -    TQTextDrag( TQWidget * dragSource = 0, const char * name = 0 );
      -    ~TQTextDrag();
      -
      -    virtual void setText( const TQString &);
      -    virtual void setSubtype( const TQCString &);
      -
      -    const char * format(int i) const;
      -    virtual TQByteArray encodedData(const char*) const;
      -
      -    static bool canDecode( const TQMimeSource* e );
      -    static bool decode( const TQMimeSource* e, TQString& s );
      -    static bool decode( const TQMimeSource* e, TQString& s, TQCString& subtype );
      -
      -private:
      -#if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
      -    TQTextDrag( const TQTextDrag & );
      -    TQTextDrag &operator=( const TQTextDrag & );
      -#endif
      -};
      -
      -class TQ_EXPORT TQImageDrag: public TQDragObject {
      -    TQ_OBJECT
      -    TQImage img;
      -    TQStrList ofmts;
      -    TQImageDragData* d;
      -
      -public:
      -    TQImageDrag( TQImage image, TQWidget * dragSource = 0, const char * name = 0 );
      -    TQImageDrag( TQWidget * dragSource = 0, const char * name = 0 );
      -    ~TQImageDrag();
      -
      -    virtual void setImage( TQImage image );
      -
      -    const char * format(int i) const;
      -    virtual TQByteArray encodedData(const char*) const;
      -
      -    static bool canDecode( const TQMimeSource* e );
      -    static bool decode( const TQMimeSource* e, TQImage& i );
      -    static bool decode( const TQMimeSource* e, TQPixmap& i );
      -
      -private:
      -#if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
      -    TQImageDrag( const TQImageDrag & );
      -    TQImageDrag &operator=( const TQImageDrag & );
      -#endif
      -};
      -
      -
      -class TQ_EXPORT TQUriDrag: public TQStoredDrag {
      -    TQ_OBJECT
      -
      -public:
      -    TQUriDrag( TQStrList uris, TQWidget * dragSource = 0, const char * name = 0 );
      -    TQUriDrag( TQWidget * dragSource = 0, const char * name = 0 );
      -    ~TQUriDrag();
      -
      -    void setFilenames( const TQStringList & fnames ) { setFileNames( fnames ); }
      -    void setFileNames( const TQStringList & fnames );
      -    void setUnicodeUris( const TQStringList & uuris );
      -    virtual void setUris( TQStrList uris );
      -
      -    static TQString uriToLocalFile(const char*);
      -    static TQCString localFileToUri(const TQString&);
      -    static TQString uriToUnicodeUri(const char*);
      -    static TQCString unicodeUriToUri(const TQString&);
      -    static bool canDecode( const TQMimeSource* e );
      -    static bool decode( const TQMimeSource* e, TQStrList& i );
      -    static bool decodeToUnicodeUris( const TQMimeSource* e, TQStringList& i );
      -    static bool decodeLocalFiles( const TQMimeSource* e, TQStringList& i );
      -
      -private:
      -#if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
      -    TQUriDrag( const TQUriDrag & );
      -    TQUriDrag &operator=( const TQUriDrag & );
      -#endif
      -};
      -
      -class TQ_EXPORT TQColorDrag : public TQStoredDrag
      -{
      -    TQ_OBJECT
      -    TQColor color;
      -
      -public:
      -    TQColorDrag( const TQColor &col, TQWidget *dragsource = 0, const char *name = 0 );
      -    TQColorDrag( TQWidget * dragSource = 0, const char * name = 0 );
      -    void setColor( const TQColor &col );
      -
      -    static bool canDecode( TQMimeSource * );
      -    static bool decode( TQMimeSource *, TQColor &col );
      -
      -private:
      -#if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
      -    TQColorDrag( const TQColorDrag & );
      -    TQColorDrag &operator=( const TQColorDrag & );
      -#endif
      -};
      -
      -#ifndef TQT_NO_COMPAT
      -typedef TQUriDrag TQUrlDrag;
      -#endif
      -
      -#ifndef TQT_NO_DRAGANDDROP
      -
      -// TQDragManager is not part of the public API.  It is defined in a
      -// header file simply so different .cpp files can implement different
      -// member functions.
      -//
      -
      -class TQ_EXPORT TQDragManager: public TQObject {
      -    TQ_OBJECT
      -
      -private:
      -    TQDragManager();
      -    ~TQDragManager();
      -    // only friend classes can use TQDragManager.
      -    friend class TQDragObject;
      -    friend class TQDragMoveEvent;
      -    friend class TQDropEvent;
      -    friend class TQApplication;
      -
      -    bool eventFilter( TQObject *, TQEvent * );
      -    void timerEvent( TQTimerEvent* );
      -
      -    bool drag( TQDragObject *, TQDragObject::DragMode );
      -
      -    void cancel( bool deleteSource = TRUE );
      -    void move( const TQPoint & );
      -    void drop();
      -    void updatePixmap();
      -
      -private:
      -    TQDragObject * object;
      -    void updateMode( ButtonState newstate );
      -    void updateCursor();
      -#if defined(TQ_WS_X11)
      -    void createCursors();
      -#endif
      -
      -    TQWidget * dragSource;
      -    TQWidget * dropWidget;
      -    bool beingCancelled;
      -    bool restoreCursor;
      -    bool willDrop;
      -
      -    TQPixmap *pm_cursor;
      -    int n_cursor;
      -#if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
      -    TQDragManager( const TQDragManager & );
      -    TQDragManager &operator=( const TQDragManager & );
      -#endif
      -};
      -
      -#endif
      -
      -#endif // TQT_NO_MIME
      -
      -#endif // TQDRAGOBJECT_H
      -
      - -


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qdragobject-members.html b/doc/html/qdragobject-members.html deleted file mode 100644 index 94f75173a..000000000 --- a/doc/html/qdragobject-members.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - -TQDragObject Member List - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      Complete Member List for TQDragObject

      - -

      This is the complete list of member functions for -TQDragObject, including inherited members. - -

      - -


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qdropevent-members.html b/doc/html/qdropevent-members.html deleted file mode 100644 index d78111147..000000000 --- a/doc/html/qdropevent-members.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - -TQDropEvent Member List - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      Complete Member List for TQDropEvent

      - -

      This is the complete list of member functions for -TQDropEvent, including inherited members. - -

      - -


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qdropevent.html b/doc/html/qdropevent.html deleted file mode 100644 index 5c444ce08..000000000 --- a/doc/html/qdropevent.html +++ /dev/null @@ -1,225 +0,0 @@ - - - - - -TQDropEvent Class - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      TQDropEvent Class Reference

      - -

      The TQDropEvent class provides an event which is sent when a drag and drop is completed. -More... -

      #include <ntqevent.h> -

      Inherits TQEvent and TQMimeSource. -

      Inherited by TQDragMoveEvent. -

      List of all member functions. -

      Public Members

      -
        -
      • TQDropEvent ( const TQPoint & pos, Type typ = Drop )
      • -
      • const TQPoint & pos () const
      • -
      • bool isAccepted () const
      • -
      • void accept ( bool y = TRUE )
      • -
      • void ignore ()
      • -
      • bool isActionAccepted () const
      • -
      • void acceptAction ( bool y = TRUE )
      • -
      • enum Action { Copy, Link, Move, Private, UserAction = 100 }
      • -
      • void setAction ( Action a )
      • -
      • Action action () const
      • -
      • TQWidget * source () const
      • -
      • virtual const char * format ( int n = 0 ) const
      • -
      • virtual TQByteArray encodedData ( const char * format ) const
      • -
      • virtual bool provides ( const char * mimeType ) const
      • -
      • TQByteArray data ( const char * f ) const  (obsolete)
      • -
      • void setPoint ( const TQPoint & np )
      • -
      -

      Detailed Description

      - - - - -

      The TQDropEvent class provides an event which is sent when a drag and drop is completed. -

      When a widget accepts drop - events, it will receive this event if it has accepted the -most recent TQDragEnterEvent or TQDragMoveEvent sent to it. -

      The widget should use data() to extract the data in an appropriate -format. -

      See also Drag And Drop Classes and Event Classes. - -


      Member Type Documentation

      -

      TQDropEvent::Action

      - -

      This enum describes the action which a source requests that a -target perform with dropped data. -

        -
      • TQDropEvent::Copy - The default action. The source simply uses the data -provided in the operation. -
      • TQDropEvent::Link - The source should somehow create a link to the -location specified by the data. -
      • TQDropEvent::Move - The source should somehow move the object from the -location specified by the data to a new location. -
      • TQDropEvent::Private - The target has special knowledge of the MIME type, -which the source should respond to in a similar way to -a Copy. -
      • TQDropEvent::UserAction - The source and target can co-operate using -special actions. This feature is not currently -supported. -

      The Link and Move actions only makes sense if the data is a -reference, for example, text/uri-list file lists (see TQUriDrag). - -


      Member Function Documentation

      -

      TQDropEvent::TQDropEvent ( const TQPoint & pos, Type typ = Drop ) -

      - -

      Constructs a drop event that drops a drop of type typ on point -pos. - -

      void TQDropEvent::accept ( bool y = TRUE ) -

      - -

      Call this function to indicate whether the event provided data -which your widget processed. Set y to TRUE (the default) if -your widget could process the data, otherwise set y 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. -

      See also acceptAction(). - -

      Example: iconview/simple_dd/main.cpp. -

      void TQDropEvent::acceptAction ( bool y = TRUE ) -

      - -

      Call this to indicate that the action described by action() is -accepted (i.e. if y 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). - -

      Examples: dirview/dirview.cpp and fileiconview/qfileiconview.cpp. -

      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(). - -

      Examples: dirview/dirview.cpp and fileiconview/qfileiconview.cpp. -

      TQByteArray TQDropEvent::data ( const char * f ) const -

      - -

      This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. -

      Use TQDropEvent::encodedData(). - -

      TQByteArray TQDropEvent::encodedData ( const char * format ) const [virtual] -

      -Returns a byte array containing the drag's data, in format. -

      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 format. -

      The resulting data will have a size of 0 if the format was not -available. -

      See also format() and TQByteArray::size(). - -

      Reimplemented from TQMimeSource. -

      const char * TQDropEvent::format ( int n = 0 ) const [virtual] -

      -Returns a string describing one of the available data types for -this drag. Common examples are "text/plain" and "image/gif". If n is less than zero or greater than the number of available data -types, format() returns 0. -

      This function is provided mainly for debugging. Most drop targets -will use provides(). -

      See also data() and provides(). - -

      Example: iconview/main.cpp. -

      Reimplemented from TQMimeSource. -

      void TQDropEvent::ignore () -

      - -

      The opposite of accept(), i.e. you have ignored the drop event. - -

      Example: fileiconview/qfileiconview.cpp. -

      bool TQDropEvent::isAccepted () const -

      - -

      Returns TRUE if the drop target accepts the event; otherwise -returns FALSE. - -

      bool TQDropEvent::isActionAccepted () const -

      - -

      Returns TRUE if the drop action was accepted by the drop site; -otherwise returns FALSE. - -

      const TQPoint & TQDropEvent::pos () const -

      - -

      Returns the position where the drop was made. - -

      Example: dirview/dirview.cpp. -

      bool TQDropEvent::provides ( const char * mimeType ) const [virtual] -

      -Returns TRUE if this event provides format mimeType; otherwise -returns FALSE. -

      See also data(). - -

      Example: fileiconview/qfileiconview.cpp. -

      Reimplemented from TQMimeSource. -

      void TQDropEvent::setAction ( Action a ) -

      - -

      Sets the action to a. This is used internally, you should not -need to call this in your code: the source decides the action, -not the target. - -

      void TQDropEvent::setPoint ( const TQPoint & np ) -

      - -

      Sets the drop to happen at point np. You do not normally need -to use this as it will be set internally before your widget -receives the drop event. - -

      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. -

      This is useful if your widget needs special behavior when dragging -to itself, etc. -

      See TQDragObject::TQDragObject() and subclasses. - - -


      -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qdropsite-h.html b/doc/html/qdropsite-h.html deleted file mode 100644 index 050645d72..000000000 --- a/doc/html/qdropsite-h.html +++ /dev/null @@ -1,104 +0,0 @@ - - - - - -ntqdropsite.h Include File - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      ntqdropsite.h

      - -

      This is the verbatim text of the ntqdropsite.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


      -
      -/****************************************************************************
      -** $Id: qt/ntqdropsite.h   3.3.8   edited Jan 11 14:38 $
      -**
      -** Definitation of Drag and Drop support
      -**
      -** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
      -**
      -** This file is part of the kernel module of the TQt GUI Toolkit.
      -**
      -** This file may be used under the terms of the GNU General Public
      -** License versions 2.0 or 3.0 as published by the Free Software
      -** Foundation and appearing in the file LICENSE.GPL included in the
      -** packaging of this file. Alternatively you may (at your option) use any
      -** later version of the GNU General Public License if such license has
      -** been publicly approved by Trolltech ASA (or its successors, if any)
      -** and the KDE Free TQt Foundation.
      -**
      -** Please review the following information to ensure GNU General
      -** Public Licensing requirements will be met:
      -** http://trolltech.com/products/qt/licenses/licensing/opensource/.
      -** If you are unsure which license is appropriate for your use, please
      -** review the following information:
      -** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
      -** or contact the sales department at sales@trolltech.com.
      -**
      -** This file may be used under the terms of the Q Public License as
      -** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
      -** included in the packaging of this file.  Licensees holding valid TQt
      -** Commercial licenses may use this file in accordance with the TQt
      -** Commercial License Agreement provided with the Software.
      -**
      -** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
      -** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
      -** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
      -** herein.
      -**
      -**********************************************************************/
      -
      -#ifndef TQDROPSITE_H
      -#define TQDROPSITE_H
      -
      -#ifndef QT_H
      -#ifndef QT_H
      -#include "ntqglobal.h"
      -#endif // QT_H
      -#endif
      -
      -
      -class TQWidget;
      -
      -
      -class TQ_EXPORT TQDropSite {
      -public:
      -    TQDropSite( TQWidget* parent );
      -    virtual ~TQDropSite();
      -};
      -
      -
      -#endif  // TQDROPSITE_H
      -
      - -


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qdropsite-members.html b/doc/html/qdropsite-members.html deleted file mode 100644 index eec5aa4b5..000000000 --- a/doc/html/qdropsite-members.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - -TQDropSite Member List - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      Complete Member List for TQDropSite

      - -

      This is the complete list of member functions for -TQDropSite, including inherited members. - -

      - -


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qevent-h.html b/doc/html/qevent-h.html index ca6636d9b..445856f51 100644 --- a/doc/html/qevent-h.html +++ b/doc/html/qevent-h.html @@ -81,7 +81,7 @@ body { background: #ffffff; color: black; } #include "ntqwindowdefs.h" #include "ntqregion.h" #include "ntqnamespace.h" -#include "ntqmime.h" +#include "tqmime.h" #include "tqpair.h" #endif // QT_H diff --git a/doc/html/qlistviewitem.html b/doc/html/qlistviewitem.html index 7d30fa0a5..58f60cf83 100644 --- a/doc/html/qlistviewitem.html +++ b/doc/html/qlistviewitem.html @@ -268,9 +268,9 @@ unless the list view's sorting is disabled using Destroys the item, deleting all its children and freeing up all allocated resources. -

      bool TQListViewItem::acceptDrop ( const TQMimeSource * mime ) const [virtual] +

      bool TQListViewItem::acceptDrop ( const TQMimeSource * mime ) const [virtual]

      -Returns TRUE if the item can accept drops of type TQMimeSource mime; otherwise returns FALSE. +Returns TRUE if the item can accept drops of type TQMimeSource mime; otherwise returns FALSE.

      The default implementation does nothing and returns FALSE. A subclass must reimplement this to accept drops. @@ -355,7 +355,7 @@ reimplement this function. Returns TRUE if this item accepts drops; otherwise returns FALSE.

      See also setDropEnabled() and acceptDrop(). -

      void TQListViewItem::dropped ( TQDropEvent * e ) [virtual protected] +

      void TQListViewItem::dropped ( TQDropEvent * e ) [virtual protected]

      This function is called when something was dropped on the item. e contains all the information about the drop. diff --git a/doc/html/qmacmime-members.html b/doc/html/qmacmime-members.html deleted file mode 100644 index 4cf1f2cd9..000000000 --- a/doc/html/qmacmime-members.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - -TQMacMime Member List - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      Complete Member List for TQMacMime

      - -

      This is the complete list of member functions for -TQMacMime, including inherited members. - -

      - -


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qmacmime.html b/doc/html/qmacmime.html deleted file mode 100644 index fa07d879a..000000000 --- a/doc/html/qmacmime.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - - -TQMacMime Class - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      TQMacMime Class Reference

      - -

      The TQMacMime class maps open-standard MIME to Mac flavors. -More... -

      #include <ntqmime.h> -

      List of all member functions. -

      Public Members

      -
        -
      • TQMacMime ( char t )
      • -
      • virtual ~TQMacMime ()
      • -
      • virtual const char * convertorName () = 0
      • -
      • virtual int countFlavors () = 0
      • -
      • virtual int flavor ( int index ) = 0
      • -
      • virtual bool canConvert ( const char * mime, int flav ) = 0
      • -
      • virtual const char * mimeFor ( int flav ) = 0
      • -
      • virtual int flavorFor ( const char * mime ) = 0
      • -
      • virtual TQByteArray convertToMime ( TQValueList<TQByteArray> data, const char * mime, int flav ) = 0
      • -
      • virtual TQValueList<TQByteArray> convertFromMime ( TQByteArray data, const char * mime, int flav ) = 0
      • -
      -

      Static Public Members

      -
        -
      • TQPtrList<TQMacMime> all ( TQMacMimeType t )
      • -
      • TQMacMime * convertor ( TQMacMimeType t, const char * mime, int flav )
      • -
      • const char * flavorToMime ( TQMacMimeType t, int flav )
      • -
      -

      Detailed Description

      - - -The TQMacMime class maps open-standard MIME to Mac flavors. - - - -

      TQt'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. -

      By instantiating subclasses of TQMacMime that provide conversions -between Mac flavors and MIME formats, you can convert proprietary -clipboard formats to MIME formats. -

      TQt has predefined support for the following Mac flavors: -

        -
      • kScrapFlavorTypeUnicode - converted to "text/plain;charset=ISO-10646-UCS-2" -and supported by TQTextDrag. -
      • kScrapFlavorTypeText - converted to "text/plain;charset=system" or "text/plain" -and supported by TQTextDrag. -
      • kScrapFlavorTypePicture - converted to "image/format", where format is -a TQt image format, -and supported by TQImageDrag. -
      • kDragFlavorTypeHFS - converted to "text/uri-list", -and supported by TQUriDrag. -
      -

      You can check if a MIME type is convertible using canConvert() and -can perform conversions with convertToMime() and convertFromMime(). -

      See also Drag And Drop Classes, Input/Output and Networking, and Miscellaneous Classes. - -


      Member Function Documentation

      -

      TQMacMime::TQMacMime ( char t ) -

      -Constructs a new conversion object of type t, adding it to the -globally accessed list of available convertors. - -

      TQMacMime::~TQMacMime () [virtual] -

      -Destroys a conversion object, removing it from the global -list of available convertors. - -

      TQPtrList<TQMacMime> TQMacMime::all ( TQMacMimeType t ) [static] -

      -Returns a list of all currently defined TQMacMime objects of type t. - -

      bool TQMacMime::canConvert ( const char * mime, int flav ) [pure virtual] -

      - -

      Returns TRUE if the convertor can convert (both ways) between -mime and flav; otherwise returns FALSE. -

      All subclasses must reimplement this pure virtual function. - -

      TQValueList<TQByteArray> TQMacMime::convertFromMime ( TQByteArray data, const char * mime, int flav ) [pure virtual] -

      - -

      Returns data converted from MIME type mime -to Mac flavor flav. -

      Note that Mac flavors must all be self-terminating. The return -value may contain trailing data. -

      All subclasses must reimplement this pure virtual function. - -

      TQByteArray TQMacMime::convertToMime ( TQValueList<TQByteArray> data, const char * mime, int flav ) [pure virtual] -

      - -

      Returns data converted from Mac flavor flav to MIME type mime. -

      Note that Mac flavors must all be self-terminating. The input data may contain trailing data. -

      All subclasses must reimplement this pure virtual function. - -

      TQMacMime * TQMacMime::convertor ( TQMacMimeType t, const char * mime, int flav ) [static] -

      -Returns the most-recently created TQMacMime of type t that can convert -between the mime and flav formats. Returns 0 if no such convertor -exists. - -

      const char * TQMacMime::convertorName () [pure virtual] -

      - -

      Returns a name for the convertor. -

      All subclasses must reimplement this pure virtual function. - -

      int TQMacMime::countFlavors () [pure virtual] -

      - -

      Returns the number of Mac flavors supported by this convertor. -

      All subclasses must reimplement this pure virtual function. - -

      int TQMacMime::flavor ( int index ) [pure virtual] -

      - -

      Returns the Mac flavor supported by this convertor that is -ordinarily at position index. This means that flavor(0) returns -the first Mac flavor supported, and flavor(countFlavors()-1) returns -the last. If index is out of range the return value is undefined. -

      All subclasses must reimplement this pure virtual function. - -

      int TQMacMime::flavorFor ( const char * mime ) [pure virtual] -

      - -

      Returns the Mac flavor used for MIME type mime, or 0 if this -convertor does not support mime. -

      All subclasses must reimplement this pure virtual function. - -

      const char * TQMacMime::flavorToMime ( TQMacMimeType t, int flav ) [static] -

      -Returns a MIME type of type t for flav, or 0 if none exists. - -

      const char * TQMacMime::mimeFor ( int flav ) [pure virtual] -

      - -

      Returns the MIME type used for Mac flavor flav, or 0 if this -convertor does not support flav. -

      All subclasses must reimplement this pure virtual function. - - -


      -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qmime-h.html b/doc/html/qmime-h.html deleted file mode 100644 index c9a402b3e..000000000 --- a/doc/html/qmime-h.html +++ /dev/null @@ -1,245 +0,0 @@ - - - - - -ntqmime.h Include File - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      ntqmime.h

      - -

      This is the verbatim text of the ntqmime.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


      -
      -/****************************************************************************
      -** $Id: qt/ntqmime.h   3.3.8   edited Jan 11 14:46 $
      -**
      -** Definition of mime classes
      -**
      -** Created : 981204
      -**
      -** Copyright (C) 1998-2007 Trolltech ASA.  All rights reserved.
      -**
      -** This file is part of the kernel module of the TQt GUI Toolkit.
      -**
      -** This file may be used under the terms of the GNU General Public
      -** License versions 2.0 or 3.0 as published by the Free Software
      -** Foundation and appearing in the file LICENSE.GPL included in the
      -** packaging of this file. Alternatively you may (at your option) use any
      -** later version of the GNU General Public License if such license has
      -** been publicly approved by Trolltech ASA (or its successors, if any)
      -** and the KDE Free TQt Foundation.
      -**
      -** Please review the following information to ensure GNU General
      -** Public Licensing requirements will be met:
      -** http://trolltech.com/products/qt/licenses/licensing/opensource/.
      -** If you are unsure which license is appropriate for your use, please
      -** review the following information:
      -** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
      -** or contact the sales department at sales@trolltech.com.
      -**
      -** This file may be used under the terms of the Q Public License as
      -** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
      -** included in the packaging of this file.  Licensees holding valid TQt
      -** Commercial licenses may use this file in accordance with the TQt
      -** Commercial License Agreement provided with the Software.
      -**
      -** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
      -** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
      -** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
      -** herein.
      -**
      -**********************************************************************/
      -
      -#ifndef TQMIME_H
      -#define TQMIME_H
      -
      -#ifndef QT_H
      -#include "ntqwindowdefs.h"
      -#include "tqmap.h"
      -#endif // QT_H
      -
      -#ifndef TQT_NO_MIME
      -
      -class TQImageDrag;
      -class TQTextDrag;
      -
      -class TQ_EXPORT TQMimeSource
      -{
      -    friend class TQClipboardData;
      -
      -public:
      -    TQMimeSource();
      -    virtual ~TQMimeSource();
      -    virtual const char* format( int n = 0 ) const = 0;
      -    virtual bool provides( const char* ) const;
      -    virtual TQByteArray encodedData( const char* ) const = 0;
      -    int serialNumber() const;
      -
      -private:
      -    int ser_no;
      -    enum { NoCache, Text, Graphics } cacheType;
      -    union
      -    {
      -	struct
      -	{
      -	    TQString *str;
      -	    TQCString *subtype;
      -	} txt;
      -	struct
      -	{
      -	    TQImage *img;
      -	    TQPixmap *pix;
      -	} gfx;
      -    } cache;
      -    void clearCache();
      -
      -    // friends for caching
      -    friend class TQImageDrag;
      -    friend class TQTextDrag;
      -
      -};
      -
      -inline int TQMimeSource::serialNumber() const
      -{ return ser_no; }
      -
      -class TQStringList;
      -class TQMimeSourceFactoryData;
      -
      -class TQ_EXPORT TQMimeSourceFactory {
      -public:
      -    TQMimeSourceFactory();
      -    virtual ~TQMimeSourceFactory();
      -
      -    static TQMimeSourceFactory* defaultFactory();
      -    static void setDefaultFactory( TQMimeSourceFactory* );
      -    static TQMimeSourceFactory* takeDefaultFactory();
      -    static void addFactory( TQMimeSourceFactory *f );
      -    static void removeFactory( TQMimeSourceFactory *f );
      -
      -    virtual const TQMimeSource* data(const TQString& abs_name) const;
      -    virtual TQString makeAbsolute(const TQString& abs_or_rel_name, const TQString& context) const;
      -    const TQMimeSource* data(const TQString& abs_or_rel_name, const TQString& context) const;
      -
      -    virtual void setText( const TQString& abs_name, const TQString& text );
      -    virtual void setImage( const TQString& abs_name, const TQImage& im );
      -    virtual void setPixmap( const TQString& abs_name, const TQPixmap& pm );
      -    virtual void setData( const TQString& abs_name, TQMimeSource* data );
      -    virtual void setFilePath( const TQStringList& );
      -    virtual TQStringList filePath() const;
      -    void addFilePath( const TQString& );
      -    virtual void setExtensionType( const TQString& ext, const char* mimetype );
      -
      -private:
      -    TQMimeSource *dataInternal(const TQString& abs_name, const TQMap<TQString, TQString> &extensions ) const;
      -    TQMimeSourceFactoryData* d;
      -};
      -
      -#if defined(TQ_WS_WIN)
      -
      -#ifndef QT_H
      -#include "tqptrlist.h" // down here for GCC 2.7.* compatibility
      -#endif // QT_H
      -
      -/*
      -  Encapsulation of conversion between MIME and Windows CLIPFORMAT.
      -  Not need on X11, as the underlying protocol uses the MIME standard
      -  directly.
      -*/
      -
      -class TQ_EXPORT TQWindowsMime {
      -public:
      -    TQWindowsMime();
      -    virtual ~TQWindowsMime();
      -
      -    static void initialize();
      -
      -    static TQPtrList<TQWindowsMime> all();
      -    static TQWindowsMime* convertor( const char* mime, int cf );
      -    static const char* cfToMime(int cf);
      -
      -    static int registerMimeType(const char *mime);
      -
      -    virtual const char* convertorName()=0;
      -    virtual int countCf()=0;
      -    virtual int cf(int index)=0;
      -    virtual bool canConvert( const char* mime, int cf )=0;
      -    virtual const char* mimeFor(int cf)=0;
      -    virtual int cfFor(const char* )=0;
      -    virtual TQByteArray convertToMime( TQByteArray data, const char* mime, int cf )=0;
      -    virtual TQByteArray convertFromMime( TQByteArray data, const char* mime, int cf )=0;
      -};
      -
      -#endif
      -#if defined(TQ_WS_MAC)
      -
      -#ifndef QT_H
      -#include "tqptrlist.h" // down here for GCC 2.7.* compatibility
      -#endif // QT_H
      -
      -/*
      -  Encapsulation of conversion between MIME and Mac flavor.
      -  Not need on X11, as the underlying protocol uses the MIME standard
      -  directly.
      -*/
      -
      -class TQ_EXPORT TQMacMime {
      -    char type;
      -public:
      -    enum TQMacMimeType { MIME_DND=0x01, MIME_CLIP=0x02, MIME_QT_CONVERTOR=0x04, MIME_ALL=MIME_DND|MIME_CLIP };
      -    TQMacMime(char);
      -    virtual ~TQMacMime();
      -
      -    static void initialize();
      -
      -    static TQPtrList<TQMacMime> all(TQMacMimeType);
      -    static TQMacMime* convertor(TQMacMimeType, const char* mime, int flav);
      -    static const char* flavorToMime(TQMacMimeType, int flav);
      -
      -    virtual const char* convertorName()=0;
      -    virtual int countFlavors()=0;
      -    virtual int flavor(int index)=0;
      -    virtual bool canConvert(const char* mime, int flav)=0;
      -    virtual const char* mimeFor(int flav)=0;
      -    virtual int flavorFor(const char*)=0;
      -    virtual TQByteArray convertToMime(TQValueList<TQByteArray> data, const char* mime, int flav)=0;
      -    virtual TQValueList<TQByteArray> convertFromMime(TQByteArray data, const char* mime, int flav)=0;
      -};
      -
      -#endif // TQ_WS_MAC
      -
      -#endif // TQT_NO_MIME
      -
      -#endif // TQMIME_H
      -
      - -


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qmimesource-members.html b/doc/html/qmimesource-members.html deleted file mode 100644 index b5f5456e3..000000000 --- a/doc/html/qmimesource-members.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - -TQMimeSource Member List - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      Complete Member List for TQMimeSource

      - -

      This is the complete list of member functions for -TQMimeSource, including inherited members. - -

      - -


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qmimesource.html b/doc/html/qmimesource.html deleted file mode 100644 index 64848cb57..000000000 --- a/doc/html/qmimesource.html +++ /dev/null @@ -1,109 +0,0 @@ - - - - - -TQMimeSource Class - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      TQMimeSource Class Reference

      - -

      The TQMimeSource class is an abstraction of objects which provide formatted data of a certain MIME type. -More... -

      #include <ntqmime.h> -

      Inherited by TQDragObject and TQDropEvent. -

      List of all member functions. -

      Public Members

      - -

      Detailed Description

      - - -The TQMimeSource class is an abstraction of objects which provide formatted data of a certain MIME type. -

      - - -

      Drag-and-drop and -clipboard use this abstraction. -

      See also IANA list of MIME media types, Drag And Drop Classes, Input/Output and Networking, and Miscellaneous Classes. - -


      Member Function Documentation

      -

      TQMimeSource::TQMimeSource () -

      -Constructs a mime source and assigns a globally unique serial -number to it. -

      See also serialNumber(). - -

      TQMimeSource::~TQMimeSource () [virtual] -

      -Provided to ensure that subclasses destroy themselves correctly. - -

      TQByteArray TQMimeSource::encodedData ( const char * ) const [pure virtual] -

      - -

      Returns the encoded data of this object in the specified MIME -format. -

      Subclasses must reimplement this function. - -

      Reimplemented in TQStoredDrag, TQDropEvent, and TQIconDrag. -

      const char * TQMimeSource::format ( int i = 0 ) const [pure virtual] -

      - -

      Returns the i-th supported MIME format, or 0. - -

      Reimplemented in TQDropEvent. -

      bool TQMimeSource::provides ( const char * mimeType ) const [virtual] -

      -Returns TRUE if the object can provide the data in format mimeType; otherwise returns FALSE. -

      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(). - -

      Example: iconview/simple_dd/main.cpp. -

      Reimplemented in TQDropEvent. -

      int TQMimeSource::serialNumber () const -

      - -

      Returns the mime source's globally unique serial number. - - -


      -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qmimesourcefactory-members.html b/doc/html/qmimesourcefactory-members.html deleted file mode 100644 index 599653c47..000000000 --- a/doc/html/qmimesourcefactory-members.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - -TQMimeSourceFactory Member List - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      Complete Member List for TQMimeSourceFactory

      - -

      This is the complete list of member functions for -TQMimeSourceFactory, including inherited members. - -

      - -


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qmimesourcefactory.html b/doc/html/qmimesourcefactory.html deleted file mode 100644 index bba4817f0..000000000 --- a/doc/html/qmimesourcefactory.html +++ /dev/null @@ -1,277 +0,0 @@ - - - - - -TQMimeSourceFactory Class - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      TQMimeSourceFactory Class Reference

      - -

      The TQMimeSourceFactory class is an extensible provider of mime-typed data. -More... -

      #include <ntqmime.h> -

      List of all member functions. -

      Public Members

      -
        -
      • TQMimeSourceFactory ()
      • -
      • virtual ~TQMimeSourceFactory ()
      • -
      • virtual const TQMimeSource * data ( const TQString & abs_name ) const
      • -
      • virtual TQString makeAbsolute ( const TQString & abs_or_rel_name, const TQString & context ) const
      • -
      • const TQMimeSource * data ( const TQString & abs_or_rel_name, const TQString & context ) const
      • -
      • virtual void setText ( const TQString & abs_name, const TQString & text )
      • -
      • virtual void setImage ( const TQString & abs_name, const TQImage & image )
      • -
      • virtual void setPixmap ( const TQString & abs_name, const TQPixmap & pixmap )
      • -
      • virtual void setData ( const TQString & abs_name, TQMimeSource * data )
      • -
      • virtual void setFilePath ( const TQStringList & path )
      • -
      • virtual TQStringList filePath () const
      • -
      • void addFilePath ( const TQString & p )
      • -
      • virtual void setExtensionType ( const TQString & ext, const char * mimetype )
      • -
      -

      Static Public Members

      - -

      Detailed Description

      - - -The TQMimeSourceFactory class is an extensible provider of mime-typed data. -

      - -

      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(). -

      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). -

      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 TQLabel, TQWhatsThis or -TQMessageBox) always use the default factory. -

      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: -

      -    static const char* myimage_data[]={
      -    "...",
      -    ...
      -    "..."};
      -    
      - -

      To be able to use this image within some rich text, for example -inside a TQLabel, you must create a TQImage from the raw data and -insert it into the factory with a unique name: -

      -    TQMimeSourceFactory::defaultFactory()->setImage( "myimage", TQImage(myimage_data) );
      -    
      - -

      Now you can create a rich text TQLabel with -

      -    TQLabel* label = new TQLabel(
      -        "Rich text with embedded image:<img source=\"myimage\">"
      -        "Isn't that <em>cute</em>?" );
      -    
      - -

      When no longer needed, you can clear the data from the factory: -

      -    delete label;
      -    TQMimeSourceFactory::defaultFactory()->setData( "myimage", 0 );
      -    
      - -

      See also Environment Classes and Input/Output and Networking. - -


      Member Function Documentation

      -

      TQMimeSourceFactory::TQMimeSourceFactory () -

      -Constructs a TQMimeSourceFactory that has no file path and no -stored content. - -

      TQMimeSourceFactory::~TQMimeSourceFactory () [virtual] -

      -Destroys the TQMimeSourceFactory, deleting all stored content. - -

      void TQMimeSourceFactory::addFactory ( TQMimeSourceFactory * f ) [static] -

      -Adds the TQMimeSourceFactory f 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. -

      See also removeFactory(). - -

      void TQMimeSourceFactory::addFilePath ( const TQString & p ) -

      -Adds another search path, p to the existing search paths. -

      See also setFilePath(). - -

      const TQMimeSource * TQMimeSourceFactory::data ( const TQString & abs_name ) const [virtual] -

      -Returns a reference to the data associated with abs_name. The -return value remains valid only until the next data() or setData() -call, so you should immediately decode the result. -

      If there is no data associated with abs_name in the factory's -store, the factory tries to access the local filesystem. If abs_name isn't an absolute file name, the factory will search for -it in all defined paths (see setFilePath()). -

      The factory understands all the image formats supported by -TQImageIO. Any other mime types are determined by the file name -extension. The default settings are -

      -    setExtensionType("html", "text/html;charset=iso8859-1");
      -    setExtensionType("htm", "text/html;charset=iso8859-1");
      -    setExtensionType("txt", "text/plain");
      -    setExtensionType("xml", "text/xml;charset=UTF-8");
      -    
      - -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. -

      Any file data that is not recognized will be retrieved as a -TQMimeSource providing the "application/octet-stream" mime type, -meaning uninterpreted binary data. -

      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. - -

      const TQMimeSource * TQMimeSourceFactory::data ( const TQString & abs_or_rel_name, const TQString & context ) const -

      -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -

      A convenience function. See data(const TQString& abs_name). The -file name is given in abs_or_rel_name and the path is in context. - -

      TQMimeSourceFactory * TQMimeSourceFactory::defaultFactory () [static] -

      -Returns the application-wide default mime source factory. This -factory is used by rich text rendering classes such as -TQSimpleRichText, TQWhatsThis and TQMessageBox to resolve named -references within rich text documents. It serves also as the -initial factory for the more complex render widgets, TQTextEdit and -TQTextBrowser. -

      See also setDefaultFactory(). - -

      Examples: action/application.cpp and application/application.cpp. -

      TQStringList TQMimeSourceFactory::filePath () const [virtual] -

      -Returns the currently set search paths. - -

      TQString TQMimeSourceFactory::makeAbsolute ( const TQString & abs_or_rel_name, const TQString & context ) const [virtual] -

      -Converts the absolute or relative data item name abs_or_rel_name to an absolute name, interpreted within the -context (path) of the data item named context (this must be an -absolute name). - -

      void TQMimeSourceFactory::removeFactory ( TQMimeSourceFactory * f ) [static] -

      -Removes the mimesource factory f from the list of available -mimesource factories. -

      See also addFactory(). - -

      void TQMimeSourceFactory::setData ( const TQString & abs_name, TQMimeSource * data ) [virtual] -

      -Sets data to be the data item associated with -the absolute name abs_name. Note that the ownership of data is -transferred to the factory: do not delete or access the pointer after -passing it to this function. -

      Passing 0 for data removes previously stored data. - -

      void TQMimeSourceFactory::setDefaultFactory ( TQMimeSourceFactory * factory ) [static] -

      -Sets the default factory, destroying any previously set mime -source provider. The ownership of the factory is transferred to -TQt. -

      See also defaultFactory(). - -

      void TQMimeSourceFactory::setExtensionType ( const TQString & ext, const char * mimetype ) [virtual] -

      -Sets the mime-type to be associated with the file name extension, -ext to mimetype. This determines the mime-type for files -found via the paths set by setFilePath(). - -

      void TQMimeSourceFactory::setFilePath ( const TQStringList & path ) [virtual] -

      -Sets the list of directories that will be searched when named data -is requested to the those given in the string list path. -

      See also filePath(). - -

      void TQMimeSourceFactory::setImage ( const TQString & abs_name, const TQImage & image ) [virtual] -

      -Sets image to be the data item associated with the absolute -name abs_name. -

      Equivalent to setData(abs_name, new TQImageDrag(image)). - -

      void TQMimeSourceFactory::setPixmap ( const TQString & abs_name, const TQPixmap & pixmap ) [virtual] -

      -Sets pixmap to be the data item associated with the absolute -name abs_name. - -

      void TQMimeSourceFactory::setText ( const TQString & abs_name, const TQString & text ) [virtual] -

      -Sets text to be the data item associated with the absolute name -abs_name. -

      Equivalent to setData(abs_name, new TQTextDrag(text)). - -

      TQMimeSourceFactory * TQMimeSourceFactory::takeDefaultFactory () [static] -

      -Sets the defaultFactory() to 0 and returns the previous one. - - -

      -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qstoreddrag-members.html b/doc/html/qstoreddrag-members.html deleted file mode 100644 index 8e4eac067..000000000 --- a/doc/html/qstoreddrag-members.html +++ /dev/null @@ -1,104 +0,0 @@ - - - - - -TQStoredDrag Member List - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      Complete Member List for TQStoredDrag

      - -

      This is the complete list of member functions for -TQStoredDrag, including inherited members. - -

      - -


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qstoreddrag.html b/doc/html/qstoreddrag.html deleted file mode 100644 index c126ccf94..000000000 --- a/doc/html/qstoreddrag.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - -TQStoredDrag Class - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      TQStoredDrag Class Reference

      - -

      The TQStoredDrag class provides a simple stored-value drag object for arbitrary MIME data. -More... -

      #include <ntqdragobject.h> -

      Inherits TQDragObject. -

      Inherited by TQUriDrag and TQColorDrag. -

      List of all member functions. -

      Public Members

      - -

      Detailed Description

      - - -The TQStoredDrag class provides a simple stored-value drag object for arbitrary MIME data. -

      -

      When a block of data has only one representation, you can use a -TQStoredDrag to hold it. -

      For more information about drag and drop, see the TQDragObject -class and the drag and drop documentation. -

      See also Drag And Drop Classes. - -


      Member Function Documentation

      -

      TQStoredDrag::TQStoredDrag ( const char * mimeType, TQWidget * dragSource = 0, const char * name = 0 ) -

      -Constructs a TQStoredDrag. The dragSource and name are passed -to the TQDragObject constructor, and the format is set to mimeType. -

      The data will be unset. Use setEncodedData() to set it. - -

      TQStoredDrag::~TQStoredDrag () -

      -Destroys the drag object and frees up all allocated resources. - -

      TQByteArray TQStoredDrag::encodedData ( const char * m ) const [virtual] -

      -Returns the stored data. m contains the data's format. -

      See also setEncodedData(). - -

      Reimplemented from TQMimeSource. -

      void TQStoredDrag::setEncodedData ( const TQByteArray & encodedData ) [virtual] -

      -Sets the encoded data of this drag object to encodedData. The -encoded data is what's delivered to the drop sites. It must be in -a strictly defined and portable format. -

      The drag object can't be dropped (by the user) until this function -has been called. - - -


      -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qt.dcf b/doc/html/qt.dcf index 6f196c977..ebb2c35d2 100644 --- a/doc/html/qt.dcf +++ b/doc/html/qt.dcf @@ -1011,13 +1011,13 @@
      -
      - QColorDrag - canDecode - decode - setColor -
      -
      +
      + TQColorDrag + canDecode + decode + setColor +
      +
      QColorGroup @@ -2181,63 +2181,63 @@
      -
      - QDragEnterEvent -
      +
      + TQDragEnterEvent +
      -
      - QDragLeaveEvent -
      +
      + TQDragLeaveEvent +
      -
      - QDragMoveEvent - accept - answerRect - ignore -
      +
      + TQDragMoveEvent + accept + answerRect + ignore +
      -
      - QDragObject - DragMode - drag - dragCopy - dragLink - dragMove - pixmap - pixmapHotSpot - setPixmap - source - target - ~QDragObject -
      -
      -
      -
      - QDropEvent - Action - accept - acceptAction - action - encodedData - format - ignore - isAccepted - isActionAccepted - pos - provides - setAction - setPoint - source -
      +
      + TQDragObject + DragMode + drag + dragCopy + dragLink + dragMove + pixmap + pixmapHotSpot + setPixmap + source + target + ~TQDragObject +
      +
      +
      +
      + TQDropEvent + Action + accept + acceptAction + action + encodedData + format + ignore + isAccepted + isActionAccepted + pos + provides + setAction + setPoint + source +
      -
      - ~QDropSite -
      -
      +
      + ~TQDropSite +
      +
      TQEditorFactory @@ -3477,7 +3477,7 @@ setImage ~TQImageDrag
      -
      +
      TQImageFormat @@ -4344,22 +4344,22 @@
      -
      - QMacMime - all - canConvert - convertFromMime - convertToMime - convertor - convertorName - countFlavors - flavor - flavorFor - flavorToMime - mimeFor - ~QMacMime -
      -
      +
      + TQMacMime + all + canConvert + convertFromMime + convertToMime + convertor + convertorName + countFlavors + flavor + flavorFor + flavorToMime + mimeFor + ~TQMacMime +
      +
      QMacStyle @@ -4670,36 +4670,36 @@
      -
      - QMimeSource - encodedData - format - provides - serialNumber - ~QMimeSource -
      -
      -
      -
      - QMimeSourceFactory - addFactory - addFilePath - data - defaultFactory - filePath - makeAbsolute - removeFactory - setData - setDefaultFactory - setExtensionType - setFilePath - setImage - setPixmap - setText - takeDefaultFactory - ~QMimeSourceFactory -
      -
      +
      + TQMimeSource + encodedData + format + provides + serialNumber + ~TQMimeSource +
      +
      +
      +
      + TQMimeSourceFactory + addFactory + addFilePath + data + defaultFactory + filePath + makeAbsolute + removeFactory + setData + setDefaultFactory + setExtensionType + setFilePath + setImage + setPixmap + setText + takeDefaultFactory + ~TQMimeSourceFactory +
      +
      QMotif @@ -6939,13 +6939,13 @@
      -
      - QStoredDrag - encodedData - setEncodedData - ~QStoredDrag -
      -
      +
      + TQStoredDrag + encodedData + setEncodedData + ~TQStoredDrag +
      +
      TQStrIList @@ -7693,7 +7693,7 @@ setText ~TQTextDrag
      -
      +
      TQTextEdit @@ -8173,22 +8173,22 @@
      -
      - QUriDrag - canDecode - decode - decodeLocalFiles - decodeToUnicodeUris - localFileToUri - setFileNames - setUnicodeUris - setUris - unicodeUriToUri - uriToLocalFile - uriToUnicodeUri - ~QUriDrag -
      -
      +
      + TQUriDrag + canDecode + decode + decodeLocalFiles + decodeToUnicodeUris + localFileToUri + setFileNames + setUnicodeUris + setUris + unicodeUriToUri + uriToLocalFile + uriToUnicodeUri + ~TQUriDrag +
      +
      QUrl @@ -8960,23 +8960,23 @@
      -
      - QWindowsMime - all - canConvert - cf - cfFor - cfToMime - convertFromMime - convertToMime - convertor - convertorName - countCf - initialize - mimeFor - ~QWindowsMime -
      -
      +
      + TQWindowsMime + all + canConvert + cf + cfFor + cfToMime + convertFromMime + convertToMime + convertor + convertorName + countCf + initialize + mimeFor + ~TQWindowsMime +
      +
      QWindowsStyle diff --git a/doc/html/quridrag-members.html b/doc/html/quridrag-members.html deleted file mode 100644 index 52b4fd236..000000000 --- a/doc/html/quridrag-members.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - - -TQUriDrag Member List - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      Complete Member List for TQUriDrag

      - -

      This is the complete list of member functions for -TQUriDrag, including inherited members. - -

      - -


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/quridrag.html b/doc/html/quridrag.html deleted file mode 100644 index 45c406bba..000000000 --- a/doc/html/quridrag.html +++ /dev/null @@ -1,187 +0,0 @@ - - - - - -TQUriDrag Class - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      TQUriDrag Class Reference

      - -

      The TQUriDrag class provides a drag object for a list of URI references. -More... -

      #include <ntqdragobject.h> -

      Inherits TQStoredDrag. -

      List of all member functions. -

      Public Members

      -
        -
      • TQUriDrag ( TQStrList uris, TQWidget * dragSource = 0, const char * name = 0 )
      • -
      • TQUriDrag ( TQWidget * dragSource = 0, const char * name = 0 )
      • -
      • ~TQUriDrag ()
      • -
      • void setFilenames ( const TQStringList & fnames )  (obsolete)
      • -
      • void setFileNames ( const TQStringList & fnames )
      • -
      • void setUnicodeUris ( const TQStringList & uuris )
      • -
      • virtual void setUris ( TQStrList uris )
      • -
      -

      Static Public Members

      - -

      Detailed Description

      - - -The TQUriDrag class provides a drag object for a list of URI references. -

      -

      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. -

      Use URIs in Unicode form so that the user can comfortably edit and -view them. For use in HTTP or other protocols, use the correctly -escaped ASCII form. -

      You can convert a list of file names to file URIs using -setFileNames(), or into human-readble form with setUnicodeUris(). -

      Static functions are provided to convert between filenames and -URIs, e.g. uriToLocalFile() and localFileToUri(), and to and from -human-readable form, e.g. uriToUnicodeUri(), unicodeUriToUri(). -You can also decode URIs from a mimesource into a list with -decodeLocalFiles() and decodeToUnicodeUris(). -

      See also Drag And Drop Classes. - -


      Member Function Documentation

      -

      TQUriDrag::TQUriDrag ( TQStrList uris, TQWidget * dragSource = 0, const char * name = 0 ) -

      -Constructs an object to drag the list of URIs in uris. The dragSource and name arguments are passed on to TQStoredDrag. -Note that URIs are always in escaped UTF8 encoding. - -

      TQUriDrag::TQUriDrag ( TQWidget * dragSource = 0, const char * name = 0 ) -

      -Constructs an object to drag. You must call setUris() before you -start the drag(). Passes dragSource and name to the -TQStoredDrag constructor. - -

      TQUriDrag::~TQUriDrag () -

      -Destroys the object. - -

      bool TQUriDrag::canDecode ( const TQMimeSource * e ) [static] -

      -Returns TRUE if decode() would be able to decode e; otherwise -returns FALSE. - -

      bool TQUriDrag::decode ( const TQMimeSource * e, TQStrList & l ) [static] -

      -Decodes URIs from e, placing the result in l (which is first -cleared). -

      Returns TRUE if e contained a valid list of URIs; otherwise -returns FALSE. - -

      Example: dirview/dirview.cpp. -

      bool TQUriDrag::decodeLocalFiles ( const TQMimeSource * e, TQStringList & l ) [static] -

      -Decodes URIs from the mime source event e, converts them to -local files if they refer to local files, and places them in l -(which is first cleared). -

      Returns TRUE if contained a valid list of URIs; otherwise -returns FALSE. The list will be empty if no URIs were local files. - -

      Example: fileiconview/qfileiconview.cpp. -

      bool TQUriDrag::decodeToUnicodeUris ( const TQMimeSource * e, TQStringList & l ) [static] -

      -Decodes URIs from the mime source event e, converts them to -Unicode URIs (only useful for displaying to humans), placing them -in l (which is first cleared). -

      Returns TRUE if contained a valid list of URIs; otherwise -returns FALSE. - -

      TQCString TQUriDrag::localFileToUri ( const TQString & filename ) [static] -

      -Returns the URI equivalent to the absolute local file filename. -

      See also uriToLocalFile(). - -

      void TQUriDrag::setFileNames ( const TQStringList & fnames ) -

      -Sets the URIs to be the local-file URIs equivalent to fnames. -

      See also localFileToUri() and setUris(). - -

      Example: dirview/dirview.cpp. -

      void TQUriDrag::setFilenames ( const TQStringList & fnames ) -

      - -This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. -

      Use setFileNames() instead (notice the N). - -

      void TQUriDrag::setUnicodeUris ( const TQStringList & uuris ) -

      -Sets the URIs in uuris to be the Unicode URIs (only useful for -displaying to humans). -

      See also localFileToUri() and setUris(). - -

      void TQUriDrag::setUris ( TQStrList uris ) [virtual] -

      -Changes the list of uris to be dragged. -

      Note that URIs are always in escaped UTF8 encoding. - -

      TQCString TQUriDrag::unicodeUriToUri ( const TQString & uuri ) [static] -

      -Returns the URI equivalent of the Unicode URI given in uuri -(only useful for displaying to humans). -

      See also uriToLocalFile(). - -

      TQString TQUriDrag::uriToLocalFile ( const char * uri ) [static] -

      -Returns the name of a local file equivalent to uri or a null -string if uri is not a local file. -

      Note that URIs are always in escaped UTF8 encoding. -

      See also localFileToUri(). - -

      Example: dirview/dirview.cpp. -

      TQString TQUriDrag::uriToUnicodeUri ( const char * uri ) [static] -

      -Returns the Unicode URI (only useful for displaying to humans) -equivalent of uri. -

      Note that URIs are always in escaped UTF8 encoding. -

      See also localFileToUri(). - - -


      -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qwindowsmime-members.html b/doc/html/qwindowsmime-members.html deleted file mode 100644 index 684ede63e..000000000 --- a/doc/html/qwindowsmime-members.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - -TQWindowsMime Member List - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      Complete Member List for TQWindowsMime

      - -

      This is the complete list of member functions for -TQWindowsMime, including inherited members. - -

      - -


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/qwindowsmime.html b/doc/html/qwindowsmime.html deleted file mode 100644 index ea4b0a0ba..000000000 --- a/doc/html/qwindowsmime.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - - -TQWindowsMime Class - - - - - - - -
      - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

      TQWindowsMime Class Reference

      - -

      The TQWindowsMime class maps open-standard MIME to Window Clipboard formats. -More... -

      #include <ntqmime.h> -

      List of all member functions. -

      Public Members

      -
        -
      • TQWindowsMime ()
      • -
      • virtual ~TQWindowsMime ()
      • -
      • virtual const char * convertorName () = 0
      • -
      • virtual int countCf () = 0
      • -
      • virtual int cf ( int index ) = 0
      • -
      • virtual bool canConvert ( const char * mime, int cf ) = 0
      • -
      • virtual const char * mimeFor ( int cf ) = 0
      • -
      • virtual int cfFor ( const char * mime ) = 0
      • -
      • virtual TQByteArray convertToMime ( TQByteArray data, const char * mime, int cf ) = 0
      • -
      • virtual TQByteArray convertFromMime ( TQByteArray data, const char * mime, int cf ) = 0
      • -
      -

      Static Public Members

      -
        -
      • void initialize ()
      • -
      • TQPtrList<TQWindowsMime> all ()
      • -
      • TQWindowsMime * convertor ( const char * mime, int cf )
      • -
      • const char * cfToMime ( int cf )
      • -
      -

      Detailed Description

      - - -The TQWindowsMime class maps open-standard MIME to Window Clipboard formats. - - - -

      TQt'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. -

      By instantiating subclasses of TQWindowsMime that provide conversions -between Windows Clipboard and MIME formats, you can convert -proprietary clipboard formats to MIME formats. -

      TQt has predefined support for the following Windows Clipboard formats: -

        -
      • CF_UNICODETEXT - converted to "text/plain;charset=ISO-10646-UCS-2" -and supported by TQTextDrag. -
      • CF_TEXT - converted to "text/plain;charset=system" or "text/plain" -and supported by TQTextDrag. -
      • CF_DIB - converted to "image/*", where * is -a TQt image format, -and supported by TQImageDrag. -
      • CF_HDROP - converted to "text/uri-list", -and supported by TQUriDrag. -
      -

      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. -

      You can check if a MIME type is convertible using canConvert() and -can perform conversions with convertToMime() and convertFromMime(). -

      See also Drag And Drop Classes, Input/Output and Networking, and Miscellaneous Classes. - -


      Member Function Documentation

      -

      TQWindowsMime::TQWindowsMime () -

      -Constructs a new conversion object, adding it to the globally accessed -list of available convertors. - -

      TQWindowsMime::~TQWindowsMime () [virtual] -

      -Destroys a conversion object, removing it from the global -list of available convertors. - -

      TQPtrList<TQWindowsMime> TQWindowsMime::all () [static] -

      -Returns a list of all currently defined TQWindowsMime objects. - -

      bool TQWindowsMime::canConvert ( const char * mime, int cf ) [pure virtual] -

      - -

      Returns TRUE if the convertor can convert (both ways) between -mime and cf; otherwise returns FALSE. -

      All subclasses must reimplement this pure virtual function. - -

      int TQWindowsMime::cf ( int index ) [pure virtual] -

      - -

      Returns the Windows Clipboard format supported by this convertor -that is ordinarily at position index. This means that cf(0) -returns the first Windows Clipboard format supported, and -cf(countCf()-1) returns the last. If index is out of range the -return value is undefined. -

      All subclasses must reimplement this pure virtual function. - -

      int TQWindowsMime::cfFor ( const char * mime ) [pure virtual] -

      - -

      Returns the Windows Clipboard type used for MIME type mime, or -0 if this convertor does not support mime. -

      All subclasses must reimplement this pure virtual function. - -

      const char * TQWindowsMime::cfToMime ( int cf ) [static] -

      -Returns a MIME type for cf, or 0 if none exists. - -

      TQByteArray TQWindowsMime::convertFromMime ( TQByteArray data, const char * mime, int cf ) [pure virtual] -

      - -

      Returns data converted from MIME type mime -to Windows Clipboard format cf. -

      Note that Windows Clipboard formats must all be self-terminating. The -return value may contain trailing data. -

      All subclasses must reimplement this pure virtual function. - -

      TQByteArray TQWindowsMime::convertToMime ( TQByteArray data, const char * mime, int cf ) [pure virtual] -

      - -

      Returns data converted from Windows Clipboard format cf -to MIME type mime. -

      Note that Windows Clipboard formats must all be self-terminating. The -input data may contain trailing data. -

      All subclasses must reimplement this pure virtual function. - -

      TQWindowsMime * TQWindowsMime::convertor ( const char * mime, int cf ) [static] -

      -Returns the most-recently created TQWindowsMime that can convert -between the mime and cf formats. Returns 0 if no such convertor -exists. - -

      const char * TQWindowsMime::convertorName () [pure virtual] -

      - -

      Returns a name for the convertor. -

      All subclasses must reimplement this pure virtual function. - -

      int TQWindowsMime::countCf () [pure virtual] -

      - -

      Returns the number of Windows Clipboard formats supported by this -convertor. -

      All subclasses must reimplement this pure virtual function. - -

      void TQWindowsMime::initialize () [static] -

      -This is an internal function. - -

      const char * TQWindowsMime::mimeFor ( int cf ) [pure virtual] -

      - -

      Returns the MIME type used for Windows Clipboard format cf, or -0 if this convertor does not support cf. -

      All subclasses must reimplement this pure virtual function. - - -


      -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


      - -
      Copyright © 2007 -TrolltechTrademarks -
      TQt 3.3.8
      -
      - diff --git a/doc/html/simple-application-example.html b/doc/html/simple-application-example.html index 70194e767..d69636988 100644 --- a/doc/html/simple-application-example.html +++ b/doc/html/simple-application-example.html @@ -161,7 +161,7 @@ private: TQWhatsThis::add( fileOpen, fileOpenText ); - TQMimeSourceFactory::defaultFactory()->setPixmap( "document-open", openIcon ); + TQMimeSourceFactory::defaultFactory()->setPixmap( "document-open", openIcon ); const char * fileSaveText = "<p>Click this button to save the file you " "are editing. You will be prompted for a file name.\n" diff --git a/doc/html/simple-application.html b/doc/html/simple-application.html index cb14ec9b9..4d2f0f5d5 100644 --- a/doc/html/simple-application.html +++ b/doc/html/simple-application.html @@ -232,7 +232,7 @@ function, as its mouse interface is unusual.

      With the above line we add the "What's This?" help-text to the fileOpen button... -

              TQMimeSourceFactory::defaultFactory()->setPixmap( "document-open", openIcon );
      +

              TQMimeSourceFactory::defaultFactory()->setPixmap( "document-open", openIcon );
       

      ... and tell the rich-text engine that when a help-text (like the one saved in fileOpenText) requests an image named "document-open", the openIcon pixmap is used. diff --git a/doc/html/simple_dd-example.html b/doc/html/simple_dd-example.html index 63e2a8c8f..37bacb35d 100644 --- a/doc/html/simple_dd-example.html +++ b/doc/html/simple_dd-example.html @@ -65,8 +65,8 @@ class DDListBox : public TQListBox public: DDListBox( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 ); // Low-level drag and drop - void dragEnterEvent( TQDragEnterEvent *evt ); - void dropEvent( TQDropEvent *evt ); + void dragEnterEvent( TQDragEnterEvent *evt ); + void dropEvent( TQDropEvent *evt ); void mousePressEvent( TQMouseEvent *evt ); void mouseMoveEvent( TQMouseEvent * ); private: @@ -82,8 +82,8 @@ public: DDIconViewItem( TQIconView *parent, const TQString &text ) : TQIconViewItem( parent, text ) {} // High-level drag and drop - bool acceptDrop( const TQMimeSource *mime ) const; - void dropped( TQDropEvent *evt, const TQValueList<TQIconDragItem>& ); + bool acceptDrop( const TQMimeSource *mime ) const; + void dropped( TQDropEvent *evt, const TQValueList<TQIconDragItem>& ); }; @@ -94,9 +94,9 @@ public: DDIconView( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 ) : TQIconView( parent, name, f ) {} // High-level drag and drop - TQDragObject *dragObject(); + TQDragObject *dragObject(); public slots: - void slotNewItem( TQDropEvent *evt, const TQValueList<TQIconDragItem>& list ); + void slotNewItem( TQDropEvent *evt, const TQValueList<TQIconDragItem>& list ); };

      @@ -189,14 +189,14 @@ const char* green_icon[]={ } -void DDListBox::dragEnterEvent( TQDragEnterEvent *evt ) +void DDListBox::dragEnterEvent( TQDragEnterEvent *evt ) { if ( TQTextDrag::canDecode( evt ) ) - evt->accept(); + evt->accept(); } -void DDListBox::dropEvent( TQDropEvent *evt ) +void DDListBox::dropEvent( TQDropEvent *evt ) { TQString text; @@ -215,8 +215,8 @@ const char* green_icon[]={ void DDListBox::mouseMoveEvent( TQMouseEvent * ) { if ( dragging ) { - TQDragObject *d = new TQTextDrag( currentText(), this ); - d->dragCopy(); // do NOT delete d. + TQDragObject *d = new TQTextDrag( currentText(), this ); + d->dragCopy(); // do NOT delete d. dragging = FALSE; } } @@ -225,15 +225,15 @@ const char* green_icon[]={ // IconViewIcon -- high level drag and drop -bool DDIconViewItem::acceptDrop( const TQMimeSource *mime ) const +bool DDIconViewItem::acceptDrop( const TQMimeSource *mime ) const { - if ( mime->provides( "text/plain" ) ) + if ( mime->provides( "text/plain" ) ) return TRUE; return FALSE; } -void DDIconViewItem::dropped( TQDropEvent *evt, const TQValueList<TQIconDragItem>& ) +void DDIconViewItem::dropped( TQDropEvent *evt, const TQValueList<TQIconDragItem>& ) { TQString label; @@ -249,7 +249,7 @@ const char* green_icon[]={ return new TQTextDrag( currentItem()->text(), this ); } -void DDIconView::slotNewItem( TQDropEvent *evt, const TQValueList<TQIconDragItem>& ) +void DDIconView::slotNewItem( TQDropEvent *evt, const TQValueList<TQIconDragItem>& ) { TQString label; diff --git a/doc/html/tetrix-example.html b/doc/html/tetrix-example.html index bcab982af..f5dbb7ed7 100644 --- a/doc/html/tetrix-example.html +++ b/doc/html/tetrix-example.html @@ -47,7 +47,7 @@ This is the TQt implementation of the well known game Tetris. *****************************************************************************/ #include "qtetrix.h" -#include "qdragapp.h" +#include "tqdragapp.h" #include "ntqfont.h" int main( int argc, char **argv ) diff --git a/doc/html/titleindex b/doc/html/titleindex index 8d46bce4b..159b13860 100644 --- a/doc/html/titleindex +++ b/doc/html/titleindex @@ -238,8 +238,8 @@ TQColor Class | ntqcolor.html TQColor Member List | qcolor-members.html QColorDialog Class | ntqcolordialog.html QColorDialog Member List | qcolordialog-members.html -QColorDrag Class | qcolordrag.html -QColorDrag Member List | qcolordrag-members.html +TQColorDrag Class | tqcolordrag.html +TQColorDrag Member List | tqcolordrag-members.html QColorGroup Class | qcolorgroup.html QColorGroup Member List | qcolorgroup-members.html QComboBox Class | ntqcombobox.html @@ -339,18 +339,18 @@ TQDomText Class | tqdomtext.html TQDomText Member List | tqdomtext-members.html QDoubleValidator Class | qdoublevalidator.html QDoubleValidator Member List | qdoublevalidator-members.html -QDragEnterEvent Class | qdragenterevent.html -QDragEnterEvent Member List | qdragenterevent-members.html -QDragLeaveEvent Class | qdragleaveevent.html -QDragLeaveEvent Member List | qdragleaveevent-members.html -QDragMoveEvent Class | qdragmoveevent.html -QDragMoveEvent Member List | qdragmoveevent-members.html -QDragObject Class | ntqdragobject.html -QDragObject Member List | qdragobject-members.html -QDropEvent Class | qdropevent.html -QDropEvent Member List | qdropevent-members.html -QDropSite Class | ntqdropsite.html -QDropSite Member List | qdropsite-members.html +TQDragEnterEvent Class | tqdragenterevent.html +TQDragEnterEvent Member List | tqdragenterevent-members.html +TQDragLeaveEvent Class | tqdragleaveevent.html +TQDragLeaveEvent Member List | tqdragleaveevent-members.html +TQDragMoveEvent Class | tqdragmoveevent.html +TQDragMoveEvent Member List | tqdragmoveevent-members.html +TQDragObject Class | tqdragobject.html +TQDragObject Member List | tqdragobject-members.html +TQDropEvent Class | tqdropevent.html +TQDropEvent Member List | tqdropevent-members.html +TQDropSite Class | tqdropsite.html +TQDropSite Member List | tqdropsite-members.html TQEditorFactory Class | tqeditorfactory.html TQEditorFactory Member List | tqeditorfactory-members.html QEmbed - File and Image Embedder | qembed.html @@ -531,8 +531,8 @@ QLocalFs Class | ntqlocalfs.html QLocalFs Member List | qlocalfs-members.html QLocale Class | ntqlocale.html QLocale Member List | qlocale-members.html -QMacMime Class | qmacmime.html -QMacMime Member List | qmacmime-members.html +TQMacMime Class | tqmacmime.html +TQMacMime Member List | tqmacmime-members.html QMacStyle Class | qmacstyle.html QMacStyle Member List | qmacstyle-members.html QMag | qmag-example.html @@ -556,10 +556,10 @@ QMetaObject Class | ntqmetaobject.html QMetaObject Member List | qmetaobject-members.html QMetaProperty Class | qmetaproperty.html QMetaProperty Member List | qmetaproperty-members.html -QMimeSource Class | qmimesource.html -QMimeSource Member List | qmimesource-members.html -QMimeSourceFactory Class | qmimesourcefactory.html -QMimeSourceFactory Member List | qmimesourcefactory-members.html +TQMimeSource Class | tqmimesource.html +TQMimeSource Member List | tqmimesource-members.html +TQMimeSourceFactory Class | tqmimesourcefactory.html +TQMimeSourceFactory Member List | tqmimesourcefactory-members.html QMotif Class | qmotif.html QMotif Member List | qmotif-members.html QMotif Support Extension | motif-examples.html @@ -758,8 +758,8 @@ TQSqlSelectCursor Class | tqsqlselectcursor.html TQSqlSelectCursor Member List | tqsqlselectcursor-members.html TQStatusBar Class | tqstatusbar.html TQStatusBar Member List | tqstatusbar-members.html -QStoredDrag Class | qstoreddrag.html -QStoredDrag Member List | qstoreddrag-members.html +TQStoredDrag Class | tqstoreddrag.html +TQStoredDrag Member List | tqstoreddrag-members.html TQStrIList Class | tqstrilist.html TQStrIList Member List | tqstrilist-members.html TQStrList Class | tqstrlist.html @@ -850,8 +850,8 @@ QTranslatorMessage Class | qtranslatormessage.html QTranslatorMessage Member List | qtranslatormessage-members.html TQTsciiCodec Class | tqtsciicodec.html TQTsciiCodec Member List | tqtsciicodec-members.html -QUriDrag Class | quridrag.html -QUriDrag Member List | quridrag-members.html +TQUriDrag Class | tquridrag.html +TQUriDrag Member List | tquridrag-members.html QUrl Class | ntqurl.html QUrl Member List | qurl-members.html QUrlInfo Class | ntqurlinfo.html @@ -900,8 +900,8 @@ TQWidgetPlugin Class | tqwidgetplugin.html TQWidgetPlugin Member List | tqwidgetplugin-members.html TQWidgetStack Class | tqwidgetstack.html TQWidgetStack Member List | tqwidgetstack-members.html -QWindowsMime Class | qwindowsmime.html -QWindowsMime Member List | qwindowsmime-members.html +TQWindowsMime Class | tqwindowsmime.html +TQWindowsMime Member List | tqwindowsmime-members.html QWindowsStyle Class | ntqwindowsstyle.html QWindowsStyle Member List | qwindowsstyle-members.html QWizard Class | ntqwizard.html @@ -1114,9 +1114,9 @@ ntqdns.h Include File | qdns-h.html ntqdockarea.h Include File | qdockarea-h.html ntqdockwindow.h Include File | qdockwindow-h.html tqdom.h Include File | tqdom-h.html -ntqdragobject.h Include File | qdragobject-h.html +tqdragobject.h Include File | tqdragobject-h.html ntqdrawutil.h Include File | qdrawutil-h.html -ntqdropsite.h Include File | qdropsite-h.html +tqdropsite.h Include File | tqdropsite-h.html tqeditorfactory.h Include File | tqeditorfactory-h.html ntqerrormessage.h Include File | qerrormessage-h.html tqeucjpcodec.h Include File | tqeucjpcodec-h.html @@ -1174,7 +1174,7 @@ tqmenubar.h Include File | tqmenubar-h.html tqmenudata.h Include File | tqmenudata-h.html ntqmessagebox.h Include File | qmessagebox-h.html ntqmetaobject.h Include File | qmetaobject-h.html -ntqmime.h Include File | qmime-h.html +tqmime.h Include File | tqmime-h.html qmotif.h Include File | qmotif-h.html qmotifdialog.h Include File | qmotifdialog-h.html ntqmotifplusstyle.h Include File | qmotifplusstyle-h.html diff --git a/doc/html/tqaction-application-example.html b/doc/html/tqaction-application-example.html index 418603958..0adf7d842 100644 --- a/doc/html/tqaction-application-example.html +++ b/doc/html/tqaction-application-example.html @@ -152,7 +152,7 @@ private: "Click this button to open a <em>new file</em>. <br>" "You can also select the <b>Open</b> command " "from the <b>File</b> menu.</p>"; - TQMimeSourceFactory::defaultFactory()->setPixmap( "document-open", + TQMimeSourceFactory::defaultFactory()->setPixmap( "document-open", fileOpenAction->iconSet().pixmap() ); fileOpenAction->setWhatsThis( fileOpenText ); diff --git a/doc/html/tqcolordrag-members.html b/doc/html/tqcolordrag-members.html new file mode 100644 index 000000000..f9d0bb70e --- /dev/null +++ b/doc/html/tqcolordrag-members.html @@ -0,0 +1,106 @@ + + + + + +TQColorDrag Member List + + + + + + + +
      + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

      Complete Member List for TQColorDrag

      + +

      This is the complete list of member functions for +TQColorDrag, including inherited members. + +

      + +


      + +
      Copyright © 2007 +TrolltechTrademarks +
      TQt 3.3.8
      +
      + diff --git a/doc/html/tqcolordrag.html b/doc/html/tqcolordrag.html new file mode 100644 index 000000000..ef7c0895a --- /dev/null +++ b/doc/html/tqcolordrag.html @@ -0,0 +1,98 @@ + + + + + +TQColorDrag Class + + + + + + + +
      + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

      TQColorDrag Class Reference

      + +

      The TQColorDrag class provides a drag and drop object for +transferring colors. +More... +

      #include <tqdragobject.h> +

      Inherits TQStoredDrag. +

      List of all member functions. +

      Public Members

      +
        +
      • TQColorDrag ( const TQColor & col, TQWidget * dragsource = 0, const char * name = 0 )
      • +
      • TQColorDrag ( TQWidget * dragsource = 0, const char * name = 0 )
      • +
      • void setColor ( const TQColor & col )
      • +
      +

      Static Public Members

      +
        +
      • bool canDecode ( TQMimeSource * e )
      • +
      • bool decode ( TQMimeSource * e, TQColor & col )
      • +
      +

      Detailed Description

      + + +

      The TQColorDrag class provides a drag and drop object for +transferring colors. +

      +

      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 TQColorDialog. +

      The color is set in the constructor but can be changed with +setColor(). +

      For more information about drag and drop, see the TQDragObject class +and the drag and drop documentation. +

      See also Drag And Drop Classes. + +


      Member Function Documentation

      +

      TQColorDrag::TQColorDrag ( const TQColor & col, TQWidget * dragsource = 0, const char * name = 0 ) +

      +Constructs a color drag object with the color col. Passes dragsource and name to the TQStoredDrag constructor. + +

      TQColorDrag::TQColorDrag ( TQWidget * dragsource = 0, const char * name = 0 ) +

      +Constructs a color drag object with a white color. Passes dragsource and name to the TQStoredDrag constructor. + +

      bool TQColorDrag::canDecode ( TQMimeSource * e ) [static] +

      +Returns TRUE if the color drag object can decode the mime source +e; otherwise returns FALSE. + +

      bool TQColorDrag::decode ( TQMimeSource * e, TQColor & col ) [static] +

      +Decodes the mime source e and sets the decoded values to col. + +

      void TQColorDrag::setColor ( const TQColor & col ) +

      +Sets the color of the color drag to col. + + +

      +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


      + +
      Copyright © 2007 +TrolltechTrademarks +
      TQt 3.3.8
      +
      + diff --git a/doc/html/tqdragenterevent-members.html b/doc/html/tqdragenterevent-members.html new file mode 100644 index 000000000..35b3aec2c --- /dev/null +++ b/doc/html/tqdragenterevent-members.html @@ -0,0 +1,65 @@ + + + + + +TQDragEnterEvent Member List + + + + + + + +
      + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

      Complete Member List for TQDragEnterEvent

      + +

      This is the complete list of member functions for +TQDragEnterEvent, including inherited members. + +

      + +


      + +
      Copyright © 2007 +TrolltechTrademarks +
      TQt 3.3.8
      +
      + diff --git a/doc/html/tqdragenterevent.html b/doc/html/tqdragenterevent.html new file mode 100644 index 000000000..a4c7cd490 --- /dev/null +++ b/doc/html/tqdragenterevent.html @@ -0,0 +1,73 @@ + + + + + +TQDragEnterEvent Class + + + + + + + +
      + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

      TQDragEnterEvent Class Reference

      + +

      The TQDragEnterEvent class provides an event which is sent to the widget when a drag and drop first drags onto the widget. +More... +

      #include <ntqevent.h> +

      Inherits TQDragMoveEvent. +

      List of all member functions. +

      Public Members

      + +

      Detailed Description

      + + +The TQDragEnterEvent class provides an event which is sent to the widget when a drag and drop first drags onto the widget. +

      + +

      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. +

      See also TQDragLeaveEvent, TQDragMoveEvent, TQDropEvent, Drag And Drop Classes, and Event Classes. + +


      Member Function Documentation

      +

      TQDragEnterEvent::TQDragEnterEvent ( const TQPoint & pos ) +

      + +

      Constructs a TQDragEnterEvent entering at the given point, pos. +

      Warning: Do not create a TQDragEnterEvent yourself since these +objects rely on TQt's internal state. + + +


      +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


      + +
      Copyright © 2007 +TrolltechTrademarks +
      TQt 3.3.8
      +
      + diff --git a/doc/html/tqdragleaveevent-members.html b/doc/html/tqdragleaveevent-members.html new file mode 100644 index 000000000..86b2f8828 --- /dev/null +++ b/doc/html/tqdragleaveevent-members.html @@ -0,0 +1,49 @@ + + + + + +TQDragLeaveEvent Member List + + + + + + + +
      + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

      Complete Member List for TQDragLeaveEvent

      + +

      This is the complete list of member functions for +TQDragLeaveEvent, including inherited members. + +

      + +


      + +
      Copyright © 2007 +TrolltechTrademarks +
      TQt 3.3.8
      +
      + diff --git a/doc/html/tqdragleaveevent.html b/doc/html/tqdragleaveevent.html new file mode 100644 index 000000000..c8c9789c1 --- /dev/null +++ b/doc/html/tqdragleaveevent.html @@ -0,0 +1,72 @@ + + + + + +TQDragLeaveEvent Class + + + + + + + +
      + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

      TQDragLeaveEvent Class Reference

      + +

      The TQDragLeaveEvent class provides an event which is sent to the widget when a drag and drop leaves the widget. +More... +

      #include <ntqevent.h> +

      Inherits TQEvent. +

      List of all member functions. +

      Public Members

      + +

      Detailed Description

      + + +The TQDragLeaveEvent class provides an event which is sent to the widget when a drag and drop leaves the widget. +

      + +

      This event is always preceded by a TQDragEnterEvent and a series of +TQDragMoveEvents. It is not sent if a TQDropEvent is sent +instead. +

      See also TQDragEnterEvent, TQDragMoveEvent, TQDropEvent, Drag And Drop Classes, and Event Classes. + +


      Member Function Documentation

      +

      TQDragLeaveEvent::TQDragLeaveEvent () +

      + +

      Constructs a TQDragLeaveEvent. +

      Warning: Do not create a TQDragLeaveEvent yourself since these +objects rely on TQt's internal state. + + +


      +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


      + +
      Copyright © 2007 +TrolltechTrademarks +
      TQt 3.3.8
      +
      + diff --git a/doc/html/tqdragmoveevent-members.html b/doc/html/tqdragmoveevent-members.html new file mode 100644 index 000000000..ae3f07e77 --- /dev/null +++ b/doc/html/tqdragmoveevent-members.html @@ -0,0 +1,65 @@ + + + + + +TQDragMoveEvent Member List + + + + + + + +
      + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

      Complete Member List for TQDragMoveEvent

      + +

      This is the complete list of member functions for +TQDragMoveEvent, including inherited members. + +

      + +


      + +
      Copyright © 2007 +TrolltechTrademarks +
      TQt 3.3.8
      +
      + diff --git a/doc/html/tqdragmoveevent.html b/doc/html/tqdragmoveevent.html new file mode 100644 index 000000000..f435e197b --- /dev/null +++ b/doc/html/tqdragmoveevent.html @@ -0,0 +1,105 @@ + + + + + +TQDragMoveEvent Class + + + + + + + +
      + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

      TQDragMoveEvent Class Reference

      + +

      The TQDragMoveEvent class provides an event which is sent while a drag and drop is in progress. +More... +

      #include <ntqevent.h> +

      Inherits TQDropEvent. +

      Inherited by TQDragEnterEvent. +

      List of all member functions. +

      Public Members

      + +

      Detailed Description

      + + + + +The TQDragMoveEvent class provides an event which is sent while a drag and drop is in progress. +

      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. +

      Note that this class inherits most of its functionality from +TQDropEvent. +

      See also Drag And Drop Classes and Event Classes. + +


      Member Function Documentation

      +

      TQDragMoveEvent::TQDragMoveEvent ( const TQPoint & pos, Type type = DragMove ) +

      + +

      Creates a TQDragMoveEvent for which the mouse is at point pos, +and the event is of type type. +

      Warning: Do not create a TQDragMoveEvent yourself since these +objects rely on TQt's internal state. + +

      void TQDragMoveEvent::accept ( const TQRect & r ) +

      + +

      The same as accept(), but also notifies that future moves will +also be acceptable if they remain within the rectangle r on the +widget: this can improve performance, but may also be ignored by +the underlying system. +

      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. + +

      Examples: desktop/desktop.cpp and dirview/dirview.cpp. +

      TQRect TQDragMoveEvent::answerRect () const +

      + +

      Returns the rectangle for which the acceptance of the move event +applies. + +

      void TQDragMoveEvent::ignore ( const TQRect & r ) +

      + +

      The opposite of accept(const TQRect&), i.e. says that moves within +rectangle r are not acceptable (will be ignored). + +

      Example: dirview/dirview.cpp. + +


      +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


      + +
      Copyright © 2007 +TrolltechTrademarks +
      TQt 3.3.8
      +
      + diff --git a/doc/html/tqdragobject-h.html b/doc/html/tqdragobject-h.html new file mode 100644 index 000000000..f5bb7e613 --- /dev/null +++ b/doc/html/tqdragobject-h.html @@ -0,0 +1,323 @@ + + + + + +tqdragobject.h Include File + + + + + + + +
      + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

      tqdragobject.h

      + +

      This is the verbatim text of the tqdragobject.h include file. It is provided only for illustration; the copyright remains with Trolltech. +


      +
      +/****************************************************************************
      +** $Id: qt/tqdragobject.h   3.3.8   edited Jan 11 14:38 $
      +**
      +** Definition of TQDragObject
      +**
      +** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
      +**
      +** This file is part of the kernel module of the TQt GUI Toolkit.
      +**
      +** This file may be used under the terms of the GNU General Public
      +** License versions 2.0 or 3.0 as published by the Free Software
      +** Foundation and appearing in the file LICENSE.GPL included in the
      +** packaging of this file. Alternatively you may (at your option) use any
      +** later version of the GNU General Public License if such license has
      +** been publicly approved by Trolltech ASA (or its successors, if any)
      +** and the KDE Free TQt Foundation.
      +**
      +** Please review the following information to ensure GNU General
      +** Public Licensing requirements will be met:
      +** http://trolltech.com/products/qt/licenses/licensing/opensource/.
      +** If you are unsure which license is appropriate for your use, please
      +** review the following information:
      +** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
      +** or contact the sales department at sales@trolltech.com.
      +**
      +** This file may be used under the terms of the Q Public License as
      +** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
      +** included in the packaging of this file.  Licensees holding valid TQt
      +** Commercial licenses may use this file in accordance with the TQt
      +** Commercial License Agreement provided with the Software.
      +**
      +** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
      +** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
      +** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
      +** herein.
      +**
      +**********************************************************************/
      +
      +#ifndef TQDRAGOBJECT_H
      +#define TQDRAGOBJECT_H
      +
      +class TQWidget;
      +class TQTextDragPrivate;
      +class TQDragObjectData;
      +class TQStoredDragData;
      +class TQImageDragData;
      +
      +#ifndef QT_H
      +#include "tqobject.h"
      +#include "tqimage.h"
      +#include "tqstrlist.h"
      +#include "ntqcolor.h"
      +#endif // QT_H
      +
      +#ifndef TQT_NO_MIME
      +
      +class TQ_EXPORT TQDragObject: public TQObject, public TQMimeSource {
      +    TQ_OBJECT
      +public:
      +    TQDragObject( TQWidget * dragSource = 0, const char * name = 0 );
      +    virtual ~TQDragObject();
      +
      +#ifndef TQT_NO_DRAGANDDROP
      +    bool drag();
      +    bool dragMove();
      +    void dragCopy();
      +    void dragLink();
      +
      +    virtual void setPixmap(TQPixmap);
      +    virtual void setPixmap(TQPixmap, const TQPoint& hotspot);
      +    TQPixmap pixmap() const;
      +    TQPoint pixmapHotSpot() const;
      +#endif
      +
      +    TQWidget * source();
      +    static TQWidget * target();
      +
      +    static void setTarget(TQWidget*);
      +
      +#ifndef TQT_NO_DRAGANDDROP
      +    enum DragMode { DragDefault, DragCopy, DragMove, DragLink, DragCopyOrMove };
      +
      +protected:
      +    virtual bool drag(DragMode);
      +#endif
      +
      +private:
      +    TQDragObjectData * d;
      +#if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
      +    TQDragObject( const TQDragObject & );
      +    TQDragObject &operator=( const TQDragObject & );
      +#endif
      +};
      +
      +class TQ_EXPORT TQStoredDrag: public TQDragObject {
      +    TQ_OBJECT
      +    TQStoredDragData * d;
      +
      +public:
      +    TQStoredDrag( const char * mimeType,
      +		 TQWidget * dragSource = 0, const char * name = 0 );
      +    ~TQStoredDrag();
      +
      +    virtual void setEncodedData( const TQByteArray & );
      +
      +    const char * format(int i) const;
      +    virtual TQByteArray encodedData(const char*) const;
      +
      +private:
      +#if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
      +    TQStoredDrag( const TQStoredDrag & );
      +    TQStoredDrag &operator=( const TQStoredDrag & );
      +#endif
      +};
      +
      +class TQ_EXPORT TQTextDrag: public TQDragObject {
      +    TQ_OBJECT
      +    TQTextDragPrivate* d;
      +public:
      +    TQTextDrag( const TQString &,
      +	       TQWidget * dragSource = 0, const char * name = 0 );
      +    TQTextDrag( TQWidget * dragSource = 0, const char * name = 0 );
      +    ~TQTextDrag();
      +
      +    virtual void setText( const TQString &);
      +    virtual void setSubtype( const TQCString &);
      +
      +    const char * format(int i) const;
      +    virtual TQByteArray encodedData(const char*) const;
      +
      +    static bool canDecode( const TQMimeSource* e );
      +    static bool decode( const TQMimeSource* e, TQString& s );
      +    static bool decode( const TQMimeSource* e, TQString& s, TQCString& subtype );
      +
      +private:
      +#if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
      +    TQTextDrag( const TQTextDrag & );
      +    TQTextDrag &operator=( const TQTextDrag & );
      +#endif
      +};
      +
      +class TQ_EXPORT TQImageDrag: public TQDragObject {
      +    TQ_OBJECT
      +    TQImage img;
      +    TQStrList ofmts;
      +    TQImageDragData* d;
      +
      +public:
      +    TQImageDrag( TQImage image, TQWidget * dragSource = 0, const char * name = 0 );
      +    TQImageDrag( TQWidget * dragSource = 0, const char * name = 0 );
      +    ~TQImageDrag();
      +
      +    virtual void setImage( TQImage image );
      +
      +    const char * format(int i) const;
      +    virtual TQByteArray encodedData(const char*) const;
      +
      +    static bool canDecode( const TQMimeSource* e );
      +    static bool decode( const TQMimeSource* e, TQImage& i );
      +    static bool decode( const TQMimeSource* e, TQPixmap& i );
      +
      +private:
      +#if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
      +    TQImageDrag( const TQImageDrag & );
      +    TQImageDrag &operator=( const TQImageDrag & );
      +#endif
      +};
      +
      +
      +class TQ_EXPORT TQUriDrag: public TQStoredDrag {
      +    TQ_OBJECT
      +
      +public:
      +    TQUriDrag( TQStrList uris, TQWidget * dragSource = 0, const char * name = 0 );
      +    TQUriDrag( TQWidget * dragSource = 0, const char * name = 0 );
      +    ~TQUriDrag();
      +
      +    void setFilenames( const TQStringList & fnames ) { setFileNames( fnames ); }
      +    void setFileNames( const TQStringList & fnames );
      +    void setUnicodeUris( const TQStringList & uuris );
      +    virtual void setUris( TQStrList uris );
      +
      +    static TQString uriToLocalFile(const char*);
      +    static TQCString localFileToUri(const TQString&);
      +    static TQString uriToUnicodeUri(const char*);
      +    static TQCString unicodeUriToUri(const TQString&);
      +    static bool canDecode( const TQMimeSource* e );
      +    static bool decode( const TQMimeSource* e, TQStrList& i );
      +    static bool decodeToUnicodeUris( const TQMimeSource* e, TQStringList& i );
      +    static bool decodeLocalFiles( const TQMimeSource* e, TQStringList& i );
      +
      +private:
      +#if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
      +    TQUriDrag( const TQUriDrag & );
      +    TQUriDrag &operator=( const TQUriDrag & );
      +#endif
      +};
      +
      +class TQ_EXPORT TQColorDrag : public TQStoredDrag
      +{
      +    TQ_OBJECT
      +    TQColor color;
      +
      +public:
      +    TQColorDrag( const TQColor &col, TQWidget *dragsource = 0, const char *name = 0 );
      +    TQColorDrag( TQWidget * dragSource = 0, const char * name = 0 );
      +    void setColor( const TQColor &col );
      +
      +    static bool canDecode( TQMimeSource * );
      +    static bool decode( TQMimeSource *, TQColor &col );
      +
      +private:
      +#if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
      +    TQColorDrag( const TQColorDrag & );
      +    TQColorDrag &operator=( const TQColorDrag & );
      +#endif
      +};
      +
      +#ifndef TQT_NO_COMPAT
      +typedef TQUriDrag TQUrlDrag;
      +#endif
      +
      +#ifndef TQT_NO_DRAGANDDROP
      +
      +// TQDragManager is not part of the public API.  It is defined in a
      +// header file simply so different .cpp files can implement different
      +// member functions.
      +//
      +
      +class TQ_EXPORT TQDragManager: public TQObject {
      +    TQ_OBJECT
      +
      +private:
      +    TQDragManager();
      +    ~TQDragManager();
      +    // only friend classes can use TQDragManager.
      +    friend class TQDragObject;
      +    friend class TQDragMoveEvent;
      +    friend class TQDropEvent;
      +    friend class TQApplication;
      +
      +    bool eventFilter( TQObject *, TQEvent * );
      +    void timerEvent( TQTimerEvent* );
      +
      +    bool drag( TQDragObject *, TQDragObject::DragMode );
      +
      +    void cancel( bool deleteSource = TRUE );
      +    void move( const TQPoint & );
      +    void drop();
      +    void updatePixmap();
      +
      +private:
      +    TQDragObject * object;
      +    void updateMode( ButtonState newstate );
      +    void updateCursor();
      +#if defined(TQ_WS_X11)
      +    void createCursors();
      +#endif
      +
      +    TQWidget * dragSource;
      +    TQWidget * dropWidget;
      +    bool beingCancelled;
      +    bool restoreCursor;
      +    bool willDrop;
      +
      +    TQPixmap *pm_cursor;
      +    int n_cursor;
      +#if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
      +    TQDragManager( const TQDragManager & );
      +    TQDragManager &operator=( const TQDragManager & );
      +#endif
      +};
      +
      +#endif
      +
      +#endif // TQT_NO_MIME
      +
      +#endif // TQDRAGOBJECT_H
      +
      + +


      + +
      Copyright © 2007 +TrolltechTrademarks +
      TQt 3.3.8
      +
      + diff --git a/doc/html/tqdragobject-members.html b/doc/html/tqdragobject-members.html new file mode 100644 index 000000000..d06533a48 --- /dev/null +++ b/doc/html/tqdragobject-members.html @@ -0,0 +1,103 @@ + + + + + +TQDragObject Member List + + + + + + + +
      + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

      Complete Member List for TQDragObject

      + +

      This is the complete list of member functions for +TQDragObject, including inherited members. + +

      + +


      + +
      Copyright © 2007 +TrolltechTrademarks +
      TQt 3.3.8
      +
      + diff --git a/doc/html/tqdragobject.html b/doc/html/tqdragobject.html new file mode 100644 index 000000000..6c829eda2 --- /dev/null +++ b/doc/html/tqdragobject.html @@ -0,0 +1,220 @@ + + + + + +TQDragObject Class + + + + + + + +
      + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

      TQDragObject Class Reference

      + +

      The TQDragObject class encapsulates MIME-based data +transfer. +More... +

      #include <tqdragobject.h> +

      Inherits TQObject and TQMimeSource. +

      Inherited by TQStoredDrag, TQTextDrag, TQImageDrag, and TQIconDrag. +

      List of all member functions. +

      Public Members

      + +

      Static Public Members

      + +

      Protected Members

      +
        +
      • virtual bool drag ( DragMode mode )
      • +
      +

      Detailed Description

      + + +

      The TQDragObject class encapsulates MIME-based data +transfer. +

      +

      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. +

      See the Drag-and-drop documentation for an +overview of how to provide drag and drop in your application. +

      See the TQClipboard documentation for an overview of how to provide +cut-and-paste in your application. +

      The drag() function is used to start a drag operation. You can +specify the DragMode in the call or use one of the convenience +functions dragCopy(), dragMove() or dragLink(). The drag source +where the data originated is retrieved with source(). If the data +was dropped on a widget within the application, target() will +return a pointer to that widget. Specify the pixmap to display +during the drag with setPixmap(). +

      See also Drag And Drop Classes. + +


      Member Type Documentation

      +

      TQDragObject::DragMode

      + +

      This enum describes the possible drag modes. +

        +
      • TQDragObject::DragDefault - The mode is determined heuristically. +
      • TQDragObject::DragCopy - The data is copied, never moved. +
      • TQDragObject::DragMove - The data is moved, if dragged at all. +
      • TQDragObject::DragLink - The data is linked, if dragged at all. +
      • TQDragObject::DragCopyOrMove - The user chooses the mode by using a +control key to switch from the default. +
      +

      Member Function Documentation

      +

      TQDragObject::TQDragObject ( TQWidget * dragSource = 0, const char * name = 0 ) +

      +Constructs a drag object called name, which is a child of dragSource. +

      Note that the drag object will be deleted when dragSource is +deleted. + +

      TQDragObject::~TQDragObject () [virtual] +

      +Destroys the drag object, canceling any drag and drop operation in +which it is involved, and frees up the storage used. + +

      bool TQDragObject::drag () +

      +Starts a drag operation using the contents of this object, using +DragDefault mode. +

      The function returns TRUE if the caller should delete the original +copy of the dragged data (but see target()); otherwise returns +FALSE. +

      If the drag contains references 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 must not delete the files!) +

      Note that on Windows the drag operation will spin a blocking modal +event loop that will not dispatch any TQTimers. + +

      Example: dirview/dirview.cpp. +

      bool TQDragObject::drag ( DragMode mode ) [virtual protected] +

      +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

      Starts a drag operation using the contents of this object. +

      At this point, the object becomes owned by TQt, not the +application. You should not delete the drag object or anything it +references. The actual transfer of data to the target application +will be done during future event processing - after that time the +drag object will be deleted. +

      Returns TRUE if the dragged data was dragged as a move, +indicating that the caller should remove the original source of +the data (the drag object must continue to have a copy); otherwise +returns FALSE. +

      The mode specifies the drag mode (see +TQDragObject::DragMode.) Normally one of the simpler drag(), +dragMove(), or dragCopy() functions would be used instead. + +

      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(). +

      See also drag(), dragMove(), and dragLink(). + +

      Example: iconview/simple_dd/main.cpp. +

      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(). +

      See also drag(), dragCopy(), and dragMove(). + +

      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(). +

      See also drag(), dragCopy(), and dragLink(). + +

      TQPixmap TQDragObject::pixmap () const +

      +Returns the currently set pixmap (which isNull() if none is set). + +

      TQPoint TQDragObject::pixmapHotSpot () const +

      +Returns the currently set pixmap hotspot. + +

      void TQDragObject::setPixmap ( TQPixmap pm, const TQPoint & hotspot ) [virtual] +

      +Set the pixmap pm 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. +

      The hotspot 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. +

      Warning: 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. + +

      Example: fileiconview/qfileiconview.cpp. +

      void TQDragObject::setPixmap ( TQPixmap pm ) [virtual] +

      +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

      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. + +

      TQWidget * TQDragObject::source () +

      +Returns a pointer to the drag source where this object originated. + +

      TQWidget * TQDragObject::target () [static] +

      +After the drag completes, this function will return the TQWidget +which received the drop, or 0 if the data was dropped on another +application. +

      This can be useful for detecting the case where drag and drop is +to and from the same widget. + + +


      +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


      + +
      Copyright © 2007 +TrolltechTrademarks +
      TQt 3.3.8
      +
      + diff --git a/doc/html/tqdropevent-members.html b/doc/html/tqdropevent-members.html new file mode 100644 index 000000000..7ad014ece --- /dev/null +++ b/doc/html/tqdropevent-members.html @@ -0,0 +1,64 @@ + + + + + +TQDropEvent Member List + + + + + + + +
      + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

      Complete Member List for TQDropEvent

      + +

      This is the complete list of member functions for +TQDropEvent, including inherited members. + +

      + +


      + +
      Copyright © 2007 +TrolltechTrademarks +
      TQt 3.3.8
      +
      + diff --git a/doc/html/tqdropevent.html b/doc/html/tqdropevent.html new file mode 100644 index 000000000..2d693960a --- /dev/null +++ b/doc/html/tqdropevent.html @@ -0,0 +1,225 @@ + + + + + +TQDropEvent Class + + + + + + + +
      + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

      TQDropEvent Class Reference

      + +

      The TQDropEvent class provides an event which is sent when a drag and drop is completed. +More... +

      #include <ntqevent.h> +

      Inherits TQEvent and TQMimeSource. +

      Inherited by TQDragMoveEvent. +

      List of all member functions. +

      Public Members

      +
        +
      • TQDropEvent ( const TQPoint & pos, Type typ = Drop )
      • +
      • const TQPoint & pos () const
      • +
      • bool isAccepted () const
      • +
      • void accept ( bool y = TRUE )
      • +
      • void ignore ()
      • +
      • bool isActionAccepted () const
      • +
      • void acceptAction ( bool y = TRUE )
      • +
      • enum Action { Copy, Link, Move, Private, UserAction = 100 }
      • +
      • void setAction ( Action a )
      • +
      • Action action () const
      • +
      • TQWidget * source () const
      • +
      • virtual const char * format ( int n = 0 ) const
      • +
      • virtual TQByteArray encodedData ( const char * format ) const
      • +
      • virtual bool provides ( const char * mimeType ) const
      • +
      • TQByteArray data ( const char * f ) const  (obsolete)
      • +
      • void setPoint ( const TQPoint & np )
      • +
      +

      Detailed Description

      + + + + +

      The TQDropEvent class provides an event which is sent when a drag and drop is completed. +

      When a widget accepts drop + events, it will receive this event if it has accepted the +most recent TQDragEnterEvent or TQDragMoveEvent sent to it. +

      The widget should use data() to extract the data in an appropriate +format. +

      See also Drag And Drop Classes and Event Classes. + +


      Member Type Documentation

      +

      TQDropEvent::Action

      + +

      This enum describes the action which a source requests that a +target perform with dropped data. +

        +
      • TQDropEvent::Copy - The default action. The source simply uses the data +provided in the operation. +
      • TQDropEvent::Link - The source should somehow create a link to the +location specified by the data. +
      • TQDropEvent::Move - The source should somehow move the object from the +location specified by the data to a new location. +
      • TQDropEvent::Private - The target has special knowledge of the MIME type, +which the source should respond to in a similar way to +a Copy. +
      • TQDropEvent::UserAction - The source and target can co-operate using +special actions. This feature is not currently +supported. +

      The Link and Move actions only makes sense if the data is a +reference, for example, text/uri-list file lists (see TQUriDrag). + +


      Member Function Documentation

      +

      TQDropEvent::TQDropEvent ( const TQPoint & pos, Type typ = Drop ) +

      + +

      Constructs a drop event that drops a drop of type typ on point +pos. + +

      void TQDropEvent::accept ( bool y = TRUE ) +

      + +

      Call this function to indicate whether the event provided data +which your widget processed. Set y to TRUE (the default) if +your widget could process the data, otherwise set y 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. +

      See also acceptAction(). + +

      Example: iconview/simple_dd/main.cpp. +

      void TQDropEvent::acceptAction ( bool y = TRUE ) +

      + +

      Call this to indicate that the action described by action() is +accepted (i.e. if y 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). + +

      Examples: dirview/dirview.cpp and fileiconview/qfileiconview.cpp. +

      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(). + +

      Examples: dirview/dirview.cpp and fileiconview/qfileiconview.cpp. +

      TQByteArray TQDropEvent::data ( const char * f ) const +

      + +

      This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

      Use TQDropEvent::encodedData(). + +

      TQByteArray TQDropEvent::encodedData ( const char * format ) const [virtual] +

      +Returns a byte array containing the drag's data, in format. +

      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 format. +

      The resulting data will have a size of 0 if the format was not +available. +

      See also format() and TQByteArray::size(). + +

      Reimplemented from TQMimeSource. +

      const char * TQDropEvent::format ( int n = 0 ) const [virtual] +

      +Returns a string describing one of the available data types for +this drag. Common examples are "text/plain" and "image/gif". If n is less than zero or greater than the number of available data +types, format() returns 0. +

      This function is provided mainly for debugging. Most drop targets +will use provides(). +

      See also data() and provides(). + +

      Example: iconview/main.cpp. +

      Reimplemented from TQMimeSource. +

      void TQDropEvent::ignore () +

      + +

      The opposite of accept(), i.e. you have ignored the drop event. + +

      Example: fileiconview/qfileiconview.cpp. +

      bool TQDropEvent::isAccepted () const +

      + +

      Returns TRUE if the drop target accepts the event; otherwise +returns FALSE. + +

      bool TQDropEvent::isActionAccepted () const +

      + +

      Returns TRUE if the drop action was accepted by the drop site; +otherwise returns FALSE. + +

      const TQPoint & TQDropEvent::pos () const +

      + +

      Returns the position where the drop was made. + +

      Example: dirview/dirview.cpp. +

      bool TQDropEvent::provides ( const char * mimeType ) const [virtual] +

      +Returns TRUE if this event provides format mimeType; otherwise +returns FALSE. +

      See also data(). + +

      Example: fileiconview/qfileiconview.cpp. +

      Reimplemented from TQMimeSource. +

      void TQDropEvent::setAction ( Action a ) +

      + +

      Sets the action to a. This is used internally, you should not +need to call this in your code: the source decides the action, +not the target. + +

      void TQDropEvent::setPoint ( const TQPoint & np ) +

      + +

      Sets the drop to happen at point np. You do not normally need +to use this as it will be set internally before your widget +receives the drop event. + +

      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. +

      This is useful if your widget needs special behavior when dragging +to itself, etc. +

      See TQDragObject::TQDragObject() and subclasses. + + +


      +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


      + +
      Copyright © 2007 +TrolltechTrademarks +
      TQt 3.3.8
      +
      + diff --git a/doc/html/tqdropsite-h.html b/doc/html/tqdropsite-h.html new file mode 100644 index 000000000..84e7fff0e --- /dev/null +++ b/doc/html/tqdropsite-h.html @@ -0,0 +1,104 @@ + + + + + +tqdropsite.h Include File + + + + + + + +
      + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

      tqdropsite.h

      + +

      This is the verbatim text of the tqdropsite.h include file. It is provided only for illustration; the copyright remains with Trolltech. +


      +
      +/****************************************************************************
      +** $Id: qt/tqdropsite.h   3.3.8   edited Jan 11 14:38 $
      +**
      +** Definitation of Drag and Drop support
      +**
      +** Copyright (C) 1992-2007 Trolltech ASA.  All rights reserved.
      +**
      +** This file is part of the kernel module of the TQt GUI Toolkit.
      +**
      +** This file may be used under the terms of the GNU General Public
      +** License versions 2.0 or 3.0 as published by the Free Software
      +** Foundation and appearing in the file LICENSE.GPL included in the
      +** packaging of this file. Alternatively you may (at your option) use any
      +** later version of the GNU General Public License if such license has
      +** been publicly approved by Trolltech ASA (or its successors, if any)
      +** and the KDE Free TQt Foundation.
      +**
      +** Please review the following information to ensure GNU General
      +** Public Licensing requirements will be met:
      +** http://trolltech.com/products/qt/licenses/licensing/opensource/.
      +** If you are unsure which license is appropriate for your use, please
      +** review the following information:
      +** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
      +** or contact the sales department at sales@trolltech.com.
      +**
      +** This file may be used under the terms of the Q Public License as
      +** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
      +** included in the packaging of this file.  Licensees holding valid TQt
      +** Commercial licenses may use this file in accordance with the TQt
      +** Commercial License Agreement provided with the Software.
      +**
      +** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
      +** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
      +** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
      +** herein.
      +**
      +**********************************************************************/
      +
      +#ifndef TQDROPSITE_H
      +#define TQDROPSITE_H
      +
      +#ifndef QT_H
      +#ifndef QT_H
      +#include "ntqglobal.h"
      +#endif // QT_H
      +#endif
      +
      +
      +class TQWidget;
      +
      +
      +class TQ_EXPORT TQDropSite {
      +public:
      +    TQDropSite( TQWidget* parent );
      +    virtual ~TQDropSite();
      +};
      +
      +
      +#endif  // TQDROPSITE_H
      +
      + +


      + +
      Copyright © 2007 +TrolltechTrademarks +
      TQt 3.3.8
      +
      + diff --git a/doc/html/tqdropsite-members.html b/doc/html/tqdropsite-members.html new file mode 100644 index 000000000..c829e23cb --- /dev/null +++ b/doc/html/tqdropsite-members.html @@ -0,0 +1,48 @@ + + + + + +TQDropSite Member List + + + + + + + +
      + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

      Complete Member List for TQDropSite

      + +

      This is the complete list of member functions for +TQDropSite, including inherited members. + +

      + +


      + +
      Copyright © 2007 +TrolltechTrademarks +
      TQt 3.3.8
      +
      + diff --git a/doc/html/tqdropsite.html b/doc/html/tqdropsite.html new file mode 100644 index 000000000..e493c67bc --- /dev/null +++ b/doc/html/tqdropsite.html @@ -0,0 +1,75 @@ + + + + + +TQDropSite Class + + + + + + + +
      + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

      TQDropSite Class Reference
      [obsolete]

      + +

      The TQDropSite class provides nothing and does nothing. +More... +

      #include <tqdropsite.h> +

      List of all member functions. +

      Public Members

      + +

      Detailed Description

      + + +The TQDropSite class provides nothing and does nothing. +

      This class is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

      If your code uses it, you can safely delete it. +

      It was used in TQt 1.x to do some drag and drop; that has since been +folded into TQWidget. +

      For detailed information about drag-and-drop, see the TQDragObject class. +

      See also TQDragObject, TQTextDrag, and TQImageDrag. + +


      Member Function Documentation

      +

      TQDropSite::TQDropSite ( TQWidget * self ) +

      +Constructs a TQDropSite to handle events for the widget self. +

      Pass this as the self parameter. +This enables dropping by calling TQWidget::setAcceptDrops(TRUE). + +

      TQDropSite::~TQDropSite () [virtual] +

      +Destroys the drop site. + + +

      +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


      + +
      Copyright © 2007 +TrolltechTrademarks +
      TQt 3.3.8
      +
      + diff --git a/doc/html/tqicondrag-members.html b/doc/html/tqicondrag-members.html index 639f5c48f..eebf72791 100644 --- a/doc/html/tqicondrag-members.html +++ b/doc/html/tqicondrag-members.html @@ -52,16 +52,16 @@ body { background: #ffffff; color: black; }
    • destroyed()
    • disconnect()
    • disconnectNotify() -
    • drag() -
    • dragCopy() -
    • dragLink() -
    • dragMove() +
    • drag() +
    • dragCopy() +
    • dragLink() +
    • dragMove()
    • dumpObjectInfo()
    • dumpObjectTree()
    • encodedData()
    • event()
    • eventFilter() -
    • format() +
    • format()
    • highPriority()
    • inherits()
    • insertChild() @@ -75,22 +75,22 @@ body { background: #ffffff; color: black; }
    • normalizeSignalSlot()
    • objectTrees()
    • parent() -
    • pixmap() -
    • pixmapHotSpot() +
    • pixmap() +
    • pixmapHotSpot()
    • property() -
    • provides() +
    • provides()
    • queryList()
    • removeChild()
    • removeEventFilter()
    • sender() -
    • serialNumber() +
    • serialNumber()
    • setName() -
    • setPixmap() +
    • setPixmap()
    • setProperty()
    • signalsBlocked() -
    • source() +
    • source()
    • startTimer() -
    • target() +
    • target()
    • timerEvent()
    • tr()
    • trUtf8() diff --git a/doc/html/tqicondrag.html b/doc/html/tqicondrag.html index fee4c3d6c..99ff87cad 100644 --- a/doc/html/tqicondrag.html +++ b/doc/html/tqicondrag.html @@ -35,7 +35,7 @@ body { background: #ffffff; color: black; } within a TQIconView. More...

      #include <tqiconview.h> -

      Inherits TQDragObject. +

      Inherits TQDragObject.

      List of all member functions.

      Public Members

        @@ -68,17 +68,17 @@ which should be dragged, set the data it represents with TQIconDragItem::setData(), and add each TQIconDragItem to the drag object using append().

        The data in TQIconDragItems is stored in a TQByteArray and is -mime-typed (see TQMimeSource and the +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 +from TQIconDrag and reimplement format(), encodedData() and canDecode().

        The fileiconview example program demonstrates the use of the TQIconDrag class including subclassing and reimplementing dragObject(), format(), encodedData() and canDecode(). See the files qt/examples/fileiconview/qfileiconview.h and qt/examples/fileiconview/qfileiconview.cpp. -

        See also TQMimeSource::format() and Drag And Drop Classes. +

        See also TQMimeSource::format() and Drag And Drop Classes.


        Member Function Documentation

        TQIconDrag::TQIconDrag ( TQWidget * dragSource, const char * name = 0 ) @@ -98,7 +98,7 @@ the textual caption, tr.

        See also TQIconDragItem.

        Example: fileiconview/qfileiconview.cpp. -

        bool TQIconDrag::canDecode ( TQMimeSource * e ) [static] +

        bool TQIconDrag::canDecode ( TQMimeSource * e ) [static]

        Returns TRUE if e can be decoded by the TQIconDrag, otherwise return FALSE. @@ -110,7 +110,7 @@ Returns the encoded data of the drag object if mime is application/x-qiconlist.

        Example: fileiconview/qfileiconview.cpp. -

        Reimplemented from TQMimeSource. +

        Reimplemented from TQMimeSource.


        This file is part of the TQt toolkit. diff --git a/doc/html/tqiconview-h.html b/doc/html/tqiconview-h.html index 28b9d7621..d8d22442c 100644 --- a/doc/html/tqiconview-h.html +++ b/doc/html/tqiconview-h.html @@ -84,7 +84,7 @@ body { background: #ffffff; color: black; } #include "ntqpoint.h" #include "tqsize.h" #include "ntqfont.h" // TQString->TQFont conversion -#include "ntqdragobject.h" +#include "tqdragobject.h" #include "ntqbitmap.h" #include "ntqpicture.h" #endif // QT_H diff --git a/doc/html/tqiconview.html b/doc/html/tqiconview.html index c94dbac95..9ef4c8a89 100644 --- a/doc/html/tqiconview.html +++ b/doc/html/tqiconview.html @@ -273,7 +273,7 @@ subclass TQIconView and reimplement TQIconView::dragObject

        In this example we create a TQTextDrag object, (derived from -TQDragObject), containing the item's label and return it as the drag +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.

        TQIconViews and their TQIconViewItems can also be the targets of drag @@ -284,14 +284,14 @@ make a TQIconViewItem into a drop target subcl reimplement TQIconViewItem::acceptDrop() and TQIconViewItem::dropped().

        -    bool MyIconViewItem::acceptDrop( const TQMimeSource *mime ) const
        +    bool MyIconViewItem::acceptDrop( const TQMimeSource *mime ) const
             {
        -        if ( mime->provides( "text/plain" ) )
        +        if ( mime->provides( "text/plain" ) )
                     return TRUE;
                 return FALSE;
             }
         
        -    void MyIconViewItem::dropped( TQDropEvent *evt, const TQValueList<TQIconDragItem>& )
        +    void MyIconViewItem::dropped( TQDropEvent *evt, const TQValueList<TQIconDragItem>& )
             {
                 TQString label;
                 if ( TQTextDrag::decode( evt, label ) )
        @@ -484,9 +484,9 @@ rubber band.
         
         

        This signal is emitted when the user double-clicks on item. -

        TQDragObject * TQIconView::dragObject () [virtual protected] +

        TQDragObject * TQIconView::dragObject () [virtual protected]

        -Returns the TQDragObject that should be used for drag-and-drop. +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. @@ -506,7 +506,7 @@ backgrounds. Draws the rubber band using the painter p. -

        void TQIconView::dropped ( TQDropEvent * e, const TQValueList<TQIconDragItem> & lst ) [signal] +

        void TQIconView::dropped ( TQDropEvent * e, const TQValueList<TQIconDragItem> & lst ) [signal]

        This signal is emitted when a drop event occurs in the viewport diff --git a/doc/html/tqiconviewitem.html b/doc/html/tqiconviewitem.html index d458939d8..b0b51f650 100644 --- a/doc/html/tqiconviewitem.html +++ b/doc/html/tqiconviewitem.html @@ -209,10 +209,10 @@ the icon view item after. Destroys the icon view item and tells the parent icon view that the item has been destroyed. -

        bool TQIconViewItem::acceptDrop ( const TQMimeSource * mime ) const [virtual] +

        bool TQIconViewItem::acceptDrop ( const TQMimeSource * mime ) const [virtual]

        -

        Returns TRUE if you can drop things with a TQMimeSource of mime +

        Returns TRUE if you can drop things with a TQMimeSource of mime onto this item; otherwise returns FALSE.

        The default implementation always returns FALSE. You must subclass TQIconViewItem and reimplement acceptDrop() to accept drops. @@ -277,7 +277,7 @@ Returns TRUE if the user is allowed to drop something onto the item; otherwise returns FALSE.

        See also setDropEnabled(). -

        void TQIconViewItem::dropped ( TQDropEvent * e, const TQValueList<TQIconDragItem> & lst ) [virtual protected] +

        void TQIconViewItem::dropped ( TQDropEvent * e, const TQValueList<TQIconDragItem> & lst ) [virtual protected]

        This function is called when something is dropped on the item. e provides all the information about the drop. If the drag object diff --git a/doc/html/tqimage.html b/doc/html/tqimage.html index b8fb20c78..3149642e9 100644 --- a/doc/html/tqimage.html +++ b/doc/html/tqimage.html @@ -544,7 +544,7 @@ existing image or TQColor::rgb() to use a specif Convenience function. Gets the data associated with the absolute name abs_name from the default mime source factory and decodes it to an image. -

        See also TQMimeSourceFactory, TQImage::fromMimeSource(), and TQImageDrag::decode(). +

        See also TQMimeSourceFactory, TQImage::fromMimeSource(), and TQImageDrag::decode().

        bool TQImage::hasAlphaBuffer () const

        diff --git a/doc/html/tqimagedrag-members.html b/doc/html/tqimagedrag-members.html index 36996b57a..6ba2c5716 100644 --- a/doc/html/tqimagedrag-members.html +++ b/doc/html/tqimagedrag-members.html @@ -1,5 +1,5 @@ - + @@ -52,16 +52,16 @@ body { background: #ffffff; color: black; }
      • destroyed()
      • disconnect()
      • disconnectNotify() -
      • drag() -
      • dragCopy() -
      • dragLink() -
      • dragMove() +
      • drag() +
      • dragCopy() +
      • dragLink() +
      • dragMove()
      • dumpObjectInfo()
      • dumpObjectTree() -
      • encodedData() +
      • encodedData()
      • event()
      • eventFilter() -
      • format() +
      • format()
      • highPriority()
      • inherits()
      • insertChild() @@ -75,23 +75,23 @@ body { background: #ffffff; color: black; }
      • normalizeSignalSlot()
      • objectTrees()
      • parent() -
      • pixmap() -
      • pixmapHotSpot() +
      • pixmap() +
      • pixmapHotSpot()
      • property() -
      • provides() +
      • provides()
      • queryList()
      • removeChild()
      • removeEventFilter()
      • sender() -
      • serialNumber() +
      • serialNumber()
      • setImage()
      • setName() -
      • setPixmap() +
      • setPixmap()
      • setProperty()
      • signalsBlocked() -
      • source() +
      • source()
      • startTimer() -
      • target() +
      • target()
      • timerEvent()
      • tr()
      • trUtf8() diff --git a/doc/html/tqimagedrag.html b/doc/html/tqimagedrag.html index ca3c5448f..8575886ae 100644 --- a/doc/html/tqimagedrag.html +++ b/doc/html/tqimagedrag.html @@ -1,5 +1,5 @@ - + @@ -34,8 +34,8 @@ body { background: #ffffff; color: black; }

        The TQImageDrag class provides a drag and drop object for transferring images. More... -

        #include <ntqdragobject.h> -

        Inherits TQDragObject. +

        #include <tqdragobject.h> +

        Inherits TQDragObject.

        List of all member functions.

        Public Members

          @@ -59,7 +59,7 @@ transferring images.

          Images are offered to the receiving application in multiple formats, determined by TQt's output formats. -

          For more information about drag and drop, see the TQDragObject +

          For more information about drag and drop, see the TQDragObject class and the drag and drop documentation.

          See also Drag And Drop Classes. @@ -78,21 +78,21 @@ drag source; name is the object name. Destroys the image drag object and frees up all allocated resources. -

          bool TQImageDrag::canDecode ( const TQMimeSource * e ) [static] +

          bool TQImageDrag::canDecode ( const TQMimeSource * e ) [static]

          Returns TRUE if the information in mime source e can be decoded into an image; otherwise returns FALSE.

          See also decode().

          Example: desktop/desktop.cpp. -

          bool TQImageDrag::decode ( const TQMimeSource * e, TQImage & img ) [static] +

          bool TQImageDrag::decode ( const TQMimeSource * e, TQImage & img ) [static]

          Attempts to decode the dropped information in mime source e into img. Returns TRUE if successful; otherwise returns FALSE.

          See also canDecode().

          Example: desktop/desktop.cpp. -

          bool TQImageDrag::decode ( const TQMimeSource * e, TQPixmap & pm ) [static] +

          bool TQImageDrag::decode ( const TQMimeSource * e, TQPixmap & pm ) [static]

          This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

          Attempts to decode the dropped information in mime source e diff --git a/doc/html/tqmacmime-members.html b/doc/html/tqmacmime-members.html new file mode 100644 index 000000000..5dfcd25e5 --- /dev/null +++ b/doc/html/tqmacmime-members.html @@ -0,0 +1,59 @@ + + + + + +TQMacMime Member List + + + + + + + +
          + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

          Complete Member List for TQMacMime

          + +

          This is the complete list of member functions for +TQMacMime, including inherited members. + +

          + +


          + +
          Copyright © 2007 +TrolltechTrademarks +
          TQt 3.3.8
          +
          + diff --git a/doc/html/tqmacmime.html b/doc/html/tqmacmime.html new file mode 100644 index 000000000..c62bef2b2 --- /dev/null +++ b/doc/html/tqmacmime.html @@ -0,0 +1,181 @@ + + + + + +TQMacMime Class + + + + + + + +
          + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

          TQMacMime Class Reference

          + +

          The TQMacMime class maps open-standard MIME to Mac flavors. +More... +

          #include <tqmime.h> +

          List of all member functions. +

          Public Members

          +
            +
          • TQMacMime ( char t )
          • +
          • virtual ~TQMacMime ()
          • +
          • virtual const char * convertorName () = 0
          • +
          • virtual int countFlavors () = 0
          • +
          • virtual int flavor ( int index ) = 0
          • +
          • virtual bool canConvert ( const char * mime, int flav ) = 0
          • +
          • virtual const char * mimeFor ( int flav ) = 0
          • +
          • virtual int flavorFor ( const char * mime ) = 0
          • +
          • virtual TQByteArray convertToMime ( TQValueList<TQByteArray> data, const char * mime, int flav ) = 0
          • +
          • virtual TQValueList<TQByteArray> convertFromMime ( TQByteArray data, const char * mime, int flav ) = 0
          • +
          +

          Static Public Members

          +
            +
          • TQPtrList<TQMacMime> all ( TQMacMimeType t )
          • +
          • TQMacMime * convertor ( TQMacMimeType t, const char * mime, int flav )
          • +
          • const char * flavorToMime ( TQMacMimeType t, int flav )
          • +
          +

          Detailed Description

          + + +The TQMacMime class maps open-standard MIME to Mac flavors. + + + +

          TQt'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. +

          By instantiating subclasses of TQMacMime that provide conversions +between Mac flavors and MIME formats, you can convert proprietary +clipboard formats to MIME formats. +

          TQt has predefined support for the following Mac flavors: +

            +
          • kScrapFlavorTypeUnicode - converted to "text/plain;charset=ISO-10646-UCS-2" +and supported by TQTextDrag. +
          • kScrapFlavorTypeText - converted to "text/plain;charset=system" or "text/plain" +and supported by TQTextDrag. +
          • kScrapFlavorTypePicture - converted to "image/format", where format is +a TQt image format, +and supported by TQImageDrag. +
          • kDragFlavorTypeHFS - converted to "text/uri-list", +and supported by TQUriDrag. +
          +

          You can check if a MIME type is convertible using canConvert() and +can perform conversions with convertToMime() and convertFromMime(). +

          See also Drag And Drop Classes, Input/Output and Networking, and Miscellaneous Classes. + +


          Member Function Documentation

          +

          TQMacMime::TQMacMime ( char t ) +

          +Constructs a new conversion object of type t, adding it to the +globally accessed list of available convertors. + +

          TQMacMime::~TQMacMime () [virtual] +

          +Destroys a conversion object, removing it from the global +list of available convertors. + +

          TQPtrList<TQMacMime> TQMacMime::all ( TQMacMimeType t ) [static] +

          +Returns a list of all currently defined TQMacMime objects of type t. + +

          bool TQMacMime::canConvert ( const char * mime, int flav ) [pure virtual] +

          + +

          Returns TRUE if the convertor can convert (both ways) between +mime and flav; otherwise returns FALSE. +

          All subclasses must reimplement this pure virtual function. + +

          TQValueList<TQByteArray> TQMacMime::convertFromMime ( TQByteArray data, const char * mime, int flav ) [pure virtual] +

          + +

          Returns data converted from MIME type mime +to Mac flavor flav. +

          Note that Mac flavors must all be self-terminating. The return +value may contain trailing data. +

          All subclasses must reimplement this pure virtual function. + +

          TQByteArray TQMacMime::convertToMime ( TQValueList<TQByteArray> data, const char * mime, int flav ) [pure virtual] +

          + +

          Returns data converted from Mac flavor flav to MIME type mime. +

          Note that Mac flavors must all be self-terminating. The input data may contain trailing data. +

          All subclasses must reimplement this pure virtual function. + +

          TQMacMime * TQMacMime::convertor ( TQMacMimeType t, const char * mime, int flav ) [static] +

          +Returns the most-recently created TQMacMime of type t that can convert +between the mime and flav formats. Returns 0 if no such convertor +exists. + +

          const char * TQMacMime::convertorName () [pure virtual] +

          + +

          Returns a name for the convertor. +

          All subclasses must reimplement this pure virtual function. + +

          int TQMacMime::countFlavors () [pure virtual] +

          + +

          Returns the number of Mac flavors supported by this convertor. +

          All subclasses must reimplement this pure virtual function. + +

          int TQMacMime::flavor ( int index ) [pure virtual] +

          + +

          Returns the Mac flavor supported by this convertor that is +ordinarily at position index. This means that flavor(0) returns +the first Mac flavor supported, and flavor(countFlavors()-1) returns +the last. If index is out of range the return value is undefined. +

          All subclasses must reimplement this pure virtual function. + +

          int TQMacMime::flavorFor ( const char * mime ) [pure virtual] +

          + +

          Returns the Mac flavor used for MIME type mime, or 0 if this +convertor does not support mime. +

          All subclasses must reimplement this pure virtual function. + +

          const char * TQMacMime::flavorToMime ( TQMacMimeType t, int flav ) [static] +

          +Returns a MIME type of type t for flav, or 0 if none exists. + +

          const char * TQMacMime::mimeFor ( int flav ) [pure virtual] +

          + +

          Returns the MIME type used for Mac flavor flav, or 0 if this +convertor does not support flav. +

          All subclasses must reimplement this pure virtual function. + + +


          +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


          + +
          Copyright © 2007 +TrolltechTrademarks +
          TQt 3.3.8
          +
          + diff --git a/doc/html/tqmime-h.html b/doc/html/tqmime-h.html new file mode 100644 index 000000000..638825dc6 --- /dev/null +++ b/doc/html/tqmime-h.html @@ -0,0 +1,245 @@ + + + + + +tqmime.h Include File + + + + + + + +
          + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

          tqmime.h

          + +

          This is the verbatim text of the tqmime.h include file. It is provided only for illustration; the copyright remains with Trolltech. +


          +
          +/****************************************************************************
          +** $Id: qt/tqmime.h   3.3.8   edited Jan 11 14:46 $
          +**
          +** Definition of mime classes
          +**
          +** Created : 981204
          +**
          +** Copyright (C) 1998-2007 Trolltech ASA.  All rights reserved.
          +**
          +** This file is part of the kernel module of the TQt GUI Toolkit.
          +**
          +** This file may be used under the terms of the GNU General Public
          +** License versions 2.0 or 3.0 as published by the Free Software
          +** Foundation and appearing in the file LICENSE.GPL included in the
          +** packaging of this file. Alternatively you may (at your option) use any
          +** later version of the GNU General Public License if such license has
          +** been publicly approved by Trolltech ASA (or its successors, if any)
          +** and the KDE Free TQt Foundation.
          +**
          +** Please review the following information to ensure GNU General
          +** Public Licensing requirements will be met:
          +** http://trolltech.com/products/qt/licenses/licensing/opensource/.
          +** If you are unsure which license is appropriate for your use, please
          +** review the following information:
          +** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
          +** or contact the sales department at sales@trolltech.com.
          +**
          +** This file may be used under the terms of the Q Public License as
          +** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
          +** included in the packaging of this file.  Licensees holding valid TQt
          +** Commercial licenses may use this file in accordance with the TQt
          +** Commercial License Agreement provided with the Software.
          +**
          +** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
          +** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
          +** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
          +** herein.
          +**
          +**********************************************************************/
          +
          +#ifndef TQMIME_H
          +#define TQMIME_H
          +
          +#ifndef QT_H
          +#include "ntqwindowdefs.h"
          +#include "tqmap.h"
          +#endif // QT_H
          +
          +#ifndef TQT_NO_MIME
          +
          +class TQImageDrag;
          +class TQTextDrag;
          +
          +class TQ_EXPORT TQMimeSource
          +{
          +    friend class TQClipboardData;
          +
          +public:
          +    TQMimeSource();
          +    virtual ~TQMimeSource();
          +    virtual const char* format( int n = 0 ) const = 0;
          +    virtual bool provides( const char* ) const;
          +    virtual TQByteArray encodedData( const char* ) const = 0;
          +    int serialNumber() const;
          +
          +private:
          +    int ser_no;
          +    enum { NoCache, Text, Graphics } cacheType;
          +    union
          +    {
          +	struct
          +	{
          +	    TQString *str;
          +	    TQCString *subtype;
          +	} txt;
          +	struct
          +	{
          +	    TQImage *img;
          +	    TQPixmap *pix;
          +	} gfx;
          +    } cache;
          +    void clearCache();
          +
          +    // friends for caching
          +    friend class TQImageDrag;
          +    friend class TQTextDrag;
          +
          +};
          +
          +inline int TQMimeSource::serialNumber() const
          +{ return ser_no; }
          +
          +class TQStringList;
          +class TQMimeSourceFactoryData;
          +
          +class TQ_EXPORT TQMimeSourceFactory {
          +public:
          +    TQMimeSourceFactory();
          +    virtual ~TQMimeSourceFactory();
          +
          +    static TQMimeSourceFactory* defaultFactory();
          +    static void setDefaultFactory( TQMimeSourceFactory* );
          +    static TQMimeSourceFactory* takeDefaultFactory();
          +    static void addFactory( TQMimeSourceFactory *f );
          +    static void removeFactory( TQMimeSourceFactory *f );
          +
          +    virtual const TQMimeSource* data(const TQString& abs_name) const;
          +    virtual TQString makeAbsolute(const TQString& abs_or_rel_name, const TQString& context) const;
          +    const TQMimeSource* data(const TQString& abs_or_rel_name, const TQString& context) const;
          +
          +    virtual void setText( const TQString& abs_name, const TQString& text );
          +    virtual void setImage( const TQString& abs_name, const TQImage& im );
          +    virtual void setPixmap( const TQString& abs_name, const TQPixmap& pm );
          +    virtual void setData( const TQString& abs_name, TQMimeSource* data );
          +    virtual void setFilePath( const TQStringList& );
          +    virtual TQStringList filePath() const;
          +    void addFilePath( const TQString& );
          +    virtual void setExtensionType( const TQString& ext, const char* mimetype );
          +
          +private:
          +    TQMimeSource *dataInternal(const TQString& abs_name, const TQMap<TQString, TQString> &extensions ) const;
          +    TQMimeSourceFactoryData* d;
          +};
          +
          +#if defined(TQ_WS_WIN)
          +
          +#ifndef QT_H
          +#include "tqptrlist.h" // down here for GCC 2.7.* compatibility
          +#endif // QT_H
          +
          +/*
          +  Encapsulation of conversion between MIME and Windows CLIPFORMAT.
          +  Not need on X11, as the underlying protocol uses the MIME standard
          +  directly.
          +*/
          +
          +class TQ_EXPORT TQWindowsMime {
          +public:
          +    TQWindowsMime();
          +    virtual ~TQWindowsMime();
          +
          +    static void initialize();
          +
          +    static TQPtrList<TQWindowsMime> all();
          +    static TQWindowsMime* convertor( const char* mime, int cf );
          +    static const char* cfToMime(int cf);
          +
          +    static int registerMimeType(const char *mime);
          +
          +    virtual const char* convertorName()=0;
          +    virtual int countCf()=0;
          +    virtual int cf(int index)=0;
          +    virtual bool canConvert( const char* mime, int cf )=0;
          +    virtual const char* mimeFor(int cf)=0;
          +    virtual int cfFor(const char* )=0;
          +    virtual TQByteArray convertToMime( TQByteArray data, const char* mime, int cf )=0;
          +    virtual TQByteArray convertFromMime( TQByteArray data, const char* mime, int cf )=0;
          +};
          +
          +#endif
          +#if defined(TQ_WS_MAC)
          +
          +#ifndef QT_H
          +#include "tqptrlist.h" // down here for GCC 2.7.* compatibility
          +#endif // QT_H
          +
          +/*
          +  Encapsulation of conversion between MIME and Mac flavor.
          +  Not need on X11, as the underlying protocol uses the MIME standard
          +  directly.
          +*/
          +
          +class TQ_EXPORT TQMacMime {
          +    char type;
          +public:
          +    enum TQMacMimeType { MIME_DND=0x01, MIME_CLIP=0x02, MIME_QT_CONVERTOR=0x04, MIME_ALL=MIME_DND|MIME_CLIP };
          +    TQMacMime(char);
          +    virtual ~TQMacMime();
          +
          +    static void initialize();
          +
          +    static TQPtrList<TQMacMime> all(TQMacMimeType);
          +    static TQMacMime* convertor(TQMacMimeType, const char* mime, int flav);
          +    static const char* flavorToMime(TQMacMimeType, int flav);
          +
          +    virtual const char* convertorName()=0;
          +    virtual int countFlavors()=0;
          +    virtual int flavor(int index)=0;
          +    virtual bool canConvert(const char* mime, int flav)=0;
          +    virtual const char* mimeFor(int flav)=0;
          +    virtual int flavorFor(const char*)=0;
          +    virtual TQByteArray convertToMime(TQValueList<TQByteArray> data, const char* mime, int flav)=0;
          +    virtual TQValueList<TQByteArray> convertFromMime(TQByteArray data, const char* mime, int flav)=0;
          +};
          +
          +#endif // TQ_WS_MAC
          +
          +#endif // TQT_NO_MIME
          +
          +#endif // TQMIME_H
          +
          + +


          + +
          Copyright © 2007 +TrolltechTrademarks +
          TQt 3.3.8
          +
          + diff --git a/doc/html/tqmimesource-members.html b/doc/html/tqmimesource-members.html new file mode 100644 index 000000000..5da96a459 --- /dev/null +++ b/doc/html/tqmimesource-members.html @@ -0,0 +1,52 @@ + + + + + +TQMimeSource Member List + + + + + + + +
          + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

          Complete Member List for TQMimeSource

          + +

          This is the complete list of member functions for +TQMimeSource, including inherited members. + +

          + +


          + +
          Copyright © 2007 +TrolltechTrademarks +
          TQt 3.3.8
          +
          + diff --git a/doc/html/tqmimesource.html b/doc/html/tqmimesource.html new file mode 100644 index 000000000..6a7c38493 --- /dev/null +++ b/doc/html/tqmimesource.html @@ -0,0 +1,109 @@ + + + + + +TQMimeSource Class + + + + + + + +
          + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

          TQMimeSource Class Reference

          + +

          The TQMimeSource class is an abstraction of objects which provide formatted data of a certain MIME type. +More... +

          #include <tqmime.h> +

          Inherited by TQDragObject and TQDropEvent. +

          List of all member functions. +

          Public Members

          + +

          Detailed Description

          + + +The TQMimeSource class is an abstraction of objects which provide formatted data of a certain MIME type. +

          + + +

          Drag-and-drop and +clipboard use this abstraction. +

          See also IANA list of MIME media types, Drag And Drop Classes, Input/Output and Networking, and Miscellaneous Classes. + +


          Member Function Documentation

          +

          TQMimeSource::TQMimeSource () +

          +Constructs a mime source and assigns a globally unique serial +number to it. +

          See also serialNumber(). + +

          TQMimeSource::~TQMimeSource () [virtual] +

          +Provided to ensure that subclasses destroy themselves correctly. + +

          TQByteArray TQMimeSource::encodedData ( const char * ) const [pure virtual] +

          + +

          Returns the encoded data of this object in the specified MIME +format. +

          Subclasses must reimplement this function. + +

          Reimplemented in TQStoredDrag, TQDropEvent, and TQIconDrag. +

          const char * TQMimeSource::format ( int i = 0 ) const [pure virtual] +

          + +

          Returns the i-th supported MIME format, or 0. + +

          Reimplemented in TQDropEvent. +

          bool TQMimeSource::provides ( const char * mimeType ) const [virtual] +

          +Returns TRUE if the object can provide the data in format mimeType; otherwise returns FALSE. +

          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(). + +

          Example: iconview/simple_dd/main.cpp. +

          Reimplemented in TQDropEvent. +

          int TQMimeSource::serialNumber () const +

          + +

          Returns the mime source's globally unique serial number. + + +


          +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


          + +
          Copyright © 2007 +TrolltechTrademarks +
          TQt 3.3.8
          +
          + diff --git a/doc/html/tqmimesourcefactory-members.html b/doc/html/tqmimesourcefactory-members.html new file mode 100644 index 000000000..865d048ac --- /dev/null +++ b/doc/html/tqmimesourcefactory-members.html @@ -0,0 +1,63 @@ + + + + + +TQMimeSourceFactory Member List + + + + + + + +
          + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

          Complete Member List for TQMimeSourceFactory

          + +

          This is the complete list of member functions for +TQMimeSourceFactory, including inherited members. + +

          + +


          + +
          Copyright © 2007 +TrolltechTrademarks +
          TQt 3.3.8
          +
          + diff --git a/doc/html/tqmimesourcefactory.html b/doc/html/tqmimesourcefactory.html new file mode 100644 index 000000000..04383fd7c --- /dev/null +++ b/doc/html/tqmimesourcefactory.html @@ -0,0 +1,277 @@ + + + + + +TQMimeSourceFactory Class + + + + + + + +
          + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

          TQMimeSourceFactory Class Reference

          + +

          The TQMimeSourceFactory class is an extensible provider of mime-typed data. +More... +

          #include <tqmime.h> +

          List of all member functions. +

          Public Members

          +
            +
          • TQMimeSourceFactory ()
          • +
          • virtual ~TQMimeSourceFactory ()
          • +
          • virtual const TQMimeSource * data ( const TQString & abs_name ) const
          • +
          • virtual TQString makeAbsolute ( const TQString & abs_or_rel_name, const TQString & context ) const
          • +
          • const TQMimeSource * data ( const TQString & abs_or_rel_name, const TQString & context ) const
          • +
          • virtual void setText ( const TQString & abs_name, const TQString & text )
          • +
          • virtual void setImage ( const TQString & abs_name, const TQImage & image )
          • +
          • virtual void setPixmap ( const TQString & abs_name, const TQPixmap & pixmap )
          • +
          • virtual void setData ( const TQString & abs_name, TQMimeSource * data )
          • +
          • virtual void setFilePath ( const TQStringList & path )
          • +
          • virtual TQStringList filePath () const
          • +
          • void addFilePath ( const TQString & p )
          • +
          • virtual void setExtensionType ( const TQString & ext, const char * mimetype )
          • +
          +

          Static Public Members

          + +

          Detailed Description

          + + +The TQMimeSourceFactory class is an extensible provider of mime-typed data. +

          + +

          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(). +

          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). +

          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 TQLabel, TQWhatsThis or +TQMessageBox) always use the default factory. +

          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: +

          +    static const char* myimage_data[]={
          +    "...",
          +    ...
          +    "..."};
          +    
          + +

          To be able to use this image within some rich text, for example +inside a TQLabel, you must create a TQImage from the raw data and +insert it into the factory with a unique name: +

          +    TQMimeSourceFactory::defaultFactory()->setImage( "myimage", TQImage(myimage_data) );
          +    
          + +

          Now you can create a rich text TQLabel with +

          +    TQLabel* label = new TQLabel(
          +        "Rich text with embedded image:<img source=\"myimage\">"
          +        "Isn't that <em>cute</em>?" );
          +    
          + +

          When no longer needed, you can clear the data from the factory: +

          +    delete label;
          +    TQMimeSourceFactory::defaultFactory()->setData( "myimage", 0 );
          +    
          + +

          See also Environment Classes and Input/Output and Networking. + +


          Member Function Documentation

          +

          TQMimeSourceFactory::TQMimeSourceFactory () +

          +Constructs a TQMimeSourceFactory that has no file path and no +stored content. + +

          TQMimeSourceFactory::~TQMimeSourceFactory () [virtual] +

          +Destroys the TQMimeSourceFactory, deleting all stored content. + +

          void TQMimeSourceFactory::addFactory ( TQMimeSourceFactory * f ) [static] +

          +Adds the TQMimeSourceFactory f 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. +

          See also removeFactory(). + +

          void TQMimeSourceFactory::addFilePath ( const TQString & p ) +

          +Adds another search path, p to the existing search paths. +

          See also setFilePath(). + +

          const TQMimeSource * TQMimeSourceFactory::data ( const TQString & abs_name ) const [virtual] +

          +Returns a reference to the data associated with abs_name. The +return value remains valid only until the next data() or setData() +call, so you should immediately decode the result. +

          If there is no data associated with abs_name in the factory's +store, the factory tries to access the local filesystem. If abs_name isn't an absolute file name, the factory will search for +it in all defined paths (see setFilePath()). +

          The factory understands all the image formats supported by +TQImageIO. Any other mime types are determined by the file name +extension. The default settings are +

          +    setExtensionType("html", "text/html;charset=iso8859-1");
          +    setExtensionType("htm", "text/html;charset=iso8859-1");
          +    setExtensionType("txt", "text/plain");
          +    setExtensionType("xml", "text/xml;charset=UTF-8");
          +    
          + +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. +

          Any file data that is not recognized will be retrieved as a +TQMimeSource providing the "application/octet-stream" mime type, +meaning uninterpreted binary data. +

          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. + +

          const TQMimeSource * TQMimeSourceFactory::data ( const TQString & abs_or_rel_name, const TQString & context ) const +

          +This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

          A convenience function. See data(const TQString& abs_name). The +file name is given in abs_or_rel_name and the path is in context. + +

          TQMimeSourceFactory * TQMimeSourceFactory::defaultFactory () [static] +

          +Returns the application-wide default mime source factory. This +factory is used by rich text rendering classes such as +TQSimpleRichText, TQWhatsThis and TQMessageBox to resolve named +references within rich text documents. It serves also as the +initial factory for the more complex render widgets, TQTextEdit and +TQTextBrowser. +

          See also setDefaultFactory(). + +

          Examples: action/application.cpp and application/application.cpp. +

          TQStringList TQMimeSourceFactory::filePath () const [virtual] +

          +Returns the currently set search paths. + +

          TQString TQMimeSourceFactory::makeAbsolute ( const TQString & abs_or_rel_name, const TQString & context ) const [virtual] +

          +Converts the absolute or relative data item name abs_or_rel_name to an absolute name, interpreted within the +context (path) of the data item named context (this must be an +absolute name). + +

          void TQMimeSourceFactory::removeFactory ( TQMimeSourceFactory * f ) [static] +

          +Removes the mimesource factory f from the list of available +mimesource factories. +

          See also addFactory(). + +

          void TQMimeSourceFactory::setData ( const TQString & abs_name, TQMimeSource * data ) [virtual] +

          +Sets data to be the data item associated with +the absolute name abs_name. Note that the ownership of data is +transferred to the factory: do not delete or access the pointer after +passing it to this function. +

          Passing 0 for data removes previously stored data. + +

          void TQMimeSourceFactory::setDefaultFactory ( TQMimeSourceFactory * factory ) [static] +

          +Sets the default factory, destroying any previously set mime +source provider. The ownership of the factory is transferred to +TQt. +

          See also defaultFactory(). + +

          void TQMimeSourceFactory::setExtensionType ( const TQString & ext, const char * mimetype ) [virtual] +

          +Sets the mime-type to be associated with the file name extension, +ext to mimetype. This determines the mime-type for files +found via the paths set by setFilePath(). + +

          void TQMimeSourceFactory::setFilePath ( const TQStringList & path ) [virtual] +

          +Sets the list of directories that will be searched when named data +is requested to the those given in the string list path. +

          See also filePath(). + +

          void TQMimeSourceFactory::setImage ( const TQString & abs_name, const TQImage & image ) [virtual] +

          +Sets image to be the data item associated with the absolute +name abs_name. +

          Equivalent to setData(abs_name, new TQImageDrag(image)). + +

          void TQMimeSourceFactory::setPixmap ( const TQString & abs_name, const TQPixmap & pixmap ) [virtual] +

          +Sets pixmap to be the data item associated with the absolute +name abs_name. + +

          void TQMimeSourceFactory::setText ( const TQString & abs_name, const TQString & text ) [virtual] +

          +Sets text to be the data item associated with the absolute name +abs_name. +

          Equivalent to setData(abs_name, new TQTextDrag(text)). + +

          TQMimeSourceFactory * TQMimeSourceFactory::takeDefaultFactory () [static] +

          +Sets the defaultFactory() to 0 and returns the previous one. + + +

          +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


          + +
          Copyright © 2007 +TrolltechTrademarks +
          TQt 3.3.8
          +
          + diff --git a/doc/html/tqobject.html b/doc/html/tqobject.html index df2351ddc..7c3fe2664 100644 --- a/doc/html/tqobject.html +++ b/doc/html/tqobject.html @@ -36,7 +36,7 @@ body { background: #ffffff; color: black; }

          All the functions in this class are reentrant when TQt is built with thread support.

          #include <tqobject.h>

          Inherits TQt. --

          Inherited by TQAccel, TQAccessibleObject, TQAction, TQApplication, TQAssistantClient, TQDataPump, TQWidget, TQCanvas, TQStyle, TQClipboard, TQDns, TQLayout, TQDragObject, TQEditorFactory, TQEventLoop, TQFileIconProvider, TQNetworkProtocol, TQNetworkOperation, TQNPInstance, TQObjectCleanupHandler, TQProcess, TQServerSocket, TQSessionManager, TQSignal, TQSignalMapper, TQSocket, TQSocketNotifier, TQSound, TQSqlDatabase, TQSqlDriver, TQSqlForm, TQStyleSheet, TQTimer, TQToolTipGroup, TQTranslator, TQUrlOperator, and TQValidator. +-

          Inherited by TQAccel, TQAccessibleObject, TQAction, TQApplication, TQAssistantClient, TQDataPump, TQWidget, TQCanvas, TQStyle, TQClipboard, TQDns, TQLayout, TQDragObject, TQEditorFactory, TQEventLoop, TQFileIconProvider, TQNetworkProtocol, TQNetworkOperation, TQNPInstance, TQObjectCleanupHandler, TQProcess, TQServerSocket, TQSessionManager, TQSignal, TQSignalMapper, TQSocket, TQSocketNotifier, TQSound, TQSqlDatabase, TQSqlDriver, TQSqlForm, TQStyleSheet, TQTimer, TQToolTipGroup, TQTranslator, TQUrlOperator, and TQValidator.

          List of all member functions.

          Public Members

          @@ -354,7 +354,7 @@ deleting any style sheet previously set. The ownership is transferred to TQStyleSheet.

          See also defaultSheet(). -

          TQTextCustomItem * TQStyleSheet::tag ( const TQString & name, const TQMap<TQString, TQString> & attr, const TQString & context, const TQMimeSourceFactory & factory, bool emptyTag, TQTextDocument * doc ) const [virtual] +

          TQTextCustomItem * TQStyleSheet::tag ( const TQString & name, const TQMap<TQString, TQString> & attr, const TQString & context, const TQMimeSourceFactory & factory, bool emptyTag, TQTextDocument * doc ) const [virtual]

          This function is under development and is subject to change.

          Generates an internal object for the tag called name, given the @@ -364,9 +364,9 @@ the mime source factory factory. to look for relative links. This becomes important if the text contains relative references, for example within image tags. TQSimpleRichText always uses the default mime source factory (see -TQMimeSourceFactory::defaultFactory()) to resolve these +TQMimeSourceFactory::defaultFactory()) to resolve these references. The context will then be used to calculate the -absolute path. See TQMimeSourceFactory::makeAbsolute() for details. +absolute path. See TQMimeSourceFactory::makeAbsolute() for details.

          emptyTag and doc are for internal use only.

          This function should not be used in application code. diff --git a/doc/html/tqtextbrowser.html b/doc/html/tqtextbrowser.html index 906f578cb..bf9598e40 100644 --- a/doc/html/tqtextbrowser.html +++ b/doc/html/tqtextbrowser.html @@ -95,9 +95,9 @@ use to implement Back and Forward buttons. The home() slot s the text to the very first document displayed. The linkClicked() signal is emitted when the user clicks a link.

          By using TQTextEdit::setMimeSourceFactory() you can provide your -own subclass of TQMimeSourceFactory. This makes it possible to +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. +database. See TQMimeSourceFactory::data() for details.

          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: @@ -243,7 +243,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 *.html and *.txt with reasonable defaults. See -TQMimeSourceFactory::data() for details. +TQMimeSourceFactory::data() for details.

          Set this property's value with setSource() and get this property's value with source().

          int undoDepth

          diff --git a/doc/html/tqtextdrag-members.html b/doc/html/tqtextdrag-members.html index 88c216596..122ab4fa0 100644 --- a/doc/html/tqtextdrag-members.html +++ b/doc/html/tqtextdrag-members.html @@ -1,5 +1,5 @@ - + @@ -52,16 +52,16 @@ body { background: #ffffff; color: black; }
        • destroyed()
        • disconnect()
        • disconnectNotify() -
        • drag() -
        • dragCopy() -
        • dragLink() -
        • dragMove() +
        • drag() +
        • dragCopy() +
        • dragLink() +
        • dragMove()
        • dumpObjectInfo()
        • dumpObjectTree() -
        • encodedData() +
        • encodedData()
        • event()
        • eventFilter() -
        • format() +
        • format()
        • highPriority()
        • inherits()
        • insertChild() @@ -75,24 +75,24 @@ body { background: #ffffff; color: black; }
        • normalizeSignalSlot()
        • objectTrees()
        • parent() -
        • pixmap() -
        • pixmapHotSpot() +
        • pixmap() +
        • pixmapHotSpot()
        • property() -
        • provides() +
        • provides()
        • queryList()
        • removeChild()
        • removeEventFilter()
        • sender() -
        • serialNumber() +
        • serialNumber()
        • setName() -
        • setPixmap() +
        • setPixmap()
        • setProperty()
        • setSubtype()
        • setText()
        • signalsBlocked() -
        • source() +
        • source()
        • startTimer() -
        • target() +
        • target()
        • timerEvent()
        • tr()
        • trUtf8() diff --git a/doc/html/tqtextdrag.html b/doc/html/tqtextdrag.html index d8fa395a6..ee5f50cd3 100644 --- a/doc/html/tqtextdrag.html +++ b/doc/html/tqtextdrag.html @@ -1,5 +1,5 @@ - + @@ -34,8 +34,8 @@ body { background: #ffffff; color: black; }

          The TQTextDrag class is a drag and drop object for transferring plain and Unicode text. More... -

          #include <ntqdragobject.h> -

          Inherits TQDragObject. +

          #include <tqdragobject.h> +

          Inherits TQDragObject.

          List of all member functions.

          Public Members

            @@ -62,7 +62,7 @@ transferring plain and Unicode text. the newlines according to the runtime environment, e.g. LF on Unix, and CRLF on Windows.

            TQt provides no built-in mechanism for delivering only a single-line. -

            For more information about drag and drop, see the TQDragObject class +

            For more information about drag and drop, see the TQDragObject class and the drag and drop documentation.

            See also Drag And Drop Classes. @@ -81,21 +81,21 @@ drag source; name is the object name. Destroys the text drag object and frees up all allocated resources. -

            bool TQTextDrag::canDecode ( const TQMimeSource * e ) [static] +

            bool TQTextDrag::canDecode ( const TQMimeSource * e ) [static]

            Returns TRUE if the information in e can be decoded into a TQString; otherwise returns FALSE.

            See also decode().

            Example: iconview/simple_dd/main.cpp. -

            bool TQTextDrag::decode ( const TQMimeSource * e, TQString & str ) [static] +

            bool TQTextDrag::decode ( const TQMimeSource * e, TQString & str ) [static]

            Attempts to decode the dropped information in e into str. Returns TRUE if successful; otherwise returns FALSE.

            See also canDecode().

            Example: iconview/simple_dd/main.cpp. -

            bool TQTextDrag::decode ( const TQMimeSource * e, TQString & str, TQCString & subtype ) [static] +

            bool TQTextDrag::decode ( const TQMimeSource * e, TQString & str, TQCString & subtype ) [static]

            This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

            Attempts to decode the dropped information in e into str. diff --git a/doc/html/tqtextedit.html b/doc/html/tqtextedit.html index dcc15dbc9..30184dea8 100644 --- a/doc/html/tqtextedit.html +++ b/doc/html/tqtextedit.html @@ -298,7 +298,7 @@ is the format of the selected text if any.

          • current paragraph -- the paragraph which contains the cursor.
          -

          TQTextEdit can display images (using TQMimeSourceFactory), lists and +

          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 @@ -307,7 +307,7 @@ rendering style and the set of valid tags are defined by a 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(). +TQMimeSourceFactory; see setMimeSourceFactory().

          If you want a text browser with more navigation use TQTextBrowser. If you just need to display a small piece of rich text use TQLabel or TQSimpleRichText. @@ -410,7 +410,7 @@ navigation, and text may only be selected with the mouse: example, the documentTitle() function will return the text from within HTML <title> tags.

          The text displayed in a text edit has a context. The context is -a path which the text edit's TQMimeSourceFactory uses to resolve +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().) @@ -648,7 +648,7 @@ spaces or newlines if possible. Break it anywhere otherwise. Constructs a TQTextEdit called name, with parent parent. The text edit will display the text text using context context. -

          The context is a path which the text edit's TQMimeSourceFactory +

          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.

          For example if the text contains an image tag, @@ -732,7 +732,7 @@ Returns the color of the current format.

          TQString TQTextEdit::context () const

          Returns the context of the text edit. The context is a path which -the text edit's TQMimeSourceFactory uses to resolve the locations +the text edit's TQMimeSourceFactory uses to resolve the locations of files and images.

          See also text. @@ -1022,9 +1022,9 @@ See the "linkUnderline" propert 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. -

          TQMimeSourceFactory * TQTextEdit::mimeSourceFactory () const +

          TQMimeSourceFactory * TQTextEdit::mimeSourceFactory () const

          -Returns the TQMimeSourceFactory which is being used by this text +Returns the TQMimeSourceFactory which is being used by this text edit.

          See also setMimeSourceFactory(). @@ -1230,10 +1230,10 @@ 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. -

          void TQTextEdit::setMimeSourceFactory ( TQMimeSourceFactory * factory ) [virtual slot] +

          void TQTextEdit::setMimeSourceFactory ( TQMimeSourceFactory * factory ) [virtual slot]

          Sets the text edit's mimesource factory to factory. See -TQMimeSourceFactory for further details. +TQMimeSourceFactory for further details.

          See also mimeSourceFactory().

          void TQTextEdit::setModified ( bool m ) [virtual slot] @@ -1307,7 +1307,7 @@ i.e. the text edit auto-detects the format from text.

          For rich text the rendering style and available tags are defined by a styleSheet(); see TQStyleSheet for details.

          The optional context is a path which the text edit's -TQMimeSourceFactory uses to resolve the locations of files and +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.

          Note that the undo/redo history is cleared by this function. diff --git a/doc/html/tquridrag-members.html b/doc/html/tquridrag-members.html new file mode 100644 index 000000000..18638fe27 --- /dev/null +++ b/doc/html/tquridrag-members.html @@ -0,0 +1,116 @@ + + + + + +TQUriDrag Member List + + + + + + + +
          + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

          Complete Member List for TQUriDrag

          + +

          This is the complete list of member functions for +TQUriDrag, including inherited members. + +

          + +


          + +
          Copyright © 2007 +TrolltechTrademarks +
          TQt 3.3.8
          +
          + diff --git a/doc/html/tquridrag.html b/doc/html/tquridrag.html new file mode 100644 index 000000000..079f95ed4 --- /dev/null +++ b/doc/html/tquridrag.html @@ -0,0 +1,187 @@ + + + + + +TQUriDrag Class + + + + + + + +
          + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

          TQUriDrag Class Reference

          + +

          The TQUriDrag class provides a drag object for a list of URI references. +More... +

          #include <tqdragobject.h> +

          Inherits TQStoredDrag. +

          List of all member functions. +

          Public Members

          +
            +
          • TQUriDrag ( TQStrList uris, TQWidget * dragSource = 0, const char * name = 0 )
          • +
          • TQUriDrag ( TQWidget * dragSource = 0, const char * name = 0 )
          • +
          • ~TQUriDrag ()
          • +
          • void setFilenames ( const TQStringList & fnames )  (obsolete)
          • +
          • void setFileNames ( const TQStringList & fnames )
          • +
          • void setUnicodeUris ( const TQStringList & uuris )
          • +
          • virtual void setUris ( TQStrList uris )
          • +
          +

          Static Public Members

          + +

          Detailed Description

          + + +The TQUriDrag class provides a drag object for a list of URI references. +

          +

          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. +

          Use URIs in Unicode form so that the user can comfortably edit and +view them. For use in HTTP or other protocols, use the correctly +escaped ASCII form. +

          You can convert a list of file names to file URIs using +setFileNames(), or into human-readble form with setUnicodeUris(). +

          Static functions are provided to convert between filenames and +URIs, e.g. uriToLocalFile() and localFileToUri(), and to and from +human-readable form, e.g. uriToUnicodeUri(), unicodeUriToUri(). +You can also decode URIs from a mimesource into a list with +decodeLocalFiles() and decodeToUnicodeUris(). +

          See also Drag And Drop Classes. + +


          Member Function Documentation

          +

          TQUriDrag::TQUriDrag ( TQStrList uris, TQWidget * dragSource = 0, const char * name = 0 ) +

          +Constructs an object to drag the list of URIs in uris. The dragSource and name arguments are passed on to TQStoredDrag. +Note that URIs are always in escaped UTF8 encoding. + +

          TQUriDrag::TQUriDrag ( TQWidget * dragSource = 0, const char * name = 0 ) +

          +Constructs an object to drag. You must call setUris() before you +start the drag(). Passes dragSource and name to the +TQStoredDrag constructor. + +

          TQUriDrag::~TQUriDrag () +

          +Destroys the object. + +

          bool TQUriDrag::canDecode ( const TQMimeSource * e ) [static] +

          +Returns TRUE if decode() would be able to decode e; otherwise +returns FALSE. + +

          bool TQUriDrag::decode ( const TQMimeSource * e, TQStrList & l ) [static] +

          +Decodes URIs from e, placing the result in l (which is first +cleared). +

          Returns TRUE if e contained a valid list of URIs; otherwise +returns FALSE. + +

          Example: dirview/dirview.cpp. +

          bool TQUriDrag::decodeLocalFiles ( const TQMimeSource * e, TQStringList & l ) [static] +

          +Decodes URIs from the mime source event e, converts them to +local files if they refer to local files, and places them in l +(which is first cleared). +

          Returns TRUE if contained a valid list of URIs; otherwise +returns FALSE. The list will be empty if no URIs were local files. + +

          Example: fileiconview/qfileiconview.cpp. +

          bool TQUriDrag::decodeToUnicodeUris ( const TQMimeSource * e, TQStringList & l ) [static] +

          +Decodes URIs from the mime source event e, converts them to +Unicode URIs (only useful for displaying to humans), placing them +in l (which is first cleared). +

          Returns TRUE if contained a valid list of URIs; otherwise +returns FALSE. + +

          TQCString TQUriDrag::localFileToUri ( const TQString & filename ) [static] +

          +Returns the URI equivalent to the absolute local file filename. +

          See also uriToLocalFile(). + +

          void TQUriDrag::setFileNames ( const TQStringList & fnames ) +

          +Sets the URIs to be the local-file URIs equivalent to fnames. +

          See also localFileToUri() and setUris(). + +

          Example: dirview/dirview.cpp. +

          void TQUriDrag::setFilenames ( const TQStringList & fnames ) +

          + +This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

          Use setFileNames() instead (notice the N). + +

          void TQUriDrag::setUnicodeUris ( const TQStringList & uuris ) +

          +Sets the URIs in uuris to be the Unicode URIs (only useful for +displaying to humans). +

          See also localFileToUri() and setUris(). + +

          void TQUriDrag::setUris ( TQStrList uris ) [virtual] +

          +Changes the list of uris to be dragged. +

          Note that URIs are always in escaped UTF8 encoding. + +

          TQCString TQUriDrag::unicodeUriToUri ( const TQString & uuri ) [static] +

          +Returns the URI equivalent of the Unicode URI given in uuri +(only useful for displaying to humans). +

          See also uriToLocalFile(). + +

          TQString TQUriDrag::uriToLocalFile ( const char * uri ) [static] +

          +Returns the name of a local file equivalent to uri or a null +string if uri is not a local file. +

          Note that URIs are always in escaped UTF8 encoding. +

          See also localFileToUri(). + +

          Example: dirview/dirview.cpp. +

          TQString TQUriDrag::uriToUnicodeUri ( const char * uri ) [static] +

          +Returns the Unicode URI (only useful for displaying to humans) +equivalent of uri. +

          Note that URIs are always in escaped UTF8 encoding. +

          See also localFileToUri(). + + +


          +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


          + +
          Copyright © 2007 +TrolltechTrademarks +
          TQt 3.3.8
          +
          + diff --git a/doc/html/tqwidget.html b/doc/html/tqwidget.html index be2a709a6..239b5a0cc 100644 --- a/doc/html/tqwidget.html +++ b/doc/html/tqwidget.html @@ -916,30 +916,30 @@ To have more control over destruction of subwidgets, destroy subwidgets selectively first.

          This function is usually called from the TQWidget destructor. -

          void TQWidget::dragEnterEvent ( TQDragEnterEvent * ) [virtual protected] +

          void TQWidget::dragEnterEvent ( TQDragEnterEvent * ) [virtual protected]

          This event handler is called when a drag is in progress and the mouse enters this widget.

          See the Drag-and-drop documentation for an overview of how to provide drag-and-drop in your application. -

          See also TQTextDrag, TQImageDrag, and TQDragEnterEvent. +

          See also TQTextDrag, TQImageDrag, and TQDragEnterEvent.

          Example: iconview/simple_dd/main.cpp. -

          void TQWidget::dragLeaveEvent ( TQDragLeaveEvent * ) [virtual protected] +

          void TQWidget::dragLeaveEvent ( TQDragLeaveEvent * ) [virtual protected]

          This event handler is called when a drag is in progress and the mouse leaves this widget.

          See the Drag-and-drop documentation for an overview of how to provide drag-and-drop in your application. -

          See also TQTextDrag, TQImageDrag, and TQDragLeaveEvent. +

          See also TQTextDrag, TQImageDrag, and TQDragLeaveEvent. -

          void TQWidget::dragMoveEvent ( TQDragMoveEvent * ) [virtual protected] +

          void TQWidget::dragMoveEvent ( TQDragMoveEvent * ) [virtual protected]

          This event handler is called when a drag is in progress and the mouse enters this widget, and whenever it moves within the widget.

          See the Drag-and-drop documentation for an overview of how to provide drag-and-drop in your application. -

          See also TQTextDrag, TQImageDrag, and TQDragMoveEvent. +

          See also TQTextDrag, TQImageDrag, and TQDragMoveEvent.

          void TQWidget::drawText ( int x, int y, const TQString & str )

          @@ -955,13 +955,13 @@ more flexible results and often higher speed by using a a TQWidget::dropEvent ( TQDropEvent * ) [virtual protected] +

          void TQWidget::dropEvent ( TQDropEvent * ) [virtual protected]

          This event handler is called when the drag is dropped on this widget.

          See the Drag-and-drop documentation for an overview of how to provide drag-and-drop in your application. -

          See also TQTextDrag, TQImageDrag, and TQDropEvent. +

          See also TQTextDrag, TQImageDrag, and TQDropEvent.

          Example: iconview/simple_dd/main.cpp.

          void TQWidget::enabledChange ( bool oldEnabled ) [virtual protected] diff --git a/doc/html/tqwidgetfactory.html b/doc/html/tqwidgetfactory.html index 1139f7f5e..27fbea564 100644 --- a/doc/html/tqwidgetfactory.html +++ b/doc/html/tqwidgetfactory.html @@ -145,7 +145,7 @@ where MyWidgetFactory is your TQWidgetFactory subclass. 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 +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 dir. This is normally the directory called images in the project's directory. diff --git a/doc/html/tqwindowsmime-members.html b/doc/html/tqwindowsmime-members.html new file mode 100644 index 000000000..29bf867fc --- /dev/null +++ b/doc/html/tqwindowsmime-members.html @@ -0,0 +1,60 @@ + + + + + +TQWindowsMime Member List + + + + + + + +
          + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

          Complete Member List for TQWindowsMime

          + +

          This is the complete list of member functions for +TQWindowsMime, including inherited members. + +

          + +


          + +
          Copyright © 2007 +TrolltechTrademarks +
          TQt 3.3.8
          +
          + diff --git a/doc/html/tqwindowsmime.html b/doc/html/tqwindowsmime.html new file mode 100644 index 000000000..637478aa2 --- /dev/null +++ b/doc/html/tqwindowsmime.html @@ -0,0 +1,196 @@ + + + + + +TQWindowsMime Class + + + + + + + +
          + +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

          TQWindowsMime Class Reference

          + +

          The TQWindowsMime class maps open-standard MIME to Window Clipboard formats. +More... +

          #include <tqmime.h> +

          List of all member functions. +

          Public Members

          +
            +
          • TQWindowsMime ()
          • +
          • virtual ~TQWindowsMime ()
          • +
          • virtual const char * convertorName () = 0
          • +
          • virtual int countCf () = 0
          • +
          • virtual int cf ( int index ) = 0
          • +
          • virtual bool canConvert ( const char * mime, int cf ) = 0
          • +
          • virtual const char * mimeFor ( int cf ) = 0
          • +
          • virtual int cfFor ( const char * mime ) = 0
          • +
          • virtual TQByteArray convertToMime ( TQByteArray data, const char * mime, int cf ) = 0
          • +
          • virtual TQByteArray convertFromMime ( TQByteArray data, const char * mime, int cf ) = 0
          • +
          +

          Static Public Members

          +
            +
          • void initialize ()
          • +
          • TQPtrList<TQWindowsMime> all ()
          • +
          • TQWindowsMime * convertor ( const char * mime, int cf )
          • +
          • const char * cfToMime ( int cf )
          • +
          +

          Detailed Description

          + + +The TQWindowsMime class maps open-standard MIME to Window Clipboard formats. + + + +

          TQt'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. +

          By instantiating subclasses of TQWindowsMime that provide conversions +between Windows Clipboard and MIME formats, you can convert +proprietary clipboard formats to MIME formats. +

          TQt has predefined support for the following Windows Clipboard formats: +

            +
          • CF_UNICODETEXT - converted to "text/plain;charset=ISO-10646-UCS-2" +and supported by TQTextDrag. +
          • CF_TEXT - converted to "text/plain;charset=system" or "text/plain" +and supported by TQTextDrag. +
          • CF_DIB - converted to "image/*", where * is +a TQt image format, +and supported by TQImageDrag. +
          • CF_HDROP - converted to "text/uri-list", +and supported by TQUriDrag. +
          +

          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. +

          You can check if a MIME type is convertible using canConvert() and +can perform conversions with convertToMime() and convertFromMime(). +

          See also Drag And Drop Classes, Input/Output and Networking, and Miscellaneous Classes. + +


          Member Function Documentation

          +

          TQWindowsMime::TQWindowsMime () +

          +Constructs a new conversion object, adding it to the globally accessed +list of available convertors. + +

          TQWindowsMime::~TQWindowsMime () [virtual] +

          +Destroys a conversion object, removing it from the global +list of available convertors. + +

          TQPtrList<TQWindowsMime> TQWindowsMime::all () [static] +

          +Returns a list of all currently defined TQWindowsMime objects. + +

          bool TQWindowsMime::canConvert ( const char * mime, int cf ) [pure virtual] +

          + +

          Returns TRUE if the convertor can convert (both ways) between +mime and cf; otherwise returns FALSE. +

          All subclasses must reimplement this pure virtual function. + +

          int TQWindowsMime::cf ( int index ) [pure virtual] +

          + +

          Returns the Windows Clipboard format supported by this convertor +that is ordinarily at position index. This means that cf(0) +returns the first Windows Clipboard format supported, and +cf(countCf()-1) returns the last. If index is out of range the +return value is undefined. +

          All subclasses must reimplement this pure virtual function. + +

          int TQWindowsMime::cfFor ( const char * mime ) [pure virtual] +

          + +

          Returns the Windows Clipboard type used for MIME type mime, or +0 if this convertor does not support mime. +

          All subclasses must reimplement this pure virtual function. + +

          const char * TQWindowsMime::cfToMime ( int cf ) [static] +

          +Returns a MIME type for cf, or 0 if none exists. + +

          TQByteArray TQWindowsMime::convertFromMime ( TQByteArray data, const char * mime, int cf ) [pure virtual] +

          + +

          Returns data converted from MIME type mime +to Windows Clipboard format cf. +

          Note that Windows Clipboard formats must all be self-terminating. The +return value may contain trailing data. +

          All subclasses must reimplement this pure virtual function. + +

          TQByteArray TQWindowsMime::convertToMime ( TQByteArray data, const char * mime, int cf ) [pure virtual] +

          + +

          Returns data converted from Windows Clipboard format cf +to MIME type mime. +

          Note that Windows Clipboard formats must all be self-terminating. The +input data may contain trailing data. +

          All subclasses must reimplement this pure virtual function. + +

          TQWindowsMime * TQWindowsMime::convertor ( const char * mime, int cf ) [static] +

          +Returns the most-recently created TQWindowsMime that can convert +between the mime and cf formats. Returns 0 if no such convertor +exists. + +

          const char * TQWindowsMime::convertorName () [pure virtual] +

          + +

          Returns a name for the convertor. +

          All subclasses must reimplement this pure virtual function. + +

          int TQWindowsMime::countCf () [pure virtual] +

          + +

          Returns the number of Windows Clipboard formats supported by this +convertor. +

          All subclasses must reimplement this pure virtual function. + +

          void TQWindowsMime::initialize () [static] +

          +This is an internal function. + +

          const char * TQWindowsMime::mimeFor ( int cf ) [pure virtual] +

          + +

          Returns the MIME type used for Windows Clipboard format cf, or +0 if this convertor does not support cf. +

          All subclasses must reimplement this pure virtual function. + + +


          +This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


          + +
          Copyright © 2007 +TrolltechTrademarks +
          TQt 3.3.8
          +
          + diff --git a/doc/html/whatsthis b/doc/html/whatsthis index 20cd5e2b2..107f7a004 100644 --- a/doc/html/whatsthis +++ b/doc/html/whatsthis @@ -15,7 +15,7 @@ Abstract item that a QLayout manipulates. | QLayoutItem Abstract user interface action that can appear both in menus and tool bars. | TQAction Abstraction for date and edit editors. | TQDateTimeEditBase Abstraction of Unicode text and the classic C '\0'-terminated char array. | TQString -Abstraction of objects which provide formatted data of a certain MIME type. | QMimeSource +Abstraction of objects which provide formatted data of a certain MIME type. | TQMimeSource Abstraction of the classic C zero-terminated char array (char *). | QCString Abstraction used by TQImageDecoder. | TQImageConsumer Access serialization between threads. | TQMutex @@ -102,12 +102,12 @@ Displays a number with LCD-like digits. | QLCDNumber Does low-level painting e.g. on widgets. | QPainter Doubly-linked list of char*. | TQStrList Doubly-linked list of char* with case-insensitive comparison. | TQStrIList -Drag and drop object for transferring colors. | QColorDrag +Drag and drop object for transferring colors. | TQColorDrag Drag and drop object for transferring images. | TQImageDrag Drag and drop object for transferring plain and Unicode text. | TQTextDrag -Drag object for a list of URI references. | QUriDrag +Drag object for a list of URI references. | TQUriDrag Ellipse or ellipse segment on a TQCanvas. | TQCanvasEllipse -Encapsulates MIME-based data transfer. | QDragObject +Encapsulates MIME-based data transfer. | TQDragObject Encapsulates a database record, i.e. a set of database fields. | TQSqlRecord Encapsulates a drag item. | TQIconDragItem Encapsulates a key sequence as used by accelerators. | QKeySequence @@ -123,12 +123,12 @@ Event parameters for paint events. | QPaintEvent Event parameters for resize events. | QResizeEvent Event parameters for widget focus events. | QFocusEvent Event which is sent after a widget is hidden. | QHideEvent -Event which is sent to the widget when a drag and drop first drags onto the widget. | QDragEnterEvent -Event which is sent to the widget when a drag and drop leaves the widget. | QDragLeaveEvent -Event which is sent when a drag and drop is completed. | QDropEvent +Event which is sent to the widget when a drag and drop first drags onto the widget. | TQDragEnterEvent +Event which is sent to the widget when a drag and drop leaves the widget. | TQDragLeaveEvent +Event which is sent when a drag and drop is completed. | TQDropEvent Event which is sent when a widget is shown. | QShowEvent -Event which is sent while a drag and drop is in progress. | QDragMoveEvent -Extensible provider of mime-typed data. | QMimeSourceFactory +Event which is sent while a drag and drop is in progress. | TQDragMoveEvent +Extensible provider of mime-typed data. | TQMimeSourceFactory Factory that makes TQImageFormat objects. | TQImageFormatType Feedback on the progress of a slow operation. | QProgressDialog File previewing in QFileDialog. | QFilePreview @@ -218,8 +218,8 @@ Manages and lays out QDockWindows. | QDockArea Manages the GUI application's control flow and main settings. | QApplication Manages the event queue. | QEventLoop Manipulates the fields in SQL database tables and views. | TQSqlField -Maps open-standard MIME to Mac flavors. | QMacMime -Maps open-standard MIME to Window Clipboard formats. | QWindowsMime +Maps open-standard MIME to Mac flavors. | TQMacMime +Maps open-standard MIME to Window Clipboard formats. | TQWindowsMime Means of executing and manipulating SQL statements. | TQSqlQuery Means of using TQt Assistant as an application's help tool. | QAssistantClient Means of using comboboxes in QTables. | QComboTableItem @@ -297,7 +297,7 @@ Signals that a main icon drag has begun. | TQIconDragEvent Simple convenience dialog to get a single value from the user. | QInputDialog Simple description of any widget, i.e. answering the question "What's this?". | QWhatsThis Simple geometry management of its children. | QGrid -Simple stored-value drag object for arbitrary MIME data. | QStoredDrag +Simple stored-value drag object for arbitrary MIME data. | TQStoredDrag Simplifies locking and unlocking TQMutexes. | TQMutexLocker Single item in a TQIconView. | TQIconViewItem Small displayable piece of rich text. | QSimpleRichText -- cgit v1.2.3