#include "simapi.h"
/****************************************************************************
** Form implementation generated from reading ui file './newprotocolbase.ui'
**
** Created: вт мар 30 16:43:47 2004
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.1.2   edited Dec 19 11:45 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "newprotocolbase.h"

#include <qvariant.h>
#include <qwidget.h>
#include <qlabel.h>
#include <qcombobox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  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 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    protocolPageLayout->addItem( spacer, 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"
