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

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

#include "blockoptionsbase.h"

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

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

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

    BlockOptionsBaseLayout->addWidget( expire2, 6, 2 );

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

    BlockOptionsBaseLayout->addWidget( expire7, 1, 2 );

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

    BlockOptionsBaseLayout->addWidget( l_lev2, 6, 0 );

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

    BlockOptionsBaseLayout->addWidget( expire1, 7, 2 );

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

    BlockOptionsBaseLayout->addWidget( l_lev5, 3, 0 );

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

    BlockOptionsBaseLayout->addWidget( l_lev6, 2, 0 );

    kcfg_Expire = new TQCheckBox( this, "kcfg_Expire" );
    kcfg_Expire->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, kcfg_Expire->sizePolicy().hasHeightForWidth() ) );

    BlockOptionsBaseLayout->addWidget( kcfg_Expire, 0, 2 );

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

    BlockOptionsBaseLayout->addWidget( block4, 4, 1 );

    kcfg_Block = new TQCheckBox( this, "kcfg_Block" );
    kcfg_Block->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, kcfg_Block->sizePolicy().hasHeightForWidth() ) );

    BlockOptionsBaseLayout->addWidget( kcfg_Block, 0, 1 );

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

    BlockOptionsBaseLayout->addWidget( block1, 7, 1 );

    block7 = new TQComboBox( false, this, "block7" );
    block7->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, block7->sizePolicy().hasHeightForWidth() ) );

    BlockOptionsBaseLayout->addWidget( block7, 1, 1 );

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

    BlockOptionsBaseLayout->addWidget( expire6, 2, 2 );

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

    BlockOptionsBaseLayout->addWidget( l_lev4, 4, 0 );

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

    BlockOptionsBaseLayout->addWidget( l_lev7, 1, 0 );

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

    BlockOptionsBaseLayout->addWidget( expire5, 3, 2 );

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

    BlockOptionsBaseLayout->addWidget( block3, 5, 1 );

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

    BlockOptionsBaseLayout->addWidget( block2, 6, 1 );

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

    BlockOptionsBaseLayout->addWidget( expire4, 4, 2 );

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

    BlockOptionsBaseLayout->addWidget( l_lev1, 7, 0 );
    Spacer1 = new TQSpacerItem( 41, 20, TQSizePolicy::Minimum, TQSizePolicy::Minimum );
    BlockOptionsBaseLayout->addItem( Spacer1, 0, 0 );

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

    BlockOptionsBaseLayout->addWidget( expire3, 5, 2 );

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

    BlockOptionsBaseLayout->addWidget( block5, 3, 1 );

    block6 = new TQComboBox( false, this, "block6" );
    block6->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, block6->sizePolicy().hasHeightForWidth() ) );

    BlockOptionsBaseLayout->addWidget( block6, 2, 1 );

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

    BlockOptionsBaseLayout->addWidget( l_lev3, 5, 0 );
    spacer10 = new TQSpacerItem( 380, 30, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    BlockOptionsBaseLayout->addMultiCell( spacer10, 8, 8, 0, 2 );
    languageChange();
    resize( TQSize(402, 255).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( kcfg_Block, kcfg_Expire );
    setTabOrder( kcfg_Expire, block7 );
    setTabOrder( block7, expire7 );
    setTabOrder( expire7, block6 );
    setTabOrder( block6, expire6 );
    setTabOrder( expire6, block5 );
    setTabOrder( block5, expire5 );
    setTabOrder( expire5, block4 );
    setTabOrder( block4, expire4 );
    setTabOrder( expire4, block3 );
    setTabOrder( block3, expire3 );
    setTabOrder( expire3, block2 );
    setTabOrder( block2, expire2 );
    setTabOrder( expire2, block1 );
    setTabOrder( block1, expire1 );

    // buddies
    l_lev2->setBuddy( block2 );
    l_lev5->setBuddy( block5 );
    l_lev6->setBuddy( block6 );
    l_lev4->setBuddy( block4 );
    l_lev7->setBuddy( block7 );
    l_lev1->setBuddy( block1 );
    l_lev3->setBuddy( block3 );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void BlockOptionsBase::languageChange()
{
    l_lev2->setText( tr2i18n( "Level &2:" ) );
    l_lev5->setText( tr2i18n( "Level &5:" ) );
    l_lev6->setText( tr2i18n( "Level &6:" ) );
    kcfg_Expire->setText( tr2i18n( "E&xpiring" ) );
    kcfg_Block->setText( tr2i18n( "Bl&ocking" ) );
    l_lev4->setText( tr2i18n( "Level &4:" ) );
    l_lev7->setText( tr2i18n( "Level &7:" ) );
    l_lev1->setText( tr2i18n( "Level &1:" ) );
    l_lev3->setText( tr2i18n( "Level &3:" ) );
}

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

TQMetaObject *BlockOptionsBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_BlockOptionsBase( "BlockOptionsBase", &BlockOptionsBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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