#include "simapi.h"
/****************************************************************************
** Form implementation generated from reading ui file './pagerbase.ui'
**
** Created: вт мар 30 16:42:35 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 "pagerbase.h"

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

static const char* const img0_pagerbase[] = { 
"22 22 2 1",
". c None",
"# c #a4c610",
"........######........",
".....###########......",
"....##############....",
"...################...",
"..######......######..",
"..#####........#####..",
".#####.......#..#####.",
".####.......###..####.",
"####.......#####..####",
"####......#####...####",
"####....#######...####",
"####....######....####",
"####...########...####",
".####.##########..####",
".####..####.#########.",
".#####..##...########.",
"..#####.......#######.",
"..######......######..",
"...###################",
"....##################",
"......###########.###.",
"........######.....#.."};


/* 
 *  Constructs a PagerDetailsBase as a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f'.
 */
PagerDetailsBase::PagerDetailsBase( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl ),
      image0( (const char **) img0_pagerbase )
{
    if ( !name )
	setName( "pagerDetails" );
    pagerDetailsLayout = new QVBoxLayout( this, 11, 6, "pagerDetailsLayout"); 

    Layout9 = new QGridLayout( 0, 1, 1, 0, 6, "Layout9"); 

    edtGateway = new QLineEdit( this, "edtGateway" );

    Layout9->addWidget( edtGateway, 2, 1 );

    edtNumber = new QLineEdit( this, "edtNumber" );

    Layout9->addWidget( edtNumber, 0, 1 );

    TextLabel11 = new QLabel( this, "TextLabel11" );
    TextLabel11->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) );

    Layout9->addWidget( TextLabel11, 1, 0 );

    TextLabel12 = new QLabel( this, "TextLabel12" );
    TextLabel12->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) );

    Layout9->addWidget( TextLabel12, 2, 0 );

    cmbProvider = new QComboBox( FALSE, this, "cmbProvider" );

    Layout9->addWidget( cmbProvider, 1, 1 );

    TextLabel10 = new QLabel( this, "TextLabel10" );
    TextLabel10->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) );

    Layout9->addWidget( TextLabel10, 0, 0 );
    pagerDetailsLayout->addLayout( Layout9 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    pagerDetailsLayout->addItem( spacer );
    languageChange();
    resize( QSize(222, 110).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( edtNumber, cmbProvider );
    setTabOrder( cmbProvider, edtGateway );
}

/*
 *  Destroys the object and frees any allocated resources
 */
PagerDetailsBase::~PagerDetailsBase()
{
    // no need to delete child widgets, Qt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void PagerDetailsBase::languageChange()
{
    setProperty( "caption", i18n( "Form2" ) );
    TextLabel11->setProperty( "text", i18n( "Provider:" ) );
    TextLabel12->setProperty( "text", i18n( "Email gateway:" ) );
    TextLabel10->setProperty( "text", i18n( "Number:" ) );
}

#include "pagerbase.moc"
