diff options
Diffstat (limited to 'sip/qt/qlineedit.sip')
-rw-r--r-- | sip/qt/qlineedit.sip | 282 |
1 files changed, 141 insertions, 141 deletions
diff --git a/sip/qt/qlineedit.sip b/sip/qt/qlineedit.sip index 47bd3fa..dfe7880 100644 --- a/sip/qt/qlineedit.sip +++ b/sip/qt/qlineedit.sip @@ -1,35 +1,35 @@ -// This is the SIP interface definition for QLineEdit. +// This is the SIP interface definition for TQLineEdit. // // 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>QLineEdit</Title> +<Sect2><Title>TQLineEdit</Title> <FuncSynopsis> <FuncDef>int <Function>characterAt</Function></FuncDef> <ParamDef>int <Parameter>xpos</Parameter></ParamDef> - <ParamDef>QChar *<Parameter>chr</Parameter></ParamDef> + <ParamDef>TQChar *<Parameter>chr</Parameter></ParamDef> </FuncSynopsis> <Para> This takes only the <Literal>xpos</Literal> parameter and returns the int -result and the <Literal>chr</Literal> value as a tuple. (Qt v3+) +result and the <Literal>chr</Literal> value as a tuple. (TQt v3+) </Para> <FuncSynopsis> @@ -37,7 +37,7 @@ result and the <Literal>chr</Literal> value as a tuple. (Qt v3+) <ParamDef></ParamDef> </FuncSynopsis> <Para> -This has been renamed <Literal>delChar</Literal> in Python. (Qt v2+) +This has been renamed <Literal>delChar</Literal> in Python. (TQt v2+) </Para> <FuncSynopsis> @@ -48,31 +48,31 @@ This has been renamed <Literal>delChar</Literal> in Python. (Qt v2+) <Para> This takes no parameters and returns the bool result and the <Literal>start</Literal> and <Literal>end</Literal> values as a tuple. -(Qt v3+) +(TQt v3+) </Para> </Sect2> %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QLineEdit : QFrame +class TQLineEdit : TQFrame { %TypeHeaderCode #include <qlineedit.h> %End public: - QLineEdit(QWidget * /TransferThis/,const char * = 0); - QLineEdit(const QString &,QWidget * /TransferThis/,const char * = 0); -%If (Qt_3_2_0 -) - QLineEdit(const QString &,const QString &,QWidget * /TransferThis/, + TQLineEdit(TQWidget * /TransferThis/,const char * = 0); + TQLineEdit(const TQString &,TQWidget * /TransferThis/,const char * = 0); +%If (TQt_3_2_0 -) + TQLineEdit(const TQString &,const TQString &,TQWidget * /TransferThis/, const char * = 0); %End - QString text() const; + TQString text() const; - QString displayText() const; + TQString displayText() const; int maxLength() const; @@ -88,14 +88,14 @@ public: bool isReadOnly() const; - const QValidator *validator() const; + const TQValidator *validator() const; - QSize sizeHint() const; - QSize minimumSizeHint() const; + TQSize sizeHint() const; + TQSize minimumSizeHint() const; int cursorPosition() const; // Obsolete. - bool validateAndSet(const QString &,int,int,int); + bool validateAndSet(const TQString &,int,int,int); int alignment() const; @@ -108,7 +108,7 @@ public: void home(bool); void end(bool); -%If (Qt_3_2_0 -) +%If (TQt_3_2_0 -) bool isModified() const; void clearModified(); %End @@ -119,8 +119,8 @@ public: void setEdited(bool); bool hasSelectedText() const; - QString selectedText() const; -%If (Qt_3_2_0 -) + TQString selectedText() const; +%If (TQt_3_2_0 -) int selectionStart() const; %End @@ -129,18 +129,18 @@ public: bool dragEnabled() const; -%If (Qt_3_2_0 -) - QString inputMask() const; - void setInputMask(const QString &); +%If (TQt_3_2_0 -) + TQString inputMask() const; + void setInputMask(const TQString &); bool hasAcceptableInput() const; %End public slots: - virtual void setText(const QString &); + virtual void setText(const TQString &); virtual void selectAll(); virtual void deselect(); virtual void clearValidator(); - virtual void insert(const QString &); + virtual void insert(const TQString &); virtual void clear(); virtual void undo(); virtual void redo(); @@ -148,13 +148,13 @@ public slots: virtual void setFrame(bool); virtual void setEchoMode(EchoMode); virtual void setReadOnly(bool); - virtual void setValidator(const QValidator *); - virtual void setFont(const QFont &); - virtual void setPalette(const QPalette &); + virtual void setValidator(const TQValidator *); + virtual void setFont(const TQFont &); + virtual void setPalette(const TQPalette &); virtual void setSelection(int,int); virtual void setCursorPosition(int); virtual void setAlignment(int); -%If (Qt_CLIPBOARD) +%If (TQt_CLIPBOARD) virtual void cut(); virtual void copy() const; virtual void paste(); @@ -162,53 +162,53 @@ public slots: virtual void setDragEnabled(bool); signals: - void textChanged(const QString &); + void textChanged(const TQString &); void returnPressed(); -%If (Qt_3_1_0 -) +%If (TQt_3_1_0 -) void lostFocus(); %End void selectionChanged(); protected: - bool event(QEvent *); - void mousePressEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseDoubleClickEvent(QMouseEvent *); - void keyPressEvent(QKeyEvent *); - void imStartEvent(QIMEvent *); - void imComposeEvent(QIMEvent *); - void imEndEvent(QIMEvent *); - void focusInEvent(QFocusEvent *); - void focusOutEvent(QFocusEvent *); - void resizeEvent(QResizeEvent *); - void drawContents(QPainter *); -%If (Qt_DRAGANDDROP) - void dragEnterEvent(QDragEnterEvent *); - void dragMoveEvent(QDragMoveEvent *); - void dragLeaveEvent(QDragLeaveEvent *); - void dropEvent(QDropEvent *); -%End - void contextMenuEvent(QContextMenuEvent *); - virtual QPopupMenu *createPopupMenu() /Factory/; + bool event(TQEvent *); + void mousePressEvent(TQMouseEvent *); + void mouseMoveEvent(TQMouseEvent *); + void mouseReleaseEvent(TQMouseEvent *); + void mouseDoubleClickEvent(TQMouseEvent *); + void keyPressEvent(TQKeyEvent *); + void imStartEvent(TQIMEvent *); + void imComposeEvent(TQIMEvent *); + void imEndEvent(TQIMEvent *); + void focusInEvent(TQFocusEvent *); + void focusOutEvent(TQFocusEvent *); + void resizeEvent(TQResizeEvent *); + void drawContents(TQPainter *); +%If (TQt_DRAGANDDROP) + void dragEnterEvent(TQDragEnterEvent *); + void dragMoveEvent(TQDragMoveEvent *); + void dragLeaveEvent(TQDragLeaveEvent *); + void dropEvent(TQDropEvent *); +%End + void contextMenuEvent(TQContextMenuEvent *); + virtual TQPopupMenu *createPopupMenu() /Factory/; void windowActivationChange(bool); public: // These appeared in v3.0.2 but defined as incompatible 3.0 addons, // until v3.1.0. v3.2.0 then defined them as internal and obsolete. -%If (Qt_3_1_0 -) - void setPasswordChar(QChar); - QChar passwordChar() const; +%If (TQt_3_1_0 -) + void setPasswordChar(TQChar); + TQChar passwordChar() const; %End // Obsolete. SIP_PYTUPLE characterAt(int) const; %MethodCode int res; - QChar *chr; + TQChar *chr; Py_BEGIN_ALLOW_THREADS - chr = new QChar(); + chr = new TQChar(); res = sipCpp -> characterAt(a0,chr); Py_END_ALLOW_THREADS @@ -219,50 +219,50 @@ public: bool getSelection(int *,int *); private: - QLineEdit(const QLineEdit &); + TQLineEdit(const TQLineEdit &); }; %End -%If (- Qt_3_0_0) +%If (- TQt_3_0_0) -class QLineEdit : QWidget +class TQLineEdit : TQWidget { %TypeHeaderCode #include <qlineedit.h> %End public: -%If (- Qt_2_00) - QLineEdit(QWidget * /TransferThis/ = 0,const char * = 0); +%If (- TQt_2_00) + TQLineEdit(TQWidget * /TransferThis/ = 0,const char * = 0); %End -%If (Qt_2_00 -) - QLineEdit(QWidget * /TransferThis/,const char * = 0); - QLineEdit(const QString &,QWidget * /TransferThis/,const char * = 0); +%If (TQt_2_00 -) + TQLineEdit(TQWidget * /TransferThis/,const char * = 0); + TQLineEdit(const TQString &,TQWidget * /TransferThis/,const char * = 0); %End -%If (- Qt_2_00) +%If (- TQt_2_00) const char *text() const; %End -%If (Qt_2_00 -) - QString text() const; +%If (TQt_2_00 -) + TQString text() const; - QString displayText() const; + TQString displayText() const; %End -%If (- Qt_2_00) +%If (- TQt_2_00) void setMaxLength(int); %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) virtual void setMaxLength(int); %End int maxLength() const; -%If (- Qt_2_00) +%If (- TQt_2_00) void setFrame(bool); %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) virtual void setFrame(bool); %End bool frame() const; @@ -273,59 +273,59 @@ public: Password }; -%If (- Qt_2_00) +%If (- TQt_2_00) void setEchoMode(EchoMode); %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) virtual void setEchoMode(EchoMode); %End EchoMode echoMode() const; -%If (Qt_2_1_0 -) +%If (TQt_2_1_0 -) void setReadOnly(bool); %End -%If (Qt_2_1_0 -) +%If (TQt_2_1_0 -) bool isReadOnly() const; %End -%If (- Qt_2_00) - void setValidator(QValidator *); - QValidator *validator() const; +%If (- TQt_2_00) + void setValidator(TQValidator *); + TQValidator *validator() const; %End -%If (Qt_2_00 -) - virtual void setValidator(QValidator *); +%If (TQt_2_00 -) + virtual void setValidator(TQValidator *); %End -%If (Qt_2_00 -) - const QValidator *validator() const; +%If (TQt_2_00 -) + const TQValidator *validator() const; %End - QSize sizeHint() const; -%If (Qt_2_00 -) - QSize minimumSizeHint() const; + TQSize sizeHint() const; +%If (TQt_2_00 -) + TQSize minimumSizeHint() const; %End -%If (Qt_2_00 -) - QSizePolicy sizePolicy() const; +%If (TQt_2_00 -) + TQSizePolicy sizePolicy() const; %End -%If (- Qt_2_00) +%If (- TQt_2_00) void setCursorPosition(int); %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) virtual void setCursorPosition(int); %End int cursorPosition() const; -%If (- Qt_2_00) +%If (- TQt_2_00) bool validateAndSet(const char *,int,int,int); %End -%If (Qt_2_00 -) - bool validateAndSet(const QString &,int,int,int); +%If (TQt_2_00 -) + bool validateAndSet(const TQString &,int,int,int); %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) int alignment() const; %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) void cursorLeft(bool,int = 1); void cursorRight(bool,int = 1); void cursorWordForward(bool); @@ -339,89 +339,89 @@ public: bool edited() const; %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) bool hasMarkedText() const; - QString markedText() const; + TQString markedText() const; %End -%If (Qt_CLIPBOARD) +%If (TQt_CLIPBOARD) void cut(); void copy() const; void paste(); %End -%If (- Qt_2_00) +%If (- TQt_2_00) void setEnabled(bool); - void setFont(const QFont &); - void setPalette(const QPalette &); + void setFont(const TQFont &); + void setPalette(const TQPalette &); void setSelection(int,int); %End -%If (Qt_2_00 -) +%If (TQt_2_00 -) virtual void setEnabled(bool); - virtual void setFont(const QFont &); - virtual void setPalette(const QPalette &); + virtual void setFont(const TQFont &); + virtual void setPalette(const TQPalette &); virtual void setSelection(int,int); void setAlignment(int); %End public slots: -%If (- Qt_2_00) +%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 void selectAll(); void deselect(); void clearValidator(); -%If (- Qt_2_00) +%If (- TQt_2_00) void insert(const char *); %End -%If (Qt_2_00 -) - void insert(const QString &); +%If (TQt_2_00 -) + void insert(const TQString &); %End void clear(); signals: -%If (- Qt_2_00) +%If (- TQt_2_00) void textChanged(const char *); %End -%If (Qt_2_00 -) - void textChanged(const QString &); +%If (TQt_2_00 -) + void textChanged(const TQString &); %End void returnPressed(); protected: -%If (Qt_2_2_0 -) - bool event(QEvent *); -%End - void mousePressEvent(QMouseEvent *); - void mouseMoveEvent(QMouseEvent *); - void mouseReleaseEvent(QMouseEvent *); - void mouseDoubleClickEvent(QMouseEvent *); - void keyPressEvent(QKeyEvent *); - void focusInEvent(QFocusEvent *); - void focusOutEvent(QFocusEvent *); - void paintEvent(QPaintEvent *); - void resizeEvent(QResizeEvent *); - void leaveEvent(QEvent *); +%If (TQt_2_2_0 -) + bool event(TQEvent *); +%End + void mousePressEvent(TQMouseEvent *); + void mouseMoveEvent(TQMouseEvent *); + void mouseReleaseEvent(TQMouseEvent *); + void mouseDoubleClickEvent(TQMouseEvent *); + void keyPressEvent(TQKeyEvent *); + void focusInEvent(TQFocusEvent *); + void focusOutEvent(TQFocusEvent *); + void paintEvent(TQPaintEvent *); + void resizeEvent(TQResizeEvent *); + void leaveEvent(TQEvent *); void repaintArea(int,int); -%If (- Qt_2_00) - void timerEvent(QTimerEvent *); - bool event(QEvent *); +%If (- TQt_2_00) + void timerEvent(TQTimerEvent *); + bool event(TQEvent *); bool hasMarkedText() const; - QString markedText() const; + TQString markedText() const; %End -%If (Qt_2_00 -) -%If (Qt_DRAGANDDROP) - void dragEnterEvent(QDragEnterEvent *); - void dropEvent(QDropEvent *); +%If (TQt_2_00 -) +%If (TQt_DRAGANDDROP) + void dragEnterEvent(TQDragEnterEvent *); + void dropEvent(TQDropEvent *); %End %End private: - QLineEdit(const QLineEdit &); + TQLineEdit(const TQLineEdit &); }; %End |