#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './gpgfindbase.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 "gpgfindbase.h" #include #include #include #include #include #include /* * Constructs a GpgFindBase 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. */ GpgFindBase::GpgFindBase( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "GpgFind" ); setProperty( "sizeGripEnabled", QVariant( TRUE, 0 ) ); GpgFindLayout = new QGridLayout( this, 1, 1, 11, 6, "GpgFindLayout"); lblPath = new QLabel( this, "lblPath" ); lblPath->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)7, 0, 0, lblPath->sizePolicy().hasHeightForWidth() ) ); GpgFindLayout->addMultiCellWidget( lblPath, 0, 0, 0, 2 ); btnCancel = new QPushButton( this, "btnCancel" ); GpgFindLayout->addWidget( btnCancel, 1, 1 ); Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); GpgFindLayout->addItem( Spacer3, 1, 0 ); Spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); GpgFindLayout->addItem( Spacer4, 1, 2 ); languageChange(); resize( QSize(358, 97).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections } /* * Destroys the object and frees any allocated resources */ GpgFindBase::~GpgFindBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void GpgFindBase::languageChange() { setProperty( "caption", i18n( "Find GPG" ) ); lblPath->setProperty( "text", QString::null ); btnCancel->setProperty( "text", i18n( "&Cancel" ) ); } #include "gpgfindbase.moc"