#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './livejournalcfgbase.ui' ** ** Created: Вск Мар 4 15:40:55 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 "livejournalcfgbase.h" #include #include #include #include #include #include #include #include #include #include #include #include #include "linklabel.h" /* * Constructs a LiveJournalCfgBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ LiveJournalCfgBase::LiveJournalCfgBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "LiveJournalCfg" ); LiveJournalCfgLayout = new QVBoxLayout( this, 11, 6, "LiveJournalCfgLayout"); tabLiveJournal = new QTabWidget( this, "tabLiveJournal" ); tabLogin = new QWidget( tabLiveJournal, "tabLogin" ); tabLoginLayout = new QGridLayout( tabLogin, 1, 1, 11, 6, "tabLoginLayout"); TextLabel1 = new QLabel( tabLogin, "TextLabel1" ); TextLabel1->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLoginLayout->addWidget( TextLabel1, 0, 0 ); edtName = new QLineEdit( tabLogin, "edtName" ); tabLoginLayout->addWidget( edtName, 0, 1 ); lblPassword = new QLabel( tabLogin, "lblPassword" ); lblPassword->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLoginLayout->addWidget( lblPassword, 1, 0 ); edtPassword = new QLineEdit( tabLogin, "edtPassword" ); edtPassword->setEchoMode( QLineEdit::Password ); tabLoginLayout->addWidget( edtPassword, 1, 1 ); Spacer8 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); tabLoginLayout->addItem( Spacer8, 3, 0 ); lblLnk = new LinkLabel( tabLogin, "lblLnk" ); tabLoginLayout->addMultiCellWidget( lblLnk, 2, 2, 0, 1 ); tabLiveJournal->insertTab( tabLogin, QString::fromLatin1("") ); tab = new QWidget( tabLiveJournal, "tab" ); tabLayout = new QGridLayout( tab, 1, 1, 11, 6, "tabLayout"); edtServer = new QLineEdit( tab, "edtServer" ); tabLayout->addMultiCellWidget( edtServer, 0, 0, 1, 2 ); TextLabel3 = new QLabel( tab, "TextLabel3" ); TextLabel3->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( TextLabel3, 0, 0 ); TextLabel4 = new QLabel( tab, "TextLabel4" ); TextLabel4->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( TextLabel4, 1, 0 ); edtPath = new QLineEdit( tab, "edtPath" ); tabLayout->addMultiCellWidget( edtPath, 1, 1, 1, 2 ); TextLabel5 = new QLabel( tab, "TextLabel5" ); TextLabel5->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); tabLayout->addWidget( TextLabel5, 2, 0 ); edtPort = new QSpinBox( tab, "edtPort" ); edtPort->setMaxValue( 65535 ); edtPort->setMinValue( 1 ); tabLayout->addWidget( edtPort, 2, 1 ); Spacer9 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); tabLayout->addItem( Spacer9, 2, 2 ); Spacer10 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); tabLayout->addItem( Spacer10, 3, 0 ); tabLiveJournal->insertTab( tab, QString::fromLatin1("") ); tab_2 = new QWidget( tabLiveJournal, "tab_2" ); tabLayout_2 = new QVBoxLayout( tab_2, 11, 6, "tabLayout_2"); Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); TextLabel1_2 = new QLabel( tab_2, "TextLabel1_2" ); TextLabel1_2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); Layout1->addWidget( TextLabel1_2 ); edtInterval = new QSpinBox( tab_2, "edtInterval" ); Layout1->addWidget( edtInterval ); TextLabel2_2 = new QLabel( tab_2, "TextLabel2_2" ); TextLabel2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, 0, 0, TextLabel2_2->sizePolicy().hasHeightForWidth() ) ); Layout1->addWidget( TextLabel2_2 ); tabLayout_2->addLayout( Layout1 ); chkFastServer = new QCheckBox( tab_2, "chkFastServer" ); tabLayout_2->addWidget( chkFastServer ); chkUseFormatting = new QCheckBox( tab_2, "chkUseFormatting" ); tabLayout_2->addWidget( chkUseFormatting ); chkUseSignature = new QCheckBox( tab_2, "chkUseSignature" ); tabLayout_2->addWidget( chkUseSignature ); edtSignature = new QMultiLineEdit( tab_2, "edtSignature" ); edtSignature->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)4, 0, 0, edtSignature->sizePolicy().hasHeightForWidth() ) ); tabLayout_2->addWidget( edtSignature ); Spacer5 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); tabLayout_2->addItem( Spacer5 ); tabLiveJournal->insertTab( tab_2, QString::fromLatin1("") ); LiveJournalCfgLayout->addWidget( tabLiveJournal ); languageChange(); resize( QSize(322, 280).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } /* * Destroys the object and frees any allocated resources */ LiveJournalCfgBase::~LiveJournalCfgBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void LiveJournalCfgBase::languageChange() { setCaption( i18n( "Form1" ) ); TextLabel1->setText( i18n( "Username:" ) ); lblPassword->setText( i18n( "Password:" ) ); tabLiveJournal->changeTab( tabLogin, i18n( "&LiveJournal" ) ); TextLabel3->setText( i18n( "Server:" ) ); TextLabel4->setText( i18n( "Path:" ) ); TextLabel5->setText( i18n( "Port:" ) ); tabLiveJournal->changeTab( tab, i18n( "&Network" ) ); TextLabel1_2->setText( i18n( "Check interval:" ) ); TextLabel2_2->setText( i18n( "minutes" ) ); chkFastServer->setText( i18n( "Use &fast server - only for paying customers" ) ); chkUseFormatting->setText( i18n( "Use formatted messages" ) ); chkUseSignature->setText( i18n( "Add signature to all messages" ) ); tabLiveJournal->changeTab( tab_2, i18n( "&Options" ) ); } #include "livejournalcfgbase.moc"