#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './motorthreaddialogbase.ui'
**
** Created: Fri Feb 6 20:39:15 2004
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "motorthreaddialogbase.h"

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

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

    InfoField = new QMultiLineEdit( this, "InfoField" );
    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, QColor( 0, 255, 0) );
    cg.setColor( QColorGroup::ButtonText, black );
    cg.setColor( QColorGroup::Base, black );
    cg.setColor( QColorGroup::Background, QColor( 190, 190, 190) );
    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, QColor( 0, 255, 0) );
    cg.setColor( QColorGroup::ButtonText, black );
    cg.setColor( QColorGroup::Base, black );
    cg.setColor( QColorGroup::Background, QColor( 190, 190, 190) );
    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, QColor( 0, 255, 0) );
    cg.setColor( QColorGroup::ButtonText, QColor( 128, 128, 128) );
    cg.setColor( QColorGroup::Base, black );
    cg.setColor( QColorGroup::Background, QColor( 190, 190, 190) );
    cg.setColor( QColorGroup::Shadow, black );
    cg.setColor( QColorGroup::Highlight, QColor( 0, 0, 128) );
    cg.setColor( QColorGroup::HighlightedText, white );
    pal.setDisabled( cg );
    InfoField->setPalette( pal );
    InfoField->setCursor( QCursor( 0 ) );
    InfoField->setAcceptDrops( FALSE );
    InfoField->setFrameShape( QMultiLineEdit::WinPanel );
    InfoField->setFrameShadow( QMultiLineEdit::Sunken );
    InfoField->setReadOnly( TRUE );
    QToolTip::add(  InfoField, i18n( "Task Information" ) );
    MotorThreadDlgBaseLayout->addWidget( InfoField );

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

    TextLabel1 = new QLabel( this, "TextLabel1" );
    TextLabel1->setText( i18n( "Progress:" ) );
    Layout2->addWidget( TextLabel1 );

    ProgressBar1 = new QProgressBar( this, "ProgressBar1" );
    Layout2->addWidget( ProgressBar1 );
    MotorThreadDlgBaseLayout->addLayout( Layout2 );

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

    buttonApply = new QPushButton( this, "buttonApply" );
    buttonApply->setText( i18n( "&Apply" ) );
    buttonApply->setAutoDefault( TRUE );
    Layout3->addWidget( buttonApply );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout3->addItem( spacer );

    buttonOk = new QPushButton( this, "buttonOk" );
    buttonOk->setText( i18n( "&OK" ) );
    buttonOk->setAutoDefault( TRUE );
    buttonOk->setDefault( TRUE );
    Layout3->addWidget( buttonOk );

    buttonCancel = new QPushButton( this, "buttonCancel" );
    buttonCancel->setText( i18n( "&Cancel" ) );
    buttonCancel->setAutoDefault( TRUE );
    Layout3->addWidget( buttonCancel );
    MotorThreadDlgBaseLayout->addLayout( Layout3 );

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

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

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

#include "motorthreaddialogbase.moc"
