author | insilmaril |
Fri Jun 16 08:27:11 2006 +0000 (2006-06-16) | |
changeset 352 | 72e78075ad73 |
child 366 | e95081c21da2 |
permissions | -rw-r--r-- |
insilmaril@343 | 1 |
/**************************************************************************** |
insilmaril@343 | 2 |
** ui.h extension file, included from the uic-generated form implementation. |
insilmaril@343 | 3 |
** |
insilmaril@343 | 4 |
** If you want to add, delete, or rename functions or slots, use |
insilmaril@343 | 5 |
** Qt Designer to update this file, preserving your code. |
insilmaril@343 | 6 |
** |
insilmaril@343 | 7 |
** You should not define a constructor or destructor in this file. |
insilmaril@343 | 8 |
** Instead, write your code in functions called init() and destroy(). |
insilmaril@343 | 9 |
** These will automatically be called by the form's constructor and |
insilmaril@343 | 10 |
** destructor. |
insilmaril@343 | 11 |
*****************************************************************************/ |
insilmaril@343 | 12 |
|
insilmaril@343 | 13 |
void WarningDialog::init() |
insilmaril@343 | 14 |
{ |
insilmaril@343 | 15 |
warningSign->setPixmap (QPixmap("icons/vym.png")); |
insilmaril@343 | 16 |
setCancelButton (false); |
insilmaril@343 | 17 |
okButton->setText(tr("Proceed")); |
insilmaril@343 | 18 |
showAgainBox->setText (tr("Show this message again")); |
insilmaril@343 | 19 |
useShowAgain=false; |
insilmaril@343 | 20 |
showAgainBox->hide(); |
insilmaril@343 | 21 |
} |
insilmaril@343 | 22 |
|
insilmaril@343 | 23 |
void WarningDialog::setCancelButton (bool b) |
insilmaril@343 | 24 |
{ |
insilmaril@343 | 25 |
if (b) |
insilmaril@343 | 26 |
{ |
insilmaril@343 | 27 |
cancelButton->show(); |
insilmaril@343 | 28 |
cancelButton->setText(tr("Cancel")); |
insilmaril@343 | 29 |
} else |
insilmaril@343 | 30 |
cancelButton->hide(); |
insilmaril@343 | 31 |
} |
insilmaril@343 | 32 |
|
insilmaril@343 | 33 |
void WarningDialog::setShowAgainName (const QString &s) |
insilmaril@343 | 34 |
{ |
insilmaril@343 | 35 |
showAgainName=s; |
insilmaril@343 | 36 |
useShowAgain=true; |
insilmaril@343 | 37 |
showAgainBox->show(); |
insilmaril@343 | 38 |
} |
insilmaril@343 | 39 |
|
insilmaril@343 | 40 |
void WarningDialog::setText (const QString &s) |
insilmaril@343 | 41 |
{ |
insilmaril@343 | 42 |
textLabel->setText(s); |
insilmaril@343 | 43 |
} |
insilmaril@343 | 44 |
|
insilmaril@343 | 45 |
void WarningDialog::setCaption(const QString &s) |
insilmaril@343 | 46 |
{ |
insilmaril@343 | 47 |
QDialog::setCaption("VYM - "+s); |
insilmaril@343 | 48 |
} |