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

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

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


/* 
 *  Constructs a GpgUserBase as a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f'.
 */
GpgUserBase::GpgUserBase( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl ),
      image0( (const char **) img0_gpguserbase )
{
    if ( !name )
	setName( "GpgUser" );
    GpgUserLayout = new QGridLayout( this, 1, 1, 11, 6, "GpgUserLayout"); 

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

    GpgUserLayout->addWidget( TextLabel1, 0, 0 );

    cmbPublic = new QComboBox( FALSE, this, "cmbPublic" );
    cmbPublic->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, cmbPublic->sizePolicy().hasHeightForWidth() ) );

    GpgUserLayout->addWidget( cmbPublic, 0, 1 );

    btnRefresh = new QPushButton( this, "btnRefresh" );

    GpgUserLayout->addWidget( btnRefresh, 0, 2 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    GpgUserLayout->addItem( spacer, 1, 0 );
    languageChange();
    resize( QSize(452, 159).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void GpgUserBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    TextLabel1->setProperty( "text", i18n( "Key:" ) );
    btnRefresh->setProperty( "text", i18n( "&Refresh" ) );
}

#include "gpguserbase.moc"
