/****************************************************************************
** Form implementation generated from reading ui file 'about.ui'
**
** Created by: The TQt user interface compiler (TQt 3.5.0)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "about.h"

#include <ntqvariant.h>
#include <ntqlabel.h>
#include <ntqpushbutton.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqimage.h>
#include <ntqpixmap.h>

/*
 *  Constructs a AboutDialog as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qdialog will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qdialog.
 */
AboutDialog::AboutDialog( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "AboutDialog" );
    AboutDialogLayout = new TQVBoxLayout( this, 11, 6, "AboutDialogLayout"); 

    PixmapLabel1 = new TQLabel( this, "PixmapLabel1" );
    PixmapLabel1->setFrameShape( TQLabel::NoFrame );
    PixmapLabel1->setFrameShadow( TQLabel::Plain );
    PixmapLabel1->setPixmap( TQPixmap::fromMimeSource( "splash.png" ) );
    PixmapLabel1->setScaledContents( false );
    PixmapLabel1->setAlignment( int( TQLabel::AlignCenter ) );
    AboutDialogLayout->addWidget( PixmapLabel1 );

    versionLabel = new TQLabel( this, "versionLabel" );
    versionLabel->setAlignment( int( TQLabel::AlignCenter ) );
    AboutDialogLayout->addWidget( versionLabel );

    TextLabel1_2 = new TQLabel( this, "TextLabel1_2" );
    TextLabel1_2->setAlignment( int( TQLabel::AlignCenter ) );
    AboutDialogLayout->addWidget( TextLabel1_2 );

    TextLabel1_3 = new TQLabel( this, "TextLabel1_3" );
    TextLabel1_3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, TextLabel1_3->sizePolicy().hasHeightForWidth() ) );
    TextLabel1_3->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter | TQLabel::AlignLeft ) );
    AboutDialogLayout->addWidget( TextLabel1_3 );
    Spacer3 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    AboutDialogLayout->addItem( Spacer3 );

    Layout1 = new TQHBoxLayout( 0, 0, 6, "Layout1"); 
    Spacer2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout1->addItem( Spacer2 );

    PushButton1 = new TQPushButton( this, "PushButton1" );
    PushButton1->setAutoDefault( true );
    PushButton1->setDefault( true );
    Layout1->addWidget( PushButton1 );
    Spacer1 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout1->addItem( Spacer1 );
    AboutDialogLayout->addLayout( Layout1 );
    languageChange();
    resize( TQSize(484, 640).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( PushButton1, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void AboutDialog::languageChange()
{
    setCaption( tr( "TQt Linguist" ) );
    TextLabel1_2->setText( tr( "Copyright (C) 2000-2008 Trolltech ASA. All Rights Reserved." ) );
    TextLabel1_3->setText( tr( "<p>TQt Commercial Edition license holders: This program is licensed to you under the terms of the TQt Commercial License Agreement. For details, see the file LICENSE that came with this software distribution.</p><p></p><p>TQt Open Source Edition users: This program is licensed to you under the terms of the GNU General Public License Version 2. For details, see the file LICENSE.GPL that came with this software distribution.</p><p>The program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.</p>" ) );
    PushButton1->setText( tr( "OK" ) );
}

void AboutDialog::init()
{
}

void AboutDialog::destroy()
{
}

