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

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

#include "appletconfig.h"

#include <ntqvariant.h>
#include <kcolorbutton.h>
#include <kcombobox.h>
#include <kdialog.h>
#include <klineedit.h>
#include <kpushbutton.h>
#include <kurlrequester.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a appletConfig as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
appletConfig::appletConfig( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "appletConfig" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, sizePolicy().hasHeightForWidth() ) );
    setMinimumSize( TQSize( 0, 0 ) );
    setFocusPolicy( TQWidget::TabFocus );
    appletConfigLayout = new TQVBoxLayout( this, 0, KDialog::spacingHint(), "appletConfigLayout"); 

    GroupBox2 = new TQGroupBox( this, "GroupBox2" );
    GroupBox2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, GroupBox2->sizePolicy().hasHeightForWidth() ) );
    GroupBox2->setFrameShape( TQGroupBox::NoFrame );
    GroupBox2->setFrameShadow( TQGroupBox::Sunken );
    GroupBox2->setColumnLayout(0, TQt::Vertical );
    GroupBox2->layout()->setSpacing( KDialog::spacingHint() );
    GroupBox2->layout()->setMargin( KDialog::marginHint() );
    GroupBox2Layout = new TQHBoxLayout( GroupBox2->layout() );
    GroupBox2Layout->setAlignment( TQt::AlignTop );

    TextLabel1_4_2_2 = new TQLabel( GroupBox2, "TextLabel1_4_2_2" );
    GroupBox2Layout->addWidget( TextLabel1_4_2_2 );

    m_reportLocation = new KComboBox( false, GroupBox2, "m_reportLocation" );
    m_reportLocation->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, m_reportLocation->sizePolicy().hasHeightForWidth() ) );
    m_reportLocation->setMinimumSize( TQSize( 0, 0 ) );
    GroupBox2Layout->addWidget( m_reportLocation );
    spacer2 = new TQSpacerItem( 40, 20, TQSizePolicy::MinimumExpanding, TQSizePolicy::Minimum );
    GroupBox2Layout->addItem( spacer2 );
    appletConfigLayout->addWidget( GroupBox2 );

    m_viewMode = new TQButtonGroup( this, "m_viewMode" );
    m_viewMode->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, m_viewMode->sizePolicy().hasHeightForWidth() ) );
    m_viewMode->setMidLineWidth( 0 );
    m_viewMode->setAlignment( int( TQButtonGroup::AlignVCenter | TQButtonGroup::AlignLeft ) );
    m_viewMode->setExclusive( true );

    m_smallView = new TQRadioButton( m_viewMode, "m_smallView" );
    m_smallView->setGeometry( TQRect( 6, 24, 747, 26 ) );
    m_smallView->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, m_smallView->sizePolicy().hasHeightForWidth() ) );
    m_viewMode->insert( m_smallView, 1 );

    CheckBox10 = new TQRadioButton( m_viewMode, "CheckBox10" );
    CheckBox10->setGeometry( TQRect( 6, 82, 747, 26 ) );
    CheckBox10->setChecked( true );
    m_viewMode->insert( CheckBox10, 3 );

    CheckBox9 = new TQRadioButton( m_viewMode, "CheckBox9" );
    CheckBox9->setGeometry( TQRect( 6, 53, 747, 26 ) );
    m_viewMode->insert( CheckBox9, 2 );
    appletConfigLayout->addWidget( m_viewMode );

    groupBox3 = new TQGroupBox( this, "groupBox3" );
    groupBox3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, groupBox3->sizePolicy().hasHeightForWidth() ) );
    groupBox3->setColumnLayout(0, TQt::Vertical );
    groupBox3->layout()->setSpacing( KDialog::spacingHint() );
    groupBox3->layout()->setMargin( KDialog::marginHint() );
    groupBox3Layout = new TQHBoxLayout( groupBox3->layout() );
    groupBox3Layout->setAlignment( TQt::AlignTop );

    layout1 = new TQHBoxLayout( 0, 0, KDialog::spacingHint(), "layout1"); 

    textLabel1 = new TQLabel( groupBox3, "textLabel1" );
    layout1->addWidget( textLabel1 );

    m_textColor = new KColorButton( groupBox3, "m_textColor" );
    layout1->addWidget( m_textColor );
    groupBox3Layout->addLayout( layout1 );
    spacer3 = new TQSpacerItem( 624, 20, TQSizePolicy::MinimumExpanding, TQSizePolicy::Minimum );
    groupBox3Layout->addItem( spacer3 );
    appletConfigLayout->addWidget( groupBox3 );
    spacer4 = new TQSpacerItem( 20, 91, TQSizePolicy::Minimum, TQSizePolicy::MinimumExpanding );
    appletConfigLayout->addItem( spacer4 );
    languageChange();
    resize( TQSize(761, 385).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // buddies
    TextLabel1_4_2_2->setBuddy( m_reportLocation );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void appletConfig::languageChange()
{
    setCaption( tr2i18n( "appletConfig" ) );
    GroupBox2->setTitle( tr2i18n( "Weather Station Options" ) );
    TextLabel1_4_2_2->setText( tr2i18n( "&Location:" ) );
    m_viewMode->setTitle( tr2i18n( "Panel Display Options" ) );
    m_smallView->setText( tr2i18n( "&Show icon only" ) );
    TQToolTip::add( m_smallView, tr2i18n( "<qt>Click here to show only the weather icon.</qt>" ) );
    TQWhatsThis::add( m_smallView, tr2i18n( "This feature will allow you to make KWeather take up only one slot on the kicker. Normally this application will take up two slots. The small view will only show the weather icon, while the normal view will display both the icon and the current weather statistics. For the small view the weather statistics will be put on the buttons tool tip." ) );
    CheckBox10->setText( tr2i18n( "Show icon, temperature, &wind and pressure information" ) );
    CheckBox9->setText( tr2i18n( "Show &icon and temperature" ) );
    groupBox3->setTitle( tr2i18n( "Text" ) );
    textLabel1->setText( tr2i18n( "Color:" ) );
    m_textColor->setText( TQString::null );
}

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

TQMetaObject *appletConfig::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_appletConfig( "appletConfig", &appletConfig::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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