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