#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './encodingdlgbase.ui' ** ** Created: Вск Мар 4 15:40:51 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 "encodingdlgbase.h" #include #include #include #include #include #include #include /* * Constructs a EncodingDlgBase 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. */ EncodingDlgBase::EncodingDlgBase( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "EncodingDlg" ); setProperty( "sizeGripEnabled", QVariant( TRUE, 0 ) ); EncodingDlgLayout = new QVBoxLayout( this, 11, 6, "EncodingDlgLayout"); TextLabel1 = new QLabel( this, "TextLabel1" ); TextLabel1->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)7, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) ); TextLabel1->setProperty( "alignment", int( QLabel::WordBreak | QLabel::AlignCenter ) ); EncodingDlgLayout->addWidget( TextLabel1 ); TextLabel2 = new QLabel( this, "TextLabel2" ); EncodingDlgLayout->addWidget( TextLabel2 ); cmbEncoding = new QComboBox( FALSE, this, "cmbEncoding" ); EncodingDlgLayout->addWidget( cmbEncoding ); Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); Horizontal_Spacing2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout1->addItem( Horizontal_Spacing2 ); buttonOk = new QPushButton( this, "buttonOk" ); buttonOk->setProperty( "autoDefault", QVariant( TRUE, 0 ) ); buttonOk->setProperty( "default", QVariant( TRUE, 0 ) ); Layout1->addWidget( buttonOk ); buttonCancel = new QPushButton( this, "buttonCancel" ); buttonCancel->setProperty( "autoDefault", QVariant( TRUE, 0 ) ); Layout1->addWidget( buttonCancel ); EncodingDlgLayout->addLayout( Layout1 ); languageChange(); resize( QSize(311, 180).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) ); connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); } /* * Destroys the object and frees any allocated resources */ EncodingDlgBase::~EncodingDlgBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void EncodingDlgBase::languageChange() { setProperty( "caption", i18n( "Choose default encoding" ) ); TextLabel1->setProperty( "text", i18n( "Your current system encoding (UTF-8) may cause problems saving your personal information and reading offline messages from other users." ) ); TextLabel2->setProperty( "text", i18n( "You will choose the coding by default which want to use:" ) ); buttonOk->setProperty( "text", i18n( "&OK" ) ); buttonCancel->setProperty( "text", i18n( "&Cancel" ) ); } #include "encodingdlgbase.moc"