This is the verbatim text of the qpushbt.h include file. It is is provided only for illustration; the copyright remains with Troll Tech.


/****************************************************************************
** $Id: qpushbt.h,v 1.15 1995/06/06 02:00:49 hanord Exp $
**
** Definition of QPushButton class
**
** Author  : Haavard Nord
** Created : 940221
**
** Copyright (C) 1994,1995 by Troll Tech AS.  All rights reserved.
**
*****************************************************************************/

#ifndef QPUSHBT_H
#define QPUSHBT_H

#include "qbutton.h"


class QPushButton : public QButton
{
friend class QDialog;
    Q_OBJECT
public:
    QPushButton( QWidget *parent=0, const char *name=0 );
    QPushButton( const char *text, QWidget *parent=0, const char *name=0 );

    bool        autoDefault()   const   { return autoDefButton; }
    void        setAutoDefault( bool autoDef );

    bool        isDefault()     const   { return defButton; }
    void        setDefault( bool def );

    void        adjustSize();

  // Reimplemented move,resize and setGeometry
    void        move( int x, int y );
    void        move( const QPoint &p );
    void        resize( int w, int h );
    void        resize( const QSize & );
    void        setGeometry( int x, int y, int w, int h );
    void        setGeometry( const QRect & );

protected:
    void        drawButton( QPainter * );
    virtual void drawButtonFace( QPainter * );

private:
    void        init();

    uint        autoDefButton   : 1;
    uint        defButton       : 1;
    uint        lastDown        : 1;
    uint        lastDef         : 1;
};


#endif // QPUSHBT_H


Generated at 16:17, 1995/06/30 by the webmaster at Troll Tech