diff options
Diffstat (limited to 'sip/qt/qlistbox.sip')
-rw-r--r-- | sip/qt/qlistbox.sip | 406 |
1 files changed, 203 insertions, 203 deletions
diff --git a/sip/qt/qlistbox.sip b/sip/qt/qlistbox.sip index 1f755d8..e19d8ea 100644 --- a/sip/qt/qlistbox.sip +++ b/sip/qt/qlistbox.sip @@ -1,28 +1,28 @@ -// This is the SIP interface definition for QListBox, QListBoxItem, -// QListBoxPixmap and QListBoxText. +// This is the SIP interface definition for TQListBox, TQListBoxItem, +// TQListBoxPixmap and TQListBoxText. // // 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>QListBox</Title> +<Sect2><Title>TQListBox</Title> <FuncSynopsis> <FuncDef>bool <Function>itemYPos</Function></FuncDef> <ParamDef>int <Parameter>index</Parameter></ParamDef> @@ -31,31 +31,31 @@ <Para> This takes the <Literal>index</Literal> parameter and returns a tuple containing the <Literal>bool</Literal> result and <Literal>yPos</Literal>. -(Qt v1.x) +(TQt v1.x) </Para> </Sect2> -<Sect2><Title>QListBoxItem</Title> +<Sect2><Title>TQListBoxItem</Title> <Para> -<Literal>QListBoxItem</Literal> is fully implemented. +<Literal>TQListBoxItem</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QListBoxPixmap</Title> +<Sect2><Title>TQListBoxPixmap</Title> <Para> -<Literal>QListBoxPixmap</Literal> is fully implemented. +<Literal>TQListBoxPixmap</Literal> is fully implemented. </Para> </Sect2> -<Sect2><Title>QListBoxText</Title> +<Sect2><Title>TQListBoxText</Title> <Para> -<Literal>QListBoxText</Literal> is fully implemented. +<Literal>TQListBoxText</Literal> is fully implemented. </Para> </Sect2> %End -%If (- Qt_2_00) +%If (- TQt_2_00) %ModuleHeaderCode #include <qlistbox.h> @@ -68,31 +68,31 @@ const int LBI_Pixmap; const int LBI_UserDefined; -class QListBox : QTableView +class TQListBox : TQTableView { %TypeHeaderCode #include <qlistbox.h> %End public: - QListBox(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); + TQListBox(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); - void setFont(const QFont &); + void setFont(const TQFont &); uint count() const; - void insertStrList(const QStrList *,int = -1); + void insertStrList(const TQStrList *,int = -1); // void insertStrList(const char **,int = -1,int = -1); - void insertItem(const QListBoxItem * /Transfer/,int = -1); + void insertItem(const TQListBoxItem * /Transfer/,int = -1); void insertItem(const char *,int = -1); - void insertItem(const QPixmap &,int = -1); - void inSort(const QListBoxItem *); + void insertItem(const TQPixmap &,int = -1); + void inSort(const TQListBoxItem *); void inSort(const char *); void removeItem(int); void clear(); const char *text(int) const; - const QPixmap *pixmap(int) const; - void changeItem(const QListBoxItem * /Transfer/,int); + const TQPixmap *pixmap(int) const; + void changeItem(const TQListBoxItem * /Transfer/,int); void changeItem(const char *,int); - void changeItem(const QPixmap &,int); + void changeItem(const TQPixmap &,int); bool autoUpdate() const; void setAutoUpdate(bool); int numItemsVisible() const; @@ -124,7 +124,7 @@ public: void setMultiSelection(bool); void setSelected(int,bool); bool isSelected(int) const; - QSize sizeHint() const; + TQSize sizeHint() const; public slots: void clearSelection(); @@ -137,19 +137,19 @@ signals: void selectionChanged(); protected: - QListBoxItem *item(int) const; + TQListBoxItem *item(int) const; bool itemVisible(int); int cellHeight(int = 0); - void paintCell(QPainter *,int,int); - void mousePressEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseDoubleClickEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); - void keyPressEvent(QKeyEvent *); - void focusInEvent(QFocusEvent *); - void focusOutEvent(QFocusEvent *); - void resizeEvent(QResizeEvent *); - void timerEvent(QTimerEvent *); + void paintCell(TQPainter *,int,int); + void mousePressEvent(TQMouseEvent *); + void mouseReleaseEvent(TQMouseEvent *); + void mouseDoubleClickEvent(TQMouseEvent *); + void mouseMoveEvent(TQMouseEvent *); + void keyPressEvent(TQKeyEvent *); + void focusInEvent(TQFocusEvent *); + void focusOutEvent(TQFocusEvent *); + void resizeEvent(TQResizeEvent *); + void timerEvent(TQTimerEvent *); int findItem(int) const; bool itemYPos(int,int *) const; void updateItem(int,bool = 1); @@ -158,67 +158,67 @@ protected: void toggleCurrentItem(); private: - QListBox(const QListBox &); + TQListBox(const TQListBox &); }; %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) -class QListBox : QScrollView +class TQListBox : TQScrollView { %TypeHeaderCode #include <qlistbox.h> %End public: - QListBox(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); + TQListBox(TQWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0); - virtual void setFont(const QFont &); + virtual void setFont(const TQFont &); uint count() const; - void insertStringList(const QStringList &,int = -1); - void insertStrList(const QStrList *,int = -1); -// void insertStrList(const QStrList &,int = -1); + void insertStringList(const TQStringList &,int = -1); + void insertStrList(const TQStrList *,int = -1); +// void insertStrList(const TQStrList &,int = -1); // void insertStrList(const char **,int = -1,int = -1); - void insertItem(const QListBoxItem * /Transfer/,int = -1); -%If (Qt_2_1_0 -) - void insertItem(const QListBoxItem * /Transfer/,const QListBoxItem *); + void insertItem(const TQListBoxItem * /Transfer/,int = -1); +%If (TQt_2_1_0 -) + void insertItem(const TQListBoxItem * /Transfer/,const TQListBoxItem *); %End - void insertItem(const QString &,int = -1); - void insertItem(const QPixmap &,int = -1); -%If (Qt_2_1_0 -) - void insertItem(const QPixmap &,const QString &,int = -1); + void insertItem(const TQString &,int = -1); + void insertItem(const TQPixmap &,int = -1); +%If (TQt_2_1_0 -) + void insertItem(const TQPixmap &,const TQString &,int = -1); %End void removeItem(int); -%If (- Qt_3_0_0) +%If (- TQt_3_0_0) void clear(); %End - QString text(int) const; - const QPixmap *pixmap(int) const; + TQString text(int) const; + const TQPixmap *pixmap(int) const; - void changeItem(const QListBoxItem * /Transfer/,int); - void changeItem(const QString &,int); - void changeItem(const QPixmap &,int); -%If (Qt_2_1_0 -) - void changeItem(const QPixmap &,const QString &,int); + void changeItem(const TQListBoxItem * /Transfer/,int); + void changeItem(const TQString &,int); + void changeItem(const TQPixmap &,int); +%If (TQt_2_1_0 -) + void changeItem(const TQPixmap &,const TQString &,int); %End - void takeItem(const QListBoxItem * /TransferBack/); + void takeItem(const TQListBoxItem * /TransferBack/); int numItemsVisible() const; int currentItem() const; -%If (Qt_2_1_0 -) - QString currentText() const; +%If (TQt_2_1_0 -) + TQString currentText() const; %End virtual void setCurrentItem(int); - virtual void setCurrentItem(QListBoxItem *); + virtual void setCurrentItem(TQListBoxItem *); void centerCurrentItem(); int topItem() const; virtual void setTopItem(int); @@ -226,14 +226,14 @@ public: long maxItemWidth() const; -%If (- Qt_2_1_0) +%If (- TQt_2_1_0) enum SelectionMode { Single, Multi, Extended }; %End -%If (Qt_2_1_0 -) +%If (TQt_2_1_0 -) enum SelectionMode { Single, Multi, @@ -248,31 +248,31 @@ public: void setMultiSelection(bool); bool isMultiSelection() const; - virtual void setSelected(QListBoxItem *,bool); + virtual void setSelected(TQListBoxItem *,bool); void setSelected(int,bool); bool isSelected(int) const; - bool isSelected(QListBoxItem *) const; -%If (Qt_3_1_0 -) - QListBoxItem *selectedItem() const; + bool isSelected(TQListBoxItem *) const; +%If (TQt_3_1_0 -) + TQListBoxItem *selectedItem() const; %End - QSize sizeHint() const; - QSize minimumSizeHint() const; + TQSize sizeHint() const; + TQSize minimumSizeHint() const; - QListBoxItem *item(int) const; - int index(const QListBoxItem *) const; -%If (Qt_2_1_0 - Qt_3_0_0) - QListBoxItem *findItem(const QString &) const; + TQListBoxItem *item(int) const; + int index(const TQListBoxItem *) const; +%If (TQt_2_1_0 - TQt_3_0_0) + TQListBoxItem *findItem(const TQString &) const; %End -%If (Qt_3_0_0 -) - QListBoxItem *findItem(const QString &, +%If (TQt_3_0_0 -) + TQListBoxItem *findItem(const TQString &, ComparisonFlags = BeginsWith) const; %End void triggerUpdate(bool); bool itemVisible(int); - bool itemVisible(const QListBoxItem *); + bool itemVisible(const TQListBoxItem *); enum LayoutMode { FixedNumber, @@ -298,30 +298,30 @@ public: bool variableHeight() const; virtual void setVariableHeight(bool); - void viewportPaintEvent(QPaintEvent *); + void viewportPaintEvent(TQPaintEvent *); int itemHeight(int = 0) const; - QListBoxItem *itemAt(QPoint) const; + TQListBoxItem *itemAt(TQPoint) const; - QRect itemRect(QListBoxItem *) const; + TQRect itemRect(TQListBoxItem *) const; -%If (Qt_2_1_0 -) - QListBoxItem *firstItem() const; +%If (TQt_2_1_0 -) + TQListBoxItem *firstItem() const; void sort(bool = 1); %End public slots: -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) void clear(); %End virtual void ensureCurrentVisible(); virtual void clearSelection(); -%If (Qt_2_1_0 - Qt_3_0_0) +%If (TQt_2_1_0 - TQt_3_0_0) void selectAll(bool); void invertSelection(); %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) virtual void selectAll(bool); virtual void invertSelection(); %End @@ -329,243 +329,243 @@ public slots: signals: void highlighted(int); void selected(int); - void highlighted(const QString &); - void selected(const QString &); - void highlighted(QListBoxItem *); - void selected(QListBoxItem *); + void highlighted(const TQString &); + void selected(const TQString &); + void highlighted(TQListBoxItem *); + void selected(TQListBoxItem *); void selectionChanged(); -%If (Qt_2_1_0 -) - void selectionChanged(QListBoxItem *); - void currentChanged(QListBoxItem *); - void clicked(QListBoxItem *); - void clicked(QListBoxItem *,const QPoint &); - void pressed(QListBoxItem *); - void pressed(QListBoxItem *,const QPoint &); +%If (TQt_2_1_0 -) + void selectionChanged(TQListBoxItem *); + void currentChanged(TQListBoxItem *); + void clicked(TQListBoxItem *); + void clicked(TQListBoxItem *,const TQPoint &); + void pressed(TQListBoxItem *); + void pressed(TQListBoxItem *,const TQPoint &); - void doubleClicked(QListBoxItem *); - void returnPressed(QListBoxItem *); - void rightButtonClicked(QListBoxItem *,const QPoint &); - void rightButtonPressed(QListBoxItem *,const QPoint &); - void mouseButtonPressed(int,QListBoxItem *,const QPoint &); - void mouseButtonClicked(int,QListBoxItem *,const QPoint &); + void doubleClicked(TQListBoxItem *); + void returnPressed(TQListBoxItem *); + void rightButtonClicked(TQListBoxItem *,const TQPoint &); + void rightButtonPressed(TQListBoxItem *,const TQPoint &); + void mouseButtonPressed(int,TQListBoxItem *,const TQPoint &); + void mouseButtonClicked(int,TQListBoxItem *,const TQPoint &); %End -%If (Qt_3_0_0 -) - void contextMenuRequested(QListBoxItem *,const QPoint &); +%If (TQt_3_0_0 -) + void contextMenuRequested(TQListBoxItem *,const TQPoint &); %End -%If (Qt_2_1_0 -) - void onItem(QListBoxItem *); +%If (TQt_2_1_0 -) + void onItem(TQListBoxItem *); void onViewport(); %End protected: -%If (- Qt_3_0_0) - void viewportMousePressEvent(QMouseEvent *); - void viewportMouseReleaseEvent(QMouseEvent *); - void viewportMouseDoubleClickEvent(QMouseEvent *); - void viewportMouseMoveEvent(QMouseEvent *); +%If (- TQt_3_0_0) + void viewportMousePressEvent(TQMouseEvent *); + void viewportMouseReleaseEvent(TQMouseEvent *); + void viewportMouseDoubleClickEvent(TQMouseEvent *); + void viewportMouseMoveEvent(TQMouseEvent *); %End - void mousePressEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseDoubleClickEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); -%If (Qt_3_0_0 -) - void contentsContextMenuEvent(QContextMenuEvent *); + void mousePressEvent(TQMouseEvent *); + void mouseReleaseEvent(TQMouseEvent *); + void mouseDoubleClickEvent(TQMouseEvent *); + void mouseMoveEvent(TQMouseEvent *); +%If (TQt_3_0_0 -) + void contentsContextMenuEvent(TQContextMenuEvent *); %End - void keyPressEvent(QKeyEvent *); - void focusInEvent(QFocusEvent *); - void focusOutEvent(QFocusEvent *); - void resizeEvent(QResizeEvent *); - void showEvent(QShowEvent *); + void keyPressEvent(TQKeyEvent *); + void focusInEvent(TQFocusEvent *); + void focusOutEvent(TQFocusEvent *); + void resizeEvent(TQResizeEvent *); + void showEvent(TQShowEvent *); -%If (Qt_3_0_0 -) - bool eventFilter(QObject *,QEvent *); +%If (TQt_3_0_0 -) + bool eventFilter(TQObject *,TQEvent *); %End void updateItem(int); - void updateItem(QListBoxItem *); + void updateItem(TQListBoxItem *); - virtual void paintCell(QPainter *,int,int); + virtual void paintCell(TQPainter *,int,int); void toggleCurrentItem(); -%If (Qt_2_2_0 -) +%If (TQt_2_2_0 -) bool isRubberSelecting() const; %End void doLayout() const; -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) void windowActivationChange(bool); %End protected slots: -%If (Qt_2_1_0 -) +%If (TQt_2_1_0 -) void clearInputString(); %End private: - QListBox(const QListBox &); + TQListBox(const TQListBox &); }; %End -class QListBoxItem +class TQListBoxItem { %TypeHeaderCode #include <qlistbox.h> %End public: -%If (- Qt_2_00) - QListBoxItem(); +%If (- TQt_2_00) + TQListBoxItem(); %End -%If (Qt_2_00 -) - QListBoxItem(QListBox * /TransferThis/ = 0); +%If (TQt_2_00 -) + TQListBoxItem(TQListBox * /TransferThis/ = 0); %End -%If (Qt_2_1_0 -) - QListBoxItem(QListBox * /TransferThis/,QListBoxItem *); +%If (TQt_2_1_0 -) + TQListBoxItem(TQListBox * /TransferThis/,TQListBoxItem *); %End -%If (- Qt_2_00) +%If (- TQt_2_00) virtual const char *text() const; %End -%If (Qt_2_00 -) - virtual QString text() const; +%If (TQt_2_00 -) + virtual TQString text() const; %End - virtual const QPixmap *pixmap() const; + virtual const TQPixmap *pixmap() const; -%If (- Qt_2_00) - virtual int height(const QListBox *) const = 0; - virtual int width(const QListBox *) const = 0; +%If (- TQt_2_00) + virtual int height(const TQListBox *) const = 0; + virtual int width(const TQListBox *) const = 0; %End -%If (Qt_2_00 -) - virtual int height(const QListBox *) const; - virtual int width(const QListBox *) const; +%If (TQt_2_00 -) + virtual int height(const TQListBox *) const; + virtual int width(const TQListBox *) const; %End -%If (Qt_2_00 - Qt_3_0_0) +%If (TQt_2_00 - TQt_3_0_0) bool selected() const; %End -%If (Qt_2_1_0 - Qt_3_0_0) +%If (TQt_2_1_0 - TQt_3_0_0) bool current() const; %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) bool isSelected() const; bool isCurrent() const; %End -%If (Qt_2_00 -) - QListBox *listBox() const; +%If (TQt_2_00 -) + TQListBox *listBox() const; %End -%If (Qt_2_1_0 -) +%If (TQt_2_1_0 -) void setSelectable(bool); bool isSelectable() const; - QListBoxItem *next() const; - QListBoxItem *prev() const; + TQListBoxItem *next() const; + TQListBoxItem *prev() const; %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) virtual int rtti() const; %End protected: - virtual void paint(QPainter *) = 0; -%If (- Qt_2_00) + virtual void paint(TQPainter *) = 0; +%If (- TQt_2_00) void setText(const char *); %End -%If (Qt_2_00 -) - virtual void setText(const QString &); +%If (TQt_2_00 -) + virtual void setText(const TQString &); %End -%If (Qt_2_1_0 -) +%If (TQt_2_1_0 -) void setCustomHighlighting(bool); %End private: - QListBoxItem(const QListBoxItem &); + TQListBoxItem(const TQListBoxItem &); }; -class QListBoxText : QListBoxItem +class TQListBoxText : TQListBoxItem { %TypeHeaderCode #include <qlistbox.h> %End public: -%If (- Qt_2_00) - QListBoxText(const char * = 0); +%If (- TQt_2_00) + TQListBoxText(const char * = 0); %End -%If (Qt_2_00 -) - QListBoxText(QListBox * /TransferThis/, - const QString & = QString::null); - QListBoxText(const QString & = QString::null); +%If (TQt_2_00 -) + TQListBoxText(TQListBox * /TransferThis/, + const TQString & = TQString::null); + TQListBoxText(const TQString & = TQString::null); %End -%If (Qt_2_1_0 -) - QListBoxText(QListBox * /TransferThis/,const QString &,QListBoxItem *); +%If (TQt_2_1_0 -) + TQListBoxText(TQListBox * /TransferThis/,const TQString &,TQListBoxItem *); %End -%If (- Qt_2_00) - void paint(QPainter *); +%If (- TQt_2_00) + void paint(TQPainter *); %End - int height(const QListBox *) const; - int width(const QListBox *) const; + int height(const TQListBox *) const; + int width(const TQListBox *) const; -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) int rtti() const; %End protected: -%If (Qt_2_00 -) - void paint(QPainter *); +%If (TQt_2_00 -) + void paint(TQPainter *); %End private: - QListBoxText(const QListBoxText &); + TQListBoxText(const TQListBoxText &); }; -class QListBoxPixmap : QListBoxItem +class TQListBoxPixmap : TQListBoxItem { %TypeHeaderCode #include <qlistbox.h> %End public: -%If (Qt_2_00 -) - QListBoxPixmap(QListBox * /TransferThis/,const QPixmap &); +%If (TQt_2_00 -) + TQListBoxPixmap(TQListBox * /TransferThis/,const TQPixmap &); %End - QListBoxPixmap(const QPixmap &); -%If (Qt_2_1_0 -) - QListBoxPixmap(QListBox * /TransferThis/,const QPixmap &, - QListBoxItem *); - QListBoxPixmap(QListBox * /TransferThis/,const QPixmap &, - const QString &); - QListBoxPixmap(const QPixmap &,const QString &); - QListBoxPixmap(QListBox * /TransferThis/,const QPixmap &, - const QString &,QListBoxItem *); + TQListBoxPixmap(const TQPixmap &); +%If (TQt_2_1_0 -) + TQListBoxPixmap(TQListBox * /TransferThis/,const TQPixmap &, + TQListBoxItem *); + TQListBoxPixmap(TQListBox * /TransferThis/,const TQPixmap &, + const TQString &); + TQListBoxPixmap(const TQPixmap &,const TQString &); + TQListBoxPixmap(TQListBox * /TransferThis/,const TQPixmap &, + const TQString &,TQListBoxItem *); %End - const QPixmap *pixmap() const; -%If (Qt_2_00 -) - int height(const QListBox *) const; - int width(const QListBox *) const; + const TQPixmap *pixmap() const; +%If (TQt_2_00 -) + int height(const TQListBox *) const; + int width(const TQListBox *) const; %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) int rtti() const; %End protected: - void paint(QPainter *); -%If (- Qt_2_00) - int height(const QListBox *) const; - int width(const QListBox *) const; + void paint(TQPainter *); +%If (- TQt_2_00) + int height(const TQListBox *) const; + int width(const TQListBox *) const; %End private: - QListBoxPixmap(const QListBoxPixmap &); + TQListBoxPixmap(const TQListBoxPixmap &); }; |