#include "simapi.h"
/****************************************************************************
** Form implementation generated from reading ui file './aboutdlgbase.ui'
**
** Created: вт мар 30 16:46:20 2004
**      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 "aboutdlgbase.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qtabwidget.h>
#include <qwidget.h>
#include <qframe.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

#include "textshow.h"
static const char* const img0_aboutdlgbase[] = { 
"22 22 2 1",
". c None",
"# c #a1c410",
"........######........",
".....###########......",
"....##############....",
"...################...",
"..######......######..",
"..#####........#####..",
".#####.......#..#####.",
".####.......###..####.",
"####.......#####..####",
"####......#####...####",
"####....#######...####",
"####....######....####",
"####...########...####",
".####.##########..####",
".####..####.#########.",
".#####..##...########.",
"..#####.......#######.",
"..######......######..",
"...###################",
"....##################",
"......###########.###.",
"........######.....#.."};


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

    tabMain = new QTabWidget( this, "tabMain" );

    tab = new QWidget( tabMain, "tab" );
    tabLayout = new QVBoxLayout( tab, 11, 6, "tabLayout"); 

    txtAbout = new TextShow( tab, "txtAbout" );
    tabLayout->addWidget( txtAbout );
    tabMain->insertTab( tab, QString("") );

    tab_2 = new QWidget( tabMain, "tab_2" );
    tabLayout_2 = new QVBoxLayout( tab_2, 11, 6, "tabLayout_2"); 

    txtAuthors = new TextShow( tab_2, "txtAuthors" );
    txtAuthors->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, txtAuthors->sizePolicy().hasHeightForWidth() ) );
    tabLayout_2->addWidget( txtAuthors );
    tabMain->insertTab( tab_2, QString("") );

    tabTranslation = new QWidget( tabMain, "tabTranslation" );
    tabTranslationLayout = new QVBoxLayout( tabTranslation, 11, 6, "tabTranslationLayout"); 

    txtTranslations = new TextShow( tabTranslation, "txtTranslations" );
    tabTranslationLayout->addWidget( txtTranslations );
    tabMain->insertTab( tabTranslation, QString("") );

    tab_3 = new QWidget( tabMain, "tab_3" );
    tabLayout_3 = new QVBoxLayout( tab_3, 11, 6, "tabLayout_3"); 

    txtLicence = new TextShow( tab_3, "txtLicence" );
    tabLayout_3->addWidget( txtLicence );
    tabMain->insertTab( tab_3, QString("") );

    AboutLayout->addMultiCellWidget( tabMain, 1, 1, 0, 1 );

    Line2 = new QFrame( this, "Line2" );
    Line2->setProperty( "frameShape", "HLine" );
    Line2->setProperty( "frameShadow", "Sunken" );
    Line2->setProperty( "frameShape", QFrame::VLine );
    Line2->setProperty( "frameShape", "HLine" );

    AboutLayout->addMultiCellWidget( Line2, 2, 2, 0, 1 );

    Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3"); 
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout3->addItem( spacer );

    btnOK = new QPushButton( this, "btnOK" );
    Layout3->addWidget( btnOK );

    AboutLayout->addMultiCellLayout( Layout3, 3, 3, 0, 1 );

    lblIcon = new QLabel( this, "lblIcon" );
    lblIcon->setProperty( "alignment", int( QLabel::AlignCenter ) );

    AboutLayout->addWidget( lblIcon, 0, 0 );

    edtVersion = new QLineEdit( this, "edtVersion" );
    edtVersion->setProperty( "frame", QVariant( FALSE, 0 ) );

    AboutLayout->addWidget( edtVersion, 0, 1 );
    languageChange();
    resize( QSize(349, 295).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void AboutDlgBase::languageChange()
{
    setProperty( "caption", i18n( "About SIM" ) );
    tabMain->changeTab( tab, i18n( "About" ) );
    tabMain->changeTab( tab_2, i18n( "Authors" ) );
    tabMain->changeTab( tabTranslation, i18n( "Translation" ) );
    tabMain->changeTab( tab_3, i18n( "License" ) );
    btnOK->setProperty( "text", i18n( "&Close" ) );
    lblIcon->setProperty( "text", QString::null );
}

#include "aboutdlgbase.moc"
