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

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

#include "argchangeviewoption.h"

#include <ntqvariant.h>
#include <kpushbutton.h>
#include <klineedit.h>
#include <kcombobox.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

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

    OptionName = new KComboBox( false, this, "OptionName" );

    layout2->addWidget( OptionName, 0, 1 );
    spacer23 = new TQSpacerItem( 50, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout2->addItem( spacer23, 1, 0 );

    textLabel1_2 = new TQLabel( this, "textLabel1_2" );

    layout2->addWidget( textLabel1_2, 3, 0 );

    TreeButton = new KPushButton( this, "TreeButton" );

    layout2->addWidget( TreeButton, 1, 1 );

    OptionValue = new KLineEdit( this, "OptionValue" );

    layout2->addWidget( OptionValue, 3, 1 );
    spacer3 = new TQSpacerItem( 160, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout2->addMultiCell( spacer3, 2, 2, 0, 1 );

    textLabel1 = new TQLabel( this, "textLabel1" );

    layout2->addWidget( textLabel1, 0, 0 );
    ArgChangeViewOptionLayout->addLayout( layout2 );
    spacer24 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    ArgChangeViewOptionLayout->addItem( spacer24 );
    languageChange();
    resize( TQSize(260, 171).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ArgChangeViewOption::languageChange()
{
    TQToolTip::add( OptionName, tr2i18n( "List of adjustable options" ) );
    TQWhatsThis::add( OptionName, tr2i18n( "Select an option from this list to set its value.  You may also select the option using an organized Tree List using the \"Browse Tree\" button." ) );
    textLabel1_2->setProperty( "text", tr2i18n( "Value:" ) );
    TreeButton->setProperty( "text", tr2i18n( "Browse Tree" ) );
    TQToolTip::add( TreeButton, tr2i18n( "Show Tree View of options" ) );
    TQWhatsThis::add( TreeButton, tr2i18n( "Press this button to select a View Option from a Tree list, in which they are grouped by subject.  Also shown are a short description of each option, and the data type of the option's value (string, integer, float or boolean)." ) );
    TQToolTip::add( OptionValue, tr2i18n( "value for selected option" ) );
    TQWhatsThis::add( OptionValue, tr2i18n( "Set the value for the selected view option here.  Make sure the value you enter matches the data type expected by the option.  For example, the \"UseAltAz\" option expects a boolean value, so you should enter \"true\", \"false\", \"1\", or \"0\".  If you are unsure what data type is expected, examine the Tree View of options using the \"Browse Tree\" button." ) );
    textLabel1->setProperty( "text", tr2i18n( "Option:" ) );
}

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

TQMetaObject *ArgChangeViewOption::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ArgChangeViewOption( "ArgChangeViewOption", &ArgChangeViewOption::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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