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

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

#include "wutdialogui.h"

#include <ntqvariant.h>
#include <kpushbutton.h>
#include <tdelistbox.h>
#include <kcombobox.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqgroupbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

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

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

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

    LocationLabel = new TQLabel( this, "LocationLabel" );
    LocationLabel->setMinimumSize( TQSize( 200, 0 ) );
    TQFont LocationLabel_font(  LocationLabel->font() );
    LocationLabel_font.setBold( true );
    LocationLabel->setFont( LocationLabel_font ); 
    LocationLabel->setFrameShape( TQLabel::NoFrame );
    LocationLabel->setFrameShadow( TQLabel::Plain );

    layout23->addWidget( LocationLabel, 1, 0 );
    spacer3 = new TQSpacerItem( 30, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout23->addItem( spacer3, 0, 1 );
    spacer4 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout23->addItem( spacer4, 1, 1 );

    DateLabel = new TQLabel( this, "DateLabel" );
    DateLabel->setMinimumSize( TQSize( 200, 0 ) );
    TQFont DateLabel_font(  DateLabel->font() );
    DateLabel_font.setBold( true );
    DateLabel->setFont( DateLabel_font ); 

    layout23->addWidget( DateLabel, 0, 0 );
    layout24->addLayout( layout23 );

    layout13 = new TQHBoxLayout( 0, 0, 6, "layout13"); 
    spacer6 = new TQSpacerItem( 108, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout13->addItem( spacer6 );

    textLabel14 = new TQLabel( this, "textLabel14" );
    layout13->addWidget( textLabel14 );
    layout24->addLayout( layout13 );
    layout25->addLayout( layout24 );

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

    DateButton = new KPushButton( this, "DateButton" );
    layout9->addWidget( DateButton );

    LocationButton = new KPushButton( this, "LocationButton" );
    layout9->addWidget( LocationButton );

    EveningMorningBox = new KComboBox( false, this, "EveningMorningBox" );
    layout9->addWidget( EveningMorningBox );
    layout25->addLayout( layout9 );
    WUTDialogUILayout->addLayout( layout25 );

    groupBox2 = new TQGroupBox( this, "groupBox2" );
    groupBox2->setColumnLayout(0, TQt::Vertical );
    groupBox2->layout()->setSpacing( 6 );
    groupBox2->layout()->setMargin( 11 );
    groupBox2Layout = new TQGridLayout( groupBox2->layout() );
    groupBox2Layout->setAlignment( TQt::AlignTop );

    SunRiseLabel = new TQLabel( groupBox2, "SunRiseLabel" );
    SunRiseLabel->setMinimumSize( TQSize( 0, 20 ) );

    groupBox2Layout->addWidget( SunRiseLabel, 0, 0 );

    MoonRiseLabel = new TQLabel( groupBox2, "MoonRiseLabel" );
    MoonRiseLabel->setMinimumSize( TQSize( 0, 20 ) );

    groupBox2Layout->addWidget( MoonRiseLabel, 0, 1 );

    MoonSetLabel = new TQLabel( groupBox2, "MoonSetLabel" );
    MoonSetLabel->setMinimumSize( TQSize( 0, 20 ) );

    groupBox2Layout->addWidget( MoonSetLabel, 1, 1 );

    SunSetLabel = new TQLabel( groupBox2, "SunSetLabel" );
    SunSetLabel->setMinimumSize( TQSize( 0, 20 ) );

    groupBox2Layout->addWidget( SunSetLabel, 1, 0 );

    NightDurationLabel = new TQLabel( groupBox2, "NightDurationLabel" );
    NightDurationLabel->setMinimumSize( TQSize( 0, 20 ) );

    groupBox2Layout->addWidget( NightDurationLabel, 2, 0 );

    MoonIllumLabel = new TQLabel( groupBox2, "MoonIllumLabel" );
    MoonIllumLabel->setMinimumSize( TQSize( 0, 20 ) );

    groupBox2Layout->addWidget( MoonIllumLabel, 2, 1 );
    WUTDialogUILayout->addWidget( groupBox2 );

    layout10 = new TQGridLayout( 0, 1, 1, 0, 6, "layout10"); 
    spacer9 = new TQSpacerItem( 164, 12, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout10->addItem( spacer9, 0, 2 );

    textLabel15 = new TQLabel( this, "textLabel15" );
    TQFont textLabel15_font(  textLabel15->font() );
    textLabel15_font.setPointSize( 10 );
    textLabel15_font.setBold( true );
    textLabel15->setFont( textLabel15_font ); 

    layout10->addWidget( textLabel15, 0, 0 );

    ObjectListBox = new TDEListBox( this, "ObjectListBox" );
    ObjectListBox->setMinimumSize( TQSize( 150, 0 ) );

    layout10->addWidget( ObjectListBox, 1, 1 );

    ObjectBox = new TQGroupBox( this, "ObjectBox" );
    ObjectBox->setColumnLayout(0, TQt::Vertical );
    ObjectBox->layout()->setSpacing( 6 );
    ObjectBox->layout()->setMargin( 11 );
    ObjectBoxLayout = new TQVBoxLayout( ObjectBox->layout() );
    ObjectBoxLayout->setAlignment( TQt::AlignTop );

    ObjectRiseLabel = new TQLabel( ObjectBox, "ObjectRiseLabel" );
    ObjectRiseLabel->setAlignment( int( TQLabel::AlignVCenter ) );
    ObjectBoxLayout->addWidget( ObjectRiseLabel );

    ObjectTransitLabel = new TQLabel( ObjectBox, "ObjectTransitLabel" );
    ObjectTransitLabel->setAlignment( int( TQLabel::AlignVCenter ) );
    ObjectBoxLayout->addWidget( ObjectTransitLabel );

    ObjectSetLabel = new TQLabel( ObjectBox, "ObjectSetLabel" );
    ObjectSetLabel->setAlignment( int( TQLabel::AlignVCenter ) );
    ObjectBoxLayout->addWidget( ObjectSetLabel );
    spacer7 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    ObjectBoxLayout->addItem( spacer7 );

    CenterButton = new KPushButton( ObjectBox, "CenterButton" );
    ObjectBoxLayout->addWidget( CenterButton );

    DetailButton = new KPushButton( ObjectBox, "DetailButton" );
    ObjectBoxLayout->addWidget( DetailButton );

    layout10->addWidget( ObjectBox, 1, 2 );

    CategoryListBox = new TDEListBox( this, "CategoryListBox" );
    CategoryListBox->setMinimumSize( TQSize( 100, 0 ) );

    layout10->addWidget( CategoryListBox, 1, 0 );

    textLabel16 = new TQLabel( this, "textLabel16" );
    TQFont textLabel16_font(  textLabel16->font() );
    textLabel16_font.setPointSize( 10 );
    textLabel16_font.setBold( true );
    textLabel16->setFont( textLabel16_font ); 

    layout10->addWidget( textLabel16, 0, 1 );
    WUTDialogUILayout->addLayout( layout10 );
    languageChange();
    resize( TQSize(652, 589).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void WUTDialogUI::languageChange()
{
    setCaption( tr2i18n( "What's Up Tonight?" ) );
    LocationLabel->setText( tr2i18n( "at LOCATION" ) );
    DateLabel->setText( tr2i18n( "The night of DATE" ) );
    textLabel14->setText( tr2i18n( "Show objects which are up:" ) );
    DateButton->setText( tr2i18n( "Change Date..." ) );
    TQToolTip::add( DateButton, tr2i18n( "Choose a new date" ) );
    TQWhatsThis::add( DateButton, tr2i18n( "Press this button to select a new date for the \"What's Up Tonight\" tool.  Note that the date of the main window is not changed." ) );
    LocationButton->setText( tr2i18n( "Change Location..." ) );
    TQToolTip::add( LocationButton, tr2i18n( "Choose a new geographic location" ) );
    TQWhatsThis::add( LocationButton, tr2i18n( "Press this button to select a new geographic location for the \"What's Up Tonight\" tool.  Note that the location of the main window is not changed." ) );
    EveningMorningBox->clear();
    EveningMorningBox->insertItem( tr2i18n( "In the Evening" ) );
    EveningMorningBox->insertItem( tr2i18n( "In the Morning" ) );
    EveningMorningBox->insertItem( tr2i18n( "Any Time Tonight" ) );
    TQToolTip::add( EveningMorningBox, tr2i18n( "Choose time interval" ) );
    TQWhatsThis::add( EveningMorningBox, tr2i18n( "By default, the \"What's Up Tonight\" tool displays all objects which are above the horizon between sunset and midnight (i.e., \"in the evening\").  You can also choose to show objects which are up between midnight and dawn (i.e., \"in the morning\"), or objects which are up at any time between sunset and sunrise (i.e., \"any time tonight\")" ) );
    groupBox2->setTitle( tr2i18n( "Almanac" ) );
    SunRiseLabel->setText( tr2i18n( "Sunrise:  07:15" ) );
    TQToolTip::add( SunRiseLabel, tr2i18n( "Time of sunrise" ) );
    TQWhatsThis::add( SunRiseLabel, tr2i18n( "Displays the time of sunrise for the selected date." ) );
    MoonRiseLabel->setText( tr2i18n( "Moon rise:  13:19" ) );
    TQToolTip::add( MoonRiseLabel, tr2i18n( "Time of moon rise" ) );
    TQWhatsThis::add( MoonRiseLabel, tr2i18n( "Displays the time at which the moon rises on the selected date." ) );
    MoonSetLabel->setText( tr2i18n( "Moon set: 04:27 " ) );
    TQToolTip::add( MoonSetLabel, tr2i18n( "Time of moon set" ) );
    TQWhatsThis::add( MoonSetLabel, tr2i18n( "Displays the time at which the moon sets on the selected date." ) );
    SunSetLabel->setText( tr2i18n( "Sunset:  19:15" ) );
    TQToolTip::add( SunSetLabel, tr2i18n( "Time of sunset" ) );
    TQWhatsThis::add( SunSetLabel, tr2i18n( "Displays the time of sunset for the selected date." ) );
    NightDurationLabel->setText( tr2i18n( "Night duration: 11:00 hours" ) );
    TQToolTip::add( NightDurationLabel, tr2i18n( "Duration of night for selected date" ) );
    TQWhatsThis::add( NightDurationLabel, tr2i18n( "Displays the duration between sunset and sunrise for the selected date." ) );
    MoonIllumLabel->setText( tr2i18n( "Moon illum: 42%" ) );
    TQToolTip::add( MoonIllumLabel, tr2i18n( "Moon's illumination fraction" ) );
    TQWhatsThis::add( MoonIllumLabel, tr2i18n( "Displays the illumination fraction of the Moon for the selected date." ) );
    textLabel15->setText( tr2i18n( "Choose a category:" ) );
    TQToolTip::add( ObjectListBox, tr2i18n( "List of objects above horizon tonight" ) );
    TQWhatsThis::add( ObjectListBox, tr2i18n( "Objects listed here are above the horizon on the selected date, and have the object type which is highlighted in the \"Choose a Category\" list." ) );
    ObjectBox->setTitle( tr2i18n( "Object Name" ) );
    ObjectRiseLabel->setText( tr2i18n( "Rises at:  22:12" ) );
    TQWhatsThis::add( ObjectRiseLabel, tr2i18n( "Displays the time at which the highlighted object rises above the horizon on the selected date." ) );
    ObjectTransitLabel->setText( tr2i18n( "Transits at:  03:45" ) );
    TQWhatsThis::add( ObjectTransitLabel, tr2i18n( "Displays the time at which the highlighted object transits across the local meridian on the selected date." ) );
    ObjectSetLabel->setText( tr2i18n( "Sets at:  08:22" ) );
    TQWhatsThis::add( ObjectSetLabel, tr2i18n( "Displays the time at which the highlighted object sets below the horizon on the selected date." ) );
    CenterButton->setText( tr2i18n( "Center Object" ) );
    TQToolTip::add( CenterButton, tr2i18n( "Center this object in the sky display" ) );
    TQWhatsThis::add( CenterButton, tr2i18n( "Center the sky display on this object, and begin tracking it.  Equivalent to the \"Center and Track\" item in the popup menu." ) );
    DetailButton->setText( tr2i18n( "Object Details" ) );
    TQToolTip::add( DetailButton, tr2i18n( "Open the Object Details window" ) );
    TQWhatsThis::add( DetailButton, tr2i18n( "Open the Details window for the highlighted object." ) );
    TQToolTip::add( CategoryListBox, tr2i18n( "List of object categories" ) );
    TQWhatsThis::add( CategoryListBox, tr2i18n( "Select an item in the Categories list to display objects in that category which are above the horizon on the selected date." ) );
    textLabel16->setText( tr2i18n( "Matching objects:" ) );
}

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

TQMetaObject *WUTDialogUI::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_WUTDialogUI( "WUTDialogUI", &WUTDialogUI::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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