// qabstractbutton.sip generated by MetaSIP on Fri Sep 28 17:07:47 2007 // // This file is part of the QtGui Python extension module. // // Copyright (c) 2007 // Phil Thompson // // This file is part of PyQt. // // This copy of PyQt is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License version 2 as published by // the Free Software Foundation and appearing in the file LICENSE included in the // packaging of this file. // // PyQt 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, // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. class QAbstractButton : QWidget { %TypeHeaderCode #include %End public: explicit QAbstractButton(QWidget *parent /TransferThis/ = 0); virtual ~QAbstractButton(); %If (Qt_4_2_0 -) void setAutoRepeatDelay(int); %End %If (Qt_4_2_0 -) int autoRepeatDelay() const; %End %If (Qt_4_2_0 -) void setAutoRepeatInterval(int); %End %If (Qt_4_2_0 -) int autoRepeatInterval() const; %End void setText(const QString &text); QString text() const; void setIcon(const QIcon &icon); QIcon icon() const; QSize iconSize() const; void setShortcut(const QKeySequence &key); QKeySequence shortcut() const; void setCheckable(bool); bool isCheckable() const; bool isChecked() const; void setDown(bool); bool isDown() const; void setAutoRepeat(bool); bool autoRepeat() const; void setAutoExclusive(bool); bool autoExclusive() const; QButtonGroup *group() const; public slots: void setIconSize(const QSize &size); void animateClick(int msec = 100); void click(); void toggle(); void setChecked(bool); signals: void pressed(); void released(); void clicked(bool checked = false); void toggled(bool checked); protected: virtual void paintEvent(QPaintEvent *e) = 0; virtual bool hitButton(const QPoint &pos) const; virtual void checkStateSet(); virtual void nextCheckState(); virtual bool event(QEvent *e); virtual void keyPressEvent(QKeyEvent *e); virtual void keyReleaseEvent(QKeyEvent *e); virtual void mousePressEvent(QMouseEvent *e); virtual void mouseReleaseEvent(QMouseEvent *e); virtual void mouseMoveEvent(QMouseEvent *e); virtual void focusInEvent(QFocusEvent *e); virtual void focusOutEvent(QFocusEvent *e); virtual void changeEvent(QEvent *e); virtual void timerEvent(QTimerEvent *e); };