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

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

#include "argsetaltaz.h"

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

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

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

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

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

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

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

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

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

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

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

    // tab order
    setTabOrder( AzBox, AltBox );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ArgSetAltAz::languageChange()
{
    TQToolTip::add( AltBox, tr2i18n( "Altitude angle" ) );
    TQWhatsThis::add( AltBox, tr2i18n( "Set the Altitude coordinate to be focused on in the sky map, 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"
"The Altitude is one of the coordinates in the Horizontal coordinate system.  It is defined as the angle of an object above or below the horizon.  For example, the Zenith has an Altitude of 90 degrees.  Altitude is also known as Elevation." ) );
    textLabel1->setProperty( "text", tr2i18n( "Az:" ) );
    TQToolTip::add( AzBox, tr2i18n( "Azimuth angle" ) );
    TQWhatsThis::add( AzBox, tr2i18n( "Set the Azimuth 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"
"The azimuth is one of the coordinates in the horizontal coordinate system.  It is defined as the angle measured along the horizon, between the North point and the point on the horizon directly below the object.  Azimuth increases clockwise around the horizon" ) );
    textLabel1_2->setProperty( "text", tr2i18n( "Alt:" ) );
}

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

TQMetaObject *ArgSetAltAz::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ArgSetAltAz( "ArgSetAltAz", &ArgSetAltAz::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* ArgSetAltAz::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(
	"ArgSetAltAz", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_ArgSetAltAz.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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