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

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

#include "optionDialogGUIWidget_base.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqcombobox.h>
#include <ntqlabel.h>
#include <ntqcheckbox.h>
#include <ntqgroupbox.h>
#include <ntqspinbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    kcfg_UnderlineLinks = new TQComboBox( false, this, "kcfg_UnderlineLinks" );

    optionDialogGUIWidget_baseLayout->addWidget( kcfg_UnderlineLinks, 0, 1 );

    textLabel1 = new TQLabel( this, "textLabel1" );
    textLabel1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)5, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) );

    optionDialogGUIWidget_baseLayout->addWidget( textLabel1, 0, 0 );

    kcfg_ShowThumbnails = new TQCheckBox( this, "kcfg_ShowThumbnails" );

    optionDialogGUIWidget_baseLayout->addMultiCellWidget( kcfg_ShowThumbnails, 1, 1, 0, 1 );

    groupBox1 = new TQGroupBox( this, "groupBox1" );
    groupBox1->setColumnLayout(0, TQt::Vertical );
    groupBox1->layout()->setSpacing( 6 );
    groupBox1->layout()->setMargin( 11 );
    groupBox1Layout = new TQGridLayout( groupBox1->layout() );
    groupBox1Layout->setAlignment( TQt::AlignTop );

    rowLabel = new TQLabel( groupBox1, "rowLabel" );
    rowLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)5, 0, 0, rowLabel->sizePolicy().hasHeightForWidth() ) );

    groupBox1Layout->addWidget( rowLabel, 0, 0 );

    kcfg_OverviewModeColumns = new TQSpinBox( groupBox1, "kcfg_OverviewModeColumns" );
    kcfg_OverviewModeColumns->setMaxValue( 8 );
    kcfg_OverviewModeColumns->setMinValue( 3 );

    groupBox1Layout->addWidget( kcfg_OverviewModeColumns, 1, 1 );

    kcfg_OverviewModeRows = new TQSpinBox( groupBox1, "kcfg_OverviewModeRows" );
    kcfg_OverviewModeRows->setMaxValue( 5 );
    kcfg_OverviewModeRows->setMinValue( 1 );

    groupBox1Layout->addWidget( kcfg_OverviewModeRows, 0, 1 );

    columnLabel = new TQLabel( groupBox1, "columnLabel" );
    columnLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)5, 0, 0, columnLabel->sizePolicy().hasHeightForWidth() ) );

    groupBox1Layout->addWidget( columnLabel, 1, 0 );

    optionDialogGUIWidget_baseLayout->addMultiCellWidget( groupBox1, 2, 2, 0, 1 );
    languageChange();
    resize( TQSize(349, 174).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( kcfg_OverviewModeRows, kcfg_OverviewModeColumns );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void optionDialogGUIWidget_base::languageChange()
{
    kcfg_UnderlineLinks->clear();
    kcfg_UnderlineLinks->insertItem( tr2i18n( "Enabled" ) );
    kcfg_UnderlineLinks->insertItem( tr2i18n( "Disabled" ) );
    kcfg_UnderlineLinks->insertItem( tr2i18n( "Only on Hover" ) );
    TQWhatsThis::add( kcfg_UnderlineLinks, tr2i18n( "<qt>Controls how hyperlinks are underlined:\n"
"<ul>\n"
"<li><b>Enabled</b>: Always underline links</li>\n"
"<li><b>Disabled</b>: Never underline links</li>\n"
"<li><b>Only on Hover</b>: Underline when the mouse is moved over the link</li>\n"
"</ul></qt>" ) );
    textLabel1->setText( tr2i18n( "Underline links:" ) );
    kcfg_ShowThumbnails->setText( tr2i18n( "Show &thumbnail previews" ) );
    groupBox1->setTitle( tr2i18n( "Overview Mode" ) );
    rowLabel->setText( tr2i18n( "Rows:" ) );
    columnLabel->setText( tr2i18n( "Columns:" ) );
}

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

TQMetaObject *optionDialogGUIWidget_base::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_optionDialogGUIWidget_base( "optionDialogGUIWidget_base", &optionDialogGUIWidget_base::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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