#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './nonimbase.ui' ** ** Created: Вск Мар 4 15:40:37 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 "nonimbase.h" #include #include #include #include #include #include #include #include #include /* * Constructs a NonIMBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ NonIMBase::NonIMBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "NonIM" ); NonIMLayout = new QVBoxLayout( this, 0, 6, "NonIMLayout"); grpNIM = new QGroupBox( this, "grpNIM" ); grpNIM->setProperty( "minimumSize", QSize( 200, 0 ) ); grpNIM->setColumnLayout(0, Qt::Vertical ); grpNIM->layout()->setSpacing( 6 ); grpNIM->layout()->setMargin( 11 ); grpNIMLayout = new QVBoxLayout( grpNIM->layout() ); grpNIMLayout->setAlignment( Qt::AlignTop ); TextLabel1 = new QLabel( grpNIM, "TextLabel1" ); grpNIMLayout->addWidget( TextLabel1 ); edtFirst = new QLineEdit( grpNIM, "edtFirst" ); grpNIMLayout->addWidget( edtFirst ); TextLabel2 = new QLabel( grpNIM, "TextLabel2" ); grpNIMLayout->addWidget( TextLabel2 ); edtLast = new QLineEdit( grpNIM, "edtLast" ); grpNIMLayout->addWidget( edtLast ); TextLabel1_2 = new QLabel( grpNIM, "TextLabel1_2" ); grpNIMLayout->addWidget( TextLabel1_2 ); edtNick = new QLineEdit( grpNIM, "edtNick" ); grpNIMLayout->addWidget( edtNick ); lblMail = new QLabel( grpNIM, "lblMail" ); grpNIMLayout->addWidget( lblMail ); edtMail = new QLineEdit( grpNIM, "edtMail" ); grpNIMLayout->addWidget( edtMail ); TextLabel4 = new QLabel( grpNIM, "TextLabel4" ); grpNIMLayout->addWidget( TextLabel4 ); edtPhone = new QLineEdit( grpNIM, "edtPhone" ); grpNIMLayout->addWidget( edtPhone ); NonIMLayout->addWidget( grpNIM ); Spacer7 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); NonIMLayout->addItem( Spacer7 ); languageChange(); resize( QSize(232, 309).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } /* * Destroys the object and frees any allocated resources */ NonIMBase::~NonIMBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void NonIMBase::languageChange() { setProperty( "caption", i18n( "Form2" ) ); grpNIM->setProperty( "title", i18n( "Non-IM contact" ) ); TextLabel1->setProperty( "text", i18n( "First Name:" ) ); TextLabel2->setProperty( "text", i18n( "Last Name:" ) ); TextLabel1_2->setProperty( "text", i18n( "Nickname:" ) ); lblMail->setProperty( "text", i18n( "E-Mail address:" ) ); TextLabel4->setProperty( "text", i18n( "Phone:" ) ); } #include "nonimbase.moc"