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