#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './icqsecurebase.ui' ** ** Created: Вск Мар 4 15:40:49 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 "icqsecurebase.h" #include #include #include #include #include #include #include #include #include #include #include "listview.h" /* * Constructs a ICQSecureBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ ICQSecureBase::ICQSecureBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "Secure" ); SecureLayout = new QVBoxLayout( this, 11, 6, "SecureLayout"); TabWidget3 = new QTabWidget( this, "TabWidget3" ); tab = new QWidget( TabWidget3, "tab" ); tabLayout = new QVBoxLayout( tab, 11, 6, "tabLayout"); chkAuth = new QCheckBox( tab, "chkAuth" ); tabLayout->addWidget( chkAuth ); chkHideIP = new QCheckBox( tab, "chkHideIP" ); tabLayout->addWidget( chkHideIP ); chkWeb = new QCheckBox( tab, "chkWeb" ); tabLayout->addWidget( chkWeb ); chkIgnoreAuth = new QCheckBox( tab, "chkIgnoreAuth" ); tabLayout->addWidget( chkIgnoreAuth ); chkUseMD5 = new QCheckBox( tab, "chkUseMD5" ); tabLayout->addWidget( chkUseMD5 ); grpDirect = new QButtonGroup( tab, "grpDirect" ); grpDirect->setColumnLayout(0, Qt::Vertical ); grpDirect->layout()->setSpacing( 6 ); grpDirect->layout()->setMargin( 11 ); grpDirectLayout = new QVBoxLayout( grpDirect->layout() ); grpDirectLayout->setAlignment( Qt::AlignTop ); btnDirectAllow = new QRadioButton( grpDirect, "btnDirectAllow" ); grpDirectLayout->addWidget( btnDirectAllow ); btnDirectContact = new QRadioButton( grpDirect, "btnDirectContact" ); grpDirectLayout->addWidget( btnDirectContact ); btnDirectAuth = new QRadioButton( grpDirect, "btnDirectAuth" ); grpDirectLayout->addWidget( btnDirectAuth ); tabLayout->addWidget( grpDirect ); Spacer6 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); tabLayout->addItem( Spacer6 ); TabWidget3->insertTab( tab, QString::fromLatin1("") ); tab_2 = new QWidget( TabWidget3, "tab_2" ); tabLayout_2 = new QVBoxLayout( tab_2, 11, 6, "tabLayout_2"); lstVisible = new ListView( tab_2, "lstVisible" ); tabLayout_2->addWidget( lstVisible ); TabWidget3->insertTab( tab_2, QString::fromLatin1("") ); tab_3 = new QWidget( TabWidget3, "tab_3" ); tabLayout_3 = new QVBoxLayout( tab_3, 11, 6, "tabLayout_3"); lstInvisible = new ListView( tab_3, "lstInvisible" ); tabLayout_3->addWidget( lstInvisible ); TabWidget3->insertTab( tab_3, QString::fromLatin1("") ); SecureLayout->addWidget( TabWidget3 ); languageChange(); resize( QSize(373, 256).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } /* * Destroys the object and frees any allocated resources */ ICQSecureBase::~ICQSecureBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void ICQSecureBase::languageChange() { setProperty( "caption", i18n( "Form1" ) ); chkAuth->setProperty( "text", i18n( "My &authorization is required before users add me to Contact List" ) ); chkHideIP->setProperty( "text", i18n( "Don't show my &IP-address" ) ); chkWeb->setProperty( "caption", QString::null ); chkWeb->setProperty( "text", i18n( "Allow other to view my &status from the Web" ) ); chkIgnoreAuth->setProperty( "text", i18n( "I&gnore user authorization" ) ); chkUseMD5->setProperty( "text", i18n( "Always use &MD5 authentication" ) ); grpDirect->setProperty( "title", i18n( "Direct connections" ) ); btnDirectAllow->setProperty( "text", i18n( "Allow &direct connection from any user" ) ); btnDirectContact->setProperty( "text", i18n( "Allow direct connection from user listed in &contact list" ) ); btnDirectAuth->setProperty( "text", i18n( "Allow direct connection from user &upon authorization" ) ); TabWidget3->changeTab( tab, i18n( "&Security" ) ); TabWidget3->changeTab( tab_2, i18n( "&Visible list" ) ); TabWidget3->changeTab( tab_3, i18n( "&Invisible list" ) ); } #include "icqsecurebase.moc"