#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './gpgcfgbase.ui' ** ** Created: Вск Мар 4 15:40:45 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 "gpgcfgbase.h" #include #include #include #include #include #include #include #include #include "editfile.h" #include "linklabel.h" /* * Constructs a GpgCfgBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ GpgCfgBase::GpgCfgBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "GpgCfg" ); GpgCfgLayout = new QGridLayout( this, 1, 1, 11, 6, "GpgCfgLayout"); lblGPG = new QLabel( this, "lblGPG" ); lblGPG->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); GpgCfgLayout->addWidget( lblGPG, 0, 0 ); edtGPG = new EditFile( this, "edtGPG" ); edtGPG->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, 0, 0, edtGPG->sizePolicy().hasHeightForWidth() ) ); GpgCfgLayout->addWidget( edtGPG, 0, 1 ); TextLabel2 = new QLabel( this, "TextLabel2" ); TextLabel2->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); GpgCfgLayout->addWidget( TextLabel2, 2, 0 ); edtHome = new EditFile( this, "edtHome" ); edtHome->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, 0, 0, edtHome->sizePolicy().hasHeightForWidth() ) ); GpgCfgLayout->addWidget( edtHome, 2, 1 ); Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); lnkGPG = new LinkLabel( this, "lnkGPG" ); lnkGPG->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, 0, 0, lnkGPG->sizePolicy().hasHeightForWidth() ) ); Layout1->addWidget( lnkGPG ); btnFind = new QPushButton( this, "btnFind" ); Layout1->addWidget( btnFind ); GpgCfgLayout->addMultiCellLayout( Layout1, 1, 1, 0, 1 ); Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); GpgCfgLayout->addItem( Spacer1, 4, 0 ); Layout5 = new QHBoxLayout( 0, 0, 6, "Layout5"); lblKey = new QLabel( this, "lblKey" ); lblKey->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); Layout5->addWidget( lblKey ); cmbKey = new QComboBox( FALSE, this, "cmbKey" ); cmbKey->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, cmbKey->sizePolicy().hasHeightForWidth() ) ); Layout5->addWidget( cmbKey ); btnRefresh = new QPushButton( this, "btnRefresh" ); Layout5->addWidget( btnRefresh ); GpgCfgLayout->addMultiCellLayout( Layout5, 3, 3, 0, 1 ); languageChange(); resize( QSize(389, 237).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // tab order setTabOrder( btnFind, cmbKey ); setTabOrder( cmbKey, btnRefresh ); } /* * Destroys the object and frees any allocated resources */ GpgCfgBase::~GpgCfgBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void GpgCfgBase::languageChange() { setProperty( "caption", i18n( "Form1" ) ); lblGPG->setProperty( "text", i18n( "Executable:" ) ); TextLabel2->setProperty( "text", i18n( "Home directory:" ) ); btnFind->setProperty( "text", i18n( "&Find" ) ); lblKey->setProperty( "text", i18n( "Your key:" ) ); btnRefresh->setProperty( "text", i18n( "&Refresh" ) ); } #include "gpgcfgbase.moc"