diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-29 01:11:08 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-11-29 01:11:08 -0600 |
commit | 8a055d66f43592c257cece2eb8cc021808062917 (patch) | |
tree | d0922f201bd5d24b62a33160d1d9baf9e89f9a70 /sip/qt/qspinbox.sip | |
parent | b388516ca2691303a076a0764fd40bf7116fe43d (diff) | |
download | pytqt-8a055d66f43592c257cece2eb8cc021808062917.tar.gz pytqt-8a055d66f43592c257cece2eb8cc021808062917.zip |
Initial TQt conversion
Diffstat (limited to 'sip/qt/qspinbox.sip')
-rw-r--r-- | sip/qt/qspinbox.sip | 166 |
1 files changed, 83 insertions, 83 deletions
diff --git a/sip/qt/qspinbox.sip b/sip/qt/qspinbox.sip index fad9621..1f9025e 100644 --- a/sip/qt/qspinbox.sip +++ b/sip/qt/qspinbox.sip @@ -1,27 +1,27 @@ -// This is the SIP interface definition for QSpinBox. +// This is the SIP interface definition for TQSpinBox. // // 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>QSpinBox</Title> +<Sect2><Title>TQSpinBox</Title> <FuncSynopsis> <FuncDef>virtual int <Function>mapTextToValue</Function></FuncDef> <ParamDef>bool *<Parameter>ok</Parameter></ParamDef> @@ -34,26 +34,26 @@ This returns a tuple of the <Literal>int</Literal> result and the modified %End -%If (Qt_3_0_0 -) +%If (TQt_3_0_0 -) -class QSpinBox : QWidget, QRangeControl +class TQSpinBox : TQWidget, TQRangeControl { %TypeHeaderCode #include <qspinbox.h> %End public: - QSpinBox(QWidget * /TransferThis/ = 0,const char * = 0); - QSpinBox(int,int,int = 1,QWidget * /TransferThis/ = 0,const char * = 0); + TQSpinBox(TQWidget * /TransferThis/ = 0,const char * = 0); + TQSpinBox(int,int,int = 1,TQWidget * /TransferThis/ = 0,const char * = 0); - QString text() const; + TQString text() const; - virtual QString prefix() const; - virtual QString suffix() const; - virtual QString cleanText() const; + virtual TQString prefix() const; + virtual TQString suffix() const; + virtual TQString cleanText() const; - virtual void setSpecialValueText(const QString &); - QString specialValueText() const; + virtual void setSpecialValueText(const TQString &); + TQString specialValueText() const; virtual void setWrapping(bool); bool wrapping() const; @@ -66,11 +66,11 @@ public: virtual void setButtonSymbols(ButtonSymbols); ButtonSymbols buttonSymbols() const; - virtual void setValidator(const QValidator *); - const QValidator *validator() const; + virtual void setValidator(const TQValidator *); + const TQValidator *validator() const; - QSize sizeHint() const; - QSize minimumSizeHint() const; + TQSize sizeHint() const; + TQSize minimumSizeHint() const; int minValue() const; int maxValue() const; @@ -80,13 +80,13 @@ public: void setLineStep(int); int value() const; - QRect upRect() const; - QRect downRect() const; + TQRect upRect() const; + TQRect downRect() const; public slots: virtual void setValue(int); - virtual void setPrefix(const QString &); - virtual void setSuffix(const QString &); + virtual void setPrefix(const TQString &); + virtual void setSuffix(const TQString &); virtual void stepUp(); virtual void stepDown(); virtual void setEnabled(bool); @@ -94,104 +94,104 @@ public slots: signals: void valueChanged(int); - void valueChanged(const QString &); + void valueChanged(const TQString &); protected: - virtual QString mapValueToText(int); + virtual TQString mapValueToText(int); virtual int mapTextToValue(bool *); - QString currentValueText(); + TQString currentValueText(); virtual void updateDisplay(); virtual void interpretText(); - QLineEdit *editor() const; + TQLineEdit *editor() const; virtual void valueChange(); virtual void rangeChange(); - bool eventFilter(QObject *,QEvent *); - void resizeEvent(QResizeEvent *); - void wheelEvent(QWheelEvent *); - void leaveEvent(QEvent *); + bool eventFilter(TQObject *,TQEvent *); + void resizeEvent(TQResizeEvent *); + void wheelEvent(TQWheelEvent *); + void leaveEvent(TQEvent *); - void styleChange(QStyle &); + void styleChange(TQStyle &); protected slots: void textChanged(); private: - QSpinBox(const QSpinBox &); + TQSpinBox(const TQSpinBox &); }; %End -%If (- Qt_3_0_0) +%If (- TQt_3_0_0) -class QSpinBox : QFrame, QRangeControl +class TQSpinBox : TQFrame, TQRangeControl { %TypeHeaderCode #include <qspinbox.h> %End public: - QSpinBox(QWidget * /TransferThis/ = 0,const char * = 0); - QSpinBox(int,int,int = 1,QWidget * /TransferThis/ = 0,const char * = 0); + TQSpinBox(TQWidget * /TransferThis/ = 0,const char * = 0); + TQSpinBox(int,int,int = 1,TQWidget * /TransferThis/ = 0,const char * = 0); -%If (- Qt_2_00) +%If (- TQt_2_00) const char *text() const; virtual const char *prefix() const; virtual const char *suffix() const; %End -%If (Qt_2_00 -) - QString text() const; +%If (TQt_2_00 -) + TQString text() const; - virtual QString prefix() const; - virtual QString suffix() const; + virtual TQString prefix() const; + virtual TQString suffix() const; %End - virtual QString cleanText() const; + virtual TQString cleanText() const; -%If (- Qt_2_00) +%If (- TQt_2_00) void setSpecialValueText(const char *); const char *specialValueText() const; void setWrapping(bool); %End -%If (Qt_2_00 -) - virtual void setSpecialValueText(const QString &); - QString specialValueText() const; +%If (TQt_2_00 -) + virtual void setSpecialValueText(const TQString &); + TQString specialValueText() const; virtual void setWrapping(bool); %End bool wrapping() const; -%If (Qt_2_1_0 -) +%If (TQt_2_1_0 -) enum ButtonSymbols { UpDownArrows, PlusMinus }; %End -%If (Qt_2_1_0 -) +%If (TQt_2_1_0 -) void setButtonSymbols(ButtonSymbols); ButtonSymbols buttonSymbols() const; %End -%If (- Qt_2_00) - void setValidator(QValidator *); +%If (- TQt_2_00) + void setValidator(TQValidator *); %End -%If (Qt_2_00 -) - virtual void setValidator(const QValidator *); - const QValidator *validator() const; +%If (TQt_2_00 -) + virtual void setValidator(const TQValidator *); + const TQValidator *validator() const; %End - QSize sizeHint() const; -%If (Qt_2_00 -) - QSizePolicy sizePolicy() const; + TQSize sizeHint() const; +%If (TQt_2_00 -) + TQSizePolicy sizePolicy() const; %End -%If (Qt_2_1_0 -) +%If (TQt_2_1_0 -) int minValue() const; int maxValue() const; void setMinValue(int); @@ -203,66 +203,66 @@ public: public slots: virtual void setValue(int); -%If (- Qt_2_00) +%If (- TQt_2_00) virtual void setPrefix(const char *); virtual void setSuffix(const char *); %End -%If (Qt_2_00 -) - virtual void setPrefix(const QString &); - virtual void setSuffix(const QString &); +%If (TQt_2_00 -) + virtual void setPrefix(const TQString &); + virtual void setSuffix(const TQString &); %End virtual void stepUp(); virtual void stepDown(); -%If (Qt_2_00 -) +%If (TQt_2_00 -) virtual void setEnabled(bool); %End signals: void valueChanged(int); -%If (- Qt_2_00) +%If (- TQt_2_00) void valueChanged(const char *); %End -%If (Qt_2_00 -) - void valueChanged(const QString &); +%If (TQt_2_00 -) + void valueChanged(const TQString &); %End protected: - virtual QString mapValueToText(int); + virtual TQString mapValueToText(int); virtual int mapTextToValue(bool *); - QString currentValueText(); + TQString currentValueText(); virtual void updateDisplay(); virtual void interpretText(); - QPushButton *upButton() const; - QPushButton *downButton() const; + TQPushButton *upButton() const; + TQPushButton *downButton() const; - QLineEdit *editor() const; + TQLineEdit *editor() const; virtual void valueChange(); virtual void rangeChange(); - bool eventFilter(QObject *,QEvent *); - void resizeEvent(QResizeEvent *); -%If (- Qt_2_00) - void paletteChange(const QPalette &); + bool eventFilter(TQObject *,TQEvent *); + void resizeEvent(TQResizeEvent *); +%If (- TQt_2_00) + void paletteChange(const TQPalette &); void enabledChange(bool); - void fontChange(const QFont &); + void fontChange(const TQFont &); void styleChange(GUIStyle); %End -%If (Qt_2_00 -) - void wheelEvent(QWheelEvent *); - void styleChange(QStyle &); +%If (TQt_2_00 -) + void wheelEvent(TQWheelEvent *); + void styleChange(TQStyle &); %End -%If (Qt_2_1_0 -) - void leaveEvent(QEvent *); +%If (TQt_2_1_0 -) + void leaveEvent(TQEvent *); %End protected slots: void textChanged(); private: - QSpinBox(const QSpinBox &); + TQSpinBox(const TQSpinBox &); }; %End |