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

#include <qvariant.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qcheckbox.h>
#include <qframe.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a EditMailBase as a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f'.
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
EditMailBase::EditMailBase( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "EditMail" );
    setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
    setProperty( "sizeGripEnabled", QVariant( TRUE, 0 ) );
    EditMailLayout = new QVBoxLayout( this, 11, 6, "EditMailLayout"); 

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

    edtMail = new QLineEdit( this, "edtMail" );
    EditMailLayout->addWidget( edtMail );

    chkPublish = new QCheckBox( this, "chkPublish" );
    EditMailLayout->addWidget( chkPublish );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    EditMailLayout->addItem( spacer );

    Line4 = new QFrame( this, "Line4" );
    Line4->setProperty( "frameShape", "HLine" );
    Line4->setProperty( "frameShadow", "Sunken" );
    Line4->setProperty( "frameShape", QFrame::VLine );
    Line4->setProperty( "frameShape", "HLine" );
    EditMailLayout->addWidget( Line4 );

    Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); 
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout1->addItem( spacer_2 );

    buttonOk = new QPushButton( this, "buttonOk" );
    buttonOk->setProperty( "autoDefault", QVariant( TRUE, 0 ) );
    buttonOk->setProperty( "default", QVariant( TRUE, 0 ) );
    Layout1->addWidget( buttonOk );

    buttonCancel = new QPushButton( this, "buttonCancel" );
    buttonCancel->setProperty( "autoDefault", QVariant( TRUE, 0 ) );
    Layout1->addWidget( buttonCancel );
    EditMailLayout->addLayout( Layout1 );
    languageChange();
    resize( QSize(315, 174).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
    connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void EditMailBase::languageChange()
{
    setProperty( "caption", i18n( "EditMail" ) );
    TextLabel1->setProperty( "text", i18n( "Enter Email address:" ) );
    chkPublish->setProperty( "text", i18n( "&Publish" ) );
    buttonOk->setProperty( "text", i18n( "&OK" ) );
    buttonCancel->setProperty( "text", i18n( "&Cancel" ) );
}

#include "editmailbase.moc"
