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

#include <qvariant.h>
#include <qpushbutton.h>
#include <qheader.h>
#include <qlistview.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

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


/* 
 *  Constructs a ConfigureDialogBase 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.
 */
ConfigureDialogBase::ConfigureDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl ),
      image0( (const char **) img0_cfgdlgbase )
{
    if ( !name )
	setName( "ConfigureDialog" );
    setProperty( "sizeGripEnabled", QVariant( TRUE, 0 ) );
    ConfigureDialogLayout = new QVBoxLayout( this, 11, 6, "ConfigureDialogLayout"); 

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

    lstBox = new QListView( this, "lstBox" );
    lstBox->addColumn( QString::null );
    lstBox->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, lstBox->sizePolicy().hasHeightForWidth() ) );
    Layout3->addWidget( lstBox );

    wnd = new QWidgetStack( this, "wnd" );
    Layout3->addWidget( wnd );
    ConfigureDialogLayout->addLayout( Layout3 );

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

    btnUpdate = new QPushButton( this, "btnUpdate" );
    Layout3_2->addWidget( btnUpdate );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout3_2->addItem( spacer );

    buttonApply = new QPushButton( this, "buttonApply" );
    buttonApply->setProperty( "autoDefault", QVariant( TRUE, 0 ) );
    Layout3_2->addWidget( buttonApply );

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

    buttonCancel = new QPushButton( this, "buttonCancel" );
    buttonCancel->setProperty( "autoDefault", QVariant( TRUE, 0 ) );
    Layout3_2->addWidget( buttonCancel );
    ConfigureDialogLayout->addLayout( Layout3_2 );
    languageChange();
    resize( QSize(503, 385).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
 */
ConfigureDialogBase::~ConfigureDialogBase()
{
    // no need to delete child widgets, Qt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ConfigureDialogBase::languageChange()
{
    setProperty( "caption", i18n( "Setup" ) );
    lstBox->header()->setLabel( 0, QString::null );
    btnUpdate->setProperty( "text", i18n( "&Update" ) );
    buttonApply->setProperty( "text", i18n( "&Apply" ) );
    buttonOk->setProperty( "text", i18n( "&OK" ) );
    buttonCancel->setProperty( "text", i18n( "&Cancel" ) );
}

#include "cfgdlgbase.moc"
