author | insilmaril |
Mon Oct 22 09:50:08 2007 +0000 (2007-10-22) | |
changeset 608 | 6cdc2e7b1937 |
parent 388 | 3a58c9ef4a18 |
permissions | -rw-r--r-- |
insilmaril@388 | 1 |
#ifndef WARNINGDIALOG_H |
insilmaril@388 | 2 |
#define WARNINGDIALOG_H |
insilmaril@388 | 3 |
|
insilmaril@388 | 4 |
#include "ui_warningdialog.h" |
insilmaril@388 | 5 |
|
insilmaril@388 | 6 |
class WarningDialog : public QDialog |
insilmaril@388 | 7 |
{ |
insilmaril@388 | 8 |
Q_OBJECT |
insilmaril@388 | 9 |
|
insilmaril@388 | 10 |
public: |
insilmaril@388 | 11 |
WarningDialog(QWidget* parent = 0); |
insilmaril@433 | 12 |
int exec(); |
insilmaril@388 | 13 |
|
insilmaril@388 | 14 |
public slots: |
insilmaril@388 | 15 |
virtual void showCancelButton( bool b ); |
insilmaril@388 | 16 |
virtual void setShowAgainName( const QString & s ); |
insilmaril@388 | 17 |
virtual void setText( const QString & s ); |
insilmaril@388 | 18 |
virtual void setCaption( const QString & s ); |
insilmaril@388 | 19 |
|
insilmaril@388 | 20 |
private: |
insilmaril@388 | 21 |
void init(); |
insilmaril@388 | 22 |
bool useShowAgain; |
insilmaril@388 | 23 |
QString showAgainName; |
insilmaril@388 | 24 |
Ui::WarningDialog ui; |
insilmaril@388 | 25 |
|
insilmaril@388 | 26 |
}; |
insilmaril@388 | 27 |
|
insilmaril@388 | 28 |
#endif // WARNINGDIALOG_H |