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

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

#include "details_data.h"

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

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

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

    Names = new TQLabel( this, "Names" );
    TQFont Names_font(  Names->font() );
    Names_font.setBold( true );
    Names->setFont( Names_font ); 
    Names->setMargin( 1 );
    Names->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignCenter ) );
    layout67->addWidget( Names );

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

    layout20 = new TQVBoxLayout( 0, 0, 6, "layout20"); 

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

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

    Type = new KActiveLabel( DataFrame, "Type" );
    Type->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    Type->setBackgroundOrigin( KActiveLabel::ParentOrigin );
    TQFont Type_font(  Type->font() );
    Type_font.setBold( true );
    Type->setFont( Type_font ); 
    layout60_2->addWidget( Type );

    InLabel = new TQLabel( DataFrame, "InLabel" );
    InLabel->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    InLabel->setLineWidth( 2 );
    InLabel->setMargin( 1 );
    InLabel->setAlignment( int( TQLabel::AlignTop ) );
    layout60_2->addWidget( InLabel );

    Constellation = new KActiveLabel( DataFrame, "Constellation" );
    Constellation->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    Constellation->setBackgroundOrigin( KActiveLabel::ParentOrigin );
    TQFont Constellation_font(  Constellation->font() );
    Constellation_font.setBold( true );
    Constellation->setFont( Constellation_font ); 
    layout60_2->addWidget( Constellation );
    layout12->addLayout( layout60_2 );
    spacer7_2 = new TQSpacerItem( 140, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout12->addItem( spacer7_2 );
    layout20->addLayout( layout12 );
    spacer5_2 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout20->addItem( spacer5_2 );

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

    Image = new ClickLabel( DataFrame, "Image" );
    layout19->addWidget( Image );
    spacer6_2 = new TQSpacerItem( 77, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout19->addItem( spacer6_2 );
    layout20->addLayout( layout19 );
    DataFrameLayout->addLayout( layout20 );

    layout22 = new TQVBoxLayout( 0, 0, 6, "layout22"); 

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

    AngSize = new KActiveLabel( DataFrame, "AngSize" );
    AngSize->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    AngSize->setPaletteBackgroundColor( TQColor( 238, 238, 230 ) );
    AngSize->setBackgroundOrigin( KActiveLabel::ParentOrigin );
    TQFont AngSize_font(  AngSize->font() );
    AngSize_font.setFamily( "Monospace" );
    AngSize_font.setBold( true );
    AngSize->setFont( AngSize_font ); 

    layout21->addWidget( AngSize, 2, 1 );

    Mag = new KActiveLabel( DataFrame, "Mag" );
    Mag->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    Mag->setBackgroundOrigin( KActiveLabel::ParentOrigin );
    TQFont Mag_font(  Mag->font() );
    Mag_font.setFamily( "Monospace" );
    Mag_font.setBold( true );
    Mag->setFont( Mag_font ); 

    layout21->addWidget( Mag, 0, 1 );

    MagLabel = new TQLabel( DataFrame, "MagLabel" );
    MagLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, MagLabel->sizePolicy().hasHeightForWidth() ) );
    MagLabel->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    MagLabel->setLineWidth( 2 );
    MagLabel->setMargin( 1 );
    MagLabel->setAlignment( int( TQLabel::AlignTop ) );

    layout21->addWidget( MagLabel, 0, 0 );

    DistanceLabel = new TQLabel( DataFrame, "DistanceLabel" );
    DistanceLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, DistanceLabel->sizePolicy().hasHeightForWidth() ) );
    DistanceLabel->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    DistanceLabel->setLineWidth( 2 );
    DistanceLabel->setMargin( 1 );
    DistanceLabel->setAlignment( int( TQLabel::AlignTop ) );

    layout21->addWidget( DistanceLabel, 1, 0 );

    Distance = new KActiveLabel( DataFrame, "Distance" );
    Distance->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    Distance->setBackgroundOrigin( KActiveLabel::ParentOrigin );
    TQFont Distance_font(  Distance->font() );
    Distance_font.setFamily( "Monospace" );
    Distance_font.setBold( true );
    Distance->setFont( Distance_font ); 

    layout21->addWidget( Distance, 1, 1 );

    AngSizeLabel = new TQLabel( DataFrame, "AngSizeLabel" );
    AngSizeLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, AngSizeLabel->sizePolicy().hasHeightForWidth() ) );
    AngSizeLabel->setPaletteForegroundColor( TQColor( 0, 0, 0 ) );
    AngSizeLabel->setLineWidth( 2 );
    AngSizeLabel->setMargin( 1 );
    AngSizeLabel->setAlignment( int( TQLabel::AlignTop ) );

    layout21->addWidget( AngSizeLabel, 2, 0 );
    layout22->addLayout( layout21 );
    spacer8_2 = new TQSpacerItem( 20, 8, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout22->addItem( spacer8_2 );

    layout36_2 = new TQHBoxLayout( 0, 0, 6, "layout36_2"); 
    spacer19_2 = new TQSpacerItem( 16, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout36_2->addItem( spacer19_2 );

    layout35_2 = new TQVBoxLayout( 0, 0, 6, "layout35_2"); 

    ObsListButton = new KPushButton( DataFrame, "ObsListButton" );
    layout35_2->addWidget( ObsListButton );

    CenterButton = new KPushButton( DataFrame, "CenterButton" );
    layout35_2->addWidget( CenterButton );

    ScopeButton = new KPushButton( DataFrame, "ScopeButton" );
    layout35_2->addWidget( ScopeButton );
    layout36_2->addLayout( layout35_2 );
    spacer20_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout36_2->addItem( spacer20_2 );
    layout22->addLayout( layout36_2 );
    DataFrameLayout->addLayout( layout22 );
    layout67->addWidget( DataFrame );
    DetailsDataUILayout->addLayout( layout67 );
    spacer7 = new TQSpacerItem( 20, 8, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    DetailsDataUILayout->addItem( spacer7 );
    languageChange();
    resize( TQSize(542, 386).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void DetailsDataUI::languageChange()
{
    setCaption( tr2i18n( "Details - General Data" ) );
    Names->setText( tr2i18n( "<p align=\"center\">Primary Name, Other Names</p>" ) );
    Type->setText( tr2i18n( "Object Type" ) );
    InLabel->setText( tr2i18n( "in" ) );
    Constellation->setText( tr2i18n( "Constellation" ) );
    TQToolTip::add( Image, tr2i18n( "Click to change image" ) );
    TQWhatsThis::add( Image, tr2i18n( "A small thumbnail image of the object is shown here.  You can modify the image by clicking on it." ) );
    AngSize->setText( tr2i18n( "0.00 arcmin" ) );
    Mag->setText( tr2i18n( "0.00 mag" ) );
    MagLabel->setText( tr2i18n( "Magnitude:" ) );
    DistanceLabel->setText( tr2i18n( "Distance:" ) );
    Distance->setText( tr2i18n( "0.00 pc" ) );
    AngSizeLabel->setText( tr2i18n( "Size:" ) );
    ObsListButton->setText( tr2i18n( "Add to Observing List" ) );
    CenterButton->setText( tr2i18n( "Center in Map" ) );
    ScopeButton->setText( tr2i18n( "Center in Telescope" ) );
}

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

TQMetaObject *DetailsDataUI::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_DetailsDataUI( "DetailsDataUI", &DetailsDataUI::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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