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

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

#include "modcalcplanetsdlg.h"

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

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

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

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

    groupBox1 = new TQGroupBox( tab, "groupBox1" );
    groupBox1->setColumnLayout(0, TQt::Vertical );
    groupBox1->layout()->setSpacing( 6 );
    groupBox1->layout()->setMargin( 11 );
    groupBox1Layout = new TQVBoxLayout( groupBox1->layout() );
    groupBox1Layout->setAlignment( TQt::AlignTop );

    layout13 = new TQHBoxLayout( 0, 0, 6, "layout13"); 
    spacer21 = new TQSpacerItem( 101, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout13->addItem( spacer21 );

    textLabel1 = new TQLabel( groupBox1, "textLabel1" );
    layout13->addWidget( textLabel1 );

    planetComboBox = new TQComboBox( false, groupBox1, "planetComboBox" );
    layout13->addWidget( planetComboBox );
    spacer22 = new TQSpacerItem( 151, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout13->addItem( spacer22 );
    groupBox1Layout->addLayout( layout13 );

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

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

    dateBox = new ExtDateEdit( groupBox1, "dateBox" );
    dateBox->setMinimumSize( TQSize( 120, 0 ) );
    dateBox->setFocusPolicy( ExtDateEdit::StrongFocus );

    layout20->addWidget( dateBox, 1, 1 );

    timeBox = new TQTimeEdit( groupBox1, "timeBox" );
    timeBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, timeBox->sizePolicy().hasHeightForWidth() ) );
    timeBox->setMinimumSize( TQSize( 100, 0 ) );

    layout20->addWidget( timeBox, 0, 1 );

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

    layout20->addWidget( timLabel, 0, 0 );

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

    layout20->addWidget( dateLabel, 1, 0 );
    layout14->addLayout( layout20 );
    spacer10 = new TQSpacerItem( 50, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout14->addItem( spacer10 );

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

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

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

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

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

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

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

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

    layout11->addWidget( latBox, 1, 1 );
    layout14->addLayout( layout11 );
    spacer14 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout14->addItem( spacer14 );
    groupBox1Layout->addLayout( layout14 );
    tabLayout->addWidget( groupBox1 );

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

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

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

    raBox = new dmsBox( groupBox3, "raBox" );
    raBox->setMinimumSize( TQSize( 100, 0 ) );

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

    textLabel9 = new TQLabel( groupBox3, "textLabel9" );

    layout11_2->addWidget( textLabel9, 0, 0 );

    textLabel10 = new TQLabel( groupBox3, "textLabel10" );

    layout11_2->addWidget( textLabel10, 1, 0 );

    decBox = new dmsBox( groupBox3, "decBox" );
    decBox->setMinimumSize( TQSize( 100, 0 ) );

    layout11_2->addWidget( decBox, 1, 1 );
    groupBox3Layout->addLayout( layout11_2 );
    spacer13 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox3Layout->addItem( spacer13 );
    layout13_2->addWidget( groupBox3 );

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

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

    textLabel11 = new TQLabel( groupBox4, "textLabel11" );

    layout12->addWidget( textLabel11, 0, 0 );

    altBox = new dmsBox( groupBox4, "altBox" );
    altBox->setMinimumSize( TQSize( 100, 0 ) );

    layout12->addWidget( altBox, 1, 1 );

    textLabel12 = new TQLabel( groupBox4, "textLabel12" );

    layout12->addWidget( textLabel12, 1, 0 );

    azBox = new dmsBox( groupBox4, "azBox" );
    azBox->setMinimumSize( TQSize( 100, 0 ) );

    layout12->addWidget( azBox, 0, 1 );
    groupBox4Layout->addLayout( layout12 );
    spacer16_2 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox4Layout->addItem( spacer16_2 );
    layout13_2->addWidget( groupBox4 );
    tabLayout->addLayout( layout13_2 );

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

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

    sunDistBox = new KLineEdit( groupBox2, "sunDistBox" );
    sunDistBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, sunDistBox->sizePolicy().hasHeightForWidth() ) );
    sunDistBox->setMinimumSize( TQSize( 100, 0 ) );
    sunDistBox->setFocusPolicy( KLineEdit::NoFocus );

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

    textLabel8 = new TQLabel( groupBox2, "textLabel8" );

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

    helLongBox = new dmsBox( groupBox2, "helLongBox" );
    helLongBox->setMinimumSize( TQSize( 100, 0 ) );

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

    textLabel4 = new TQLabel( groupBox2, "textLabel4" );

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

    helLatBox = new dmsBox( groupBox2, "helLatBox" );
    helLatBox->setMinimumSize( TQSize( 100, 0 ) );

    layout8->addWidget( helLatBox, 1, 1 );

    textLabel5 = new TQLabel( groupBox2, "textLabel5" );

    layout8->addWidget( textLabel5, 1, 0 );
    groupBox2Layout->addLayout( layout8 );
    spacer11 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox2Layout->addItem( spacer11 );

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

    textLabel8_2 = new TQLabel( groupBox2, "textLabel8_2" );

    layout9->addWidget( textLabel8_2, 2, 0 );

    earthDistBox = new KLineEdit( groupBox2, "earthDistBox" );
    earthDistBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, earthDistBox->sizePolicy().hasHeightForWidth() ) );
    earthDistBox->setMinimumSize( TQSize( 100, 0 ) );
    earthDistBox->setFocusPolicy( KLineEdit::NoFocus );

    layout9->addWidget( earthDistBox, 2, 1 );

    textLabel6 = new TQLabel( groupBox2, "textLabel6" );

    layout9->addWidget( textLabel6, 0, 0 );

    geoLongBox = new dmsBox( groupBox2, "geoLongBox" );
    geoLongBox->setMinimumSize( TQSize( 100, 0 ) );

    layout9->addWidget( geoLongBox, 0, 1 );

    geoLatBox = new dmsBox( groupBox2, "geoLatBox" );
    geoLatBox->setMinimumSize( TQSize( 100, 0 ) );

    layout9->addWidget( geoLatBox, 1, 1 );

    textLabel7 = new TQLabel( groupBox2, "textLabel7" );

    layout9->addWidget( textLabel7, 1, 0 );
    groupBox2Layout->addLayout( layout9 );
    spacer17 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox2Layout->addItem( spacer17 );
    tabLayout->addWidget( groupBox2 );

    layout1 = new TQHBoxLayout( 0, 0, 6, "layout1"); 
    spacer5 = new TQSpacerItem( 111, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout1->addItem( spacer5 );

    computeButton = new TQPushButton( tab, "computeButton" );
    layout1->addWidget( computeButton );
    spacer3 = new TQSpacerItem( 61, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout1->addItem( spacer3 );

    clearButton = new TQPushButton( tab, "clearButton" );
    layout1->addWidget( clearButton );
    spacer4 = new TQSpacerItem( 91, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout1->addItem( spacer4 );
    tabLayout->addLayout( layout1 );
    spacer7 = new TQSpacerItem( 21, 60, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout->addItem( spacer7 );
    Interactive_Mode->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( Interactive_Mode, "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 );

    utBoxBatch = new TQTimeEdit( InputBox_2_2, "utBoxBatch" );
    utBoxBatch->setEnabled( true );

    InputBox_2_2Layout->addMultiCellWidget( utBoxBatch, 1, 1, 1, 2 );

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

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

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

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

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

    InputBox_2_2Layout->addMultiCellWidget( dateBoxBatch, 2, 2, 1, 2 );

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

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

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

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

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

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

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

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

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

    InputBox_2_2Layout->addMultiCellWidget( planetCheckBatch, 0, 0, 0, 1 );

    planetComboBoxBatch = new TQComboBox( false, InputBox_2_2, "planetComboBoxBatch" );

    InputBox_2_2Layout->addMultiCellWidget( planetComboBoxBatch, 0, 0, 2, 3 );
    tabLayout_2->addWidget( InputBox_2_2 );

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

    helEclCheckBatch = new TQCheckBox( InputBox_2_2_2, "helEclCheckBatch" );
    helEclCheckBatch->setAutoMask( false );
    helEclCheckBatch->setChecked( false );

    InputBox_2_2_2Layout->addWidget( helEclCheckBatch, 0, 0 );

    equGeoCheckBatch = new TQCheckBox( InputBox_2_2_2, "equGeoCheckBatch" );
    equGeoCheckBatch->setChecked( true );

    InputBox_2_2_2Layout->addWidget( equGeoCheckBatch, 1, 0 );

    topoCheckBatch = new TQCheckBox( InputBox_2_2_2, "topoCheckBatch" );
    topoCheckBatch->setChecked( false );

    InputBox_2_2_2Layout->addWidget( topoCheckBatch, 1, 2 );

    geoEclCheckBatch = new TQCheckBox( InputBox_2_2_2, "geoEclCheckBatch" );
    geoEclCheckBatch->setChecked( false );

    InputBox_2_2_2Layout->addWidget( geoEclCheckBatch, 0, 2 );
    tabLayout_2->addWidget( InputBox_2_2_2 );

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

    allRadioBatch = new TQRadioButton( buttonGroup4_2, "allRadioBatch" );
    buttonGroup4_2Layout->addWidget( allRadioBatch );

    inputRadioBatch = new TQRadioButton( buttonGroup4_2, "inputRadioBatch" );
    inputRadioBatch->setChecked( true );
    buttonGroup4_2Layout->addWidget( inputRadioBatch );
    tabLayout_2->addWidget( buttonGroup4_2 );

    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 );
    spacer16 = new TQSpacerItem( 20, 21, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_2->addItem( spacer16 );
    Interactive_Mode->insertTab( tab_2, TQString::fromLatin1("") );
    modCalcPlanetsDlgLayout->addWidget( Interactive_Mode );
    languageChange();
    resize( TQSize(625, 510).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( computeButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotComputePosition() ) );
    connect( clearButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotClear() ) );
    connect( runButtonBatch, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotRunBatch() ) );
    connect( InputButtonBatch, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotInputFile() ) );
    connect( OutButtonBatch, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotOutputFile() ) );
    connect( utCheckBatch, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotUtCheckedBatch() ) );
    connect( dateCheckBatch, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotDateCheckedBatch() ) );
    connect( latCheckBatch, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotLatCheckedBatch() ) );
    connect( longCheckBatch, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotLongCheckedBatch() ) );
    connect( planetCheckBatch, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotPlanetsCheckedBatch() ) );

    // tab order
    setTabOrder( Interactive_Mode, planetComboBox );
    setTabOrder( planetComboBox, timeBox );
    setTabOrder( timeBox, dateBox );
    setTabOrder( dateBox, longBox );
    setTabOrder( longBox, latBox );
    setTabOrder( latBox, sunDistBox );
    setTabOrder( sunDistBox, earthDistBox );
    setTabOrder( earthDistBox, computeButton );
    setTabOrder( computeButton, clearButton );
    setTabOrder( clearButton, utBoxBatch );
    setTabOrder( utBoxBatch, latBoxBatch );
    setTabOrder( latBoxBatch, dateCheckBatch );
    setTabOrder( dateCheckBatch, latCheckBatch );
    setTabOrder( latCheckBatch, longBoxBatch );
    setTabOrder( longBoxBatch, longCheckBatch );
    setTabOrder( longCheckBatch, utCheckBatch );
    setTabOrder( utCheckBatch, planetCheckBatch );
    setTabOrder( planetCheckBatch, planetComboBoxBatch );
    setTabOrder( planetComboBoxBatch, helEclCheckBatch );
    setTabOrder( helEclCheckBatch, equGeoCheckBatch );
    setTabOrder( equGeoCheckBatch, topoCheckBatch );
    setTabOrder( topoCheckBatch, geoEclCheckBatch );
    setTabOrder( geoEclCheckBatch, inputRadioBatch );
    setTabOrder( inputRadioBatch, InputButtonBatch );
    setTabOrder( InputButtonBatch, InputLineEditBatch );
    setTabOrder( InputLineEditBatch, OutputLineEditBatch );
    setTabOrder( OutputLineEditBatch, OutButtonBatch );
    setTabOrder( OutButtonBatch, runButtonBatch );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void modCalcPlanetsDlg::languageChange()
{
    setCaption( tr2i18n( "Solar System Bodies Coordinates" ) );
    groupBox1->setTitle( tr2i18n( "Input Selection" ) );
    textLabel1->setText( tr2i18n( "Solar system body:" ) );
    planetComboBox->clear();
    planetComboBox->insertItem( tr2i18n( "Mercury" ) );
    planetComboBox->insertItem( tr2i18n( "Venus" ) );
    planetComboBox->insertItem( tr2i18n( "Earth" ) );
    planetComboBox->insertItem( tr2i18n( "Mars" ) );
    planetComboBox->insertItem( tr2i18n( "Jupiter" ) );
    planetComboBox->insertItem( tr2i18n( "Saturn" ) );
    planetComboBox->insertItem( tr2i18n( "Uranus" ) );
    planetComboBox->insertItem( tr2i18n( "Neptune" ) );
    planetComboBox->insertItem( tr2i18n( "Pluto" ) );
    planetComboBox->insertItem( tr2i18n( "Moon" ) );
    planetComboBox->insertItem( tr2i18n( "Sun" ) );
    timLabel->setText( tr2i18n( "Universal time:" ) );
    dateLabel->setText( tr2i18n( "Date:" ) );
    longLabel->setText( tr2i18n( "Longitude:" ) );
    latLabel->setText( tr2i18n( "Latitude:" ) );
    groupBox3->setTitle( tr2i18n( "Equatorial Coordinates" ) );
    textLabel9->setText( tr2i18n( "Right ascension:" ) );
    textLabel10->setText( tr2i18n( "Declination:" ) );
    groupBox4->setTitle( tr2i18n( "Topocentric Coordinates" ) );
    textLabel11->setText( tr2i18n( "Azimuth:" ) );
    textLabel12->setText( tr2i18n( "Altitude:" ) );
    groupBox2->setTitle( tr2i18n( "Ecliptic Coordinates" ) );
    textLabel8->setText( tr2i18n( "Dist. to Sun (AU):" ) );
    textLabel4->setText( tr2i18n( "Heliocentric long.:" ) );
    textLabel5->setText( tr2i18n( "Heliocentric lat.:" ) );
    textLabel8_2->setText( tr2i18n( "Dist. to Earth (AU):" ) );
    textLabel6->setText( tr2i18n( "Geocentric long.:" ) );
    textLabel7->setText( tr2i18n( "Geocentric lat.:" ) );
    computeButton->setText( tr2i18n( "Compute" ) );
    clearButton->setText( tr2i18n( "Clear" ) );
    Interactive_Mode->changeTab( tab, tr2i18n( "Interactive Mode" ) );
    InputBox_2_2->setTitle( tr2i18n( "Select Fields in Input File" ) );
    dateCheckBatch->setText( tr2i18n( "Date:" ) );
    latCheckBatch->setText( tr2i18n( "Latitude:" ) );
    longCheckBatch->setText( tr2i18n( "Longitude:" ) );
    utCheckBatch->setText( tr2i18n( "UT:" ) );
    planetCheckBatch->setText( tr2i18n( "Solar system body:" ) );
    planetComboBoxBatch->clear();
    planetComboBoxBatch->insertItem( tr2i18n( "Mercury" ) );
    planetComboBoxBatch->insertItem( tr2i18n( "Venus" ) );
    planetComboBoxBatch->insertItem( tr2i18n( "Earth" ) );
    planetComboBoxBatch->insertItem( tr2i18n( "Mars" ) );
    planetComboBoxBatch->insertItem( tr2i18n( "Jupiter" ) );
    planetComboBoxBatch->insertItem( tr2i18n( "Saturn" ) );
    planetComboBoxBatch->insertItem( tr2i18n( "Uranus" ) );
    planetComboBoxBatch->insertItem( tr2i18n( "Neptune" ) );
    planetComboBoxBatch->insertItem( tr2i18n( "Pluto" ) );
    planetComboBoxBatch->insertItem( tr2i18n( "Moon" ) );
    planetComboBoxBatch->insertItem( tr2i18n( "Sun" ) );
    InputBox_2_2_2->setTitle( tr2i18n( "Select Fields in Output File" ) );
    helEclCheckBatch->setText( tr2i18n( "Heliocentric ecliptic coordinates" ) );
    equGeoCheckBatch->setText( tr2i18n( "Equatorial geocentric coordinates" ) );
    topoCheckBatch->setText( tr2i18n( "Topocentric coordinates" ) );
    geoEclCheckBatch->setText( tr2i18n( "Geocentric ecliptic coordinates" ) );
    buttonGroup4_2->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" ) );
    Interactive_Mode->changeTab( tab_2, tr2i18n( "Batch Mode" ) );
}

void modCalcPlanetsDlg::slotComputePosition()
{
    tqWarning( "modCalcPlanetsDlg::slotComputePosition(): Not implemented yet" );
}

void modCalcPlanetsDlg::slotClear()
{
    tqWarning( "modCalcPlanetsDlg::slotClear(): Not implemented yet" );
}

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

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

void modCalcPlanetsDlg::slotUtCheckedBatch()
{
    tqWarning( "modCalcPlanetsDlg::slotUtCheckedBatch(): Not implemented yet" );
}

void modCalcPlanetsDlg::slotDateCheckedBatch()
{
    tqWarning( "modCalcPlanetsDlg::slotDateCheckedBatch(): Not implemented yet" );
}

void modCalcPlanetsDlg::slotLongCheckedBatch()
{
    tqWarning( "modCalcPlanetsDlg::slotLongCheckedBatch(): Not implemented yet" );
}

void modCalcPlanetsDlg::slotLatCheckedBatch()
{
    tqWarning( "modCalcPlanetsDlg::slotLatCheckedBatch(): Not implemented yet" );
}

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

void modCalcPlanetsDlg::slotPlanetsCheckedBatch()
{
    tqWarning( "modCalcPlanetsDlg::slotPlanetsCheckedBatch(): Not implemented yet" );
}

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

TQMetaObject *modCalcPlanetsDlg::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_modCalcPlanetsDlg( "modCalcPlanetsDlg", &modCalcPlanetsDlg::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* modCalcPlanetsDlg::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 = {"slotComputePosition", 0, 0 };
    static const TQUMethod slot_1 = {"slotClear", 0, 0 };
    static const TQUMethod slot_2 = {"slotInputFile", 0, 0 };
    static const TQUMethod slot_3 = {"slotOutputFile", 0, 0 };
    static const TQUMethod slot_4 = {"slotUtCheckedBatch", 0, 0 };
    static const TQUMethod slot_5 = {"slotDateCheckedBatch", 0, 0 };
    static const TQUMethod slot_6 = {"slotLongCheckedBatch", 0, 0 };
    static const TQUMethod slot_7 = {"slotLatCheckedBatch", 0, 0 };
    static const TQUMethod slot_8 = {"slotRunBatch", 0, 0 };
    static const TQUMethod slot_9 = {"slotPlanetsCheckedBatch", 0, 0 };
    static const TQUMethod slot_10 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "slotComputePosition()", &slot_0, TQMetaData::Public },
	{ "slotClear()", &slot_1, TQMetaData::Public },
	{ "slotInputFile()", &slot_2, TQMetaData::Public },
	{ "slotOutputFile()", &slot_3, TQMetaData::Public },
	{ "slotUtCheckedBatch()", &slot_4, TQMetaData::Public },
	{ "slotDateCheckedBatch()", &slot_5, TQMetaData::Public },
	{ "slotLongCheckedBatch()", &slot_6, TQMetaData::Public },
	{ "slotLatCheckedBatch()", &slot_7, TQMetaData::Public },
	{ "slotRunBatch()", &slot_8, TQMetaData::Public },
	{ "slotPlanetsCheckedBatch()", &slot_9, TQMetaData::Public },
	{ "languageChange()", &slot_10, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"modCalcPlanetsDlg", parentObject,
	slot_tbl, 11,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_modCalcPlanetsDlg.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool modCalcPlanetsDlg::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: slotComputePosition(); break;
    case 1: slotClear(); break;
    case 2: slotInputFile(); break;
    case 3: slotOutputFile(); break;
    case 4: slotUtCheckedBatch(); break;
    case 5: slotDateCheckedBatch(); break;
    case 6: slotLongCheckedBatch(); break;
    case 7: slotLatCheckedBatch(); break;
    case 8: slotRunBatch(); break;
    case 9: slotPlanetsCheckedBatch(); break;
    case 10: languageChange(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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