#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './securedlgbase.ui' ** ** Created: Вск Мар 4 15:40:50 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 "securedlgbase.h" #include #include #include #include #include #include /* * Constructs a SecureDlgBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */ SecureDlgBase::SecureDlgBase( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "SecureDlg" ); SecureDlgLayout = new QVBoxLayout( this, 11, 6, "SecureDlgLayout"); lblText = new QLabel( this, "lblText" ); lblText->setProperty( "alignment", int( QLabel::WordBreak | QLabel::AlignCenter ) ); SecureDlgLayout->addWidget( lblText ); lblError = new QLabel( this, "lblError" ); QFont lblError_font( lblError->font() ); lblError_font.setBold( TRUE ); lblError->setFont( lblError_font ); lblError->setProperty( "alignment", int( QLabel::AlignCenter ) ); SecureDlgLayout->addWidget( lblError ); Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3"); Spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout3->addItem( Spacer2 ); btnCancel = new QPushButton( this, "btnCancel" ); Layout3->addWidget( btnCancel ); Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout3->addItem( Spacer3 ); SecureDlgLayout->addLayout( Layout3 ); languageChange(); resize( QSize(415, 151).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } /* * Destroys the object and frees any allocated resources */ SecureDlgBase::~SecureDlgBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void SecureDlgBase::languageChange() { setProperty( "caption", i18n( "Secure chanel request" ) ); lblText->setProperty( "text", i18n( "Secure channel is established using SSL with Diffie-Hellman key exchange and the TLS version 1 protocol.\n" "\n" "This only works with other SIM and Licq clients" ) ); lblError->setProperty( "text", QString::null ); btnCancel->setProperty( "text", i18n( "&Cancel" ) ); } #include "securedlgbase.moc"