diff options
Diffstat (limited to 'sip/qt/qdragobject.sip')
-rw-r--r-- | sip/qt/qdragobject.sip | 270 |
1 files changed, 135 insertions, 135 deletions
diff --git a/sip/qt/qdragobject.sip b/sip/qt/qdragobject.sip index 5465219..9c7f50f 100644 --- a/sip/qt/qdragobject.sip +++ b/sip/qt/qdragobject.sip @@ -1,74 +1,74 @@ -// This is the SIP interface definition for QDragObject, QImageDrag, -// QStoredDrag, QTextDrag, QUriDrag, QUrlDrag, QColorDrag. +// This is the SIP interface definition for TQDragObject, TQImageDrag, +// TQStoredDrag, TQTextDrag, TQUriDrag, TQUrlDrag, TQColorDrag. // // Copyright (c) 2007 // Riverbank Computing Limited <info@riverbankcomputing.co.uk> // -// This file is part of PyQt. +// This file is part of PyTQt. // -// This copy of PyQt is free software; you can redistribute it and/or modify it +// This copy of PyTQt is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by the Free // Software Foundation; either version 2, or (at your option) any later // version. // -// PyQt is supplied in the hope that it will be useful, but WITHOUT ANY +// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with -// PyQt; see the file LICENSE. If not, write to the Free Software Foundation, +// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation, // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. %ExportedDoc -<Sect2><Title>QColorDrag (Qt v2.1+)</Title> +<Sect2><Title>TQColorDrag (TQt v2.1+)</Title> <Para> -<Literal>QColorDrag</Literal> is fully implemented. +<Literal>TQColorDrag</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QDragObject</Title> +<Sect2><Title>TQDragObject</Title> <Para> -<Literal>QDragObject</Literal> is fully implemented. +<Literal>TQDragObject</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QImageDrag</Title> +<Sect2><Title>TQImageDrag</Title> <Para> -<Literal>QImageDrag</Literal> is fully implemented. +<Literal>TQImageDrag</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QStoredDrag</Title> +<Sect2><Title>TQStoredDrag</Title> <Para> -<Literal>QStoredDrag</Literal> is fully implemented. +<Literal>TQStoredDrag</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QTextDrag</Title> +<Sect2><Title>TQTextDrag</Title> <Para> -<Literal>QTextDrag</Literal> is fully implemented. +<Literal>TQTextDrag</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QUriDrag (Qt v2+)</Title> +<Sect2><Title>TQUriDrag (TQt v2+)</Title> <Para> -<Literal>QUriDrag</Literal> is fully implemented. +<Literal>TQUriDrag</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QUrlDrag (Qt v1.x)</Title> +<Sect2><Title>TQUrlDrag (TQt v1.x)</Title> <Para> -<Literal>QUrlDrag</Literal> is fully implemented. +<Literal>TQUrlDrag</Literal> is fully implemented. </Para> </Sect2> %End -%If (- Qt_2_00) +%If (- TQt_2_00) -class QDragObject : QObject +class TQDragObject : TQObject { %TypeHeaderCode #include <qdragobject.h> @@ -82,19 +82,19 @@ public: DragCopyOrMove }; - QDragObject(QWidget * /TransferThis/ = 0,const char * = 0); + TQDragObject(TQWidget * /TransferThis/ = 0,const char * = 0); bool drag(); bool dragMove(); void dragCopy(); virtual bool provides(const char *) const; virtual const char *format(int) const = 0; - virtual QByteArray encodedData(const char *) const = 0; - void setPixmap(QPixmap); - void setPixmap(QPixmap,QPoint); - QPixmap pixmap() const; - QPoint pixmapHotSpot() const; - QWidget *source(); + virtual TQByteArray encodedData(const char *) const = 0; + void setPixmap(TQPixmap); + void setPixmap(TQPixmap,TQPoint); + TQPixmap pixmap() const; + TQPoint pixmapHotSpot() const; + TQWidget *source(); protected: virtual bool drag(DragMode); @@ -102,43 +102,43 @@ protected: %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) -class QDragObject : QObject, QMimeSource +class TQDragObject : TQObject, TQMimeSource { %TypeHeaderCode #include <qdragobject.h> %End public: - QDragObject(QWidget * /TransferThis/ = 0,const char * = 0); + TQDragObject(TQWidget * /TransferThis/ = 0,const char * = 0); -%If (Qt_DRAGANDDROP) +%If (TQt_DRAGANDDROP) bool drag(); bool dragMove(); void dragCopy(); -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) void dragLink(); %End - virtual void setPixmap(QPixmap); -%If (- Qt_3_0_0) - virtual void setPixmap(QPixmap,QPoint); + virtual void setPixmap(TQPixmap); +%If (- TQt_3_0_0) + virtual void setPixmap(TQPixmap,TQPoint); %End -%If (Qt_3_0_0 -) - virtual void setPixmap(QPixmap,const QPoint &); +%If (TQt_3_0_0 -) + virtual void setPixmap(TQPixmap,const TQPoint &); %End - QPixmap pixmap() const; - QPoint pixmapHotSpot() const; + TQPixmap pixmap() const; + TQPoint pixmapHotSpot() const; %End - QWidget *source(); - static QWidget *target(); + TQWidget *source(); + static TQWidget *target(); - static void setTarget(QWidget *); + static void setTarget(TQWidget *); -%If (Qt_DRAGANDDROP) -%If (- Qt_3_0_0) +%If (TQt_DRAGANDDROP) +%If (- TQt_3_0_0) enum DragMode { DragDefault, DragCopy, @@ -146,7 +146,7 @@ public: DragCopyOrMove }; %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) enum DragMode { DragDefault, DragCopy, @@ -158,216 +158,216 @@ public: %End protected: -%If (Qt_DRAGANDDROP) +%If (TQt_DRAGANDDROP) virtual bool drag(DragMode); %End private: -%If (Qt_3_1_0 -) - QDragObject(const QDragObject &); +%If (TQt_3_1_0 -) + TQDragObject(const TQDragObject &); %End }; %End -class QStoredDrag : QDragObject +class TQStoredDrag : TQDragObject { %TypeHeaderCode #include <qdragobject.h> %End public: - QStoredDrag(const char *,QWidget * /TransferThis/ = 0,const char * = 0); + TQStoredDrag(const char *,TQWidget * /TransferThis/ = 0,const char * = 0); -%If (- Qt_2_00) - void setEncodedData(const QByteArray&); +%If (- TQt_2_00) + void setEncodedData(const TQByteArray&); %End -%If (Qt_2_00 -) - virtual void setEncodedData(const QByteArray&); +%If (TQt_2_00 -) + virtual void setEncodedData(const TQByteArray&); %End const char *format(int) const; - virtual QByteArray encodedData(const char *) const; + virtual TQByteArray encodedData(const char *) const; private: -%If (Qt_3_1_0 -) - QStoredDrag(const QStoredDrag &); +%If (TQt_3_1_0 -) + TQStoredDrag(const TQStoredDrag &); %End }; -%If (- Qt_2_00) +%If (- TQt_2_00) -class QTextDrag : QStoredDrag +class TQTextDrag : TQStoredDrag { %TypeHeaderCode #include <qdragobject.h> %End public: - QTextDrag(const char *,QWidget * /TransferThis/ = 0,const char * = 0); - QTextDrag(QWidget * /TransferThis/ = 0,const char * = 0); + TQTextDrag(const char *,TQWidget * /TransferThis/ = 0,const char * = 0); + TQTextDrag(TQWidget * /TransferThis/ = 0,const char * = 0); void setText(const char *); - static bool canDecode(QDragMoveEvent *); - static bool decode(QDropEvent *,QString &); + static bool canDecode(TQDragMoveEvent *); + static bool decode(TQDropEvent *,TQString &); }; %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) -class QTextDrag : QDragObject +class TQTextDrag : TQDragObject { %TypeHeaderCode #include <qdragobject.h> %End public: - QTextDrag(const QString &,QWidget * /TransferThis/ = 0, + TQTextDrag(const TQString &,TQWidget * /TransferThis/ = 0, const char * = 0); - QTextDrag(QWidget * /TransferThis/ = 0,const char * = 0); + TQTextDrag(TQWidget * /TransferThis/ = 0,const char * = 0); - virtual void setText(const QString &); - virtual void setSubtype(const QCString &); + virtual void setText(const TQString &); + virtual void setSubtype(const TQCString &); const char *format(int) const; - virtual QByteArray encodedData(const char *) const; + virtual TQByteArray encodedData(const char *) const; - static bool canDecode(const QMimeSource *); - static bool decode(const QMimeSource *,QString &); - static bool decode(const QMimeSource *,QString &,QCString &); + static bool canDecode(const TQMimeSource *); + static bool decode(const TQMimeSource *,TQString &); + static bool decode(const TQMimeSource *,TQString &,TQCString &); private: -%If (Qt_3_1_0 -) - QTextDrag(const QTextDrag &); +%If (TQt_3_1_0 -) + TQTextDrag(const TQTextDrag &); %End }; %End -class QImageDrag : QDragObject +class TQImageDrag : TQDragObject { %TypeHeaderCode #include <qdragobject.h> %End public: - QImageDrag(QImage,QWidget * /TransferThis/ = 0,const char * = 0); - QImageDrag(QWidget * /TransferThis/ = 0,const char * = 0); + TQImageDrag(TQImage,TQWidget * /TransferThis/ = 0,const char * = 0); + TQImageDrag(TQWidget * /TransferThis/ = 0,const char * = 0); -%If (- Qt_2_00) - void setImage(QImage); +%If (- TQt_2_00) + void setImage(TQImage); %End -%If (Qt_2_00 -) - virtual void setImage(QImage); +%If (TQt_2_00 -) + virtual void setImage(TQImage); %End const char *format(int) const; - virtual QByteArray encodedData(const char *) const; + virtual TQByteArray encodedData(const char *) const; -%If (- Qt_2_00) - static bool canDecode(QDragMoveEvent *); - static bool decode(QDropEvent *,QImage &); - static bool decode(QDropEvent *,QPixmap &); +%If (- TQt_2_00) + static bool canDecode(TQDragMoveEvent *); + static bool decode(TQDropEvent *,TQImage &); + static bool decode(TQDropEvent *,TQPixmap &); %End -%If (Qt_2_00 -) - static bool canDecode(const QMimeSource *); - static bool decode(const QMimeSource *,QImage &); - static bool decode(const QMimeSource *,QPixmap &); +%If (TQt_2_00 -) + static bool canDecode(const TQMimeSource *); + static bool decode(const TQMimeSource *,TQImage &); + static bool decode(const TQMimeSource *,TQPixmap &); %End private: -%If (Qt_3_1_0 -) - QImageDrag(const QImageDrag &); +%If (TQt_3_1_0 -) + TQImageDrag(const TQImageDrag &); %End }; -%If (- Qt_2_00) +%If (- TQt_2_00) -class QUrlDrag : QStoredDrag +class TQUrlDrag : TQStoredDrag { %TypeHeaderCode #include <qdragobject.h> %End public: - QUrlDrag(QStrList,QWidget * /TransferThis/ = 0,const char * = 0); - QUrlDrag(QWidget * /TransferThis/ = 0,const char * = 0); - - void setUrls(QStrList); - static QString urlToLocalFile(const char *); - static bool canDecode(QDragMoveEvent *); - static bool decode(QDropEvent *,QStrList &); - static bool decodeLocalFiles(QDropEvent *,QStrList &); + TQUrlDrag(TQStrList,TQWidget * /TransferThis/ = 0,const char * = 0); + TQUrlDrag(TQWidget * /TransferThis/ = 0,const char * = 0); + + void setUrls(TQStrList); + static TQString urlToLocalFile(const char *); + static bool canDecode(TQDragMoveEvent *); + static bool decode(TQDropEvent *,TQStrList &); + static bool decodeLocalFiles(TQDropEvent *,TQStrList &); }; %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) -class QUriDrag : QStoredDrag +class TQUriDrag : TQStoredDrag { %TypeHeaderCode #include <qdragobject.h> %End public: - QUriDrag(QStrList,QWidget * /TransferThis/ = 0,const char * = 0); - QUriDrag(QWidget * /TransferThis/ = 0,const char * = 0); + TQUriDrag(TQStrList,TQWidget * /TransferThis/ = 0,const char * = 0); + TQUriDrag(TQWidget * /TransferThis/ = 0,const char * = 0); -%If (- Qt_3_0_0) - void setFilenames(QStringList); - void setUnicodeUris(QStringList); +%If (- TQt_3_0_0) + void setFilenames(TQStringList); + void setUnicodeUris(TQStringList); %End -%If (Qt_3_0_0 -) - void setFileNames(const QStringList &); - void setUnicodeUris(const QStringList &); +%If (TQt_3_0_0 -) + void setFileNames(const TQStringList &); + void setUnicodeUris(const TQStringList &); %End - virtual void setUris(QStrList); + virtual void setUris(TQStrList); - static QString uriToLocalFile(const char *); - static QCString localFileToUri(const QString &); - static QString uriToUnicodeUri(const char *); - static QCString unicodeUriToUri(const QString &); - static bool canDecode(const QMimeSource *); - static bool decode(const QMimeSource *,QStrList &); - static bool decodeToUnicodeUris(const QMimeSource *,QStringList &); - static bool decodeLocalFiles(const QMimeSource *,QStringList &); + 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 *); + static bool decode(const TQMimeSource *,TQStrList &); + static bool decodeToUnicodeUris(const TQMimeSource *,TQStringList &); + static bool decodeLocalFiles(const TQMimeSource *,TQStringList &); private: -%If (Qt_3_1_0 -) - QUriDrag(const QUriDrag &); +%If (TQt_3_1_0 -) + TQUriDrag(const TQUriDrag &); %End }; %End -%If (Qt_2_1_0 -) +%If (TQt_2_1_0 -) -class QColorDrag : QStoredDrag +class TQColorDrag : TQStoredDrag { %TypeHeaderCode #include <qdragobject.h> %End public: - QColorDrag(const QColor &,QWidget * /TransferThis/ = 0, + TQColorDrag(const TQColor &,TQWidget * /TransferThis/ = 0, const char * = 0); - QColorDrag(QWidget * /TransferThis/ = 0,const char * = 0); + TQColorDrag(TQWidget * /TransferThis/ = 0,const char * = 0); - void setColor(const QColor &); + void setColor(const TQColor &); - static bool canDecode(QMimeSource *); - static bool decode(QMimeSource *,QColor &); + static bool canDecode(TQMimeSource *); + static bool decode(TQMimeSource *,TQColor &); private: -%If (Qt_3_1_0 -) - QColorDrag(const QColorDrag &); +%If (TQt_3_1_0 -) + TQColorDrag(const TQColorDrag &); %End }; |