#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './amcprogdlgbase.ui'
**
** Created: Thu Jan 29 23:03:52 2004
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "amcprogdlgbase.h"

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

/* 
 *  Constructs a AMCProgDlgBase which is 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.
 */
AMCProgDlgBase::AMCProgDlgBase( QWidget* parent,  const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "AMCProgDlgBase" );
    resize( 287, 145 ); 
    setCaption( i18n( "AMC Action Progress" ) );
    AMCProgDlgBaseLayout = new QVBoxLayout( this ); 
    AMCProgDlgBaseLayout->setSpacing( 6 );
    AMCProgDlgBaseLayout->setMargin( 11 );

    ProgressLabel = new QLabel( this, "ProgressLabel" );
    ProgressLabel->setText( i18n( "Switching all Lasers Off" ) );
    AMCProgDlgBaseLayout->addWidget( ProgressLabel );

    ProgressBar = new QProgressBar( this, "ProgressBar" );
    AMCProgDlgBaseLayout->addWidget( ProgressBar );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    AMCProgDlgBaseLayout->addItem( spacer );

    Layout2 = new QHBoxLayout; 
    Layout2->setSpacing( 6 );
    Layout2->setMargin( 0 );

    TextLabel1_2 = new QLabel( this, "TextLabel1_2" );
    TextLabel1_2->setText( i18n( "Errors" ) );
    Layout2->addWidget( TextLabel1_2 );
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout2->addItem( spacer_2 );

    NumErrors = new QLineEdit( this, "NumErrors" );
    NumErrors->setEnabled( FALSE );
    NumErrors->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, NumErrors->sizePolicy().hasHeightForWidth() ) );
    NumErrors->setMinimumSize( QSize( 50, 0 ) );
    NumErrors->setMaximumSize( QSize( 50, 32767 ) );
    NumErrors->setText( i18n( "0" ) );
    NumErrors->setMaxLength( 5 );
    NumErrors->setAlignment( int( QLineEdit::AlignRight ) );
    Layout2->addWidget( NumErrors );
    AMCProgDlgBaseLayout->addLayout( Layout2 );
    QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    AMCProgDlgBaseLayout->addItem( spacer_3 );

    Layout4 = new QHBoxLayout; 
    Layout4->setSpacing( 6 );
    Layout4->setMargin( 0 );
    QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout4->addItem( spacer_4 );

    CancelButton = new QPushButton( this, "CancelButton" );
    CancelButton->setText( i18n( "Cancel" ) );
    CancelButton->setDefault( FALSE );
    Layout4->addWidget( CancelButton );
    AMCProgDlgBaseLayout->addLayout( Layout4 );

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

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

#include "amcprogdlgbase.moc"
