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

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

#include "argsetradec.h"

#include <ntqvariant.h>
#include <dmsbox.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

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

    DecBox = new dmsBox( this, "DecBox" );
    DecBox->setProperty( "sizePolicy", TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 1, 0, DecBox->sizePolicy().hasHeightForWidth() ) );
    DecBox->setProperty( "focusPolicy", "StrongFocus" );

    layout13->addWidget( DecBox, 1, 1 );

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

    layout13->addWidget( textLabel1, 0, 0 );

    RaBox = new dmsBox( this, "RaBox" );
    RaBox->setProperty( "sizePolicy", TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 1, 0, RaBox->sizePolicy().hasHeightForWidth() ) );
    RaBox->setProperty( "focusPolicy", "StrongFocus" );

    layout13->addWidget( RaBox, 0, 1 );

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

    layout13->addWidget( textLabel1_2, 1, 0 );
    ArgSetRaDecLayout->addLayout( layout13 );
    spacer5 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    ArgSetRaDecLayout->addItem( spacer5 );
    languageChange();
    resize( TQSize(284, 96).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( RaBox, DecBox );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ArgSetRaDec::languageChange()
{
    TQToolTip::add( DecBox, tr2i18n( "Declination" ) );
    TQWhatsThis::add( DecBox, tr2i18n( "Enter the Declination coordinate to be focused on in the skymap, in degrees.  You can express the angle as a simple integer (\"45\") or floating-point (\"45.333\") value, or as space- or colon-delimited values specifying degrees, arcminutes and arcseconds (\"45:20\", \"45:20:00\", \"45:20\", \"45 20.0\", etc.).\n"
"\n"
"Declination is one of the coordinates in the Equatorial coordinate system; it measures the angle of an object North or South of the Celestial Equator.  The star Polaris, which is near the celestial north pole, has a Declination of nearly 90 degrees." ) );
    textLabel1->setProperty( "text", tr2i18n( "RA:" ) );
    TQToolTip::add( RaBox, tr2i18n( "Right Ascension" ) );
    TQWhatsThis::add( RaBox, tr2i18n( "Enter the Right Ascension coordinate to be focused on in the skymap, in hours.  You can express the angle as a simple integer (\"12\") or floating-point (\"12.333\") value, or as space- or colon-delimited values specifying hours, minutes and seconds (\"12:20\", \"12:20:00\", \"12:20\", \"12 20.0\", etc.).\n"
"\n"
"Right Ascension is one of the coordinates in the Equatorial coordinate system.  It measures the angle around the celestial equator from the Vernal equinox, increasing to the East.  Right Ascension (RA) is almost always expressed in Hours instead of Degrees; the Celestial Equator is divided into 24 Hours, so 1 Hour of RA is equal to 360/24=15 Degrees.  See the AstroInfo article for more details," ) );
    textLabel1_2->setProperty( "text", tr2i18n( "Dec:" ) );
}

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

TQMetaObject *ArgSetRaDec::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ArgSetRaDec( "ArgSetRaDec", &ArgSetRaDec::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* ArgSetRaDec::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 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"ArgSetRaDec", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_ArgSetRaDec.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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