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

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

#include "editfile.h"
#include "linklabel.h"
static const char* const img0_gpgcfgbase[] = { 
"22 22 2 1",
". c None",
"# c #a4c610",
"........######........",
".....###########......",
"....##############....",
"...################...",
"..######......######..",
"..#####........#####..",
".#####.......#..#####.",
".####.......###..####.",
"####.......#####..####",
"####......#####...####",
"####....#######...####",
"####....######....####",
"####...########...####",
".####.##########..####",
".####..####.#########.",
".#####..##...########.",
"..#####.......#######.",
"..######......######..",
"...###################",
"....##################",
"......###########.###.",
"........######.....#.."};

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


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

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

    GpgCfgLayout->addWidget( lblGPG, 0, 0 );

    edtGPG = new EditFile( this, "edtGPG" );
    edtGPG->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, 0, 0, edtGPG->sizePolicy().hasHeightForWidth() ) );

    GpgCfgLayout->addWidget( edtGPG, 0, 1 );

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

    GpgCfgLayout->addWidget( TextLabel2, 2, 0 );

    edtHome = new EditFile( this, "edtHome" );
    edtHome->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, 0, 0, edtHome->sizePolicy().hasHeightForWidth() ) );

    GpgCfgLayout->addWidget( edtHome, 2, 1 );

    Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); 

    lnkGPG = new LinkLabel( this, "lnkGPG" );
    lnkGPG->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, 0, 0, lnkGPG->sizePolicy().hasHeightForWidth() ) );
    Layout1->addWidget( lnkGPG );

    btnFind = new QPushButton( this, "btnFind" );
    Layout1->addWidget( btnFind );

    GpgCfgLayout->addMultiCellLayout( Layout1, 1, 1, 0, 1 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    GpgCfgLayout->addItem( spacer, 4, 0 );

    Layout5 = new QHBoxLayout( 0, 0, 6, "Layout5"); 

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

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

    btnRefresh = new QPushButton( this, "btnRefresh" );
    Layout5->addWidget( btnRefresh );

    GpgCfgLayout->addMultiCellLayout( Layout5, 3, 3, 0, 1 );
    languageChange();
    resize( QSize(389, 237).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void GpgCfgBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    lblGPG->setProperty( "text", i18n( "Executable:" ) );
    TextLabel2->setProperty( "text", i18n( "Home directory:" ) );
    btnFind->setProperty( "text", i18n( "&Find" ) );
    lblKey->setProperty( "text", i18n( "Your key:" ) );
    btnRefresh->setProperty( "text", i18n( "&Refresh" ) );
}

#include "gpgcfgbase.moc"
