#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './jabberinfobase.ui' ** ** Created: Вск Мар 4 15:40:53 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 "jabberinfobase.h" #include #include #include #include #include #include #include #include #include #include #include #include "datepicker.h" /* * Constructs a JabberInfoBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ JabberInfoBase::JabberInfoBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "JabberInfo" ); JabberInfoLayout = new QVBoxLayout( this, 11, 6, "JabberInfoLayout"); tabWnd = new QTabWidget( this, "tabWnd" ); tab = new QWidget( tabWnd, "tab" ); tabLayout = new QGridLayout( tab, 1, 1, 11, 6, "tabLayout"); TextLabel2 = new QLabel( tab, "TextLabel2" ); QFont TextLabel2_font( TextLabel2->font() ); TextLabel2_font.setBold( TRUE ); TextLabel2->setFont( TextLabel2_font ); TextLabel2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( TextLabel2, 0, 0 ); edtID = new QLineEdit( tab, "edtID" ); QFont edtID_font( edtID->font() ); edtID_font.setBold( TRUE ); edtID->setFont( edtID_font ); tabLayout->addWidget( edtID, 0, 1 ); Line3 = new QFrame( tab, "Line3" ); Line3->setFrameShape( QFrame::HLine ); Line3->setFrameShadow( QFrame::Sunken ); Line3->setFrameShape( QFrame::HLine ); tabLayout->addMultiCellWidget( Line3, 1, 1, 0, 1 ); TextLabel3 = new QLabel( tab, "TextLabel3" ); TextLabel3->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( TextLabel3, 2, 0 ); edtFirstName = new QLineEdit( tab, "edtFirstName" ); tabLayout->addWidget( edtFirstName, 2, 1 ); TextLabel4 = new QLabel( tab, "TextLabel4" ); TextLabel4->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( TextLabel4, 3, 0 ); edtNick = new QLineEdit( tab, "edtNick" ); tabLayout->addWidget( edtNick, 3, 1 ); Spacer6 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); tabLayout->addItem( Spacer6, 6, 0 ); TextLabel9 = new QLabel( tab, "TextLabel9" ); TextLabel9->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( TextLabel9, 4, 0 ); TextLabel10 = new QLabel( tab, "TextLabel10" ); TextLabel10->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( TextLabel10, 5, 0 ); Layout5 = new QHBoxLayout( 0, 0, 6, "Layout5"); edtUrl = new QLineEdit( tab, "edtUrl" ); Layout5->addWidget( edtUrl ); btnUrl = new QPushButton( tab, "btnUrl" ); Layout5->addWidget( btnUrl ); tabLayout->addLayout( Layout5, 5, 1 ); Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); edtDate = new DatePicker( tab, "edtDate" ); Layout2->addWidget( edtDate ); Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout2->addItem( Spacer3 ); tabLayout->addLayout( Layout2, 4, 1 ); tabWnd->insertTab( tab, QString::fromLatin1("") ); tab_2 = new QWidget( tabWnd, "tab_2" ); tabLayout_2 = new QGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); TextLabel5 = new QLabel( tab_2, "TextLabel5" ); TextLabel5->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout_2->addWidget( TextLabel5, 0, 0 ); cmbStatus = new QComboBox( FALSE, tab_2, "cmbStatus" ); cmbStatus->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, cmbStatus->sizePolicy().hasHeightForWidth() ) ); tabLayout_2->addWidget( cmbStatus, 0, 1 ); Spacer7 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding ); tabLayout_2->addItem( Spacer7, 6, 1 ); lblResource = new QLabel( tab_2, "lblResource" ); lblResource->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout_2->addWidget( lblResource, 1, 0 ); cmbResource = new QComboBox( FALSE, tab_2, "cmbResource" ); tabLayout_2->addWidget( cmbResource, 1, 1 ); edtAutoReply = new QMultiLineEdit( tab_2, "edtAutoReply" ); tabLayout_2->addMultiCellWidget( edtAutoReply, 5, 5, 0, 1 ); lblNA = new QLabel( tab_2, "lblNA" ); lblNA->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout_2->addWidget( lblNA, 4, 0 ); edtNA = new QLineEdit( tab_2, "edtNA" ); tabLayout_2->addWidget( edtNA, 4, 1 ); lblOnline = new QLabel( tab_2, "lblOnline" ); lblOnline->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout_2->addWidget( lblOnline, 3, 0 ); edtOnline = new QLineEdit( tab_2, "edtOnline" ); tabLayout_2->addWidget( edtOnline, 3, 1 ); lblClient = new QLabel( tab_2, "lblClient" ); lblClient->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout_2->addWidget( lblClient, 2, 0 ); edtClient = new QLineEdit( tab_2, "edtClient" ); tabLayout_2->addWidget( edtClient, 2, 1 ); tabWnd->insertTab( tab_2, QString::fromLatin1("") ); password = new QWidget( tabWnd, "password" ); passwordLayout = new QGridLayout( password, 1, 1, 11, 6, "passwordLayout"); TextLabel2_2 = new QLabel( password, "TextLabel2_2" ); TextLabel2_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); passwordLayout->addWidget( TextLabel2_2, 3, 0 ); edtPswd1 = new QLineEdit( password, "edtPswd1" ); edtPswd1->setEchoMode( QLineEdit::Password ); passwordLayout->addWidget( edtPswd1, 3, 1 ); edtPswd2 = new QLineEdit( password, "edtPswd2" ); edtPswd2->setEchoMode( QLineEdit::Password ); passwordLayout->addWidget( edtPswd2, 4, 1 ); TextLabel3_2 = new QLabel( password, "TextLabel3_2" ); TextLabel3_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); passwordLayout->addWidget( TextLabel3_2, 4, 0 ); Spacer10 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); passwordLayout->addItem( Spacer10, 5, 0 ); Line2 = new QFrame( password, "Line2" ); Line2->setFrameShape( QFrame::HLine ); Line2->setFrameShadow( QFrame::Sunken ); Line2->setFrameShape( QFrame::HLine ); passwordLayout->addMultiCellWidget( Line2, 2, 2, 0, 1 ); TextLabel1 = new QLabel( password, "TextLabel1" ); TextLabel1->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); passwordLayout->addMultiCellWidget( TextLabel1, 0, 1, 0, 0 ); edtCurrent = new QLineEdit( password, "edtCurrent" ); edtCurrent->setEchoMode( QLineEdit::Password ); passwordLayout->addWidget( edtCurrent, 0, 1 ); tabWnd->insertTab( password, QString::fromLatin1("") ); JabberInfoLayout->addWidget( tabWnd ); languageChange(); resize( QSize(400, 301).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // tab order setTabOrder( tabWnd, edtID ); setTabOrder( edtID, edtFirstName ); setTabOrder( edtFirstName, edtNick ); setTabOrder( edtNick, edtUrl ); setTabOrder( edtUrl, btnUrl ); setTabOrder( btnUrl, cmbStatus ); setTabOrder( cmbStatus, cmbResource ); setTabOrder( cmbResource, edtOnline ); setTabOrder( edtOnline, edtNA ); setTabOrder( edtNA, edtAutoReply ); } /* * Destroys the object and frees any allocated resources */ JabberInfoBase::~JabberInfoBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void JabberInfoBase::languageChange() { setCaption( i18n( "Form1" ) ); TextLabel2->setText( i18n( "ID:" ) ); TextLabel3->setText( i18n( "First Name:" ) ); TextLabel4->setText( i18n( "Nick:" ) ); TextLabel9->setText( i18n( "Birth date:" ) ); TextLabel10->setText( i18n( "Homepage:" ) ); btnUrl->setText( QString::null ); tabWnd->changeTab( tab, i18n( "&Names" ) ); TextLabel5->setText( i18n( "Status:" ) ); lblResource->setText( i18n( "Resource:" ) ); lblNA->setText( QString::null ); lblOnline->setText( i18n( "Online:" ) ); lblClient->setText( i18n( "Client:" ) ); tabWnd->changeTab( tab_2, i18n( "&Status" ) ); TextLabel2_2->setText( i18n( "New password:" ) ); TextLabel3_2->setText( i18n( "Retype new password:" ) ); TextLabel1->setText( i18n( "Current password:" ) ); tabWnd->changeTab( password, i18n( "&Password" ) ); } #include "jabberinfobase.moc"