#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './icqinfobase.ui' ** ** Created: Вск Мар 4 15:40:48 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 "icqinfobase.h" #include #include #include #include #include #include #include #include #include #include #include #include /* * Constructs a ICQInfoBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ ICQInfoBase::ICQInfoBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "mainInfo" ); mainInfoLayout = new QVBoxLayout( this, 11, 6, "mainInfoLayout"); tabWnd = new QTabWidget( this, "tabWnd" ); tab = new QWidget( tabWnd, "tab" ); tabLayout = new QGridLayout( tab, 1, 1, 11, 6, "tabLayout"); lblLast = new QLabel( tab, "lblLast" ); QFont lblLast_font( lblLast->font() ); lblLast->setFont( lblLast_font ); lblLast->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( lblLast, 4, 0 ); edtNick = new QLineEdit( tab, "edtNick" ); tabLayout->addWidget( edtNick, 5, 1 ); edtFirst = new QLineEdit( tab, "edtFirst" ); tabLayout->addWidget( edtFirst, 3, 1 ); lblUin = new QLabel( tab, "lblUin" ); QFont lblUin_font( lblUin->font() ); lblUin_font.setBold( TRUE ); lblUin->setFont( lblUin_font ); lblUin->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( lblUin, 0, 0 ); TextLabel30 = new QLabel( tab, "TextLabel30" ); TextLabel30->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( TextLabel30, 5, 0 ); edtLast = new QLineEdit( tab, "edtLast" ); tabLayout->addWidget( edtLast, 4, 1 ); lineDiv = new QFrame( tab, "lineDiv" ); lineDiv->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, lineDiv->sizePolicy().hasHeightForWidth() ) ); QPalette pal; QColorGroup cg; cg.setColor( QColorGroup::Foreground, black ); cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) ); cg.setColor( QColorGroup::Light, white ); cg.setColor( QColorGroup::Midlight, QColor( 223, 223, 223) ); cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) ); cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) ); cg.setColor( QColorGroup::Text, black ); cg.setColor( QColorGroup::BrightText, white ); cg.setColor( QColorGroup::ButtonText, black ); cg.setColor( QColorGroup::Base, white ); cg.setColor( QColorGroup::Background, QColor( 192, 192, 192) ); cg.setColor( QColorGroup::Shadow, black ); cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 128) ); cg.setColor( QColorGroup::HighlightedText, white ); pal.setActive( cg ); cg.setColor( QColorGroup::Foreground, black ); cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) ); cg.setColor( QColorGroup::Light, white ); cg.setColor( QColorGroup::Midlight, QColor( 220, 220, 220) ); cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) ); cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) ); cg.setColor( QColorGroup::Text, black ); cg.setColor( QColorGroup::BrightText, white ); cg.setColor( QColorGroup::ButtonText, black ); cg.setColor( QColorGroup::Base, white ); cg.setColor( QColorGroup::Background, QColor( 192, 192, 192) ); cg.setColor( QColorGroup::Shadow, black ); cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 128) ); cg.setColor( QColorGroup::HighlightedText, white ); pal.setInactive( cg ); cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) ); cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) ); cg.setColor( QColorGroup::Light, white ); cg.setColor( QColorGroup::Midlight, QColor( 220, 220, 220) ); cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) ); cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) ); cg.setColor( QColorGroup::Text, QColor( 128, 128, 128) ); cg.setColor( QColorGroup::BrightText, white ); cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) ); cg.setColor( QColorGroup::Base, white ); cg.setColor( QColorGroup::Background, QColor( 192, 192, 192) ); cg.setColor( QColorGroup::Shadow, black ); cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 128) ); cg.setColor( QColorGroup::HighlightedText, white ); pal.setDisabled( cg ); lineDiv->setProperty( "palette", pal ); lineDiv->setProperty( "frameShape", "HLine" ); lineDiv->setProperty( "frameShadow", "Sunken" ); lineDiv->setProperty( "frameShape", QFrame::VLine ); lineDiv->setProperty( "frameShape", "HLine" ); tabLayout->addMultiCellWidget( lineDiv, 1, 1, 0, 1 ); Layout14 = new QHBoxLayout( 0, 0, 6, "Layout14"); edtUin = new QLineEdit( tab, "edtUin" ); QFont edtUin_font( edtUin->font() ); edtUin_font.setBold( TRUE ); edtUin->setFont( edtUin_font ); Layout14->addWidget( edtUin ); Spacer26 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout14->addItem( Spacer26 ); tabLayout->addLayout( Layout14, 0, 1 ); lblFirst = new QLabel( tab, "lblFirst" ); lblFirst->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addMultiCellWidget( lblFirst, 2, 3, 0, 0 ); Line2 = new QFrame( tab, "Line2" ); Line2->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, Line2->sizePolicy().hasHeightForWidth() ) ); Line2->setProperty( "frameStyle", QFrame::VLine | QFrame::Sunken ); tabLayout->addMultiCellWidget( Line2, 6, 6, 0, 1 ); Spacer7 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); tabLayout->addItem( Spacer7, 10, 1 ); lblRandom = new QLabel( tab, "lblRandom" ); tabLayout->addMultiCellWidget( lblRandom, 8, 8, 0, 1 ); cmbRandom = new QComboBox( FALSE, tab, "cmbRandom" ); tabLayout->addMultiCellWidget( cmbRandom, 9, 9, 0, 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"); TextLabel1_3 = new QLabel( tab_2, "TextLabel1_3" ); TextLabel1_3->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout_2->addWidget( TextLabel1_3, 0, 0 ); cmbStatus = new QComboBox( FALSE, tab_2, "cmbStatus" ); tabLayout_2->addWidget( cmbStatus, 0, 1 ); lblOnline = new QLabel( tab_2, "lblOnline" ); lblOnline->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout_2->addWidget( lblOnline, 1, 0 ); edtOnline = new QLineEdit( tab_2, "edtOnline" ); tabLayout_2->addWidget( edtOnline, 1, 1 ); lblNA = new QLabel( tab_2, "lblNA" ); lblNA->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout_2->addWidget( lblNA, 2, 0 ); edtNA = new QLineEdit( tab_2, "edtNA" ); QFont edtNA_font( edtNA->font() ); edtNA->setFont( edtNA_font ); tabLayout_2->addWidget( edtNA, 2, 1 ); lblExtIP = new QLabel( tab_2, "lblExtIP" ); lblExtIP->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout_2->addWidget( lblExtIP, 3, 0 ); edtExtIP = new QLineEdit( tab_2, "edtExtIP" ); tabLayout_2->addWidget( edtExtIP, 3, 1 ); lblIntIP = new QLabel( tab_2, "lblIntIP" ); lblIntIP->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout_2->addWidget( lblIntIP, 4, 0 ); edtIntIP = new QLineEdit( tab_2, "edtIntIP" ); tabLayout_2->addWidget( edtIntIP, 4, 1 ); lblClient = new QLabel( tab_2, "lblClient" ); lblClient->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout_2->addWidget( lblClient, 5, 0 ); edtClient = new QLineEdit( tab_2, "edtClient" ); tabLayout_2->addWidget( edtClient, 5, 1 ); Spacer6_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); tabLayout_2->addItem( Spacer6_2, 7, 1 ); edtAutoReply = new QMultiLineEdit( tab_2, "edtAutoReply" ); tabLayout_2->addMultiCellWidget( edtAutoReply, 6, 6, 0, 1 ); tabWnd->insertTab( tab_2, QString::fromLatin1("") ); password = new QWidget( tabWnd, "password" ); passwordLayout = new QGridLayout( password, 1, 1, 11, 6, "passwordLayout"); TextLabel2 = new QLabel( password, "TextLabel2" ); TextLabel2->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); passwordLayout->addWidget( TextLabel2, 2, 0 ); edtCurrent = new QLineEdit( password, "edtCurrent" ); edtCurrent->setProperty( "echoMode", "Password" ); passwordLayout->addWidget( edtCurrent, 0, 1 ); edtPswd2 = new QLineEdit( password, "edtPswd2" ); edtPswd2->setProperty( "echoMode", "Password" ); passwordLayout->addWidget( edtPswd2, 3, 1 ); TextLabel3 = new QLabel( password, "TextLabel3" ); TextLabel3->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); passwordLayout->addWidget( TextLabel3, 3, 0 ); TextLabel1 = new QLabel( password, "TextLabel1" ); TextLabel1->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); passwordLayout->addWidget( TextLabel1, 0, 0 ); Spacer6 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); passwordLayout->addItem( Spacer6, 4, 0 ); Line2_2 = new QFrame( password, "Line2_2" ); Line2_2->setProperty( "frameShape", "HLine" ); Line2_2->setProperty( "frameShadow", "Sunken" ); Line2_2->setProperty( "frameShape", QFrame::VLine ); Line2_2->setProperty( "frameShape", "HLine" ); passwordLayout->addMultiCellWidget( Line2_2, 1, 1, 0, 1 ); edtPswd1 = new QLineEdit( password, "edtPswd1" ); edtPswd1->setProperty( "echoMode", "Password" ); passwordLayout->addWidget( edtPswd1, 2, 1 ); tabWnd->insertTab( password, QString::fromLatin1("") ); mainInfoLayout->addWidget( tabWnd ); languageChange(); resize( QSize(372, 282).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // tab order setTabOrder( tabWnd, edtUin ); setTabOrder( edtUin, edtFirst ); setTabOrder( edtFirst, edtLast ); setTabOrder( edtLast, edtNick ); setTabOrder( edtNick, cmbRandom ); setTabOrder( cmbRandom, cmbStatus ); setTabOrder( cmbStatus, edtOnline ); setTabOrder( edtOnline, edtNA ); setTabOrder( edtNA, edtExtIP ); setTabOrder( edtExtIP, edtIntIP ); setTabOrder( edtIntIP, edtClient ); setTabOrder( edtClient, edtAutoReply ); } /* * Destroys the object and frees any allocated resources */ ICQInfoBase::~ICQInfoBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void ICQInfoBase::languageChange() { setProperty( "caption", i18n( "Form5" ) ); lblLast->setProperty( "text", i18n( "Last Name:" ) ); lblUin->setProperty( "text", i18n( "Uin:" ) ); TextLabel30->setProperty( "text", i18n( "Nick:" ) ); lblFirst->setProperty( "text", i18n( "First Name:" ) ); lblRandom->setProperty( "text", i18n( "Random chat group:" ) ); tabWnd->changeTab( tab, i18n( "&Names" ) ); TextLabel1_3->setProperty( "text", i18n( "Status:" ) ); lblOnline->setProperty( "text", i18n( "Online:" ) ); lblNA->setProperty( "text", QString::null ); lblExtIP->setProperty( "text", i18n( "External IP:" ) ); lblIntIP->setProperty( "text", i18n( "Internal IP:" ) ); lblClient->setProperty( "text", i18n( "Client:" ) ); tabWnd->changeTab( tab_2, i18n( "&Status" ) ); TextLabel2->setProperty( "text", i18n( "New password:" ) ); TextLabel3->setProperty( "text", i18n( "Retype new password:" ) ); TextLabel1->setProperty( "text", i18n( "Current password:" ) ); tabWnd->changeTab( password, i18n( "&Password" ) ); } #include "icqinfobase.moc"