warningdialog.ui.h
author insilmaril
Tue, 05 Sep 2006 09:47:13 +0000
changeset 365 1cc73bd7ee1f
parent 343 f5c1cdf79e6e
child 366 e95081c21da2
permissions -rw-r--r--
Moved the qt4-port branch to HEAD
     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 }