#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './connectionsettingsbase.ui' ** ** Created: Вск Мар 4 15:40:37 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 "connectionsettingsbase.h" #include #include #include #include #include #include /* * Constructs a ConnectionSettingsBase 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. */ ConnectionSettingsBase::ConnectionSettingsBase( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "MyDialog" ); setProperty( "sizeGripEnabled", QVariant( TRUE, 0 ) ); MyDialogLayout = new QVBoxLayout( this, 11, 6, "MyDialogLayout"); addWnd = new QWidget( this, "addWnd" ); MyDialogLayout->addWidget( addWnd ); Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); Horizontal_Spacing2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout1->addItem( Horizontal_Spacing2 ); buttonOk = new QPushButton( this, "buttonOk" ); buttonOk->setProperty( "autoDefault", QVariant( TRUE, 0 ) ); buttonOk->setProperty( "default", QVariant( TRUE, 0 ) ); Layout1->addWidget( buttonOk ); buttonCancel = new QPushButton( this, "buttonCancel" ); buttonCancel->setProperty( "autoDefault", QVariant( TRUE, 0 ) ); Layout1->addWidget( buttonCancel ); MyDialogLayout->addLayout( Layout1 ); languageChange(); resize( QSize(390, 276).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) ); connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); } /* * Destroys the object and frees any allocated resources */ ConnectionSettingsBase::~ConnectionSettingsBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void ConnectionSettingsBase::languageChange() { setProperty( "caption", i18n( "MyDialog" ) ); buttonOk->setProperty( "text", i18n( "&OK" ) ); buttonCancel->setProperty( "text", i18n( "&Cancel" ) ); } #include "connectionsettingsbase.moc"