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