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

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

#include "modcalcangdistdlg.h"

#include <ntqvariant.h>
#include <kpushbutton.h>
#include <../dmsbox.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqbuttongroup.h>
#include <ntqcheckbox.h>
#include <ntqradiobutton.h>
#include <ntqlineedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

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

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

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

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

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

    origCoordBoxLayout->addWidget( ra0Box, 0, 1 );

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

    origCoordBoxLayout->addWidget( dec0Box, 1, 1 );

    dec0Label = new TQLabel( origCoordBox, "dec0Label" );

    origCoordBoxLayout->addWidget( dec0Label, 1, 0 );

    ra0Label = new TQLabel( origCoordBox, "ra0Label" );

    origCoordBoxLayout->addWidget( ra0Label, 0, 0 );
    layout8->addWidget( origCoordBox );

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

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

    origCoordBox_2Layout->addWidget( ra1Box, 0, 1 );

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

    origCoordBox_2Layout->addWidget( dec1Box, 1, 1 );

    dec0Label_2 = new TQLabel( origCoordBox_2, "dec0Label_2" );

    origCoordBox_2Layout->addWidget( dec0Label_2, 1, 0 );

    ra0Label_2 = new TQLabel( origCoordBox_2, "ra0Label_2" );

    origCoordBox_2Layout->addWidget( ra0Label_2, 0, 0 );
    layout8->addWidget( origCoordBox_2 );
    tabLayout->addLayout( layout8 );

    layout7 = new TQHBoxLayout( 0, 0, 6, "layout7"); 
    spacer4_2 = new TQSpacerItem( 145, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout7->addItem( spacer4_2 );

    Compute = new KPushButton( tab, "Compute" );
    layout7->addWidget( Compute );
    spacer3_2 = new TQSpacerItem( 146, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout7->addItem( spacer3_2 );

    Clear = new KPushButton( tab, "Clear" );
    layout7->addWidget( Clear );
    spacer2_2 = new TQSpacerItem( 145, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout7->addItem( spacer2_2 );
    tabLayout->addLayout( layout7 );

    outputBox = new TQGroupBox( tab, "outputBox" );
    outputBox->setColumnLayout(0, TQt::Vertical );
    outputBox->layout()->setSpacing( 6 );
    outputBox->layout()->setMargin( 11 );
    outputBoxLayout = new TQHBoxLayout( outputBox->layout() );
    outputBoxLayout->setAlignment( TQt::AlignTop );
    spacer15 = new TQSpacerItem( 102, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    outputBoxLayout->addItem( spacer15 );

    rafLabel = new TQLabel( outputBox, "rafLabel" );
    outputBoxLayout->addWidget( rafLabel );

    distBox = new dmsBox( outputBox, "distBox" );
    distBox->setMinimumSize( TQSize( 100, 0 ) );
    distBox->setFocusPolicy( dmsBox::NoFocus );
    outputBoxLayout->addWidget( distBox );
    spacer12 = new TQSpacerItem( 70, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    outputBoxLayout->addItem( spacer12 );
    tabLayout->addWidget( outputBox );
    spacer16 = new TQSpacerItem( 21, 171, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout->addItem( spacer16 );
    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 );

    ra0BoxBatch = new dmsBox( InputBox_2_2, "ra0BoxBatch" );
    ra0BoxBatch->setEnabled( false );
    ra0BoxBatch->setFocusPolicy( dmsBox::StrongFocus );

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

    dec0BoxBatch = new dmsBox( InputBox_2_2, "dec0BoxBatch" );
    dec0BoxBatch->setEnabled( false );
    dec0BoxBatch->setFocusPolicy( dmsBox::StrongFocus );

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

    ra1BoxBatch = new dmsBox( InputBox_2_2, "ra1BoxBatch" );
    ra1BoxBatch->setEnabled( false );
    ra1BoxBatch->setFocusPolicy( dmsBox::StrongFocus );

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

    dec1BoxBatch = new dmsBox( InputBox_2_2, "dec1BoxBatch" );
    dec1BoxBatch->setEnabled( false );
    dec1BoxBatch->setFocusPolicy( dmsBox::StrongFocus );

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

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

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

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

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

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

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

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

    InputBox_2_2Layout->addWidget( ra0CheckBatch, 0, 0 );
    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 = new TQHBoxLayout( 0, 0, 6, "layout14"); 
    spacer20 = new TQSpacerItem( 151, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout14->addItem( spacer20 );

    runButtonBatch = new KPushButton( tab_2, "runButtonBatch" );
    runButtonBatch->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, runButtonBatch->sizePolicy().hasHeightForWidth() ) );
    layout14->addWidget( runButtonBatch );
    spacer19 = new TQSpacerItem( 131, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout14->addItem( spacer19 );
    tabLayout_2->addLayout( layout14 );
    spacer19_2 = new TQSpacerItem( 20, 21, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_2->addItem( spacer19_2 );
    tabWidget3->insertTab( tab_2, TQString::fromLatin1("") );
    modCalcAngDistDlgLayout->addWidget( tabWidget3 );
    languageChange();
    resize( TQSize(572, 438).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( Compute, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotComputeDist() ) );
    connect( Clear, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotClearCoords() ) );
    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() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void modCalcAngDistDlg::languageChange()
{
    setCaption( tr2i18n( "Angular Distance" ) );
    origCoordBox->setTitle( tr2i18n( "Initial Coordinates" ) );
    dec0Label->setText( tr2i18n( "Declination:" ) );
    ra0Label->setText( tr2i18n( "Right ascension:" ) );
    origCoordBox_2->setTitle( tr2i18n( "Final Coordinates" ) );
    dec0Label_2->setText( tr2i18n( "Declination:" ) );
    ra0Label_2->setText( tr2i18n( "Right ascension:" ) );
    Compute->setText( tr2i18n( "Compute" ) );
    Clear->setText( tr2i18n( "Clear" ) );
    outputBox->setTitle( tr2i18n( "Angular Distance" ) );
    rafLabel->setText( tr2i18n( "Distance:" ) );
    tabWidget3->changeTab( tab, tr2i18n( "Interactive Mode" ) );
    InputBox_2_2->setTitle( tr2i18n( "Select Fields in Input File" ) );
    ra1CheckBatch->setText( tr2i18n( "Final right ascension:" ) );
    dec1CheckBatch->setText( tr2i18n( "Final declination:" ) );
    dec0CheckBatch->setText( tr2i18n( "Initial declination:" ) );
    ra0CheckBatch->setText( tr2i18n( "Initial right ascension:" ) );
    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" ) );
}

void modCalcAngDistDlg::slotComputeDist()
{
    tqWarning( "modCalcAngDistDlg::slotComputeDist(): Not implemented yet" );
}

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

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

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

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

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

TQMetaObject *modCalcAngDistDlg::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_modCalcAngDistDlg( "modCalcAngDistDlg", &modCalcAngDistDlg::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* modCalcAngDistDlg::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 = {"slotComputeDist", 0, 0 };
    static const TQUMethod slot_1 = {"slotClearCoords", 0, 0 };
    static const TQUMethod slot_2 = {"slotInputFile", 0, 0 };
    static const TQUMethod slot_3 = {"slotOutputFile", 0, 0 };
    static const TQUMethod slot_4 = {"slotRunBatch", 0, 0 };
    static const TQUMethod slot_5 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "slotComputeDist()", &slot_0, TQMetaData::Public },
	{ "slotClearCoords()", &slot_1, TQMetaData::Public },
	{ "slotInputFile()", &slot_2, TQMetaData::Public },
	{ "slotOutputFile()", &slot_3, TQMetaData::Public },
	{ "slotRunBatch()", &slot_4, TQMetaData::Public },
	{ "languageChange()", &slot_5, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"modCalcAngDistDlg", parentObject,
	slot_tbl, 6,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_modCalcAngDistDlg.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool modCalcAngDistDlg::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: slotComputeDist(); break;
    case 1: slotClearCoords(); break;
    case 2: slotInputFile(); break;
    case 3: slotOutputFile(); break;
    case 4: slotRunBatch(); break;
    case 5: languageChange(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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