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

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

/* 
 *  Constructs a CalibrateLaserMovementDialogBase 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.
 */
CalibrateLaserMovementDialogBase::CalibrateLaserMovementDialogBase( QWidget* parent,  const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "CalibrateLaserMovementDialogBase" );
    resize( 594, 566 ); 
    setCaption( i18n( "CalibrateLaserMovement" ) );
    setSizeGripEnabled( TRUE );
    CalibrateLaserMovementDialogBaseLayout = new QVBoxLayout( this ); 
    CalibrateLaserMovementDialogBaseLayout->setSpacing( 6 );
    CalibrateLaserMovementDialogBaseLayout->setMargin( 11 );

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

    ProgressField = new QMultiLineEdit( GroupBox1, "ProgressField" );
    QPalette pal;
    QColorGroup cg;
    cg.setColor( QColorGroup::Foreground, black );
    cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) );
    cg.setColor( QColorGroup::Light, white );
    cg.setColor( QColorGroup::Midlight, QColor( 223, 223, 223) );
    cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) );
    cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) );
    cg.setColor( QColorGroup::Text, QColor( 0, 170, 0) );
    cg.setColor( QColorGroup::BrightText, white );
    cg.setColor( QColorGroup::ButtonText, black );
    cg.setColor( QColorGroup::Base, black );
    cg.setColor( QColorGroup::Background, QColor( 192, 192, 192) );
    cg.setColor( QColorGroup::Shadow, black );
    cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 128) );
    cg.setColor( QColorGroup::HighlightedText, white );
    pal.setActive( cg );
    cg.setColor( QColorGroup::Foreground, black );
    cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) );
    cg.setColor( QColorGroup::Light, white );
    cg.setColor( QColorGroup::Midlight, QColor( 220, 220, 220) );
    cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) );
    cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) );
    cg.setColor( QColorGroup::Text, QColor( 0, 170, 0) );
    cg.setColor( QColorGroup::BrightText, white );
    cg.setColor( QColorGroup::ButtonText, black );
    cg.setColor( QColorGroup::Base, black );
    cg.setColor( QColorGroup::Background, QColor( 192, 192, 192) );
    cg.setColor( QColorGroup::Shadow, black );
    cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 128) );
    cg.setColor( QColorGroup::HighlightedText, white );
    pal.setInactive( cg );
    cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
    cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) );
    cg.setColor( QColorGroup::Light, white );
    cg.setColor( QColorGroup::Midlight, QColor( 220, 220, 220) );
    cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) );
    cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) );
    cg.setColor( QColorGroup::Text, QColor( 0, 170, 0) );
    cg.setColor( QColorGroup::BrightText, white );
    cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) );
    cg.setColor( QColorGroup::Base, black );
    cg.setColor( QColorGroup::Background, QColor( 192, 192, 192) );
    cg.setColor( QColorGroup::Shadow, black );
    cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 128) );
    cg.setColor( QColorGroup::HighlightedText, white );
    pal.setDisabled( cg );
    ProgressField->setPalette( pal );
    GroupBox1Layout->addWidget( ProgressField );

    ButtonGroup1 = new QButtonGroup( GroupBox1, "ButtonGroup1" );
    ButtonGroup1->setFrameShape( QButtonGroup::NoFrame );
    ButtonGroup1->setTitle( QString::null );
    ButtonGroup1->setColumnLayout(0, Qt::Vertical );
    ButtonGroup1->layout()->setSpacing( 0 );
    ButtonGroup1->layout()->setMargin( 0 );
    ButtonGroup1Layout = new QGridLayout( ButtonGroup1->layout() );
    ButtonGroup1Layout->setAlignment( Qt::AlignTop );
    ButtonGroup1Layout->setSpacing( 6 );
    ButtonGroup1Layout->setMargin( 11 );

    PanelProgress = new QProgressBar( ButtonGroup1, "PanelProgress" );

    ButtonGroup1Layout->addWidget( PanelProgress, 0, 1 );

    TotalProgress = new QProgressBar( ButtonGroup1, "TotalProgress" );

    ButtonGroup1Layout->addWidget( TotalProgress, 1, 1 );

    TextLabel1_2 = new QLabel( ButtonGroup1, "TextLabel1_2" );
    TextLabel1_2->setText( i18n( "Overall progress" ) );

    ButtonGroup1Layout->addWidget( TextLabel1_2, 1, 0 );

    TextLabel1 = new QLabel( ButtonGroup1, "TextLabel1" );
    TextLabel1->setText( i18n( "Panel progress" ) );

    ButtonGroup1Layout->addWidget( TextLabel1, 0, 0 );
    GroupBox1Layout->addWidget( ButtonGroup1 );

    PanelBox = new QGroupBox( GroupBox1, "PanelBox" );
    PanelBox->setTitle( i18n( "Panel" ) );
    PanelBox->setColumnLayout(0, Qt::Vertical );
    PanelBox->layout()->setSpacing( 0 );
    PanelBox->layout()->setMargin( 0 );
    PanelBoxLayout = new QHBoxLayout( PanelBox->layout() );
    PanelBoxLayout->setAlignment( Qt::AlignTop );
    PanelBoxLayout->setSpacing( 6 );
    PanelBoxLayout->setMargin( 11 );

    PortLabel = new QLabel( PanelBox, "PortLabel" );
    PortLabel->setText( i18n( "Port: --" ) );
    PanelBoxLayout->addWidget( PortLabel );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    PanelBoxLayout->addItem( spacer );

    BoxLabel = new QLabel( PanelBox, "BoxLabel" );
    BoxLabel->setText( i18n( "Box: --" ) );
    PanelBoxLayout->addWidget( BoxLabel );
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    PanelBoxLayout->addItem( spacer_2 );

    DriverLabel = new QLabel( PanelBox, "DriverLabel" );
    DriverLabel->setText( i18n( "Driver: --" ) );
    PanelBoxLayout->addWidget( DriverLabel );
    GroupBox1Layout->addWidget( PanelBox );

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

    GroupBox3 = new QGroupBox( GroupBox1, "GroupBox3" );
    GroupBox3->setTitle( i18n( "X Motor" ) );
    GroupBox3->setColumnLayout(0, Qt::Vertical );
    GroupBox3->layout()->setSpacing( 0 );
    GroupBox3->layout()->setMargin( 0 );
    GroupBox3Layout = new QHBoxLayout( GroupBox3->layout() );
    GroupBox3Layout->setAlignment( Qt::AlignTop );
    GroupBox3Layout->setSpacing( 6 );
    GroupBox3Layout->setMargin( 11 );

    XAxisLabel = new QLabel( GroupBox3, "XAxisLabel" );
    XAxisLabel->setText( i18n( "Axis :" ) );
    GroupBox3Layout->addWidget( XAxisLabel );

    XAxisEdit = new QLineEdit( GroupBox3, "XAxisEdit" );
    XAxisEdit->setEnabled( FALSE );
    GroupBox3Layout->addWidget( XAxisEdit );
    QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    GroupBox3Layout->addItem( spacer_3 );

    XSlopeLabel = new QLabel( GroupBox3, "XSlopeLabel" );
    XSlopeLabel->setText( i18n( "Slope :" ) );
    GroupBox3Layout->addWidget( XSlopeLabel );

    XSlopeEdit = new QLineEdit( GroupBox3, "XSlopeEdit" );
    XSlopeEdit->setEnabled( FALSE );
    GroupBox3Layout->addWidget( XSlopeEdit );
    Layout2->addWidget( GroupBox3 );

    YMotorBox = new QGroupBox( GroupBox1, "YMotorBox" );
    YMotorBox->setTitle( i18n( "Y Motor" ) );
    YMotorBox->setColumnLayout(0, Qt::Vertical );
    YMotorBox->layout()->setSpacing( 0 );
    YMotorBox->layout()->setMargin( 0 );
    YMotorBoxLayout = new QHBoxLayout( YMotorBox->layout() );
    YMotorBoxLayout->setAlignment( Qt::AlignTop );
    YMotorBoxLayout->setSpacing( 6 );
    YMotorBoxLayout->setMargin( 11 );

    YAxisLabel = new QLabel( YMotorBox, "YAxisLabel" );
    YAxisLabel->setText( i18n( "Axis :" ) );
    YMotorBoxLayout->addWidget( YAxisLabel );

    YAxisEdit = new QLineEdit( YMotorBox, "YAxisEdit" );
    YAxisEdit->setEnabled( FALSE );
    YMotorBoxLayout->addWidget( YAxisEdit );
    QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    YMotorBoxLayout->addItem( spacer_4 );

    YSlopeLabel = new QLabel( YMotorBox, "YSlopeLabel" );
    YSlopeLabel->setText( i18n( "Slope :" ) );
    YMotorBoxLayout->addWidget( YSlopeLabel );

    YSlopeEdit = new QLineEdit( YMotorBox, "YSlopeEdit" );
    YSlopeEdit->setEnabled( FALSE );
    YMotorBoxLayout->addWidget( YSlopeEdit );
    Layout2->addWidget( YMotorBox );
    GroupBox1Layout->addLayout( Layout2 );
    CalibrateLaserMovementDialogBaseLayout->addWidget( GroupBox1 );

    GroupBox2 = new QGroupBox( this, "GroupBox2" );
    GroupBox2->setTitle( i18n( "Errors" ) );
    GroupBox2->setColumnLayout(0, Qt::Vertical );
    GroupBox2->layout()->setSpacing( 0 );
    GroupBox2->layout()->setMargin( 0 );
    GroupBox2Layout = new QGridLayout( GroupBox2->layout() );
    GroupBox2Layout->setAlignment( Qt::AlignTop );
    GroupBox2Layout->setSpacing( 6 );
    GroupBox2Layout->setMargin( 11 );

    ErrorField = new QMultiLineEdit( GroupBox2, "ErrorField" );
    ErrorField->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, ErrorField->sizePolicy().hasHeightForWidth() ) );
    cg.setColor( QColorGroup::Foreground, black );
    cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) );
    cg.setColor( QColorGroup::Light, white );
    cg.setColor( QColorGroup::Midlight, QColor( 223, 223, 223) );
    cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) );
    cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) );
    cg.setColor( QColorGroup::Text, QColor( 255, 0, 0) );
    cg.setColor( QColorGroup::BrightText, white );
    cg.setColor( QColorGroup::ButtonText, black );
    cg.setColor( QColorGroup::Base, white );
    cg.setColor( QColorGroup::Background, QColor( 192, 192, 192) );
    cg.setColor( QColorGroup::Shadow, black );
    cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 128) );
    cg.setColor( QColorGroup::HighlightedText, white );
    pal.setActive( cg );
    cg.setColor( QColorGroup::Foreground, black );
    cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) );
    cg.setColor( QColorGroup::Light, white );
    cg.setColor( QColorGroup::Midlight, QColor( 220, 220, 220) );
    cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) );
    cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) );
    cg.setColor( QColorGroup::Text, QColor( 255, 0, 0) );
    cg.setColor( QColorGroup::BrightText, white );
    cg.setColor( QColorGroup::ButtonText, black );
    cg.setColor( QColorGroup::Base, white );
    cg.setColor( QColorGroup::Background, QColor( 192, 192, 192) );
    cg.setColor( QColorGroup::Shadow, black );
    cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 128) );
    cg.setColor( QColorGroup::HighlightedText, white );
    pal.setInactive( cg );
    cg.setColor( QColorGroup::Foreground, QColor( 128, 128, 128) );
    cg.setColor( QColorGroup::Button, QColor( 192, 192, 192) );
    cg.setColor( QColorGroup::Light, white );
    cg.setColor( QColorGroup::Midlight, QColor( 220, 220, 220) );
    cg.setColor( QColorGroup::Dark, QColor( 96, 96, 96) );
    cg.setColor( QColorGroup::Mid, QColor( 128, 128, 128) );
    cg.setColor( QColorGroup::Text, QColor( 255, 0, 0) );
    cg.setColor( QColorGroup::BrightText, white );
    cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) );
    cg.setColor( QColorGroup::Base, white );
    cg.setColor( QColorGroup::Background, QColor( 192, 192, 192) );
    cg.setColor( QColorGroup::Shadow, black );
    cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 128) );
    cg.setColor( QColorGroup::HighlightedText, white );
    pal.setDisabled( cg );
    ErrorField->setPalette( pal );

    GroupBox2Layout->addWidget( ErrorField, 0, 0 );
    CalibrateLaserMovementDialogBaseLayout->addWidget( GroupBox2 );

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

    buttonStart = new QPushButton( this, "buttonStart" );
    buttonStart->setText( i18n( "&Start" ) );
    buttonStart->setAutoDefault( TRUE );
    Layout3->addWidget( buttonStart );

    buttonStop = new QPushButton( this, "buttonStop" );
    buttonStop->setEnabled( FALSE );
    buttonStop->setText( i18n( "Stop" ) );
    Layout3->addWidget( buttonStop );
    QSpacerItem* spacer_5 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout3->addItem( spacer_5 );

    buttonOk = new QPushButton( this, "buttonOk" );
    buttonOk->setCaption( QString::null );
    buttonOk->setText( i18n( "&OK" ) );
    buttonOk->setAutoDefault( TRUE );
    buttonOk->setDefault( TRUE );
    Layout3->addWidget( buttonOk );
    CalibrateLaserMovementDialogBaseLayout->addLayout( Layout3 );

    // signals and slots connections
    connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
    connect( buttonStart, SIGNAL( clicked() ), this, SLOT( startThread() ) );
    connect( buttonStop, SIGNAL( clicked() ), this, SLOT( stop() ) );
}

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

void CalibrateLaserMovementDialogBase::stop()
{
    qWarning( "CalibrateLaserMovementDialogBase::stop(): Not implemented yet!" );
}

void CalibrateLaserMovementDialogBase::startThread()
{
    qWarning( "CalibrateLaserMovementDialogBase::startThread(): Not implemented yet!" );
}

#include "calibratelasermovementdialogbase.moc"
