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


/****************************************************************************
** $Id: qprogdlg.h,v 2.11 1997/10/09 16:56:48 warwick Exp $
**
** Definition of QProgressDialog class
**
** Created : 970520
**
** Copyright (C) 1997 by Troll Tech AS.  All rights reserved.
**
*****************************************************************************/

#ifndef QPROGDLG_H
#define QPROGDLG_H

#include "qsemimodal.h"
#include "qpushbt.h"
#include "qlabel.h"
#include "qprogbar.h"

struct QProgressData;


class QProgressDialog : public QSemiModal
{
    Q_OBJECT
public:
    QProgressDialog( QWidget *parent=0, const char *name=0, bool modal=FALSE,
                     WFlags f=0 );
    QProgressDialog( const char *labelText, const char *cancelButtonText,
                     int totalSteps, QWidget *parent=0, const char *name=0,
                     bool modal=FALSE, WFlags f=0 );
   ~QProgressDialog();

    void        setLabel( QLabel * );
    void        setCancelButton( QPushButton * );
    void        setBar( QProgressBar * );

    bool        wasCancelled() const;

    int         totalSteps() const;
    int         progress()   const;

    QSize       sizeHint() const;

public slots:
    void        cancel();
    void        reset();
    void        setTotalSteps( int totalSteps );
    void        setProgress( int progress );
    void        setLabelText( const char * );
    void        setCancelButtonText( const char * );

signals:
    void        cancelled();

protected:
    void        resizeEvent( QResizeEvent * );
    void        styleChange(GUIStyle);

private:
    void           init( QWidget *creator, const char* lbl, const char* canc,
                         int totstps);
    void           center();
    void           layout();
    QLabel        *label()  const;
    QProgressBar  *bar()    const;
    QProgressData *d;

private:        // Disabled copy constructor and operator=
    QProgressDialog( const QProgressDialog & ) {}
    QProgressDialog &operator=( const QProgressDialog & ) { return *this; }
};


#endif // QPROGDLG_H


Generated at 19:08, 1997/10/09 for Qt version 1.31 by the webmaster at Troll Tech