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

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

#include "modcalcvlsrdlg.h"

#include <ntqvariant.h>
#include <klineedit.h>
#include <ktextbrowser.h>
#include <kpushbutton.h>
#include <../dmsbox.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqgroupbox.h>
#include <ntqdatetimeedit.h>
#include <ntqlabel.h>
#include <ntqlineedit.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include "libtdeedu/extdate/extdatetimeedit.h"

/*
 *  Constructs a modCalcVlsrDlg as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
modCalcVlsrDlg::modCalcVlsrDlg( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "modCalcVlsrDlg" );
    modCalcVlsrDlgLayout = new TQHBoxLayout( this, 11, 6, "modCalcVlsrDlgLayout"); 

    tabWidget3 = new TQTabWidget( this, "tabWidget3" );

    tab = new TQWidget( tabWidget3, "tab" );
    tabLayout = new TQVBoxLayout( tab, 11, 6, "tabLayout"); 

    inputGroupBox = new TQGroupBox( tab, "inputGroupBox" );
    inputGroupBox->setColumnLayout(0, TQt::Vertical );
    inputGroupBox->layout()->setSpacing( 6 );
    inputGroupBox->layout()->setMargin( 11 );
    inputGroupBoxLayout = new TQHBoxLayout( inputGroupBox->layout() );
    inputGroupBoxLayout->setAlignment( TQt::AlignTop );

    layout7 = new TQGridLayout( 0, 1, 1, 0, 6, "layout7"); 
    spacer10 = new TQSpacerItem( 20, 21, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout7->addItem( spacer10, 2, 0 );

    timBox = new TQTimeEdit( inputGroupBox, "timBox" );
    timBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, timBox->sizePolicy().hasHeightForWidth() ) );

    layout7->addWidget( timBox, 0, 1 );
    spacer8 = new TQSpacerItem( 20, 21, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout7->addItem( spacer8, 2, 1 );

    datBox = new ExtDateEdit( inputGroupBox, "datBox" );
    datBox->setFocusPolicy( ExtDateEdit::StrongFocus );

    layout7->addWidget( datBox, 1, 1 );

    dateLabel = new TQLabel( inputGroupBox, "dateLabel" );

    layout7->addWidget( dateLabel, 1, 0 );

    timLabel = new TQLabel( inputGroupBox, "timLabel" );

    layout7->addWidget( timLabel, 0, 0 );
    inputGroupBoxLayout->addLayout( layout7 );
    spacer2 = new TQSpacerItem( 20, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    inputGroupBoxLayout->addItem( spacer2 );

    layout8 = new TQGridLayout( 0, 1, 1, 0, 6, "layout8"); 

    heightBox = new KLineEdit( inputGroupBox, "heightBox" );
    heightBox->setMaximumSize( TQSize( 1000, 32767 ) );

    layout8->addWidget( heightBox, 2, 1 );

    longBox = new dmsBox( inputGroupBox, "longBox" );
    longBox->setMinimumSize( TQSize( 100, 0 ) );
    longBox->setFocusPolicy( dmsBox::StrongFocus );

    layout8->addWidget( longBox, 0, 1 );

    latLabel = new TQLabel( inputGroupBox, "latLabel" );

    layout8->addWidget( latLabel, 1, 0 );

    longLabel = new TQLabel( inputGroupBox, "longLabel" );

    layout8->addWidget( longLabel, 0, 0 );

    textLabel1_2 = new TQLabel( inputGroupBox, "textLabel1_2" );

    layout8->addWidget( textLabel1_2, 2, 0 );

    latBox = new dmsBox( inputGroupBox, "latBox" );
    latBox->setMinimumSize( TQSize( 100, 0 ) );
    latBox->setFocusPolicy( dmsBox::StrongFocus );

    layout8->addWidget( latBox, 1, 1 );
    inputGroupBoxLayout->addLayout( layout8 );
    tabLayout->addWidget( inputGroupBox );

    layout14 = new TQHBoxLayout( 0, 0, 6, "layout14"); 
    spacer23 = new TQSpacerItem( 120, 31, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout14->addItem( spacer23 );

    GroupBox2 = new TQGroupBox( tab, "GroupBox2" );
    GroupBox2->setColumnLayout(0, TQt::Vertical );
    GroupBox2->layout()->setSpacing( 6 );
    GroupBox2->layout()->setMargin( 11 );
    GroupBox2Layout = new TQGridLayout( GroupBox2->layout() );
    GroupBox2Layout->setAlignment( TQt::AlignTop );

    raLabel = new TQLabel( GroupBox2, "raLabel" );

    GroupBox2Layout->addWidget( raLabel, 0, 0 );

    raBox = new dmsBox( GroupBox2, "raBox" );
    raBox->setEnabled( true );
    raBox->setMinimumSize( TQSize( 100, 0 ) );
    raBox->setFocusPolicy( dmsBox::StrongFocus );

    GroupBox2Layout->addWidget( raBox, 0, 1 );

    decLabel = new TQLabel( GroupBox2, "decLabel" );

    GroupBox2Layout->addWidget( decLabel, 1, 0 );

    decBox = new dmsBox( GroupBox2, "decBox" );
    decBox->setMinimumSize( TQSize( 100, 0 ) );
    decBox->setFocusPolicy( dmsBox::StrongFocus );

    GroupBox2Layout->addWidget( decBox, 1, 1 );

    epochName = new TQLineEdit( GroupBox2, "epochName" );
    epochName->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, epochName->sizePolicy().hasHeightForWidth() ) );
    epochName->setMaximumSize( TQSize( 32767, 32767 ) );

    GroupBox2Layout->addWidget( epochName, 2, 1 );

    epochLabel = new TQLabel( GroupBox2, "epochLabel" );

    GroupBox2Layout->addWidget( epochLabel, 2, 0 );
    layout14->addWidget( GroupBox2 );
    spacer1 = new TQSpacerItem( 100, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout14->addItem( spacer1 );
    tabLayout->addLayout( layout14 );

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

    groupBox8 = new TQGroupBox( tab, "groupBox8" );
    groupBox8->setColumnLayout(0, TQt::Vertical );
    groupBox8->layout()->setSpacing( 6 );
    groupBox8->layout()->setMargin( 11 );
    groupBox8Layout = new TQGridLayout( groupBox8->layout() );
    groupBox8Layout->setAlignment( TQt::AlignTop );

    vlsrBox = new KLineEdit( groupBox8, "vlsrBox" );

    groupBox8Layout->addWidget( vlsrBox, 0, 1 );

    azLabel = new TQLabel( groupBox8, "azLabel" );

    groupBox8Layout->addWidget( azLabel, 0, 0 );

    vHelioBox = new KLineEdit( groupBox8, "vHelioBox" );

    groupBox8Layout->addWidget( vHelioBox, 1, 1 );

    textLabel1 = new TQLabel( groupBox8, "textLabel1" );

    groupBox8Layout->addWidget( textLabel1, 1, 0 );

    vGeoBox = new KLineEdit( groupBox8, "vGeoBox" );

    groupBox8Layout->addWidget( vGeoBox, 2, 1 );

    textLabel2 = new TQLabel( groupBox8, "textLabel2" );

    groupBox8Layout->addWidget( textLabel2, 2, 0 );

    textLabel3 = new TQLabel( groupBox8, "textLabel3" );

    groupBox8Layout->addWidget( textLabel3, 3, 0 );

    vTopoBox = new KLineEdit( groupBox8, "vTopoBox" );

    groupBox8Layout->addWidget( vTopoBox, 3, 1 );
    layout15->addWidget( groupBox8 );
    spacer24 = new TQSpacerItem( 30, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout15->addItem( spacer24 );

    buttonGroup6 = new TQButtonGroup( tab, "buttonGroup6" );
    buttonGroup6->setColumnLayout(0, TQt::Vertical );
    buttonGroup6->layout()->setSpacing( 6 );
    buttonGroup6->layout()->setMargin( 11 );
    buttonGroup6Layout = new TQVBoxLayout( buttonGroup6->layout() );
    buttonGroup6Layout->setAlignment( TQt::AlignTop );

    radioVlsr = new TQRadioButton( buttonGroup6, "radioVlsr" );
    radioVlsr->setChecked( true );
    buttonGroup6Layout->addWidget( radioVlsr );

    radioVhelio = new TQRadioButton( buttonGroup6, "radioVhelio" );
    buttonGroup6Layout->addWidget( radioVhelio );

    radioVgeo = new TQRadioButton( buttonGroup6, "radioVgeo" );
    buttonGroup6Layout->addWidget( radioVgeo );

    radioVtopo = new TQRadioButton( buttonGroup6, "radioVtopo" );
    buttonGroup6Layout->addWidget( radioVtopo );
    layout15->addWidget( buttonGroup6 );
    tabLayout->addLayout( layout15 );

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

    Compute = new TQPushButton( tab, "Compute" );
    Compute->setMinimumSize( TQSize( 0, 25 ) );
    Compute->setMaximumSize( TQSize( 120, 32767 ) );
    Layout10->addWidget( Compute );

    Clear = new TQPushButton( tab, "Clear" );
    Clear->setMinimumSize( TQSize( 0, 25 ) );
    Clear->setMaximumSize( TQSize( 120, 32767 ) );
    Layout10->addWidget( Clear );
    tabLayout->addLayout( Layout10 );
    spacer11 = new TQSpacerItem( 21, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout->addItem( spacer11 );
    tabWidget3->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( tabWidget3, "tab_2" );
    tabLayout_2 = new TQVBoxLayout( tab_2, 11, 6, "tabLayout_2"); 

    InputBox_2_2 = new TQButtonGroup( tab_2, "InputBox_2_2" );
    InputBox_2_2->setEnabled( true );
    InputBox_2_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, InputBox_2_2->sizePolicy().hasHeightForWidth() ) );
    InputBox_2_2->setColumnLayout(0, TQt::Vertical );
    InputBox_2_2->layout()->setSpacing( 6 );
    InputBox_2_2->layout()->setMargin( 11 );
    InputBox_2_2Layout = new TQGridLayout( InputBox_2_2->layout() );
    InputBox_2_2Layout->setAlignment( TQt::AlignTop );

    decCheckBatch = new TQCheckBox( InputBox_2_2, "decCheckBatch" );
    decCheckBatch->setChecked( true );

    InputBox_2_2Layout->addWidget( decCheckBatch, 3, 0 );

    epochCheckBatch = new TQCheckBox( InputBox_2_2, "epochCheckBatch" );

    InputBox_2_2Layout->addWidget( epochCheckBatch, 4, 0 );

    dateCheckBatch = new TQCheckBox( InputBox_2_2, "dateCheckBatch" );
    dateCheckBatch->setChecked( false );

    InputBox_2_2Layout->addWidget( dateCheckBatch, 1, 0 );

    utCheckBatch = new TQCheckBox( InputBox_2_2, "utCheckBatch" );
    utCheckBatch->setAutoMask( false );
    utCheckBatch->setChecked( false );

    InputBox_2_2Layout->addWidget( utCheckBatch, 0, 0 );

    raCheckBatch = new TQCheckBox( InputBox_2_2, "raCheckBatch" );
    raCheckBatch->setChecked( true );

    InputBox_2_2Layout->addWidget( raCheckBatch, 2, 0 );

    utBoxBatch = new TQTimeEdit( InputBox_2_2, "utBoxBatch" );
    utBoxBatch->setEnabled( true );
    utBoxBatch->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, utBoxBatch->sizePolicy().hasHeightForWidth() ) );

    InputBox_2_2Layout->addWidget( utBoxBatch, 0, 1 );

    dateBoxBatch = new ExtDateEdit( InputBox_2_2, "dateBoxBatch" );
    dateBoxBatch->setMinimumSize( TQSize( 100, 0 ) );

    InputBox_2_2Layout->addWidget( dateBoxBatch, 1, 1 );

    decBoxBatch = new dmsBox( InputBox_2_2, "decBoxBatch" );
    decBoxBatch->setEnabled( false );
    decBoxBatch->setMinimumSize( TQSize( 100, 0 ) );
    decBoxBatch->setFocusPolicy( dmsBox::StrongFocus );

    InputBox_2_2Layout->addWidget( decBoxBatch, 3, 1 );

    raBoxBatch = new dmsBox( InputBox_2_2, "raBoxBatch" );
    raBoxBatch->setEnabled( false );
    raBoxBatch->setMinimumSize( TQSize( 100, 0 ) );
    raBoxBatch->setFocusPolicy( dmsBox::StrongFocus );

    InputBox_2_2Layout->addWidget( raBoxBatch, 2, 1 );

    epochBoxBatch = new KLineEdit( InputBox_2_2, "epochBoxBatch" );
    epochBoxBatch->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, epochBoxBatch->sizePolicy().hasHeightForWidth() ) );

    InputBox_2_2Layout->addWidget( epochBoxBatch, 4, 1 );

    longBoxBatch = new dmsBox( InputBox_2_2, "longBoxBatch" );
    longBoxBatch->setEnabled( true );
    longBoxBatch->setMinimumSize( TQSize( 100, 0 ) );
    longBoxBatch->setFocusPolicy( dmsBox::StrongFocus );

    InputBox_2_2Layout->addWidget( longBoxBatch, 5, 1 );

    longCheckBatch = new TQCheckBox( InputBox_2_2, "longCheckBatch" );
    longCheckBatch->setChecked( false );

    InputBox_2_2Layout->addWidget( longCheckBatch, 5, 0 );

    latBoxBatch = new dmsBox( InputBox_2_2, "latBoxBatch" );
    latBoxBatch->setEnabled( true );
    latBoxBatch->setMinimumSize( TQSize( 100, 0 ) );
    latBoxBatch->setFocusPolicy( dmsBox::StrongFocus );

    InputBox_2_2Layout->addWidget( latBoxBatch, 0, 3 );

    latCheckBatch = new TQCheckBox( InputBox_2_2, "latCheckBatch" );
    latCheckBatch->setChecked( false );

    InputBox_2_2Layout->addWidget( latCheckBatch, 0, 2 );

    heightCheckBatch = new TQCheckBox( InputBox_2_2, "heightCheckBatch" );
    heightCheckBatch->setChecked( false );

    InputBox_2_2Layout->addWidget( heightCheckBatch, 1, 2 );

    vlsrCheckBatch = new TQCheckBox( InputBox_2_2, "vlsrCheckBatch" );
    vlsrCheckBatch->setChecked( false );

    InputBox_2_2Layout->addWidget( vlsrCheckBatch, 2, 2 );

    helioVCheckBatch = new TQCheckBox( InputBox_2_2, "helioVCheckBatch" );

    InputBox_2_2Layout->addWidget( helioVCheckBatch, 3, 2 );

    geoVCheckBatch = new TQCheckBox( InputBox_2_2, "geoVCheckBatch" );

    InputBox_2_2Layout->addWidget( geoVCheckBatch, 4, 2 );

    topoVCheckBatch = new TQCheckBox( InputBox_2_2, "topoVCheckBatch" );

    InputBox_2_2Layout->addWidget( topoVCheckBatch, 5, 2 );

    vlsrBoxBatch = new KLineEdit( InputBox_2_2, "vlsrBoxBatch" );

    InputBox_2_2Layout->addWidget( vlsrBoxBatch, 2, 3 );

    heightBoxBatch = new KLineEdit( InputBox_2_2, "heightBoxBatch" );

    InputBox_2_2Layout->addWidget( heightBoxBatch, 1, 3 );

    vhelioBoxBatch = new TQLineEdit( InputBox_2_2, "vhelioBoxBatch" );

    InputBox_2_2Layout->addWidget( vhelioBoxBatch, 3, 3 );

    vgeoBoxBatch = new TQLineEdit( InputBox_2_2, "vgeoBoxBatch" );

    InputBox_2_2Layout->addWidget( vgeoBoxBatch, 4, 3 );

    vtopoBoxBatch = new TQLineEdit( InputBox_2_2, "vtopoBoxBatch" );

    InputBox_2_2Layout->addWidget( vtopoBoxBatch, 5, 3 );
    tabLayout_2->addWidget( InputBox_2_2 );

    buttonGroup4 = new TQButtonGroup( tab_2, "buttonGroup4" );
    buttonGroup4->setColumnLayout(0, TQt::Vertical );
    buttonGroup4->layout()->setSpacing( 6 );
    buttonGroup4->layout()->setMargin( 11 );
    buttonGroup4Layout = new TQHBoxLayout( buttonGroup4->layout() );
    buttonGroup4Layout->setAlignment( TQt::AlignTop );

    allRadioBatch = new TQRadioButton( buttonGroup4, "allRadioBatch" );
    buttonGroup4Layout->addWidget( allRadioBatch );

    inputRadioBatch = new TQRadioButton( buttonGroup4, "inputRadioBatch" );
    inputRadioBatch->setChecked( true );
    buttonGroup4Layout->addWidget( inputRadioBatch );
    tabLayout_2->addWidget( buttonGroup4 );

    groupBox4_2 = new TQGroupBox( tab_2, "groupBox4_2" );
    groupBox4_2->setColumnLayout(0, TQt::Vertical );
    groupBox4_2->layout()->setSpacing( 6 );
    groupBox4_2->layout()->setMargin( 11 );
    groupBox4_2Layout = new TQGridLayout( groupBox4_2->layout() );
    groupBox4_2Layout->setAlignment( TQt::AlignTop );

    InputButtonBatch = new TQPushButton( groupBox4_2, "InputButtonBatch" );

    groupBox4_2Layout->addWidget( InputButtonBatch, 0, 0 );

    InputLineEditBatch = new TQLineEdit( groupBox4_2, "InputLineEditBatch" );

    groupBox4_2Layout->addWidget( InputLineEditBatch, 0, 1 );

    OutputLineEditBatch = new TQLineEdit( groupBox4_2, "OutputLineEditBatch" );

    groupBox4_2Layout->addWidget( OutputLineEditBatch, 1, 1 );

    OutButtonBatch = new TQPushButton( groupBox4_2, "OutButtonBatch" );

    groupBox4_2Layout->addWidget( OutButtonBatch, 1, 0 );
    tabLayout_2->addWidget( groupBox4_2 );

    layout14_2 = new TQHBoxLayout( 0, 0, 6, "layout14_2"); 
    spacer20 = new TQSpacerItem( 151, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout14_2->addItem( spacer20 );

    runButtonBatch = new KPushButton( tab_2, "runButtonBatch" );
    runButtonBatch->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, runButtonBatch->sizePolicy().hasHeightForWidth() ) );
    layout14_2->addWidget( runButtonBatch );
    spacer19 = new TQSpacerItem( 131, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout14_2->addItem( spacer19 );
    tabLayout_2->addLayout( layout14_2 );
    spacer7 = new TQSpacerItem( 20, 50, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_2->addItem( spacer7 );
    tabWidget3->insertTab( tab_2, TQString::fromLatin1("") );

    TabPage = new TQWidget( tabWidget3, "TabPage" );
    TabPageLayout = new TQHBoxLayout( TabPage, 11, 6, "TabPageLayout"); 

    kTextBrowser1 = new KTextBrowser( TabPage, "kTextBrowser1" );
    TabPageLayout->addWidget( kTextBrowser1 );
    tabWidget3->insertTab( TabPage, TQString::fromLatin1("") );
    modCalcVlsrDlgLayout->addWidget( tabWidget3 );
    languageChange();
    resize( TQSize(670, 640).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( Compute, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotComputeVelocities() ) );
    connect( Clear, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotClearCoords() ) );
    connect( InputButtonBatch, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotInputFile() ) );
    connect( OutButtonBatch, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotOutputFile() ) );
    connect( runButtonBatch, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotRunBatch() ) );

    // tab order
    setTabOrder( tabWidget3, timBox );
    setTabOrder( timBox, datBox );
    setTabOrder( datBox, longBox );
    setTabOrder( longBox, latBox );
    setTabOrder( latBox, heightBox );
    setTabOrder( heightBox, raBox );
    setTabOrder( raBox, decBox );
    setTabOrder( decBox, epochName );
    setTabOrder( epochName, vlsrBox );
    setTabOrder( vlsrBox, vHelioBox );
    setTabOrder( vHelioBox, vGeoBox );
    setTabOrder( vGeoBox, vTopoBox );
    setTabOrder( vTopoBox, radioVlsr );
    setTabOrder( radioVlsr, Compute );
    setTabOrder( Compute, Clear );
    setTabOrder( Clear, decCheckBatch );
    setTabOrder( decCheckBatch, epochCheckBatch );
    setTabOrder( epochCheckBatch, dateCheckBatch );
    setTabOrder( dateCheckBatch, utCheckBatch );
    setTabOrder( utCheckBatch, raCheckBatch );
    setTabOrder( raCheckBatch, utBoxBatch );
    setTabOrder( utBoxBatch, decBoxBatch );
    setTabOrder( decBoxBatch, raBoxBatch );
    setTabOrder( raBoxBatch, epochBoxBatch );
    setTabOrder( epochBoxBatch, longBoxBatch );
    setTabOrder( longBoxBatch, longCheckBatch );
    setTabOrder( longCheckBatch, latBoxBatch );
    setTabOrder( latBoxBatch, latCheckBatch );
    setTabOrder( latCheckBatch, heightCheckBatch );
    setTabOrder( heightCheckBatch, vlsrCheckBatch );
    setTabOrder( vlsrCheckBatch, helioVCheckBatch );
    setTabOrder( helioVCheckBatch, geoVCheckBatch );
    setTabOrder( geoVCheckBatch, topoVCheckBatch );
    setTabOrder( topoVCheckBatch, vlsrBoxBatch );
    setTabOrder( vlsrBoxBatch, heightBoxBatch );
    setTabOrder( heightBoxBatch, vhelioBoxBatch );
    setTabOrder( vhelioBoxBatch, vgeoBoxBatch );
    setTabOrder( vgeoBoxBatch, vtopoBoxBatch );
    setTabOrder( vtopoBoxBatch, inputRadioBatch );
    setTabOrder( inputRadioBatch, InputButtonBatch );
    setTabOrder( InputButtonBatch, InputLineEditBatch );
    setTabOrder( InputLineEditBatch, OutputLineEditBatch );
    setTabOrder( OutputLineEditBatch, OutButtonBatch );
    setTabOrder( OutButtonBatch, runButtonBatch );
    setTabOrder( runButtonBatch, kTextBrowser1 );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void modCalcVlsrDlg::languageChange()
{
    setCaption( tr2i18n( "LSR Velocity" ) );
    inputGroupBox->setTitle( tr2i18n( "Time && Location" ) );
    dateLabel->setText( tr2i18n( "Date:" ) );
    timLabel->setText( tr2i18n( "Universal time:" ) );
    heightBox->setText( tr2i18n( "0.0" ) );
    latLabel->setText( tr2i18n( "Latitude:" ) );
    longLabel->setText( tr2i18n( "Longitude:" ) );
    textLabel1_2->setText( tr2i18n( "Height:" ) );
    GroupBox2->setTitle( tr2i18n( "Equatorial Coordinates" ) );
    raLabel->setText( tr2i18n( "Right ascension:" ) );
    decLabel->setText( tr2i18n( "Declination:" ) );
    epochLabel->setText( tr2i18n( "Epoch:" ) );
    groupBox8->setTitle( tr2i18n( "Radial Velocities" ) );
    azLabel->setText( tr2i18n( "VLSR:" ) );
    textLabel1->setText( tr2i18n( "Heliocentric velocity:" ) );
    textLabel2->setText( tr2i18n( "Geocentric velocity:" ) );
    textLabel3->setText( tr2i18n( "Topocentric velocity:" ) );
    buttonGroup6->setTitle( tr2i18n( "Input Velocity" ) );
    radioVlsr->setText( tr2i18n( "LSR" ) );
    radioVhelio->setText( tr2i18n( "Heliocentric" ) );
    radioVgeo->setText( tr2i18n( "Geocentric" ) );
    radioVtopo->setText( tr2i18n( "Topocentric" ) );
    Compute->setText( tr2i18n( "Convert" ) );
    Clear->setText( tr2i18n( "Clear" ) );
    tabWidget3->changeTab( tab, tr2i18n( "Interactive Mode" ) );
    InputBox_2_2->setTitle( tr2i18n( "Select Fields in Input File" ) );
    decCheckBatch->setText( tr2i18n( "Declination:" ) );
    epochCheckBatch->setText( tr2i18n( "Epoch:" ) );
    dateCheckBatch->setText( tr2i18n( "Date:" ) );
    utCheckBatch->setText( tr2i18n( "UT:" ) );
    raCheckBatch->setText( tr2i18n( "Right ascension:" ) );
    longCheckBatch->setText( tr2i18n( "Longitude:" ) );
    latCheckBatch->setText( tr2i18n( "Latitude:" ) );
    heightCheckBatch->setText( tr2i18n( "Height:" ) );
    vlsrCheckBatch->setText( tr2i18n( "LSR velocity:" ) );
    helioVCheckBatch->setText( tr2i18n( "Heliocentric v.:" ) );
    geoVCheckBatch->setText( tr2i18n( "Geocentric v.:" ) );
    topoVCheckBatch->setText( tr2i18n( "Topocentric v.:" ) );
    buttonGroup4->setTitle( tr2i18n( "Fields in Output File Plus Result" ) );
    allRadioBatch->setText( tr2i18n( "All parameters" ) );
    inputRadioBatch->setText( tr2i18n( "Only parameters in input file" ) );
    groupBox4_2->setTitle( tr2i18n( "Files" ) );
    InputButtonBatch->setText( tr2i18n( "Input File..." ) );
    TQToolTip::add( InputButtonBatch, tr2i18n( "File with the input data" ) );
    OutButtonBatch->setText( tr2i18n( "Output File..." ) );
    TQToolTip::add( OutButtonBatch, tr2i18n( "File for the output data" ) );
    runButtonBatch->setText( tr2i18n( "Run" ) );
    tabWidget3->changeTab( tab_2, tr2i18n( "Batch Mode" ) );
    kTextBrowser1->setText( tr2i18n( "<p> The Local Standard of Rest (LSR) is the location in which the mean value of the velocity of a selection of the stars in solar neighboorhood is zero. The local solar motion, that is, the velocity of the sun referred to the Local Standard of Rest is not null: the sun moves with a velocity of 20 km/s towards a point called, solar apex, whose coordinates are:</p>\n"
"<li>Ra= 18:03:50.2 (J2000)</li>\n"
"<li>Dec = 30:0:16.8 (J2000)</li>\n"
"<p>Astronomical sources move relative to the Sun and their velocity can be decomposed in radial velocity, and velocity on the plane of the sky, also know as proper motion in right ascension and declination. The radial velocity is usually obtained by analyzing their spectral emission and the frequency shift of the lines due to Doppler effect. Observational astronomers usually refer source's radial velocity to the LSR.</p>\n"
"<p>This calculator module allows to obtain the radial velocity of the source referred to the center of the sun (what we call heliocentric velocity), referred to the center of the Earth (geocentric velocity) and to the observer site (topocentric velocity) from the LSR radial velocity</p>\n"
"<li>The heliocentric velocity (V<sub>hel</sub>) is computed by obtaining the scalar product of the radial velocity of the source referred to the LSR (V<sub>lsr</sub>) with the velocity of the Sun referred to the LSR (V<sub>sun</sub>:\n"
"<img src=\"vlsr1.png\">\n"
"</li>\n"
"<li>The geocentric velocity (V<sub>geo</sub>) is obtained from the heliocentric velocity, the velocity of the Earth (V<sub>E</sub>) and its position for a given date and time:\n"
"<img src=\"vlsr2.png\">\n"
"</li>\n"
"<li>The topocentric velocity is obtained from the  geocentric velocity, the position on the Earth, and the date and time at which we desire to know the radial velocity of the source.</li>" ) );
    tabWidget3->changeTab( TabPage, tr2i18n( "Overview" ) );
}

void modCalcVlsrDlg::slotComputeVelocities()
{
    tqWarning( "modCalcVlsrDlg::slotComputeVelocities(): Not implemented yet" );
}

void modCalcVlsrDlg::slotClearCoords()
{
    tqWarning( "modCalcVlsrDlg::slotClearCoords(): Not implemented yet" );
}

void modCalcVlsrDlg::slotUtChecked()
{
    tqWarning( "modCalcVlsrDlg::slotUtChecked(): Not implemented yet" );
}

void modCalcVlsrDlg::slotDateChecked()
{
    tqWarning( "modCalcVlsrDlg::slotDateChecked(): Not implemented yet" );
}

void modCalcVlsrDlg::slotRaChecked()
{
    tqWarning( "modCalcVlsrDlg::slotRaChecked(): Not implemented yet" );
}

void modCalcVlsrDlg::slotDecChecked()
{
    tqWarning( "modCalcVlsrDlg::slotDecChecked(): Not implemented yet" );
}

void modCalcVlsrDlg::slotEpochChecked()
{
    tqWarning( "modCalcVlsrDlg::slotEpochChecked(): Not implemented yet" );
}

void modCalcVlsrDlg::slotLongChecked()
{
    tqWarning( "modCalcVlsrDlg::slotLongChecked(): Not implemented yet" );
}

void modCalcVlsrDlg::slotLatChecked()
{
    tqWarning( "modCalcVlsrDlg::slotLatChecked(): Not implemented yet" );
}

void modCalcVlsrDlg::slotHeightChecked()
{
    tqWarning( "modCalcVlsrDlg::slotHeightChecked(): Not implemented yet" );
}

void modCalcVlsrDlg::slotVlsrChecked()
{
    tqWarning( "modCalcVlsrDlg::slotVlsrChecked(): Not implemented yet" );
}

void modCalcVlsrDlg::slotInputFile()
{
    tqWarning( "modCalcVlsrDlg::slotInputFile(): Not implemented yet" );
}

void modCalcVlsrDlg::slotOutputFile()
{
    tqWarning( "modCalcVlsrDlg::slotOutputFile(): Not implemented yet" );
}

void modCalcVlsrDlg::slotRunBatch()
{
    tqWarning( "modCalcVlsrDlg::slotRunBatch(): Not implemented yet" );
}

/****************************************************************************
** modCalcVlsrDlg meta object code from reading C++ file 'modcalcvlsrdlg.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 "modcalcvlsrdlg.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 *modCalcVlsrDlg::className() const
{
    return "modCalcVlsrDlg";
}

TQMetaObject *modCalcVlsrDlg::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_modCalcVlsrDlg( "modCalcVlsrDlg", &modCalcVlsrDlg::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* modCalcVlsrDlg::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 = TQWidget::staticMetaObject();
    static const TQUMethod slot_0 = {"slotComputeVelocities", 0, 0 };
    static const TQUMethod slot_1 = {"slotClearCoords", 0, 0 };
    static const TQUMethod slot_2 = {"slotUtChecked", 0, 0 };
    static const TQUMethod slot_3 = {"slotDateChecked", 0, 0 };
    static const TQUMethod slot_4 = {"slotRaChecked", 0, 0 };
    static const TQUMethod slot_5 = {"slotDecChecked", 0, 0 };
    static const TQUMethod slot_6 = {"slotEpochChecked", 0, 0 };
    static const TQUMethod slot_7 = {"slotLongChecked", 0, 0 };
    static const TQUMethod slot_8 = {"slotLatChecked", 0, 0 };
    static const TQUMethod slot_9 = {"slotHeightChecked", 0, 0 };
    static const TQUMethod slot_10 = {"slotVlsrChecked", 0, 0 };
    static const TQUMethod slot_11 = {"slotInputFile", 0, 0 };
    static const TQUMethod slot_12 = {"slotOutputFile", 0, 0 };
    static const TQUMethod slot_13 = {"slotRunBatch", 0, 0 };
    static const TQUMethod slot_14 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "slotComputeVelocities()", &slot_0, TQMetaData::Public },
	{ "slotClearCoords()", &slot_1, TQMetaData::Public },
	{ "slotUtChecked()", &slot_2, TQMetaData::Public },
	{ "slotDateChecked()", &slot_3, TQMetaData::Public },
	{ "slotRaChecked()", &slot_4, TQMetaData::Public },
	{ "slotDecChecked()", &slot_5, TQMetaData::Public },
	{ "slotEpochChecked()", &slot_6, TQMetaData::Public },
	{ "slotLongChecked()", &slot_7, TQMetaData::Public },
	{ "slotLatChecked()", &slot_8, TQMetaData::Public },
	{ "slotHeightChecked()", &slot_9, TQMetaData::Public },
	{ "slotVlsrChecked()", &slot_10, TQMetaData::Public },
	{ "slotInputFile()", &slot_11, TQMetaData::Public },
	{ "slotOutputFile()", &slot_12, TQMetaData::Public },
	{ "slotRunBatch()", &slot_13, TQMetaData::Public },
	{ "languageChange()", &slot_14, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"modCalcVlsrDlg", parentObject,
	slot_tbl, 15,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_modCalcVlsrDlg.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool modCalcVlsrDlg::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: slotComputeVelocities(); break;
    case 1: slotClearCoords(); break;
    case 2: slotUtChecked(); break;
    case 3: slotDateChecked(); break;
    case 4: slotRaChecked(); break;
    case 5: slotDecChecked(); break;
    case 6: slotEpochChecked(); break;
    case 7: slotLongChecked(); break;
    case 8: slotLatChecked(); break;
    case 9: slotHeightChecked(); break;
    case 10: slotVlsrChecked(); break;
    case 11: slotInputFile(); break;
    case 12: slotOutputFile(); break;
    case 13: slotRunBatch(); break;
    case 14: languageChange(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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