#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './passphrasebase.ui' ** ** Created: Вск Мар 4 15:40:46 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 "passphrasebase.h" #include #include #include #include #include #include #include #include /* * Constructs a PassphraseDlgBase 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. */ PassphraseDlgBase::PassphraseDlgBase( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "Passphrase" ); PassphraseLayout = new QGridLayout( this, 1, 1, 11, 6, "PassphraseLayout"); lblTitle = new QLabel( this, "lblTitle" ); lblTitle->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, lblTitle->sizePolicy().hasHeightForWidth() ) ); lblTitle->setProperty( "alignment", int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) ); PassphraseLayout->addMultiCellWidget( lblTitle, 0, 0, 0, 2 ); chkSave = new QCheckBox( this, "chkSave" ); PassphraseLayout->addMultiCellWidget( chkSave, 2, 2, 0, 2 ); edtPass = new QLineEdit( this, "edtPass" ); edtPass->setProperty( "echoMode", "Password" ); PassphraseLayout->addMultiCellWidget( edtPass, 1, 1, 0, 2 ); btnOk = new QPushButton( this, "btnOk" ); PassphraseLayout->addWidget( btnOk, 4, 1 ); Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); PassphraseLayout->addItem( Spacer1, 4, 0 ); btnCancel = new QPushButton( this, "btnCancel" ); PassphraseLayout->addWidget( btnCancel, 4, 2 ); languageChange(); resize( QSize(388, 119).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( btnOk, SIGNAL( clicked() ), this, SLOT( accept() ) ); connect( btnCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); // tab order setTabOrder( edtPass, chkSave ); setTabOrder( chkSave, btnOk ); setTabOrder( btnOk, btnCancel ); } /* * Destroys the object and frees any allocated resources */ PassphraseDlgBase::~PassphraseDlgBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void PassphraseDlgBase::languageChange() { setProperty( "caption", i18n( "Input passphrase" ) ); lblTitle->setProperty( "text", QString::null ); chkSave->setProperty( "text", i18n( "&Save passphrase" ) ); btnOk->setProperty( "text", i18n( "&OK" ) ); btnCancel->setProperty( "text", i18n( "&Cancel" ) ); } #include "passphrasebase.moc"