#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './proxycfgbase.ui' ** ** Created: Вск Мар 4 15:40:58 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 "proxycfgbase.h" #include #include #include #include #include #include #include #include #include #include /* * Constructs a ProxyConfigBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ ProxyConfigBase::ProxyConfigBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "ProxyConfig" ); ProxyConfigLayout = new QGridLayout( this, 1, 1, 11, 6, "ProxyConfigLayout"); lblHost = new QLabel( this, "lblHost" ); lblHost->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); ProxyConfigLayout->addWidget( lblHost, 2, 0 ); edtHost = new QLineEdit( this, "edtHost" ); ProxyConfigLayout->addMultiCellWidget( edtHost, 2, 2, 1, 2 ); lblPort = new QLabel( this, "lblPort" ); lblPort->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); ProxyConfigLayout->addWidget( lblPort, 3, 0 ); edtPort = new QSpinBox( this, "edtPort" ); edtPort->setProperty( "maxValue", 65535 ); edtPort->setProperty( "minValue", 1 ); ProxyConfigLayout->addWidget( edtPort, 3, 1 ); Spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); ProxyConfigLayout->addItem( Spacer4, 3, 2 ); chkAuth = new QCheckBox( this, "chkAuth" ); ProxyConfigLayout->addMultiCellWidget( chkAuth, 4, 4, 0, 2 ); lblUser = new QLabel( this, "lblUser" ); lblUser->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); ProxyConfigLayout->addWidget( lblUser, 5, 0 ); edtUser = new QLineEdit( this, "edtUser" ); ProxyConfigLayout->addMultiCellWidget( edtUser, 5, 5, 1, 2 ); lblPswd = new QLabel( this, "lblPswd" ); lblPswd->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); ProxyConfigLayout->addWidget( lblPswd, 6, 0 ); edtPswd = new QLineEdit( this, "edtPswd" ); edtPswd->setProperty( "echoMode", "Password" ); ProxyConfigLayout->addMultiCellWidget( edtPswd, 6, 6, 1, 2 ); TextLabel1 = new QLabel( this, "TextLabel1" ); TextLabel1->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); ProxyConfigLayout->addWidget( TextLabel1, 1, 0 ); cmbType = new QComboBox( FALSE, this, "cmbType" ); ProxyConfigLayout->addMultiCellWidget( cmbType, 1, 1, 1, 2 ); lblClient = new QLabel( this, "lblClient" ); lblClient->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); ProxyConfigLayout->addWidget( lblClient, 0, 0 ); cmbClient = new QComboBox( FALSE, this, "cmbClient" ); ProxyConfigLayout->addMultiCellWidget( cmbClient, 0, 0, 1, 2 ); Spacer5 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); ProxyConfigLayout->addItem( Spacer5, 9, 0 ); chkNoShow = new QCheckBox( this, "chkNoShow" ); ProxyConfigLayout->addMultiCellWidget( chkNoShow, 7, 7, 0, 2 ); languageChange(); resize( QSize(331, 267).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // tab order setTabOrder( cmbClient, cmbType ); setTabOrder( cmbType, edtHost ); setTabOrder( edtHost, edtPort ); setTabOrder( edtPort, chkAuth ); setTabOrder( chkAuth, edtUser ); setTabOrder( edtUser, edtPswd ); } /* * Destroys the object and frees any allocated resources */ ProxyConfigBase::~ProxyConfigBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void ProxyConfigBase::languageChange() { setProperty( "caption", i18n( "Form1" ) ); lblHost->setProperty( "text", i18n( "Host:" ) ); lblPort->setProperty( "text", i18n( "Port:" ) ); chkAuth->setProperty( "text", i18n( "Proxy require &authorization" ) ); lblUser->setProperty( "text", i18n( "User:" ) ); lblPswd->setProperty( "text", i18n( "Password:" ) ); TextLabel1->setProperty( "text", i18n( "Proxy type:" ) ); lblClient->setProperty( "text", i18n( "Client:" ) ); chkNoShow->setProperty( "text", i18n( "Do not show error dialog (automatically reconnect)" ) ); } #include "proxycfgbase.moc"