This is the verbatim text of the qmsgbox.h include file. It is is provided only for illustration; the copyright remains with Troll Tech
/**************************************************************************** ** $Id: qmsgbox.h,v 2.9 1997/03/23 17:51:15 hanord Exp $ ** ** Definition of QMessageBox class ** ** Created : 950503 ** ** Copyright (C) 1995-1996 by Troll Tech AS. All rights reserved. ** *****************************************************************************/ #ifndef QMSGBOX_H #define QMSGBOX_H #include "qdialog.h" class QLabel; class QPushButton; class QMessageBox : public QDialog { Q_OBJECT public: static int message( const char *caption, const char *text, const char *buttonText=0, QWidget *parent=0, const char *name=0 ); static bool query( const char *caption, const char *text, const char *yesButtonText=0, const char *noButtonText=0, QWidget *parent=0, const char *name=0 ); QMessageBox( QWidget *parent=0, const char *name=0 ); const char *text() const; void setText( const char * ); const char *buttonText() const; void setButtonText( const char * ); void adjustSize(); protected: void resizeEvent( QResizeEvent * ); private: QLabel *label; QPushButton *button; void *reserved1; void *reserved2; QPushButton *button2() { return (QPushButton*) reserved1; } private: // Disabled copy constructor and operator= QMessageBox( const QMessageBox & ) {} QMessageBox &operator=( const QMessageBox & ) { return *this; } }; #endif // QMSGBOX_H