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

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

#include "kswizardui.h"

#include <ntqvariant.h>
#include <kpushbutton.h>
#include <tdelistbox.h>
#include <dmsbox.h>
#include <ntqpushbutton.h>
#include <ntqwidget.h>
#include <ntqlabel.h>
#include <klineedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a KSWizardUI as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qwizard will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qwizard.
 */
KSWizardUI::KSWizardUI( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : KWizard( parent, name, modal, fl )
{
    if ( !name )
	setName( "KSWizardUI" );

    WelcomePage = new TQWidget( this, "WelcomePage" );
    WelcomePageLayout = new TQHBoxLayout( WelcomePage, 11, 6, "WelcomePageLayout"); 

    Banner1 = new TQLabel( WelcomePage, "Banner1" );
    Banner1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, Banner1->sizePolicy().hasHeightForWidth() ) );
    Banner1->setMinimumSize( TQSize( 120, 360 ) );
    WelcomePageLayout->addWidget( Banner1 );

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

    textLabel1 = new TQLabel( WelcomePage, "textLabel1" );
    layout11->addWidget( textLabel1 );

    layout10 = new TQHBoxLayout( 0, 0, 6, "layout10"); 
    spacer1 = new TQSpacerItem( 20, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout10->addItem( spacer1 );

    textLabel2 = new TQLabel( WelcomePage, "textLabel2" );
    textLabel2->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
    layout10->addWidget( textLabel2 );
    layout11->addLayout( layout10 );
    spacer2 = new TQSpacerItem( 20, 189, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout11->addItem( spacer2 );
    WelcomePageLayout->addLayout( layout11 );
    addPage( WelcomePage, TQString("") );

    GeoPage = new TQWidget( this, "GeoPage" );
    GeoPageLayout = new TQHBoxLayout( GeoPage, 11, 6, "GeoPageLayout"); 

    Banner2 = new TQLabel( GeoPage, "Banner2" );
    Banner2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, Banner2->sizePolicy().hasHeightForWidth() ) );
    Banner2->setMinimumSize( TQSize( 120, 360 ) );
    GeoPageLayout->addWidget( Banner2 );

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

    textLabel3 = new TQLabel( GeoPage, "textLabel3" );
    layout17->addWidget( textLabel3 );

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

    layout15 = new TQHBoxLayout( 0, 0, 6, "layout15"); 
    spacer5 = new TQSpacerItem( 20, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout15->addItem( spacer5 );

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

    textLabel4 = new TQLabel( GeoPage, "textLabel4" );
    textLabel4->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
    layout14->addWidget( textLabel4 );
    spacer12 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout14->addItem( spacer12 );

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

    textLabel5_3 = new TQLabel( GeoPage, "textLabel5_3" );

    layout4->addWidget( textLabel5_3, 2, 0 );

    CityFilter = new KLineEdit( GeoPage, "CityFilter" );

    layout4->addWidget( CityFilter, 0, 1 );

    textLabel5 = new TQLabel( GeoPage, "textLabel5" );

    layout4->addWidget( textLabel5, 0, 0 );

    textLabel5_2 = new TQLabel( GeoPage, "textLabel5_2" );

    layout4->addWidget( textLabel5_2, 1, 0 );

    CountryFilter = new KLineEdit( GeoPage, "CountryFilter" );

    layout4->addWidget( CountryFilter, 2, 1 );

    ProvinceFilter = new KLineEdit( GeoPage, "ProvinceFilter" );

    layout4->addWidget( ProvinceFilter, 1, 1 );
    layout14->addLayout( layout4 );
    spacer11 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout14->addItem( spacer11 );

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

    LatBox = new dmsBox( GeoPage, "LatBox" );
    LatBox->setMinimumSize( TQSize( 120, 0 ) );

    layout12->addWidget( LatBox, 1, 1 );

    textLabel7 = new TQLabel( GeoPage, "textLabel7" );

    layout12->addWidget( textLabel7, 0, 0 );

    textLabel7_2 = new TQLabel( GeoPage, "textLabel7_2" );
    textLabel7_2->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignLeft ) );

    layout12->addWidget( textLabel7_2, 1, 0 );

    LongBox = new dmsBox( GeoPage, "LongBox" );
    LongBox->setMinimumSize( TQSize( 120, 0 ) );

    layout12->addWidget( LongBox, 0, 1 );
    layout14->addLayout( layout12 );
    layout15->addLayout( layout14 );
    layout16->addLayout( layout15 );

    CityListBox = new TDEListBox( GeoPage, "CityListBox" );
    CityListBox->setMinimumSize( TQSize( 180, 0 ) );
    CityListBox->setVScrollBarMode( TDEListBox::AlwaysOn );
    layout16->addWidget( CityListBox );
    layout17->addLayout( layout16 );
    GeoPageLayout->addLayout( layout17 );
    addPage( GeoPage, TQString("") );

    TelescopePage = new TQWidget( this, "TelescopePage" );
    TelescopePageLayout = new TQHBoxLayout( TelescopePage, 11, 6, "TelescopePageLayout"); 

    Banner3 = new TQLabel( TelescopePage, "Banner3" );
    Banner3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, Banner3->sizePolicy().hasHeightForWidth() ) );
    Banner3->setMinimumSize( TQSize( 120, 360 ) );
    TelescopePageLayout->addWidget( Banner3 );

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

    textLabel1_2 = new TQLabel( TelescopePage, "textLabel1_2" );
    layout18->addWidget( textLabel1_2 );

    layout17_2 = new TQHBoxLayout( 0, 0, 6, "layout17_2"); 
    spacer8 = new TQSpacerItem( 20, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout17_2->addItem( spacer8 );

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

    textLabel2_2 = new TQLabel( TelescopePage, "textLabel2_2" );
    layout16_2->addWidget( textLabel2_2 );
    spacer6 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    layout16_2->addItem( spacer6 );

    textLabel3_2 = new TQLabel( TelescopePage, "textLabel3_2" );
    layout16_2->addWidget( textLabel3_2 );
    spacer6_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    layout16_2->addItem( spacer6_2 );

    layout15_2 = new TQHBoxLayout( 0, 0, 6, "layout15_2"); 
    spacer10 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout15_2->addItem( spacer10 );

    TelescopeWizardButton = new KPushButton( TelescopePage, "TelescopeWizardButton" );
    layout15_2->addWidget( TelescopeWizardButton );
    spacer10_2 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout15_2->addItem( spacer10_2 );
    layout16_2->addLayout( layout15_2 );
    spacer9 = new TQSpacerItem( 20, 117, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout16_2->addItem( spacer9 );
    layout17_2->addLayout( layout16_2 );
    layout18->addLayout( layout17_2 );
    TelescopePageLayout->addLayout( layout18 );
    addPage( TelescopePage, TQString("") );

    DownLoadPage = new TQWidget( this, "DownLoadPage" );
    DownLoadPageLayout = new TQHBoxLayout( DownLoadPage, 11, 6, "DownLoadPageLayout"); 

    Banner4 = new TQLabel( DownLoadPage, "Banner4" );
    Banner4->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, Banner4->sizePolicy().hasHeightForWidth() ) );
    Banner4->setMinimumSize( TQSize( 120, 360 ) );
    DownLoadPageLayout->addWidget( Banner4 );

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

    textLabel2_3 = new TQLabel( DownLoadPage, "textLabel2_3" );
    layout19->addWidget( textLabel2_3 );

    layout18_2 = new TQHBoxLayout( 0, 0, 6, "layout18_2"); 
    spacer15 = new TQSpacerItem( 20, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout18_2->addItem( spacer15 );

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

    textLabel1_3 = new TQLabel( DownLoadPage, "textLabel1_3" );
    textLabel1_3->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignTop ) );
    layout17_3->addWidget( textLabel1_3 );
    spacer16 = new TQSpacerItem( 20, 30, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout17_3->addItem( spacer16 );

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

    DownloadButton = new KPushButton( DownLoadPage, "DownloadButton" );
    layout13->addWidget( DownloadButton );
    spacer13 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout13->addItem( spacer13 );
    layout17_3->addLayout( layout13 );
    spacer14 = new TQSpacerItem( 20, 90, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout17_3->addItem( spacer14 );
    layout18_2->addLayout( layout17_3 );
    layout19->addLayout( layout18_2 );
    DownLoadPageLayout->addLayout( layout19 );
    addPage( DownLoadPage, TQString("") );
    languageChange();
    resize( TQSize(600, 492).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KSWizardUI::languageChange()
{
    Banner1->setText( TQString::null );
    textLabel1->setText( tr2i18n( "<h3>Welcome to the KStars Setup Wizard</h3>" ) );
    textLabel2->setText( tr2i18n( "<p>This Wizard will help you set up some basic options to help you get the most out of KStars.  You can press <b>Finish</b> at any time to save the settings you've made so far, and skip the remaining steps.</p>\n"
"\n"
"<p>To get started, press the <b>Next</b> button.</p>" ) );
    setTitle( WelcomePage, tr2i18n( "Welcome to KStars" ) );
    Banner2->setText( TQString::null );
    textLabel3->setText( tr2i18n( "<h3>Choose Your Home Location</h3>" ) );
    textLabel4->setText( tr2i18n( "<p>Select a City near your\n"
"location from the list.  You\n"
"may filter the list by the name\n"
"of your city, province, and\n"
"country.</p>\n"
"\n"
"<p>Once you have selected a City, press <b>Next</b>.</p>" ) );
    textLabel5_3->setText( tr2i18n( "Country:" ) );
    TQToolTip::add( CityFilter, tr2i18n( "Filter the list by city name" ) );
    textLabel5->setText( tr2i18n( "City:" ) );
    textLabel5_2->setText( tr2i18n( "Province:" ) );
    TQToolTip::add( CountryFilter, tr2i18n( "Filter the list by country name" ) );
    TQToolTip::add( ProvinceFilter, tr2i18n( "Filter the list by province name" ) );
    TQToolTip::add( LatBox, tr2i18n( "Displays the latitude of the selected city" ) );
    textLabel7->setText( tr2i18n( "Longitude:" ) );
    textLabel7_2->setText( tr2i18n( "Latitude:" ) );
    TQToolTip::add( LongBox, tr2i18n( "Displays the longitude of the selected city" ) );
    TQToolTip::add( CityListBox, tr2i18n( "The list of cities which match the present search filters." ) );
    setTitle( GeoPage, tr2i18n( "Geographic Location" ) );
    Banner3->setText( TQString::null );
    textLabel1_2->setText( tr2i18n( "<h3>Setup Telescopes and Devices</h3>" ) );
    textLabel2_2->setText( tr2i18n( "KStars can control most popular computerized telescope\n"
"mounts, as well as some focusers and CCD cameras.  It\n"
"can also control telescopes remotely over the Internet." ) );
    textLabel3_2->setText( tr2i18n( "To set up your devices, press the <b>Telescope Setup\n"
"Wizard</b> button below.  When you are finished, press <b>Next</b>.\n"
"If you do not have any devices to set up, just press <b>Next</b>.\n"
"You can always set up devices later using the <b>Devices</b> menu." ) );
    TelescopeWizardButton->setText( tr2i18n( "Telescope Setup Wizard..." ) );
    TQToolTip::add( TelescopeWizardButton, tr2i18n( "Launch the Telescope Setup Wizard" ) );
    TQWhatsThis::add( TelescopeWizardButton, tr2i18n( "The Telescope Setup Wizard will help you configure telescopes\n"
"and other astronomical devices such as CCD cameras and focusers." ) );
    setTitle( TelescopePage, tr2i18n( "Setup Telescopes" ) );
    Banner4->setText( TQString::null );
    textLabel2_3->setText( tr2i18n( "<h3>Download Extra Data Files</h3>" ) );
    textLabel1_3->setText( tr2i18n( "<p>You may now download optional data files to enhance\n"
"KStars, such as Messier object images, or a more complete\n"
"NGC/IC catalog.  Press the <b>Download Extra Data</b>\n"
"button to proceed. </p>\n"
"\n"
"<p>You can also use this tool later, by selecting\n"
"<b>Download data</b> from the <b>File</b> menu.</p>" ) );
    DownloadButton->setText( tr2i18n( "Download Extra Data" ) );
    setTitle( DownLoadPage, tr2i18n( "Download Extras" ) );
}

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

TQMetaObject *KSWizardUI::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KSWizardUI( "KSWizardUI", &KSWizardUI::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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