diff options
author | Timothy Pearson <[email protected]> | 2011-11-29 01:11:08 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-11-29 01:11:08 -0600 |
commit | 8a055d66f43592c257cece2eb8cc021808062917 (patch) | |
tree | d0922f201bd5d24b62a33160d1d9baf9e89f9a70 /sip/qt/qiconview.sip | |
parent | b388516ca2691303a076a0764fd40bf7116fe43d (diff) | |
download | pytqt-8a055d66f43592c257cece2eb8cc021808062917.tar.gz pytqt-8a055d66f43592c257cece2eb8cc021808062917.zip |
Initial TQt conversion
Diffstat (limited to 'sip/qt/qiconview.sip')
-rw-r--r-- | sip/qt/qiconview.sip | 404 |
1 files changed, 202 insertions, 202 deletions
diff --git a/sip/qt/qiconview.sip b/sip/qt/qiconview.sip index 122d2ec..bdc3bcb 100644 --- a/sip/qt/qiconview.sip +++ b/sip/qt/qiconview.sip @@ -1,31 +1,31 @@ -// This is the SIP interface definition for QIconView, QIconViewItem, QIconDrag -// and QIconDragItem. +// This is the SIP interface definition for TQIconView, TQIconViewItem, TQIconDrag +// and TQIconDragItem. // // Copyright (c) 2007 // Riverbank Computing Limited <[email protected]> // -// 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>QIconView (Qt v2.1+)</Title> +<Sect2><Title>TQIconView (TQt v2.1+)</Title> <FuncSynopsis> - <FuncDef>QIconViewItem *<Function>makeRowLayout</Function></FuncDef> - <ParamDef>QIconViewItem *<Parameter>begin</Parameter></ParamDef> + <FuncDef>TQIconViewItem *<Function>makeRowLayout</Function></FuncDef> + <ParamDef>TQIconViewItem *<Parameter>begin</Parameter></ParamDef> <ParamDef>int &<Parameter>y</Parameter></ParamDef> </FuncSynopsis> <Para> @@ -33,110 +33,110 @@ Not yet implemented. </Para> </Sect2> -<Sect2><Title>QIconViewItem (Qt v2.1+)</Title> +<Sect2><Title>TQIconViewItem (TQt v2.1+)</Title> <Para> -<Literal>QIconViewItem</Literal> is fully implemented. +<Literal>TQIconViewItem</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QIconDrag (Qt v2.1+)</Title> +<Sect2><Title>TQIconDrag (TQt v2.1+)</Title> <Para> -<Literal>QIconDrag</Literal> is fully implemented. +<Literal>TQIconDrag</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QIconDragItem (Qt v2.1+)</Title> +<Sect2><Title>TQIconDragItem (TQt v2.1+)</Title> <Para> -<Literal>QIconDragItem</Literal> is fully implemented. +<Literal>TQIconDragItem</Literal> is fully implemented. </Para> </Sect2> %End -%If (Qt_ICONVIEW) -%If (Qt_2_1_0 -) +%If (TQt_ICONVIEW) +%If (TQt_2_1_0 -) -%If (Qt_DRAGANDDROP) +%If (TQt_DRAGANDDROP) -class QIconDragItem +class TQIconDragItem { %TypeHeaderCode #include <qiconview.h> %End public: - QIconDragItem(); + TQIconDragItem(); - virtual QByteArray data() const; - virtual void setData(const QByteArray &); + virtual TQByteArray data() const; + virtual void setData(const TQByteArray &); }; -class QIconDrag : QDragObject +class TQIconDrag : TQDragObject { %TypeHeaderCode #include <qiconview.h> %End public: - QIconDrag(QWidget * /TransferThis/,const char * = 0); + TQIconDrag(TQWidget * /TransferThis/,const char * = 0); - void append(const QIconDragItem &,const QRect &,const QRect &); + void append(const TQIconDragItem &,const TQRect &,const TQRect &); virtual const char* format(int) const; - static bool canDecode(QMimeSource *); - virtual QByteArray encodedData(const char *) const; + static bool canDecode(TQMimeSource *); + virtual TQByteArray encodedData(const char *) const; private: -%If (Qt_3_1_0 -) - QIconDrag(const QIconDrag &); +%If (TQt_3_1_0 -) + TQIconDrag(const TQIconDrag &); %End }; %End -class QIconViewItem : Qt +class TQIconViewItem : TQt { %TypeHeaderCode #include <qiconview.h> %End public: - QIconViewItem(QIconView * /TransferThis/); - QIconViewItem(QIconView * /TransferThis/,QIconViewItem *); - QIconViewItem(QIconView * /TransferThis/,const QString &); - QIconViewItem(QIconView * /TransferThis/,QIconViewItem *, - const QString &); - QIconViewItem(QIconView * /TransferThis/,const QString &, - const QPixmap &); - QIconViewItem(QIconView * /TransferThis/,QIconViewItem *, - const QString &,const QPixmap &); -%If (Qt_3_0_0 -) - QIconViewItem(QIconView * /TransferThis/,const QString &, - const QPicture &); - QIconViewItem(QIconView * /TransferThis/,QIconViewItem *, - const QString &,const QPicture &); + TQIconViewItem(TQIconView * /TransferThis/); + TQIconViewItem(TQIconView * /TransferThis/,TQIconViewItem *); + TQIconViewItem(TQIconView * /TransferThis/,const TQString &); + TQIconViewItem(TQIconView * /TransferThis/,TQIconViewItem *, + const TQString &); + TQIconViewItem(TQIconView * /TransferThis/,const TQString &, + const TQPixmap &); + TQIconViewItem(TQIconView * /TransferThis/,TQIconViewItem *, + const TQString &,const TQPixmap &); +%If (TQt_3_0_0 -) + TQIconViewItem(TQIconView * /TransferThis/,const TQString &, + const TQPicture &); + TQIconViewItem(TQIconView * /TransferThis/,TQIconViewItem *, + const TQString &,const TQPicture &); %End virtual void setRenameEnabled(bool); virtual void setDragEnabled(bool); virtual void setDropEnabled(bool); - virtual QString text() const; - virtual QPixmap *pixmap() const; -%If (Qt_3_0_0 -) - virtual QPicture *picture() const; + virtual TQString text() const; + virtual TQPixmap *pixmap() const; +%If (TQt_3_0_0 -) + virtual TQPicture *picture() const; %End - virtual QString key() const; + virtual TQString key() const; bool renameEnabled() const; bool dragEnabled() const; bool dropEnabled() const; - QIconView *iconView() const; - QIconViewItem *prevItem() const; - QIconViewItem *nextItem() const; + TQIconView *iconView() const; + TQIconViewItem *prevItem() const; + TQIconViewItem *nextItem() const; int index() const; @@ -149,79 +149,79 @@ public: virtual void repaint(); -%If (- Qt_3_0_0) +%If (- TQt_3_0_0) virtual void move(int,int); %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) virtual bool move(int,int); %End virtual void moveBy(int,int); -%If (- Qt_3_0_0) - virtual void move(const QPoint &); +%If (- TQt_3_0_0) + virtual void move(const TQPoint &); %End -%If (Qt_3_0_0 -) - virtual bool move(const QPoint &); +%If (TQt_3_0_0 -) + virtual bool move(const TQPoint &); %End - virtual void moveBy(const QPoint &); + virtual void moveBy(const TQPoint &); - QRect rect() const; + TQRect rect() const; int x() const; int y() const; int width() const; int height() const; - QSize size() const; - QPoint pos() const; - QRect textRect(bool = 1) const; - QRect pixmapRect(bool = 1) const; -%If (- Qt_3_0_0) - bool contains(QPoint) const; - bool intersects(QRect) const; + TQSize size() const; + TQPoint pos() const; + TQRect textRect(bool = 1) const; + TQRect pixmapRect(bool = 1) const; +%If (- TQt_3_0_0) + bool contains(TQPoint) const; + bool intersects(TQRect) const; %End -%If (Qt_3_0_0 -) - bool contains(const QPoint &) const; - bool intersects(const QRect &) const; +%If (TQt_3_0_0 -) + bool contains(const TQPoint &) const; + bool intersects(const TQRect &) const; %End - virtual bool acceptDrop(const QMimeSource *) const; + virtual bool acceptDrop(const TQMimeSource *) const; void rename(); - virtual int compare(QIconViewItem *) const; + virtual int compare(TQIconViewItem *) const; - virtual void setText(const QString &); - virtual void setPixmap(const QPixmap &); -%If (Qt_3_0_0 -) - virtual void setPicture(const QPicture &); + virtual void setText(const TQString &); + virtual void setPixmap(const TQPixmap &); +%If (TQt_3_0_0 -) + virtual void setPicture(const TQPicture &); %End - virtual void setText(const QString &,bool,bool = 1); - virtual void setPixmap(const QPixmap &,bool,bool = 1); - virtual void setKey(const QString &); + virtual void setText(const TQString &,bool,bool = 1); + virtual void setPixmap(const TQPixmap &,bool,bool = 1); + virtual void setKey(const TQString &); -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) virtual int rtti() const; %End protected: virtual void removeRenameBox(); - virtual void calcRect(const QString & = QString::null); - virtual void paintItem(QPainter *,const QColorGroup &); - virtual void paintFocus(QPainter *,const QColorGroup &); -%If (Qt_DRAGANDDROP) - virtual void dropped(QDropEvent *,const QValueList<QIconDragItem> &); + virtual void calcRect(const TQString & = TQString::null); + virtual void paintItem(TQPainter *,const TQColorGroup &); + virtual void paintFocus(TQPainter *,const TQColorGroup &); +%If (TQt_DRAGANDDROP) + virtual void dropped(TQDropEvent *,const TQValueList<TQIconDragItem> &); %End virtual void dragEntered(); virtual void dragLeft(); - void setItemRect(const QRect &); - void setTextRect(const QRect &); - void setPixmapRect(const QRect &); + void setItemRect(const TQRect &); + void setTextRect(const TQRect &); + void setPixmapRect(const TQRect &); void calcTmpText(); -%If (Qt_3_1_0 -) - QString tempText() const; +%If (TQt_3_1_0 -) + TQString tempText() const; %End }; -class QIconView : QScrollView +class TQIconView : TQScrollView { %TypeHeaderCode #include <qiconview.h> @@ -250,46 +250,46 @@ public: Right }; - QIconView(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); + TQIconView(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); - virtual void insertItem(QIconViewItem *,QIconViewItem * = 0); - virtual void takeItem(QIconViewItem *); + virtual void insertItem(TQIconViewItem *,TQIconViewItem * = 0); + virtual void takeItem(TQIconViewItem *); - int index(const QIconViewItem *) const; + int index(const TQIconViewItem *) const; - QIconViewItem *firstItem() const; - QIconViewItem *lastItem() const; - QIconViewItem *currentItem() const; - virtual void setCurrentItem(QIconViewItem *); - virtual void setSelected(QIconViewItem *,bool,bool = 0); + TQIconViewItem *firstItem() const; + TQIconViewItem *lastItem() const; + TQIconViewItem *currentItem() const; + virtual void setCurrentItem(TQIconViewItem *); + virtual void setSelected(TQIconViewItem *,bool,bool = 0); uint count() const; - virtual void showEvent(QShowEvent *); + virtual void showEvent(TQShowEvent *); virtual void setSelectionMode(SelectionMode); SelectionMode selectionMode() const; - QIconViewItem *findItem(const QPoint &) const; -%If (- Qt_3_0_0) - QIconViewItem *findItem(const QString &) const; + TQIconViewItem *findItem(const TQPoint &) const; +%If (- TQt_3_0_0) + TQIconViewItem *findItem(const TQString &) const; %End -%If (Qt_3_0_0 -) - QIconViewItem *findItem(const QString &, +%If (TQt_3_0_0 -) + TQIconViewItem *findItem(const TQString &, ComparisonFlags = BeginsWith) const; %End virtual void selectAll(bool); virtual void clearSelection(); virtual void invertSelection(); - virtual void repaintItem(QIconViewItem *); -%If (Qt_3_1_0 -) + virtual void repaintItem(TQIconViewItem *); +%If (TQt_3_1_0 -) void repaintSelectedItems(); %End - void ensureItemVisible(QIconViewItem *); - QIconViewItem* findFirstVisibleItem(const QRect &) const; - QIconViewItem* findLastVisibleItem(const QRect &) const; + void ensureItemVisible(TQIconViewItem *); + TQIconViewItem* findFirstVisibleItem(const TQRect &) const; + TQIconViewItem* findLastVisibleItem(const TQRect &) const; virtual void clear(); @@ -301,8 +301,8 @@ public: int spacing() const; virtual void setItemTextPos(ItemTextPos); ItemTextPos itemTextPos() const; - virtual void setItemTextBackground(const QBrush &); - QBrush itemTextBackground() const; + virtual void setItemTextBackground(const TQBrush &); + TQBrush itemTextBackground() const; virtual void setArrangement(Arrangement); Arrangement arrangement() const; virtual void setResizeMode(ResizeMode); @@ -325,55 +325,55 @@ public: virtual void setWordWrapIconText(bool); bool wordWrapIconText() const; - bool eventFilter(QObject *,QEvent *); + bool eventFilter(TQObject *,TQEvent *); - QSize minimumSizeHint() const; -%If (- Qt_3_0_0) - QSizePolicy sizePolicy() const; + TQSize minimumSizeHint() const; +%If (- TQt_3_0_0) + TQSizePolicy sizePolicy() const; %End - QSize sizeHint() const; + TQSize sizeHint() const; virtual void sort(bool = 1); - virtual void setFont(const QFont &); - virtual void setPalette(const QPalette &); + virtual void setFont(const TQFont &); + virtual void setPalette(const TQPalette &); -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) bool isRenaming() const; %End public slots: - virtual void arrangeItemsInGrid(const QSize &,bool = 1); + virtual void arrangeItemsInGrid(const TQSize &,bool = 1); virtual void arrangeItemsInGrid(bool = 1); virtual void setContentsPos(int,int); virtual void updateContents(); signals: void selectionChanged(); - void selectionChanged(QIconViewItem *); - void currentChanged(QIconViewItem *); - void clicked(QIconViewItem *); - void clicked(QIconViewItem *,const QPoint &); - void pressed(QIconViewItem *); - void pressed(QIconViewItem *,const QPoint &); - - void doubleClicked(QIconViewItem *); - void returnPressed(QIconViewItem *); - void rightButtonClicked(QIconViewItem *,const QPoint &); - void rightButtonPressed(QIconViewItem *,const QPoint &); - void mouseButtonPressed(int,QIconViewItem *,const QPoint &); - void mouseButtonClicked(int,QIconViewItem *,const QPoint &); -%If (Qt_3_0_0 -) - void contextMenuRequested(QIconViewItem *,const QPoint &); -%End -%If (Qt_DRAGANDDROP) - void dropped(QDropEvent *,const QValueList<QIconDragItem> &); + void selectionChanged(TQIconViewItem *); + void currentChanged(TQIconViewItem *); + void clicked(TQIconViewItem *); + void clicked(TQIconViewItem *,const TQPoint &); + void pressed(TQIconViewItem *); + void pressed(TQIconViewItem *,const TQPoint &); + + void doubleClicked(TQIconViewItem *); + void returnPressed(TQIconViewItem *); + void rightButtonClicked(TQIconViewItem *,const TQPoint &); + void rightButtonPressed(TQIconViewItem *,const TQPoint &); + void mouseButtonPressed(int,TQIconViewItem *,const TQPoint &); + void mouseButtonClicked(int,TQIconViewItem *,const TQPoint &); +%If (TQt_3_0_0 -) + void contextMenuRequested(TQIconViewItem *,const TQPoint &); +%End +%If (TQt_DRAGANDDROP) + void dropped(TQDropEvent *,const TQValueList<TQIconDragItem> &); %End void moved(); - void onItem(QIconViewItem *); + void onItem(TQIconViewItem *); void onViewport(); - void itemRenamed(QIconViewItem *,const QString &); - void itemRenamed(QIconViewItem *); + void itemRenamed(TQIconViewItem *,const TQString &); + void itemRenamed(TQIconViewItem *); protected slots: virtual void doAutoScroll(); @@ -381,76 +381,76 @@ protected slots: virtual void slotUpdate(); protected: -%If (- Qt_3_0_0) - virtual void drawContents(QPainter *,int,int,int,int); - virtual void contentsMousePressEvent(QMouseEvent *); - virtual void contentsMouseReleaseEvent(QMouseEvent *); - virtual void contentsMouseMoveEvent(QMouseEvent *); - virtual void contentsMouseDoubleClickEvent(QMouseEvent *); -%End -%If (Qt_3_0_0 -) - void drawContents(QPainter *,int,int,int,int); - void contentsMousePressEvent(QMouseEvent *); - void contentsMouseReleaseEvent(QMouseEvent *); - void contentsMouseMoveEvent(QMouseEvent *); - void contentsMouseDoubleClickEvent(QMouseEvent *); - void contentsContextMenuEvent(QContextMenuEvent *); -%End - -%If (- Qt_3_0_0) -%If (Qt_DRAGANDDROP) - virtual void contentsDragEnterEvent(QDragEnterEvent *); - virtual void contentsDragMoveEvent(QDragMoveEvent *); - virtual void contentsDragLeaveEvent(QDragLeaveEvent *); - virtual void contentsDropEvent(QDropEvent *); -%End - - virtual void resizeEvent(QResizeEvent *); - virtual void keyPressEvent(QKeyEvent *); - virtual void focusInEvent(QFocusEvent *); - virtual void focusOutEvent(QFocusEvent *); - virtual void enterEvent(QEvent *); -%End -%If (Qt_3_0_0 -) -%If (Qt_DRAGANDDROP) - void contentsDragEnterEvent(QDragEnterEvent *); - void contentsDragMoveEvent(QDragMoveEvent *); - void contentsDragLeaveEvent(QDragLeaveEvent *); - void contentsDropEvent(QDropEvent *); -%End - - void resizeEvent(QResizeEvent *); - void keyPressEvent(QKeyEvent *); - void focusInEvent(QFocusEvent *); - void focusOutEvent(QFocusEvent *); - void enterEvent(QEvent *); -%End - - virtual void drawRubber(QPainter *); -%If (Qt_DRAGANDDROP) - virtual QDragObject *dragObject(); +%If (- TQt_3_0_0) + virtual void drawContents(TQPainter *,int,int,int,int); + virtual void contentsMousePressEvent(TQMouseEvent *); + virtual void contentsMouseReleaseEvent(TQMouseEvent *); + virtual void contentsMouseMoveEvent(TQMouseEvent *); + virtual void contentsMouseDoubleClickEvent(TQMouseEvent *); +%End +%If (TQt_3_0_0 -) + void drawContents(TQPainter *,int,int,int,int); + void contentsMousePressEvent(TQMouseEvent *); + void contentsMouseReleaseEvent(TQMouseEvent *); + void contentsMouseMoveEvent(TQMouseEvent *); + void contentsMouseDoubleClickEvent(TQMouseEvent *); + void contentsContextMenuEvent(TQContextMenuEvent *); +%End + +%If (- TQt_3_0_0) +%If (TQt_DRAGANDDROP) + virtual void contentsDragEnterEvent(TQDragEnterEvent *); + virtual void contentsDragMoveEvent(TQDragMoveEvent *); + virtual void contentsDragLeaveEvent(TQDragLeaveEvent *); + virtual void contentsDropEvent(TQDropEvent *); +%End + + virtual void resizeEvent(TQResizeEvent *); + virtual void keyPressEvent(TQKeyEvent *); + virtual void focusInEvent(TQFocusEvent *); + virtual void focusOutEvent(TQFocusEvent *); + virtual void enterEvent(TQEvent *); +%End +%If (TQt_3_0_0 -) +%If (TQt_DRAGANDDROP) + void contentsDragEnterEvent(TQDragEnterEvent *); + void contentsDragMoveEvent(TQDragMoveEvent *); + void contentsDragLeaveEvent(TQDragLeaveEvent *); + void contentsDropEvent(TQDropEvent *); +%End + + void resizeEvent(TQResizeEvent *); + void keyPressEvent(TQKeyEvent *); + void focusInEvent(TQFocusEvent *); + void focusOutEvent(TQFocusEvent *); + void enterEvent(TQEvent *); +%End + + virtual void drawRubber(TQPainter *); +%If (TQt_DRAGANDDROP) + virtual TQDragObject *dragObject(); virtual void startDrag(); %End - virtual void insertInGrid(QIconViewItem *); - virtual void drawBackground(QPainter *,const QRect &); + virtual void insertInGrid(TQIconViewItem *); + virtual void drawBackground(TQPainter *,const TQRect &); - void emitSelectionChanged(QIconViewItem * = 0); - void emitRenamed(QIconViewItem *); + void emitSelectionChanged(TQIconViewItem * = 0); + void emitRenamed(TQIconViewItem *); -%If (- Qt_3_0_0) -// QIconViewItem *makeRowLayout(QIconViewItem *,int &); +%If (- TQt_3_0_0) +// TQIconViewItem *makeRowLayout(TQIconViewItem *,int &); %End -%If (Qt_3_0_0 -) -// QIconViewItem *makeRowLayout(QIconViewItem *,int &,bool &); +%If (TQt_3_0_0 -) +// TQIconViewItem *makeRowLayout(TQIconViewItem *,int &,bool &); %End - void styleChange(QStyle &); -%If (Qt_3_0_0 -) + void styleChange(TQStyle &); +%If (TQt_3_0_0 -) void windowActivationChange(bool); %End private: - QIconView(const QIconView &); + TQIconView(const TQIconView &); }; %End |