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