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

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

#include "texteffectprefs.h"

#include <ntqvariant.h>
#include <knuminput.h>
#include <tdelistbox.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqgroupbox.h>
#include <ntqcheckbox.h>
#include <ntqframe.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    TabWidget3 = new TQTabWidget( this, "TabWidget3" );

    tab = new TQWidget( TabWidget3, "tab" );
    tabLayout = new TQGridLayout( tab, 1, 1, 11, 6, "tabLayout"); 

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

    mColorsListBox = new TDEListBox( groupBox1, "mColorsListBox" );

    groupBox1Layout->addMultiCellWidget( mColorsListBox, 0, 4, 0, 0 );

    mColorsAdd = new TQPushButton( groupBox1, "mColorsAdd" );

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

    mColorsRemove = new TQPushButton( groupBox1, "mColorsRemove" );

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

    mColorsUp = new TQPushButton( groupBox1, "mColorsUp" );

    groupBox1Layout->addWidget( mColorsUp, 2, 1 );

    mColorsDown = new TQPushButton( groupBox1, "mColorsDown" );

    groupBox1Layout->addWidget( mColorsDown, 3, 1 );
    spacer2 = new TQSpacerItem( 21, 81, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    groupBox1Layout->addItem( spacer2, 4, 1 );

    tabLayout->addWidget( groupBox1, 0, 0 );

    m_colorRandom = new TQCheckBox( tab, "m_colorRandom" );

    tabLayout->addWidget( m_colorRandom, 1, 0 );

    Line1 = new TQFrame( tab, "Line1" );
    Line1->setFrameShape( TQFrame::HLine );
    Line1->setFrameShadow( TQFrame::Sunken );
    Line1->setFrameShape( TQFrame::HLine );

    tabLayout->addWidget( Line1, 2, 0 );

    m_fg = new TQCheckBox( tab, "m_fg" );

    tabLayout->addWidget( m_fg, 3, 0 );

    m_char = new TQCheckBox( tab, "m_char" );

    tabLayout->addWidget( m_char, 4, 0 );

    m_words = new TQCheckBox( tab, "m_words" );

    tabLayout->addWidget( m_words, 5, 0 );
    TabWidget3->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( TabWidget3, "tab_2" );
    tabLayout_2 = new TQVBoxLayout( tab_2, 11, 6, "tabLayout_2"); 

    m_lamer = new TQCheckBox( tab_2, "m_lamer" );
    m_lamer->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, m_lamer->sizePolicy().hasHeightForWidth() ) );
    tabLayout_2->addWidget( m_lamer );

    m_casewaves = new TQCheckBox( tab_2, "m_casewaves" );
    m_casewaves->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, m_casewaves->sizePolicy().hasHeightForWidth() ) );
    tabLayout_2->addWidget( m_casewaves );
    Spacer5_2 = new TQSpacerItem( 20, 279, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_2->addItem( Spacer5_2 );
    TabWidget3->insertTab( tab_2, TQString::fromLatin1("") );

    TextEffectPrefsLayout->addWidget( TabWidget3, 0, 0 );
    languageChange();
    resize( TQSize(630, 529).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void TextEffectPrefs::languageChange()
{
    groupBox1->setTitle( tr2i18n( "Colors" ) );
    mColorsAdd->setText( tr2i18n( "&Add..." ) );
    mColorsRemove->setText( tr2i18n( "&Remove" ) );
    mColorsUp->setText( tr2i18n( "Move &Up" ) );
    mColorsDown->setText( tr2i18n( "Move &Down" ) );
    m_colorRandom->setText( tr2i18n( "Random order" ) );
    m_fg->setText( tr2i18n( "Change global text foreground color" ) );
    m_char->setText( tr2i18n( "Change color every letter" ) );
    m_words->setText( tr2i18n( "Change color every word" ) );
    TabWidget3->changeTab( tab, tr2i18n( "&Colors" ) );
    m_lamer->setText( tr2i18n( "L4m3r t4lk" ) );
    m_casewaves->setText( tr2i18n( "CasE wAVes" ) );
    TabWidget3->changeTab( tab_2, tr2i18n( "Effects" ) );
}

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

TQMetaObject *TextEffectPrefs::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TextEffectPrefs( "TextEffectPrefs", &TextEffectPrefs::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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