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

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

#include "opsguidesui.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqcheckbox.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    kcfg_ShowCLines = new TQCheckBox( this, "kcfg_ShowCLines" );
    OpsGuidesUILayout->addWidget( kcfg_ShowCLines );

    kcfg_ShowCBounds = new TQCheckBox( this, "kcfg_ShowCBounds" );
    OpsGuidesUILayout->addWidget( kcfg_ShowCBounds );

    kcfg_ShowCNames = new TQCheckBox( this, "kcfg_ShowCNames" );
    OpsGuidesUILayout->addWidget( kcfg_ShowCNames );

    ConstellOptions = new TQButtonGroup( this, "ConstellOptions" );
    ConstellOptions->setColumnLayout(0, TQt::Vertical );
    ConstellOptions->layout()->setSpacing( 6 );
    ConstellOptions->layout()->setMargin( 11 );
    ConstellOptionsLayout = new TQVBoxLayout( ConstellOptions->layout() );
    ConstellOptionsLayout->setAlignment( TQt::AlignTop );

    kcfg_UseLatinConstellNames = new TQRadioButton( ConstellOptions, "kcfg_UseLatinConstellNames" );
    ConstellOptionsLayout->addWidget( kcfg_UseLatinConstellNames );

    kcfg_UseLocalConstellNames = new TQRadioButton( ConstellOptions, "kcfg_UseLocalConstellNames" );
    ConstellOptionsLayout->addWidget( kcfg_UseLocalConstellNames );

    kcfg_UseAbbrevConstellNames = new TQRadioButton( ConstellOptions, "kcfg_UseAbbrevConstellNames" );
    ConstellOptionsLayout->addWidget( kcfg_UseAbbrevConstellNames );
    OpsGuidesUILayout->addWidget( ConstellOptions );
    spacer12_2 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    OpsGuidesUILayout->addItem( spacer12_2 );

    kcfg_ShowMilkyWay = new TQCheckBox( this, "kcfg_ShowMilkyWay" );
    OpsGuidesUILayout->addWidget( kcfg_ShowMilkyWay );

    kcfg_FillMilkyWay = new TQCheckBox( this, "kcfg_FillMilkyWay" );
    OpsGuidesUILayout->addWidget( kcfg_FillMilkyWay );
    spacer12 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    OpsGuidesUILayout->addItem( spacer12 );

    kcfg_ShowGrid = new TQCheckBox( this, "kcfg_ShowGrid" );
    OpsGuidesUILayout->addWidget( kcfg_ShowGrid );

    kcfg_ShowEquator = new TQCheckBox( this, "kcfg_ShowEquator" );
    OpsGuidesUILayout->addWidget( kcfg_ShowEquator );

    kcfg_ShowEcliptic = new TQCheckBox( this, "kcfg_ShowEcliptic" );
    OpsGuidesUILayout->addWidget( kcfg_ShowEcliptic );

    kcfg_ShowHorizon = new TQCheckBox( this, "kcfg_ShowHorizon" );
    OpsGuidesUILayout->addWidget( kcfg_ShowHorizon );

    kcfg_ShowGround = new TQCheckBox( this, "kcfg_ShowGround" );
    OpsGuidesUILayout->addWidget( kcfg_ShowGround );
    spacer13 = new TQSpacerItem( 20, 60, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    OpsGuidesUILayout->addItem( spacer13 );
    languageChange();
    resize( TQSize(420, 555).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void OpsGuidesUI::languageChange()
{
    setCaption( tr2i18n( "OpsGuides" ) );
    kcfg_ShowCLines->setText( tr2i18n( "&Constellation lines" ) );
    TQToolTip::add( kcfg_ShowCLines, tr2i18n( "Show constellation lines?" ) );
    TQWhatsThis::add( kcfg_ShowCLines, tr2i18n( "If checked, constellation lines will be drawn on the sky map." ) );
    kcfg_ShowCBounds->setText( tr2i18n( "Constellation &boundaries" ) );
    kcfg_ShowCNames->setText( tr2i18n( "Constellation &names" ) );
    TQToolTip::add( kcfg_ShowCNames, tr2i18n( "Draw constellation names?" ) );
    TQWhatsThis::add( kcfg_ShowCNames, tr2i18n( "If checked, constellation names will be drawn on the sky map." ) );
    ConstellOptions->setTitle( tr2i18n( "Constellation Name Options" ) );
    kcfg_UseLatinConstellNames->setText( tr2i18n( "L&atin" ) );
    TQToolTip::add( kcfg_UseLatinConstellNames, tr2i18n( "Use Latin constellation names" ) );
    TQWhatsThis::add( kcfg_UseLatinConstellNames, tr2i18n( "Select this to use Latin constellation names on the sky map" ) );
    kcfg_UseLocalConstellNames->setText( tr2i18n( "Localized" ) );
    TQToolTip::add( kcfg_UseLocalConstellNames, tr2i18n( "Use Localized constellation names" ) );
    TQWhatsThis::add( kcfg_UseLocalConstellNames, tr2i18n( "Select this to use constellation names from your locality (if available)" ) );
    kcfg_UseAbbrevConstellNames->setText( tr2i18n( "Abbre&viated" ) );
    TQToolTip::add( kcfg_UseAbbrevConstellNames, tr2i18n( "Use IAU abbreviations" ) );
    TQWhatsThis::add( kcfg_UseAbbrevConstellNames, tr2i18n( "Select this to use abbreviations from the International Astronomical Union as constellation labels" ) );
    kcfg_ShowMilkyWay->setText( tr2i18n( "Mil&ky Way" ) );
    TQToolTip::add( kcfg_ShowMilkyWay, tr2i18n( "Draw the Milky Way contour?" ) );
    TQWhatsThis::add( kcfg_ShowMilkyWay, tr2i18n( "If checked, a contour representing the Milky Way will be drawn on the sky map" ) );
    kcfg_FillMilkyWay->setText( tr2i18n( "Fill Milk&y Way" ) );
    TQToolTip::add( kcfg_FillMilkyWay, tr2i18n( "Use filled Milky Way contour?" ) );
    TQWhatsThis::add( kcfg_FillMilkyWay, tr2i18n( "If checked, the Milky Way contour will be shown filled.  Otherwise, only the outline will be drawn." ) );
    kcfg_ShowGrid->setText( tr2i18n( "Coor&dinate grid" ) );
    TQToolTip::add( kcfg_ShowGrid, tr2i18n( "Draw coordinate grid?" ) );
    TQWhatsThis::add( kcfg_ShowGrid, tr2i18n( "If checked, a grid of lines will be drawn every 2 hours in Right Ascension and every 20 degrees in Declination." ) );
    kcfg_ShowEquator->setText( tr2i18n( "Celestial e&quator" ) );
    TQToolTip::add( kcfg_ShowEquator, tr2i18n( "Draw Celestial equator?" ) );
    TQWhatsThis::add( kcfg_ShowEquator, tr2i18n( "If checked, the celestial equator will be drawn in the sky map." ) );
    kcfg_ShowEcliptic->setText( tr2i18n( "Ecliptic" ) );
    TQToolTip::add( kcfg_ShowEcliptic, tr2i18n( "Draw Ecliptic?" ) );
    TQWhatsThis::add( kcfg_ShowEcliptic, tr2i18n( "If checked, the ecliptic will be drawn on the sky map.  The ecliptic is a great circle on the sky that the Sun appears to follow over the course of one year.  All other solar system bodies roughly follow the ecliptic as well." ) );
    kcfg_ShowHorizon->setText( tr2i18n( "Hori&zon (line)" ) );
    TQToolTip::add( kcfg_ShowHorizon, tr2i18n( "Draw horizon?" ) );
    TQWhatsThis::add( kcfg_ShowHorizon, tr2i18n( "If checked, a line representing the local horizon will be drawn on the map." ) );
    kcfg_ShowGround->setText( tr2i18n( "Opaque &ground" ) );
    TQToolTip::add( kcfg_ShowGround, tr2i18n( "Draw opaque ground?" ) );
    TQWhatsThis::add( kcfg_ShowGround, tr2i18n( "If checked, the area below the horizon will be filled in, to simulate the ground beneath you.  Note that the ground is never drawn when using the Equatorial coordinate system." ) );
}

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

TQMetaObject *OpsGuidesUI::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_OpsGuidesUI( "OpsGuidesUI", &OpsGuidesUI::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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