/****************************************************************************
** Form implementation generated from reading ui file 'toaboutui.ui'
**
** Created: Tue Sep 18 08:21:27 2007
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.8   edited Jan 11 14:47 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "toaboutui.h"

#include <qvariant.h>
#include <qtextview.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/*
 *  Constructs a toAboutUI 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.
 */
toAboutUI::toAboutUI( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "toAboutUI" );
    toAboutUILayout = new QGridLayout( this, 1, 1, 11, 6, "toAboutUILayout"); 

    TextView = new QTextView( this, "TextView" );
    TextView->setTextFormat( QTextView::RichText );

    toAboutUILayout->addMultiCellWidget( TextView, 0, 0, 0, 3 );

    OkButton = new QPushButton( this, "OkButton" );
    OkButton->setDefault( TRUE );

    toAboutUILayout->addWidget( OkButton, 1, 2 );

    CancelButton = new QPushButton( this, "CancelButton" );

    toAboutUILayout->addWidget( CancelButton, 1, 3 );
    Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    toAboutUILayout->addItem( Spacer1, 1, 1 );
    languageChange();
    resize( QSize(475, 400).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( OkButton, SIGNAL( clicked() ), this, SLOT( accept() ) );
    connect( CancelButton, SIGNAL( clicked() ), this, SLOT( reject() ) );

    // tab order
    setTabOrder( TextView, OkButton );
    setTabOrder( OkButton, CancelButton );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void toAboutUI::languageChange()
{
    setCaption( tr( "toAboutUI" ) );
    OkButton->setText( tr( "&Ok" ) );
    CancelButton->setText( tr( "Cancel" ) );
}

