#include <kdialog.h>
#include <tdelocale.h>

/****************************************************************************
** Form implementation generated from reading ui file 'imgsequencedlgui.ui'
**
** Created by: The TQt user interface compiler (TQt 3.5.0)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "imgsequencedlgui.h"

#include <ntqvariant.h>
#include <kprogress.h>
#include <klineedit.h>
#include <knuminput.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqcombobox.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a imgSequenceDlg as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qdialog will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qdialog.
 */
imgSequenceDlg::imgSequenceDlg( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "imgSequenceDlg" );
    setSizeGripEnabled( true );
    setModal( false );
    imgSequenceDlgLayout = new TQGridLayout( this, 1, 1, 11, 6, "imgSequenceDlgLayout"); 

    progressGroup = new TQGroupBox( this, "progressGroup" );
    progressGroup->setColumnLayout(0, TQt::Vertical );
    progressGroup->layout()->setSpacing( 6 );
    progressGroup->layout()->setMargin( 11 );
    progressGroupLayout = new TQHBoxLayout( progressGroup->layout() );
    progressGroupLayout->setAlignment( TQt::AlignTop );

    layout25 = new TQVBoxLayout( 0, 0, 6, "layout25"); 

    layout24 = new TQHBoxLayout( 0, 0, 6, "layout24"); 

    progressLabel = new TQLabel( progressGroup, "progressLabel" );
    layout24->addWidget( progressLabel );

    currentImgCountOUT = new TQLabel( progressGroup, "currentImgCountOUT" );
    currentImgCountOUT->setMinimumSize( TQSize( 50, 0 ) );
    currentImgCountOUT->setFrameShape( TQLabel::Box );
    layout24->addWidget( currentImgCountOUT );

    textLabel1_4_2_2 = new TQLabel( progressGroup, "textLabel1_4_2_2" );
    layout24->addWidget( textLabel1_4_2_2 );

    fullImgCountOUT = new TQLabel( progressGroup, "fullImgCountOUT" );
    fullImgCountOUT->setMinimumSize( TQSize( 50, 0 ) );
    fullImgCountOUT->setFrameShape( TQLabel::Box );
    layout24->addWidget( fullImgCountOUT );

    completedLabel = new TQLabel( progressGroup, "completedLabel" );
    layout24->addWidget( completedLabel );
    layout25->addLayout( layout24 );

    imgProgress = new KProgress( progressGroup, "imgProgress" );
    imgProgress->setEnabled( false );
    imgProgress->setProgress( 0 );
    imgProgress->setCenterIndicator( true );
    imgProgress->setIndicatorFollowsStyle( false );
    layout25->addWidget( imgProgress );
    progressGroupLayout->addLayout( layout25 );
    spacer7 = new TQSpacerItem( 51, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    progressGroupLayout->addItem( spacer7 );

    imgSequenceDlgLayout->addWidget( progressGroup, 1, 0 );

    layout9 = new TQHBoxLayout( 0, 0, 6, "layout9"); 
    Horizontal_Spacing2 = new TQSpacerItem( 270, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout9->addItem( Horizontal_Spacing2 );

    startB = new TQPushButton( this, "startB" );
    startB->setAutoDefault( true );
    startB->setDefault( true );
    layout9->addWidget( startB );

    stopB = new TQPushButton( this, "stopB" );
    stopB->setEnabled( false );
    stopB->setAutoDefault( true );
    stopB->setDefault( true );
    layout9->addWidget( stopB );

    closeB = new TQPushButton( this, "closeB" );
    closeB->setAutoDefault( true );
    layout9->addWidget( closeB );

    imgSequenceDlgLayout->addLayout( layout9, 2, 0 );

    layout10 = new TQHBoxLayout( 0, 0, 6, "layout10"); 

    setupGroup = new TQGroupBox( this, "setupGroup" );
    setupGroup->setColumnLayout(0, TQt::Vertical );
    setupGroup->layout()->setSpacing( 6 );
    setupGroup->layout()->setMargin( 11 );
    setupGroupLayout = new TQGridLayout( setupGroup->layout() );
    setupGroupLayout->setAlignment( TQt::AlignTop );

    layout30 = new TQHBoxLayout( 0, 0, 6, "layout30"); 

    layout29 = new TQVBoxLayout( 0, 0, 6, "layout29"); 

    textLabel1_5 = new TQLabel( setupGroup, "textLabel1_5" );
    layout29->addWidget( textLabel1_5 );

    textLabel1 = new TQLabel( setupGroup, "textLabel1" );
    layout29->addWidget( textLabel1 );

    exposureLabel = new TQLabel( setupGroup, "exposureLabel" );
    layout29->addWidget( exposureLabel );

    textLabel1_2 = new TQLabel( setupGroup, "textLabel1_2" );
    layout29->addWidget( textLabel1_2 );

    textLabel1_3 = new TQLabel( setupGroup, "textLabel1_3" );
    layout29->addWidget( textLabel1_3 );
    layout30->addLayout( layout29 );

    layout28 = new TQVBoxLayout( 0, 0, 6, "layout28"); 

    CCDCombo = new TQComboBox( false, setupGroup, "CCDCombo" );
    layout28->addWidget( CCDCombo );

    prefixIN = new KLineEdit( setupGroup, "prefixIN" );
    prefixIN->setMaxLength( 128 );
    layout28->addWidget( prefixIN );

    exposureIN = new KDoubleNumInput( setupGroup, "exposureIN" );
    layout28->addWidget( exposureIN );

    countIN = new KIntNumInput( setupGroup, "countIN" );
    countIN->setMinValue( 1 );
    layout28->addWidget( countIN );

    delayIN = new KIntNumInput( setupGroup, "delayIN" );
    delayIN->setMinValue( 0 );
    layout28->addWidget( delayIN );
    layout30->addLayout( layout28 );

    setupGroupLayout->addLayout( layout30, 0, 0 );

    ISOCheck = new TQCheckBox( setupGroup, "ISOCheck" );
    ISOCheck->setChecked( true );

    setupGroupLayout->addWidget( ISOCheck, 1, 0 );
    layout10->addWidget( setupGroup );

    setupGroup_2 = new TQGroupBox( this, "setupGroup_2" );
    setupGroup_2->setColumnLayout(0, TQt::Vertical );
    setupGroup_2->layout()->setSpacing( 6 );
    setupGroup_2->layout()->setMargin( 11 );
    setupGroup_2Layout = new TQGridLayout( setupGroup_2->layout() );
    setupGroup_2Layout->setAlignment( TQt::AlignTop );

    layout29_2 = new TQVBoxLayout( 0, 0, 6, "layout29_2"); 

    textLabel1_5_2 = new TQLabel( setupGroup_2, "textLabel1_5_2" );
    layout29_2->addWidget( textLabel1_5_2 );

    textLabel1_2_2 = new TQLabel( setupGroup_2, "textLabel1_2_2" );
    layout29_2->addWidget( textLabel1_2_2 );

    setupGroup_2Layout->addMultiCellLayout( layout29_2, 0, 1, 0, 0 );

    filterPosCombo = new TQComboBox( false, setupGroup_2, "filterPosCombo" );

    setupGroup_2Layout->addWidget( filterPosCombo, 1, 1 );

    filterCombo = new TQComboBox( false, setupGroup_2, "filterCombo" );

    setupGroup_2Layout->addWidget( filterCombo, 0, 1 );
    spacer3 = new TQSpacerItem( 21, 81, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    setupGroup_2Layout->addMultiCell( spacer3, 2, 2, 0, 1 );
    layout10->addWidget( setupGroup_2 );

    imgSequenceDlgLayout->addLayout( layout10, 0, 0 );
    languageChange();
    resize( TQSize(421, 335).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( CCDCombo, prefixIN );
    setTabOrder( prefixIN, countIN );
    setTabOrder( countIN, delayIN );
    setTabOrder( delayIN, ISOCheck );
    setTabOrder( ISOCheck, startB );
    setTabOrder( startB, stopB );
    setTabOrder( stopB, closeB );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void imgSequenceDlg::languageChange()
{
    setCaption( tr2i18n( "Capture Image Sequence" ) );
    progressGroup->setTitle( tr2i18n( "Progress" ) );
    progressLabel->setText( tr2i18n( "Progress:" ) );
    currentImgCountOUT->setText( TQString::null );
    textLabel1_4_2_2->setText( tr2i18n( "of" ) );
    fullImgCountOUT->setText( TQString::null );
    completedLabel->setText( tr2i18n( "completed" ) );
    startB->setText( tr2i18n( "&Start" ) );
    stopB->setText( tr2i18n( "S&top" ) );
    closeB->setText( tr2i18n( "&Close" ) );
    setupGroup->setTitle( tr2i18n( "Camera/CCD" ) );
    textLabel1_5->setText( tr2i18n( "Device:" ) );
    TQToolTip::add( textLabel1_5, TQString::null );
    TQWhatsThis::add( textLabel1_5, TQString::null );
    textLabel1->setText( tr2i18n( "Prefix:" ) );
    TQToolTip::add( textLabel1, tr2i18n( "Prefix to append to the beginning of file names" ) );
    TQWhatsThis::add( textLabel1, TQString::null );
    exposureLabel->setText( tr2i18n( "Exposure:" ) );
    TQToolTip::add( exposureLabel, tr2i18n( "Set the exposure time in seconds for individual images, if applicable" ) );
    TQWhatsThis::add( exposureLabel, TQString::null );
    textLabel1_2->setText( tr2i18n( "Count:" ) );
    TQToolTip::add( textLabel1_2, tr2i18n( "Number of images to capture" ) );
    TQWhatsThis::add( textLabel1_2, TQString::null );
    textLabel1_3->setText( tr2i18n( "Delay:" ) );
    TQToolTip::add( textLabel1_3, tr2i18n( "Delay in seconds between consecutive images" ) );
    TQWhatsThis::add( textLabel1_3, TQString::null );
    prefixIN->setText( tr2i18n( "image" ) );
    ISOCheck->setText( tr2i18n( "Add ISO 8601 time stamp" ) );
    TQToolTip::add( ISOCheck, tr2i18n( "Add time stamp to the file name" ) );
    setupGroup_2->setTitle( tr2i18n( "Filter" ) );
    textLabel1_5_2->setText( tr2i18n( "Device:" ) );
    TQToolTip::add( textLabel1_5_2, TQString::null );
    TQWhatsThis::add( textLabel1_5_2, TQString::null );
    textLabel1_2_2->setText( tr2i18n( "Filter:" ) );
    TQToolTip::add( textLabel1_2_2, tr2i18n( "Number of images to capture" ) );
    TQWhatsThis::add( textLabel1_2_2, TQString::null );
}

/****************************************************************************
** imgSequenceDlg meta object code from reading C++ file 'imgsequencedlgui.h'
**
** Created by: The TQt Meta Object Compiler version 26 (TQt 3.5.0)
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef TQT_NO_COMPAT
#include "imgsequencedlgui.h"
#include <ntqmetaobject.h>
#include <ntqapplication.h>

#include <private/qucomextra_p.h>
#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
#error "This file was generated using the moc from 3.5.0. It"
#error "cannot be used with the include files from this version of TQt."
#error "(The moc has changed too much.)"
#endif

const char *imgSequenceDlg::className() const
{
    return "imgSequenceDlg";
}

TQMetaObject *imgSequenceDlg::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_imgSequenceDlg( "imgSequenceDlg", &imgSequenceDlg::staticMetaObject );

#ifndef TQT_NO_TRANSLATION
TQString imgSequenceDlg::tr( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "imgSequenceDlg", s, c, TQApplication::DefaultCodec );
    else
	return TQString::fromLatin1( s );
}
#ifndef TQT_NO_TRANSLATION_UTF8
TQString imgSequenceDlg::trUtf8( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "imgSequenceDlg", s, c, TQApplication::UnicodeUTF8 );
    else
	return TQString::fromUtf8( s );
}
#endif // TQT_NO_TRANSLATION_UTF8

#endif // TQT_NO_TRANSLATION

TQMetaObject* imgSequenceDlg::staticMetaObject()
{
    if ( metaObj ) {
	return metaObj;
}
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->lock();
    if ( metaObj ) {
	if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
	return metaObj;
    }
#endif // TQT_THREAD_SUPPORT
    TQMetaObject* parentObject = TQDialog::staticMetaObject();
    static const TQUMethod slot_0 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"imgSequenceDlg", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_imgSequenceDlg.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

void* imgSequenceDlg::tqt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "imgSequenceDlg" ) )
	return this;
    return TQDialog::tqt_cast( clname );
}

bool imgSequenceDlg::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: languageChange(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

bool imgSequenceDlg::tqt_emit( int _id, TQUObject* _o )
{
    return TQDialog::tqt_emit(_id,_o);
}
#ifndef TQT_NO_PROPERTIES

bool imgSequenceDlg::tqt_property( int id, int f, TQVariant* v)
{
    return TQDialog::tqt_property( id, f, v);
}

bool imgSequenceDlg::tqt_static_property( TQObject* , int , int , TQVariant* ){ return false; }
#endif // TQT_NO_PROPERTIES
