#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './aboutdlgbase.ui' ** ** Created: Вск Мар 4 15:40:42 2007 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.7 edited Aug 31 2005 $) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "aboutdlgbase.h" #include #include #include #include #include #include #include #include #include #include #include "textshow.h" /* * 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 ) { 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::fromLatin1("") ); 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::fromLatin1("") ); tabTranslation = new QWidget( tabMain, "tabTranslation" ); tabTranslationLayout = new QVBoxLayout( tabTranslation, 11, 6, "tabTranslationLayout"); txtTranslations = new TextShow( tabTranslation, "txtTranslations" ); tabTranslationLayout->addWidget( txtTranslations ); tabMain->insertTab( tabTranslation, QString::fromLatin1("") ); 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::fromLatin1("") ); 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"); Spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout3->addItem( Spacer2 ); 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"