#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './rndhelpwnd.ui'
**
** Created: Son Mai 18 19:32:44 2003
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.1.2   edited Dec 19 11:45 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "rndhelpwnd.h"

#include <qvariant.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a RndHelpWnd as a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f'.
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
RndHelpWnd::RndHelpWnd( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "RndHelpWnd" );

    textLabel4 = new QLabel( this, "textLabel4" );
    textLabel4->setGeometry( QRect( 10, 10, 470, 130 ) );
    textLabel4->setAlignment( int( QLabel::WordBreak | QLabel::AlignCenter ) );

    closeButton = new QPushButton( this, "closeButton" );
    closeButton->setGeometry( QRect( 180, 180, 114, 27 ) );

    disableCheckBox = new QCheckBox( this, "disableCheckBox" );
    disableCheckBox->setGeometry( QRect( 90, 150, 310, 20 ) );
    languageChange();
    resize( QSize(495, 221).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( closeButton, SIGNAL( clicked() ), this, SLOT( close() ) );
}

/*
 *  Destroys the object and frees any allocated resources
 */
RndHelpWnd::~RndHelpWnd()
{
    // no need to delete child widgets, Qt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void RndHelpWnd::languageChange()
{
    setCaption( tr2i18n( "How to use the randomizer?" ) );
    textLabel4->setText( tr2i18n( "The \"randomizer\"-Window is used to generate real random numbers from which the password characters are calculated.\n"
"The randomizer uses mouse-movements to generate these random numbers. So just move your mouse over that window, and you will see the progess of the password-generartion-process at \"Status overview\" in the main-window of PwG." ) );
    closeButton->setText( tr2i18n( "&OK" ) );
    disableCheckBox->setText( tr2i18n( "don't show this help-window again." ) );
}

#include "rndhelpwnd.moc"


syntax highlighted by Code2HTML, v. 0.9.1