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

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

#include "opsadvancedui.h"

#include <ntqvariant.h>
#include <magnitudespinbox.h>
#include <timestepbox.h>
#include <ntqpushbutton.h>
#include <ntqcheckbox.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqlabel.h>
#include <ntqgroupbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include "timestepbox.h"
#include "magnitudespinbox.h"

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

    kcfg_UseRefraction = new TQCheckBox( this, "kcfg_UseRefraction" );
    OpsAdvancedUILayout->addWidget( kcfg_UseRefraction );

    kcfg_UseAnimatedSlewing = new TQCheckBox( this, "kcfg_UseAnimatedSlewing" );
    OpsAdvancedUILayout->addWidget( kcfg_UseAnimatedSlewing );

    kcfg_UseAutoLabel = new TQCheckBox( this, "kcfg_UseAutoLabel" );
    OpsAdvancedUILayout->addWidget( kcfg_UseAutoLabel );

    kcfg_UseHoverLabel = new TQCheckBox( this, "kcfg_UseHoverLabel" );
    OpsAdvancedUILayout->addWidget( kcfg_UseHoverLabel );

    ObsListOptions = new TQButtonGroup( this, "ObsListOptions" );
    ObsListOptions->setColumnLayout(0, TQt::Vertical );
    ObsListOptions->layout()->setSpacing( 6 );
    ObsListOptions->layout()->setMargin( 11 );
    ObsListOptionsLayout = new TQHBoxLayout( ObsListOptions->layout() );
    ObsListOptionsLayout->setAlignment( TQt::AlignTop );

    kcfg_ObsListSymbol = new TQRadioButton( ObsListOptions, "kcfg_ObsListSymbol" );
    kcfg_ObsListSymbol->setChecked( true );
    ObsListOptionsLayout->addWidget( kcfg_ObsListSymbol );

    kcfg_ObsListText = new TQRadioButton( ObsListOptions, "kcfg_ObsListText" );
    ObsListOptionsLayout->addWidget( kcfg_ObsListText );
    OpsAdvancedUILayout->addWidget( ObsListOptions );
    spacer20 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    OpsAdvancedUILayout->addItem( spacer20 );

    kcfg_HideOnSlew = new TQCheckBox( this, "kcfg_HideOnSlew" );
    OpsAdvancedUILayout->addWidget( kcfg_HideOnSlew );

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

    textLabelHideTimeStep = new TQLabel( this, "textLabelHideTimeStep" );
    layout16->addWidget( textLabelHideTimeStep );

    SlewTimeScale = new TimeStepBox( this, "SlewTimeScale" );
    SlewTimeScale->setFocusPolicy( TimeStepBox::StrongFocus );
    layout16->addWidget( SlewTimeScale );
    spacer21 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout16->addItem( spacer21 );
    OpsAdvancedUILayout->addLayout( layout16 );

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

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

    kcfg_HideStars = new TQCheckBox( HideBox, "kcfg_HideStars" );
    layout20->addWidget( kcfg_HideStars );

    kcfg_MagLimitHideStar = new MagnitudeSpinBox( HideBox, "kcfg_MagLimitHideStar" );
    kcfg_MagLimitHideStar->setMinimumSize( TQSize( 40, 0 ) );
    kcfg_MagLimitHideStar->setFocusPolicy( MagnitudeSpinBox::StrongFocus );
    layout20->addWidget( kcfg_MagLimitHideStar );

    textLabelMag1 = new TQLabel( HideBox, "textLabelMag1" );
    layout20->addWidget( textLabelMag1 );
    spacer23 = new TQSpacerItem( 240, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout20->addItem( spacer23 );
    HideBoxLayout->addLayout( layout20 );

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

    kcfg_HideIC = new TQCheckBox( HideBox, "kcfg_HideIC" );

    layout4->addMultiCellWidget( kcfg_HideIC, 4, 5, 0, 0 );

    kcfg_HideMilkyWay = new TQCheckBox( HideBox, "kcfg_HideMilkyWay" );

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

    kcfg_HidePlanets = new TQCheckBox( HideBox, "kcfg_HidePlanets" );

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

    kcfg_HideCBounds = new TQCheckBox( HideBox, "kcfg_HideCBounds" );

    layout4->addWidget( kcfg_HideCBounds, 5, 1 );

    kcfg_HideMessier = new TQCheckBox( HideBox, "kcfg_HideMessier" );

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

    kcfg_HideGrid = new TQCheckBox( HideBox, "kcfg_HideGrid" );

    layout4->addWidget( kcfg_HideGrid, 6, 1 );

    kcfg_HideNGC = new TQCheckBox( HideBox, "kcfg_HideNGC" );

    layout4->addMultiCellWidget( kcfg_HideNGC, 2, 3, 0, 0 );

    kcfg_HideCLines = new TQCheckBox( HideBox, "kcfg_HideCLines" );

    layout4->addMultiCellWidget( kcfg_HideCLines, 3, 4, 1, 1 );

    kcfg_HideCNames = new TQCheckBox( HideBox, "kcfg_HideCNames" );

    layout4->addMultiCellWidget( kcfg_HideCNames, 1, 2, 1, 1 );
    HideBoxLayout->addLayout( layout4 );
    OpsAdvancedUILayout->addWidget( HideBox );
    spacer22 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    OpsAdvancedUILayout->addItem( spacer22 );
    languageChange();
    resize( TQSize(385, 499).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( kcfg_UseRefraction, kcfg_UseAnimatedSlewing );
    setTabOrder( kcfg_UseAnimatedSlewing, kcfg_UseAutoLabel );
    setTabOrder( kcfg_UseAutoLabel, kcfg_HideOnSlew );
    setTabOrder( kcfg_HideOnSlew, SlewTimeScale );
    setTabOrder( SlewTimeScale, kcfg_HideStars );
    setTabOrder( kcfg_HideStars, kcfg_MagLimitHideStar );
    setTabOrder( kcfg_MagLimitHideStar, kcfg_HidePlanets );
    setTabOrder( kcfg_HidePlanets, kcfg_HideMessier );
    setTabOrder( kcfg_HideMessier, kcfg_HideNGC );
    setTabOrder( kcfg_HideNGC, kcfg_HideIC );
    setTabOrder( kcfg_HideIC, kcfg_HideMilkyWay );
    setTabOrder( kcfg_HideMilkyWay, kcfg_HideCNames );
    setTabOrder( kcfg_HideCNames, kcfg_HideCLines );
    setTabOrder( kcfg_HideCLines, kcfg_HideGrid );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void OpsAdvancedUI::languageChange()
{
    setCaption( tr2i18n( "OpsAdvanced" ) );
    kcfg_UseRefraction->setText( tr2i18n( "Correct for atmospheric refraction" ) );
    TQToolTip::add( kcfg_UseRefraction, tr2i18n( "Correct coordinates of objects for the effects of the atmosphere" ) );
    TQWhatsThis::add( kcfg_UseRefraction, tr2i18n( "The atmosphere bends light passing through it, like a lens.  If this item is checked, this \"atmospheric refraction\" will be simulated in the sky map.  Note that this correction is only applied when using the Horizontal coordinate system." ) );
    kcfg_UseAnimatedSlewing->setText( tr2i18n( "Use animated slewing" ) );
    TQToolTip::add( kcfg_UseAnimatedSlewing, tr2i18n( "Show slewing motion when focus changes?" ) );
    TQWhatsThis::add( kcfg_UseAnimatedSlewing, tr2i18n( "If checked, changing the focus position will result in a visible animated \"slew\" to the new position.  Otherwise, the display will center on the new position instantaneously." ) );
    kcfg_UseAutoLabel->setText( tr2i18n( "Attach label to centered object" ) );
    TQToolTip::add( kcfg_UseAutoLabel, tr2i18n( "Show name label of centered object?" ) );
    TQWhatsThis::add( kcfg_UseAutoLabel, tr2i18n( "If checked, a name label will be temporarily attached to an object while it is centered in the display.  You can attach a more persistent label to any object using the right-click popup menu." ) );
    kcfg_UseHoverLabel->setText( tr2i18n( "Attach temporary label when hovering mouse" ) );
    TQToolTip::add( kcfg_UseHoverLabel, tr2i18n( "Show name label of centered object?" ) );
    TQWhatsThis::add( kcfg_UseHoverLabel, tr2i18n( "If checked, a name label will be temporarily attached to an object while it is centered in the display.  You can attach a more persistent label to any object using the right-click popup menu." ) );
    ObsListOptions->setTitle( tr2i18n( "Observing List Labels" ) );
    kcfg_ObsListSymbol->setText( tr2i18n( "Symbol" ) );
    kcfg_ObsListText->setText( tr2i18n( "Text" ) );
    kcfg_HideOnSlew->setText( tr2i18n( "Hide objects while moving" ) );
    TQToolTip::add( kcfg_HideOnSlew, tr2i18n( "Do not draw all objects while the map is moving?" ) );
    TQWhatsThis::add( kcfg_HideOnSlew, tr2i18n( "When the map is in motion, smooth animation is compromised if the program has too many objects to draw on the map; check this item to temporarily hide some of the objects while the display is in motion." ) );
    textLabelHideTimeStep->setText( tr2i18n( "Also hide if time step larger than:" ) );
    TQToolTip::add( SlewTimeScale, tr2i18n( "smallest timestep for which objects are always hidden" ) );
    HideBox->setTitle( tr2i18n( "Configure Hidden Objects" ) );
    kcfg_HideStars->setText( tr2i18n( "Stars fainter than" ) );
    TQToolTip::add( kcfg_HideStars, tr2i18n( "Hide faint stars while moving?" ) );
    TQWhatsThis::add( kcfg_HideStars, tr2i18n( "If checked, then fainter stars will be hidden when the map is in motion." ) );
    kcfg_MagLimitHideStar->setProperty( "property", tr2i18n( "Stars fainter than this will not be drawn while the map is moving." ) );
    TQWhatsThis::add( kcfg_MagLimitHideStar, tr2i18n( "Stars fainter than this will not be drawn while the map is moving." ) );
    textLabelMag1->setText( tr2i18n( "mag" ) );
    kcfg_HideIC->setText( tr2i18n( "IC objects" ) );
    TQToolTip::add( kcfg_HideIC, tr2i18n( "Hide IC objects while moving?" ) );
    TQWhatsThis::add( kcfg_HideIC, tr2i18n( "If checked, then objects in the IC catalog will be hidden when the map is in motion." ) );
    kcfg_HideMilkyWay->setText( tr2i18n( "Milky Way" ) );
    TQToolTip::add( kcfg_HideMilkyWay, tr2i18n( "Hide the Milky Way contour while moving?" ) );
    TQWhatsThis::add( kcfg_HideMilkyWay, tr2i18n( "If checked, then the Milky Way contour will be hidden when the map is in motion." ) );
    kcfg_HidePlanets->setText( tr2i18n( "Solar system" ) );
    TQToolTip::add( kcfg_HidePlanets, tr2i18n( "Hide solar system bodies while moving?" ) );
    TQWhatsThis::add( kcfg_HidePlanets, tr2i18n( "If checked, then all solar system bodies will be hidden when the map is in motion." ) );
    kcfg_HideCBounds->setText( tr2i18n( "Constellation boundaries" ) );
    kcfg_HideMessier->setText( tr2i18n( "Messier objects" ) );
    TQToolTip::add( kcfg_HideMessier, tr2i18n( "Hide Messier objects when moving?" ) );
    TQWhatsThis::add( kcfg_HideMessier, tr2i18n( "If checked, then objects in the Messier catalog will be hidden when the map is in motion." ) );
    kcfg_HideGrid->setText( tr2i18n( "Coordinate grid" ) );
    TQToolTip::add( kcfg_HideGrid, tr2i18n( "Hide coordinate grid while moving?" ) );
    TQWhatsThis::add( kcfg_HideGrid, tr2i18n( "If checked, then the coordinate grid will be hidden when the map is in motion." ) );
    kcfg_HideNGC->setText( tr2i18n( "NGC objects" ) );
    TQToolTip::add( kcfg_HideNGC, tr2i18n( "Hide NGC objects while moving?" ) );
    TQWhatsThis::add( kcfg_HideNGC, tr2i18n( "If checked, then objects in the NGC catalog will be hidden when the map is in motion." ) );
    kcfg_HideCLines->setText( tr2i18n( "Constellation lines" ) );
    TQToolTip::add( kcfg_HideCLines, tr2i18n( "Hide constellation lines while moving?" ) );
    TQWhatsThis::add( kcfg_HideCLines, tr2i18n( "If checked, then constellation lines will be hidden when the map is in motion." ) );
    kcfg_HideCNames->setText( tr2i18n( "Constellation names" ) );
    TQToolTip::add( kcfg_HideCNames, tr2i18n( "Hide constellation names while moving?" ) );
    TQWhatsThis::add( kcfg_HideCNames, tr2i18n( "If checked, then constellation names will be hidden when the map is in motion." ) );
}

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

TQMetaObject *OpsAdvancedUI::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_OpsAdvancedUI( "OpsAdvancedUI", &OpsAdvancedUI::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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