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

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

#include "details_position.h"

#include <ntqvariant.h>
#include <kactivelabel.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqframe.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    layout56 = new TQVBoxLayout( 0, 0, 0, "layout56"); 

    CoordTitle = new TQLabel( this, "CoordTitle" );
    TQFont CoordTitle_font(  CoordTitle->font() );
    CoordTitle_font.setBold( true );
    CoordTitle->setFont( CoordTitle_font ); 
    layout56->addWidget( CoordTitle );

    CoordFrame = new TQFrame( this, "CoordFrame" );
    CoordFrame->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)7, 0, 0, CoordFrame->sizePolicy().hasHeightForWidth() ) );
    CoordFrame->setFrameShape( TQFrame::Box );
    CoordFrame->setFrameShadow( TQFrame::Plain );
    CoordFrame->setLineWidth( 4 );
    CoordFrameLayout = new TQVBoxLayout( CoordFrame, 11, 6, "CoordFrameLayout"); 

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

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

    RA = new KActiveLabel( CoordFrame, "RA" );
    RA->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    RA->setBackgroundOrigin( KActiveLabel::ParentOrigin );
    TQFont RA_font(  RA->font() );
    RA_font.setFamily( "Monospace" );
    RA_font.setPointSize( 11 );
    RA_font.setBold( true );
    RA->setFont( RA_font ); 

    layout50->addWidget( RA, 0, 1 );

    Dec = new KActiveLabel( CoordFrame, "Dec" );
    Dec->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    Dec->setBackgroundOrigin( KActiveLabel::ParentOrigin );
    TQFont Dec_font(  Dec->font() );
    Dec_font.setFamily( "Monospace" );
    Dec_font.setPointSize( 11 );
    Dec_font.setBold( true );
    Dec->setFont( Dec_font ); 

    layout50->addWidget( Dec, 1, 1 );

    DecLabel = new TQLabel( CoordFrame, "DecLabel" );
    DecLabel->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    DecLabel->setLineWidth( 2 );
    DecLabel->setMargin( 1 );
    DecLabel->setAlignment( int( TQLabel::AlignTop ) );

    layout50->addWidget( DecLabel, 1, 0 );

    RALabel = new TQLabel( CoordFrame, "RALabel" );
    RALabel->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    RALabel->setLineWidth( 2 );
    RALabel->setMargin( 1 );
    RALabel->setAlignment( int( TQLabel::AlignTop ) );

    layout50->addWidget( RALabel, 0, 0 );
    layout54->addLayout( layout50 );
    spacer13 = new TQSpacerItem( 90, 16, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout54->addItem( spacer13 );

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

    Az = new KActiveLabel( CoordFrame, "Az" );
    Az->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    Az->setBackgroundOrigin( KActiveLabel::ParentOrigin );
    TQFont Az_font(  Az->font() );
    Az_font.setFamily( "Monospace" );
    Az_font.setPointSize( 11 );
    Az_font.setBold( true );
    Az->setFont( Az_font ); 

    layout50_2->addWidget( Az, 0, 1 );

    Alt = new KActiveLabel( CoordFrame, "Alt" );
    Alt->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    Alt->setBackgroundOrigin( KActiveLabel::ParentOrigin );
    TQFont Alt_font(  Alt->font() );
    Alt_font.setFamily( "Monospace" );
    Alt_font.setPointSize( 11 );
    Alt_font.setBold( true );
    Alt->setFont( Alt_font ); 

    layout50_2->addWidget( Alt, 1, 1 );

    AltLabel = new TQLabel( CoordFrame, "AltLabel" );
    AltLabel->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    AltLabel->setLineWidth( 2 );
    AltLabel->setMargin( 1 );
    AltLabel->setAlignment( int( TQLabel::AlignTop ) );

    layout50_2->addWidget( AltLabel, 1, 0 );

    AzLabel = new TQLabel( CoordFrame, "AzLabel" );
    AzLabel->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    AzLabel->setLineWidth( 2 );
    AzLabel->setMargin( 1 );
    AzLabel->setAlignment( int( TQLabel::AlignTop ) );

    layout50_2->addWidget( AzLabel, 0, 0 );
    layout54->addLayout( layout50_2 );
    CoordFrameLayout->addLayout( layout54 );
    spacer8_2 = new TQSpacerItem( 20, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    CoordFrameLayout->addItem( spacer8_2 );

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

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

    HALabel = new TQLabel( CoordFrame, "HALabel" );
    HALabel->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    HALabel->setLineWidth( 2 );
    HALabel->setMargin( 1 );
    HALabel->setAlignment( int( TQLabel::AlignTop ) );
    layout53->addWidget( HALabel );

    HA = new KActiveLabel( CoordFrame, "HA" );
    HA->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    HA->setBackgroundOrigin( KActiveLabel::ParentOrigin );
    TQFont HA_font(  HA->font() );
    HA_font.setFamily( "Monospace" );
    HA_font.setPointSize( 11 );
    HA_font.setBold( true );
    HA->setFont( HA_font ); 
    layout53->addWidget( HA );
    layout55->addLayout( layout53 );
    spacer10_2 = new TQSpacerItem( 170, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout55->addItem( spacer10_2 );

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

    AirmassLabel = new TQLabel( CoordFrame, "AirmassLabel" );
    AirmassLabel->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    AirmassLabel->setLineWidth( 2 );
    AirmassLabel->setMargin( 1 );
    AirmassLabel->setAlignment( int( TQLabel::AlignTop ) );
    layout52->addWidget( AirmassLabel );

    Airmass = new KActiveLabel( CoordFrame, "Airmass" );
    Airmass->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    Airmass->setBackgroundOrigin( KActiveLabel::ParentOrigin );
    TQFont Airmass_font(  Airmass->font() );
    Airmass_font.setFamily( "Monospace" );
    Airmass_font.setPointSize( 11 );
    Airmass_font.setBold( true );
    Airmass->setFont( Airmass_font ); 
    layout52->addWidget( Airmass );
    layout55->addLayout( layout52 );
    CoordFrameLayout->addLayout( layout55 );
    layout56->addWidget( CoordFrame );
    DetailsPositionUILayout->addLayout( layout56 );
    spacer86 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    DetailsPositionUILayout->addItem( spacer86 );

    layout76 = new TQVBoxLayout( 0, 0, 0, "layout76"); 

    RSTTitle = new TQLabel( this, "RSTTitle" );
    TQFont RSTTitle_font(  RSTTitle->font() );
    RSTTitle_font.setBold( true );
    RSTTitle->setFont( RSTTitle_font ); 
    layout76->addWidget( RSTTitle );

    RSTFrame = new TQFrame( this, "RSTFrame" );
    RSTFrame->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)7, 0, 0, RSTFrame->sizePolicy().hasHeightForWidth() ) );
    RSTFrame->setFrameShape( TQFrame::Box );
    RSTFrame->setFrameShadow( TQFrame::Plain );
    RSTFrame->setLineWidth( 4 );
    RSTFrameLayout = new TQVBoxLayout( RSTFrame, 11, 6, "RSTFrameLayout"); 

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

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

    TimeRise = new KActiveLabel( RSTFrame, "TimeRise" );
    TimeRise->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    TimeRise->setBackgroundOrigin( KActiveLabel::ParentOrigin );
    TQFont TimeRise_font(  TimeRise->font() );
    TimeRise_font.setFamily( "Monospace" );
    TimeRise_font.setPointSize( 11 );
    TimeRise_font.setBold( true );
    TimeRise->setFont( TimeRise_font ); 

    layout141->addWidget( TimeRise, 0, 1 );

    TimeSet = new KActiveLabel( RSTFrame, "TimeSet" );
    TimeSet->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    TimeSet->setBackgroundOrigin( KActiveLabel::ParentOrigin );
    TQFont TimeSet_font(  TimeSet->font() );
    TimeSet_font.setFamily( "Monospace" );
    TimeSet_font.setPointSize( 11 );
    TimeSet_font.setBold( true );
    TimeSet->setFont( TimeSet_font ); 

    layout141->addWidget( TimeSet, 2, 1 );

    TimeSetLabel = new TQLabel( RSTFrame, "TimeSetLabel" );
    TimeSetLabel->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    TimeSetLabel->setLineWidth( 2 );
    TimeSetLabel->setMargin( 1 );
    TimeSetLabel->setAlignment( int( TQLabel::AlignTop ) );

    layout141->addWidget( TimeSetLabel, 2, 0 );

    TimeTransitLabel = new TQLabel( RSTFrame, "TimeTransitLabel" );
    TimeTransitLabel->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    TimeTransitLabel->setLineWidth( 2 );
    TimeTransitLabel->setMargin( 1 );
    TimeTransitLabel->setAlignment( int( TQLabel::AlignTop ) );

    layout141->addWidget( TimeTransitLabel, 1, 0 );

    TimeRiseLabel = new TQLabel( RSTFrame, "TimeRiseLabel" );
    TimeRiseLabel->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    TimeRiseLabel->setLineWidth( 2 );
    TimeRiseLabel->setMargin( 1 );
    TimeRiseLabel->setAlignment( int( TQLabel::AlignTop ) );

    layout141->addWidget( TimeRiseLabel, 0, 0 );

    TimeTransit = new KActiveLabel( RSTFrame, "TimeTransit" );
    TimeTransit->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    TimeTransit->setBackgroundOrigin( KActiveLabel::ParentOrigin );
    TQFont TimeTransit_font(  TimeTransit->font() );
    TimeTransit_font.setFamily( "Monospace" );
    TimeTransit_font.setPointSize( 11 );
    TimeTransit_font.setBold( true );
    TimeTransit->setFont( TimeTransit_font ); 

    layout141->addWidget( TimeTransit, 1, 1 );
    layout142->addLayout( layout141 );
    spacer8_2_2 = new TQSpacerItem( 83, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout142->addItem( spacer8_2_2 );

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

    AzRise = new KActiveLabel( RSTFrame, "AzRise" );
    AzRise->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    AzRise->setBackgroundOrigin( KActiveLabel::ParentOrigin );
    TQFont AzRise_font(  AzRise->font() );
    AzRise_font.setFamily( "Monospace" );
    AzRise_font.setPointSize( 11 );
    AzRise_font.setBold( true );
    AzRise->setFont( AzRise_font ); 

    layout140->addWidget( AzRise, 0, 1 );

    AzSetLabel = new TQLabel( RSTFrame, "AzSetLabel" );
    AzSetLabel->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    AzSetLabel->setLineWidth( 2 );
    AzSetLabel->setMargin( 1 );
    AzSetLabel->setAlignment( int( TQLabel::AlignTop ) );

    layout140->addWidget( AzSetLabel, 2, 0 );

    AltTransitLabel = new TQLabel( RSTFrame, "AltTransitLabel" );
    AltTransitLabel->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    AltTransitLabel->setLineWidth( 2 );
    AltTransitLabel->setMargin( 1 );
    AltTransitLabel->setAlignment( int( TQLabel::AlignTop ) );

    layout140->addWidget( AltTransitLabel, 1, 0 );

    AzSet = new KActiveLabel( RSTFrame, "AzSet" );
    AzSet->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    AzSet->setBackgroundOrigin( KActiveLabel::ParentOrigin );
    TQFont AzSet_font(  AzSet->font() );
    AzSet_font.setFamily( "Monospace" );
    AzSet_font.setPointSize( 11 );
    AzSet_font.setBold( true );
    AzSet->setFont( AzSet_font ); 

    layout140->addWidget( AzSet, 2, 1 );

    AltTransit = new KActiveLabel( RSTFrame, "AltTransit" );
    AltTransit->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    AltTransit->setBackgroundOrigin( KActiveLabel::ParentOrigin );
    TQFont AltTransit_font(  AltTransit->font() );
    AltTransit_font.setFamily( "Monospace" );
    AltTransit_font.setPointSize( 11 );
    AltTransit_font.setBold( true );
    AltTransit->setFont( AltTransit_font ); 

    layout140->addWidget( AltTransit, 1, 1 );

    AzRiseLabel = new TQLabel( RSTFrame, "AzRiseLabel" );
    AzRiseLabel->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    AzRiseLabel->setLineWidth( 2 );
    AzRiseLabel->setMargin( 1 );
    AzRiseLabel->setAlignment( int( TQLabel::AlignTop ) );

    layout140->addWidget( AzRiseLabel, 0, 0 );
    layout142->addLayout( layout140 );
    RSTFrameLayout->addLayout( layout142 );
    spacer14 = new TQSpacerItem( 20, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    RSTFrameLayout->addItem( spacer14 );
    layout76->addWidget( RSTFrame );
    DetailsPositionUILayout->addLayout( layout76 );
    languageChange();
    resize( TQSize(506, 394).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void DetailsPositionUI::languageChange()
{
    setCaption( tr2i18n( "Details - Position Data" ) );
    CoordTitle->setText( tr2i18n( "<p align=\"center\">Coordinates</p>" ) );
    RA->setText( tr2i18n( "00:00:00" ) );
    Dec->setText( tr2i18n( "00:00:00" ) );
    DecLabel->setText( tr2i18n( "Dec (2000.0):" ) );
    RALabel->setText( tr2i18n( "RA (2000.0):" ) );
    Az->setText( tr2i18n( "00:00:00" ) );
    Alt->setText( tr2i18n( "00:00:00" ) );
    AltLabel->setText( tr2i18n( "Altitude:" ) );
    AzLabel->setText( tr2i18n( "Azimuth:" ) );
    HALabel->setText( tr2i18n( "Hour angle:" ) );
    HA->setText( tr2i18n( "00:00:00" ) );
    AirmassLabel->setText( tr2i18n( "Airmass:" ) );
    Airmass->setText( tr2i18n( "1.00" ) );
    RSTTitle->setText( tr2i18n( "<p align=\"center\">Rise/Set/Transit</p>" ) );
    TimeRise->setText( tr2i18n( "00:00" ) );
    TimeSet->setText( tr2i18n( "00:00" ) );
    TimeSetLabel->setText( tr2i18n( "Set time:" ) );
    TimeTransitLabel->setText( tr2i18n( "Transit time:" ) );
    TimeRiseLabel->setText( tr2i18n( "Rise time:" ) );
    TimeTransit->setText( tr2i18n( "00:00" ) );
    AzRise->setText( tr2i18n( "00:00:00" ) );
    AzSetLabel->setText( tr2i18n( "Azimuth at set:" ) );
    AltTransitLabel->setText( tr2i18n( "Altitude at transit:" ) );
    AzSet->setText( tr2i18n( "00:00:00" ) );
    AltTransit->setText( tr2i18n( "00:00:00" ) );
    AzRiseLabel->setText( tr2i18n( "Azimuth at rise:" ) );
}

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

TQMetaObject *DetailsPositionUI::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_DetailsPositionUI( "DetailsPositionUI", &DetailsPositionUI::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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