warningdialog.ui.h
author insilmaril
Thu, 14 Sep 2006 11:38:17 +0000
changeset 384 73bfe41502d9
parent 366 e95081c21da2
permissions -rw-r--r--
1.8.57 - more changes in history window, Note Editor is QT4 now
     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 }