#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './newprotocolbase.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 "newprotocolbase.h" #include #include #include #include #include #include #include /* * Constructs a NewProtocolBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * * The wizard will by default be modeless, unless you set 'modal' to * TRUE to construct a modal wizard. */ NewProtocolBase::NewProtocolBase( QWidget* parent, const char* name, bool modal, WFlags fl ) : QWizard( parent, name, modal, fl ) { if ( !name ) setName( "Protocol" ); protocolPage = new QWidget( this, "protocolPage" ); protocolPageLayout = new QGridLayout( protocolPage, 1, 1, 11, 6, "protocolPageLayout"); TextLabel1 = new QLabel( protocolPage, "TextLabel1" ); TextLabel1->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); protocolPageLayout->addWidget( TextLabel1, 0, 0 ); cmbProtocol = new QComboBox( FALSE, protocolPage, "cmbProtocol" ); protocolPageLayout->addWidget( cmbProtocol, 0, 1 ); Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); protocolPageLayout->addItem( Spacer3, 1, 0 ); addPage( protocolPage, QString("") ); languageChange(); resize( QSize(343, 284).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } /* * Destroys the object and frees any allocated resources */ NewProtocolBase::~NewProtocolBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void NewProtocolBase::languageChange() { setProperty( "caption", i18n( "New connection" ) ); TextLabel1->setProperty( "text", i18n( "Protocol:" ) ); setTitle( protocolPage, i18n( "Select protocol" ) ); } #include "newprotocolbase.moc"