diff options
Diffstat (limited to 'doc/man/man3/tqdragobject.3qt')
-rw-r--r-- | doc/man/man3/tqdragobject.3qt | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/doc/man/man3/tqdragobject.3qt b/doc/man/man3/tqdragobject.3qt index 957780fba..498ef445b 100644 --- a/doc/man/man3/tqdragobject.3qt +++ b/doc/man/man3/tqdragobject.3qt @@ -1,5 +1,5 @@ '\" t -.TH QDragObject 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQDragObject 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,21 +7,21 @@ .ad l .nh .SH NAME -QDragObject \- Encapsulates MIME-based data transfer +TQDragObject \- Encapsulates MIME-based data transfer .SH SYNOPSIS -\fC#include <ntqdragobject.h>\fR +\fC#include <tqdragobject.h>\fR .PP -Inherits TQObject and QMimeSource. +Inherits TQObject and TQMimeSource. .PP -Inherited by QStoredDrag, TQTextDrag, TQImageDrag, and TQIconDrag. +Inherited by TQStoredDrag, TQTextDrag, TQImageDrag, and TQIconDrag. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQDragObject\fR ( TQWidget * dragSource = 0, const char * name = 0 )" +.BI "\fBTQDragObject\fR ( TQWidget * dragSource = 0, const char * name = 0 )" .br .ti -1c -.BI "virtual \fB~QDragObject\fR ()" +.BI "virtual \fB~TQDragObject\fR ()" .br .ti -1c .BI "bool \fBdrag\fR ()" @@ -67,9 +67,9 @@ Inherited by QStoredDrag, TQTextDrag, TQImageDrag, and TQIconDrag. .br .in -1c .SH DESCRIPTION -The QDragObject class encapsulates MIME-based data transfer. +The TQDragObject class encapsulates MIME-based data transfer. .PP -QDragObject is the base class for all data that needs to be transferred between and within applications, both for drag and drop and for the clipboard. +TQDragObject is the base class for all data that needs to be transferred between and within applications, both for drag and drop and for the clipboard. .PP See the Drag-and-drop documentation for an overview of how to provide drag and drop in your application. .PP @@ -79,36 +79,36 @@ The drag() function is used to start a drag operation. You can specify the DragM .PP See also Drag And Drop Classes. .SS "Member Type Documentation" -.SH "QDragObject::DragMode" +.SH "TQDragObject::DragMode" This enum describes the possible drag modes. .TP -\fCQDragObject::DragDefault\fR - The mode is determined heuristically. +\fCTQDragObject::DragDefault\fR - The mode is determined heuristically. .TP -\fCQDragObject::DragCopy\fR - The data is copied, never moved. +\fCTQDragObject::DragCopy\fR - The data is copied, never moved. .TP -\fCQDragObject::DragMove\fR - The data is moved, if dragged at all. +\fCTQDragObject::DragMove\fR - The data is moved, if dragged at all. .TP -\fCQDragObject::DragLink\fR - The data is linked, if dragged at all. +\fCTQDragObject::DragLink\fR - The data is linked, if dragged at all. .TP -\fCQDragObject::DragCopyOrMove\fR - The user chooses the mode by using a control key to switch from the default. +\fCTQDragObject::DragCopyOrMove\fR - The user chooses the mode by using a control key to switch from the default. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QDragObject::QDragObject ( TQWidget * dragSource = 0, const char * name = 0 )" +.SH "TQDragObject::TQDragObject ( TQWidget * dragSource = 0, const char * name = 0 )" Constructs a drag object called \fIname\fR, which is a child of \fIdragSource\fR. .PP Note that the drag object will be deleted when \fIdragSource\fR is deleted. -.SH "QDragObject::~QDragObject ()\fC [virtual]\fR" +.SH "TQDragObject::~TQDragObject ()\fC [virtual]\fR" Destroys the drag object, canceling any drag and drop operation in which it is involved, and frees up the storage used. -.SH "bool QDragObject::drag ()" +.SH "bool TQDragObject::drag ()" Starts a drag operation using the contents of this object, using DragDefault mode. .PP The function returns TRUE if the caller should delete the original copy of the dragged data (but see target()); otherwise returns FALSE. .PP -If the drag contains \fIreferences\fR to information (e.g. file names in a QUriDrag are references) then the return value should always be ignored, as the target is expected to manipulate the referred-to content directly. On X11 the return value should always be correct anyway, but on Windows this is not necessarily the case (e.g. the file manager starts a background process to move files, so the source \fImust not\fR delete the files!) +If the drag contains \fIreferences\fR to information (e.g. file names in a TQUriDrag are references) then the return value should always be ignored, as the target is expected to manipulate the referred-to content directly. On X11 the return value should always be correct anyway, but on Windows this is not necessarily the case (e.g. the file manager starts a background process to move files, so the source \fImust not\fR delete the files!) .PP Note that on Windows the drag operation will spin a blocking modal event loop that will not dispatch any TQTimers. .PP Example: dirview/dirview.cpp. -.SH "bool QDragObject::drag ( DragMode mode )\fC [virtual protected]\fR" +.SH "bool TQDragObject::drag ( DragMode mode )\fC [virtual protected]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Starts a drag operation using the contents of this object. @@ -117,26 +117,26 @@ At this point, the object becomes owned by Qt, not the application. You should n .PP Returns TRUE if the dragged data was dragged as a \fImove\fR, indicating that the caller should remove the original source of the data (the drag object must continue to have a copy); otherwise returns FALSE. .PP -The \fImode\fR specifies the drag mode (see QDragObject::DragMode.) Normally one of the simpler drag(), dragMove(), or dragCopy() functions would be used instead. -.SH "void QDragObject::dragCopy ()" +The \fImode\fR specifies the drag mode (see TQDragObject::DragMode.) Normally one of the simpler drag(), dragMove(), or dragCopy() functions would be used instead. +.SH "void TQDragObject::dragCopy ()" Starts a drag operation using the contents of this object, using DragCopy mode. Be sure to read the constraints described in drag(). .PP See also drag(), dragMove(), and dragLink(). .PP Example: iconview/simple_dd/main.cpp. -.SH "void QDragObject::dragLink ()" +.SH "void TQDragObject::dragLink ()" Starts a drag operation using the contents of this object, using DragLink mode. Be sure to read the constraints described in drag(). .PP See also drag(), dragCopy(), and dragMove(). -.SH "bool QDragObject::dragMove ()" +.SH "bool TQDragObject::dragMove ()" Starts a drag operation using the contents of this object, using DragMove mode. Be sure to read the constraints described in drag(). .PP See also drag(), dragCopy(), and dragLink(). -.SH "QPixmap QDragObject::pixmap () const" +.SH "QPixmap TQDragObject::pixmap () const" Returns the currently set pixmap (which isNull() if none is set). -.SH "QPoint QDragObject::pixmapHotSpot () const" +.SH "QPoint TQDragObject::pixmapHotSpot () const" Returns the currently set pixmap hotspot. -.SH "void QDragObject::setPixmap ( QPixmap pm, const QPoint & hotspot )\fC [virtual]\fR" +.SH "void TQDragObject::setPixmap ( QPixmap pm, const QPoint & hotspot )\fC [virtual]\fR" Set the pixmap \fIpm\fR to display while dragging the object. The platform-specific implementation will use this where it can - so provide a small masked pixmap, and do not assume that the user will actually see it. For example, cursors on Windows 95 are of limited size. .PP The \fIhotspot\fR is the point on (or off) the pixmap that should be under the cursor as it is dragged. It is relative to the top-left pixel of the pixmap. @@ -144,20 +144,20 @@ The \fIhotspot\fR is the point on (or off) the pixmap that should be under the c \fBWarning:\fR We have seen problems with drag cursors on different graphics hardware and driver software on Windows. Setting the graphics acceleration in the display settings down one tick solved the problems in all cases. .PP Example: fileiconview/qfileiconview.cpp. -.SH "void QDragObject::setPixmap ( QPixmap pm )\fC [virtual]\fR" +.SH "void TQDragObject::setPixmap ( QPixmap pm )\fC [virtual]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Uses a hotspot that positions the pixmap below and to the right of the mouse pointer. This allows the user to clearly see the point on the window which they are dragging the data onto. -.SH "TQWidget * QDragObject::source ()" +.SH "TQWidget * TQDragObject::source ()" Returns a pointer to the drag source where this object originated. -.SH "TQWidget * QDragObject::target ()\fC [static]\fR" +.SH "TQWidget * TQDragObject::target ()\fC [static]\fR" After the drag completes, this function will return the TQWidget which received the drop, or 0 if the data was dropped on another application. .PP This can be useful for detecting the case where drag and drop is to and from the same widget. .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqdragobject.html +.BR http://doc.trolltech.com/tqdragobject.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |