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

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

#include "structureconfigwidget.h"

#include <ntqvariant.h>
#include <knuminput.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a KileWidgetStructureViewConfig as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
KileWidgetStructureViewConfig::KileWidgetStructureViewConfig( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "KileWidgetStructureViewConfig" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 1, 0, sizePolicy().hasHeightForWidth() ) );
    setMaximumSize( TQSize( 32767, 32767 ) );
    KileWidgetStructureViewConfigLayout = new TQVBoxLayout( this, 11, 6, "KileWidgetStructureViewConfigLayout"); 

    groupBox2 = new TQGroupBox( this, "groupBox2" );
    groupBox2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)3, 0, 0, groupBox2->sizePolicy().hasHeightForWidth() ) );
    groupBox2->setColumnLayout(0, TQt::Vertical );
    groupBox2->layout()->setSpacing( 6 );
    groupBox2->layout()->setMargin( 11 );
    groupBox2Layout = new TQGridLayout( groupBox2->layout() );
    groupBox2Layout->setAlignment( TQt::AlignTop );

    kcfg_DefaultLevel = new KIntNumInput( groupBox2, "kcfg_DefaultLevel" );
    kcfg_DefaultLevel->setMinValue( 1 );
    kcfg_DefaultLevel->setMaxValue( 7 );

    groupBox2Layout->addWidget( kcfg_DefaultLevel, 0, 2 );

    textLabel2 = new TQLabel( groupBox2, "textLabel2" );

    groupBox2Layout->addWidget( textLabel2, 0, 0 );
    spacer1 = new TQSpacerItem( 200, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox2Layout->addItem( spacer1, 0, 1 );
    spacer2 = new TQSpacerItem( 60, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox2Layout->addItem( spacer2, 0, 3 );

    textLabel2_2 = new TQLabel( groupBox2, "textLabel2_2" );

    groupBox2Layout->addMultiCellWidget( textLabel2_2, 1, 1, 0, 3 );
    KileWidgetStructureViewConfigLayout->addWidget( groupBox2 );

    groupBox4 = new TQGroupBox( this, "groupBox4" );

    kcfg_SvShowLabels = new TQCheckBox( groupBox4, "kcfg_SvShowLabels" );
    kcfg_SvShowLabels->setGeometry( TQRect( 11, 23, 272, 22 ) );

    kcfg_SvShowReferences = new TQCheckBox( groupBox4, "kcfg_SvShowReferences" );
    kcfg_SvShowReferences->setGeometry( TQRect( 11, 51, 272, 22 ) );

    kcfg_SvShowSectioningLabels = new TQCheckBox( groupBox4, "kcfg_SvShowSectioningLabels" );
    kcfg_SvShowSectioningLabels->setGeometry( TQRect( 11, 191, 272, 22 ) );

    kcfg_SvShowInputFiles = new TQCheckBox( groupBox4, "kcfg_SvShowInputFiles" );
    kcfg_SvShowInputFiles->setGeometry( TQRect( 11, 163, 272, 22 ) );

    kcfg_SvShowGraphics = new TQCheckBox( groupBox4, "kcfg_SvShowGraphics" );
    kcfg_SvShowGraphics->setGeometry( TQRect( 11, 135, 272, 22 ) );

    kcfg_SvShowBibitems = new TQCheckBox( groupBox4, "kcfg_SvShowBibitems" );
    kcfg_SvShowBibitems->setGeometry( TQRect( 11, 79, 272, 22 ) );

    kcfg_SvShowTodo = new TQCheckBox( groupBox4, "kcfg_SvShowTodo" );
    kcfg_SvShowTodo->setGeometry( TQRect( 11, 107, 272, 22 ) );

    kcfg_SvOpenTodo = new TQCheckBox( groupBox4, "kcfg_SvOpenTodo" );
    kcfg_SvOpenTodo->setGeometry( TQRect( 289, 107, 272, 22 ) );

    kcfg_SvOpenBibitems = new TQCheckBox( groupBox4, "kcfg_SvOpenBibitems" );
    kcfg_SvOpenBibitems->setGeometry( TQRect( 289, 79, 272, 22 ) );

    kcfg_SvOpenReferences = new TQCheckBox( groupBox4, "kcfg_SvOpenReferences" );
    kcfg_SvOpenReferences->setGeometry( TQRect( 289, 51, 272, 22 ) );

    kcfg_SvOpenLabels = new TQCheckBox( groupBox4, "kcfg_SvOpenLabels" );
    kcfg_SvOpenLabels->setGeometry( TQRect( 289, 23, 272, 22 ) );

    kcfg_SvShowFloats = new TQCheckBox( groupBox4, "kcfg_SvShowFloats" );
    kcfg_SvShowFloats->setGeometry( TQRect( 289, 135, 340, 22 ) );
    KileWidgetStructureViewConfigLayout->addWidget( groupBox4 );
    languageChange();
    resize( TQSize(670, 335).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // buddies
    textLabel2->setBuddy( kcfg_DefaultLevel );
    textLabel2_2->setBuddy( kcfg_DefaultLevel );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KileWidgetStructureViewConfig::languageChange()
{
    setCaption( tr2i18n( "Structure View" ) );
    groupBox2->setTitle( tr2i18n( "Expansion Level" ) );
    textLabel2->setText( tr2i18n( "Default &value" ) );
    TQWhatsThis::add( textLabel2, TQString::null );
    textLabel2_2->setText( tr2i18n( "(&1=part, 2=chapter, 3=section, 4=subsection, 5=subsubsection, ...)" ) );
    TQWhatsThis::add( textLabel2_2, TQString::null );
    groupBox4->setTitle( tr2i18n( "Options" ) );
    kcfg_SvShowLabels->setText( tr2i18n( "Show &labels" ) );
    kcfg_SvShowReferences->setText( tr2i18n( "Show undefined references" ) );
    kcfg_SvShowSectioningLabels->setText( tr2i18n( "No extra section for labels" ) );
    kcfg_SvShowInputFiles->setText( tr2i18n( "Show input files" ) );
    kcfg_SvShowGraphics->setText( tr2i18n( "Show graphic files" ) );
    kcfg_SvShowBibitems->setText( tr2i18n( "Show bibitems" ) );
    kcfg_SvShowTodo->setText( tr2i18n( "Show TODO/FIXME" ) );
    kcfg_SvOpenTodo->setText( tr2i18n( "Open TODO/FIXME" ) );
    kcfg_SvOpenBibitems->setText( tr2i18n( "Open bibitems item" ) );
    kcfg_SvOpenReferences->setText( tr2i18n( "Open references item" ) );
    kcfg_SvOpenLabels->setText( tr2i18n( "&Open labels item" ) );
    kcfg_SvShowFloats->setText( tr2i18n( "Show figure and table en&vironments" ) );
}

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

TQMetaObject *KileWidgetStructureViewConfig::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KileWidgetStructureViewConfig( "KileWidgetStructureViewConfig", &KileWidgetStructureViewConfig::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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