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

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

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


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

    GroupBox1 = new QGroupBox( this, "GroupBox1" );
    GroupBox1->setColumnLayout(0, Qt::Vertical );
    GroupBox1->layout()->setSpacing( 6 );
    GroupBox1->layout()->setMargin( 11 );
    GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
    GroupBox1Layout->setAlignment( Qt::AlignTop );

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

    GroupBox1Layout->addWidget( TextLabel7, 0, 0 );

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

    GroupBox1Layout->addWidget( TextLabel8, 1, 0 );

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

    GroupBox1Layout->addWidget( TextLabel9, 2, 0 );

    edtGenKey = new QLineEdit( GroupBox1, "edtGenKey" );

    GroupBox1Layout->addWidget( edtGenKey, 0, 1 );

    edtPublic = new QLineEdit( GroupBox1, "edtPublic" );

    GroupBox1Layout->addWidget( edtPublic, 1, 1 );

    edtSecret = new QLineEdit( GroupBox1, "edtSecret" );

    GroupBox1Layout->addWidget( edtSecret, 2, 1 );

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

    GroupBox1Layout->addWidget( TextLabel10, 3, 0 );

    edtImport = new QLineEdit( GroupBox1, "edtImport" );

    GroupBox1Layout->addWidget( edtImport, 3, 1 );

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

    GroupBox1Layout->addWidget( TextLabel11, 4, 0 );

    edtExport = new QLineEdit( GroupBox1, "edtExport" );

    GroupBox1Layout->addWidget( edtExport, 4, 1 );

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

    GroupBox1Layout->addWidget( TextLabel13, 6, 0 );

    edtEncrypt = new QLineEdit( GroupBox1, "edtEncrypt" );

    GroupBox1Layout->addWidget( edtEncrypt, 6, 1 );

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

    GroupBox1Layout->addWidget( TextLabel14, 7, 0 );

    edtDecrypt = new QLineEdit( GroupBox1, "edtDecrypt" );

    GroupBox1Layout->addWidget( edtDecrypt, 7, 1 );
    GpgAdvancedLayout->addWidget( GroupBox1 );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    GpgAdvancedLayout->addItem( spacer );
    languageChange();
    resize( QSize(499, 268).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void GpgAdvancedBase::languageChange()
{
    setProperty( "caption", i18n( "Form1" ) );
    GroupBox1->setProperty( "title", i18n( "Command arguments" ) );
    TextLabel7->setProperty( "text", i18n( "Generate key:" ) );
    TextLabel8->setProperty( "text", i18n( "List public keys:" ) );
    TextLabel9->setProperty( "text", i18n( "List secret keys:" ) );
    TextLabel10->setProperty( "text", i18n( "Import public:" ) );
    TextLabel11->setProperty( "text", i18n( "Export public:" ) );
    TextLabel13->setProperty( "text", i18n( "Encrypt:" ) );
    TextLabel14->setProperty( "text", i18n( "Decrypt:" ) );
}

#include "gpgadvbase.moc"
