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

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

#include "appearanceconfig_contactlist.h"

#include <ntqvariant.h>
#include <klineedit.h>
#include <kpushbutton.h>
#include <kurlrequester.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqcheckbox.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqspinbox.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a AppearanceConfig_ContactList as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qdialog will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qdialog.
 */
AppearanceConfig_ContactList::AppearanceConfig_ContactList( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "AppearanceConfig_ContactList" );
    AppearanceConfig_ContactListLayout = new TQVBoxLayout( this, 11, 6, "AppearanceConfig_ContactListLayout"); 

    layout4 = new TQHBoxLayout( 0, 0, 6, "layout4"); 

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

    mSortByGroup = new TQCheckBox( groupBox1, "mSortByGroup" );
    groupBox1Layout->addWidget( mSortByGroup );

    mTreeContactList = new TQCheckBox( groupBox1, "mTreeContactList" );
    groupBox1Layout->addWidget( mTreeContactList );

    layout3 = new TQHBoxLayout( 0, 0, 6, "layout3"); 
    spacer3_2 = new TQSpacerItem( 16, 16, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout3->addItem( spacer3_2 );

    mIndentContacts = new TQCheckBox( groupBox1, "mIndentContacts" );
    layout3->addWidget( mIndentContacts );
    groupBox1Layout->addLayout( layout3 );
    layout4->addWidget( groupBox1 );

    groupBox10 = new TQGroupBox( this, "groupBox10" );
    groupBox10->setColumnLayout(0, TQt::Vertical );
    groupBox10->layout()->setSpacing( 6 );
    groupBox10->layout()->setMargin( 11 );
    groupBox10Layout = new TQVBoxLayout( groupBox10->layout() );
    groupBox10Layout->setAlignment( TQt::AlignTop );

    mDisplayMode = new TQButtonGroup( groupBox10, "mDisplayMode" );
    mDisplayMode->setColumnLayout(0, TQt::Vertical );
    mDisplayMode->layout()->setSpacing( 6 );
    mDisplayMode->layout()->setMargin( 11 );
    mDisplayModeLayout = new TQVBoxLayout( mDisplayMode->layout() );
    mDisplayModeLayout->setAlignment( TQt::AlignTop );

    radioButton8 = new TQRadioButton( mDisplayMode, "radioButton8" );
    radioButton8->setChecked( true );
    mDisplayModeLayout->addWidget( radioButton8 );

    radioButton9 = new TQRadioButton( mDisplayMode, "radioButton9" );
    mDisplayModeLayout->addWidget( radioButton9 );

    radioButton10 = new TQRadioButton( mDisplayMode, "radioButton10" );
    mDisplayModeLayout->addWidget( radioButton10 );
    groupBox10Layout->addWidget( mDisplayMode );

    mIconMode = new TQCheckBox( groupBox10, "mIconMode" );
    groupBox10Layout->addWidget( mIconMode );
    layout4->addWidget( groupBox10 );
    AppearanceConfig_ContactListLayout->addLayout( layout4 );

    groupBox5 = new TQGroupBox( this, "groupBox5" );
    groupBox5->setColumnLayout(0, TQt::Vertical );
    groupBox5->layout()->setSpacing( 6 );
    groupBox5->layout()->setMargin( 11 );
    groupBox5Layout = new TQVBoxLayout( groupBox5->layout() );
    groupBox5Layout->setAlignment( TQt::AlignTop );

    mThemeURL = new KURLRequester( groupBox5, "mThemeURL" );
    mThemeURL->setMode( 15 );
    groupBox5Layout->addWidget( mThemeURL );
    AppearanceConfig_ContactListLayout->addWidget( groupBox5 );

    groupBox2 = new TQGroupBox( this, "groupBox2" );
    groupBox2->setColumnLayout(0, TQt::Vertical );
    groupBox2->layout()->setSpacing( 6 );
    groupBox2->layout()->setMargin( 11 );
    groupBox2Layout = new TQVBoxLayout( groupBox2->layout() );
    groupBox2Layout->setAlignment( TQt::AlignTop );

    mAnimateChanges = new TQCheckBox( groupBox2, "mAnimateChanges" );
    groupBox2Layout->addWidget( mAnimateChanges );

    mFadeVisibility = new TQCheckBox( groupBox2, "mFadeVisibility" );
    groupBox2Layout->addWidget( mFadeVisibility );

    mFoldVisibility = new TQCheckBox( groupBox2, "mFoldVisibility" );
    groupBox2Layout->addWidget( mFoldVisibility );
    AppearanceConfig_ContactListLayout->addWidget( groupBox2 );

    groupBox3 = new TQGroupBox( this, "groupBox3" );
    groupBox3->setColumnLayout(0, TQt::Vertical );
    groupBox3->layout()->setSpacing( 6 );
    groupBox3->layout()->setMargin( 11 );
    groupBox3Layout = new TQVBoxLayout( groupBox3->layout() );
    groupBox3Layout->setAlignment( TQt::AlignTop );

    mAutoHide = new TQCheckBox( groupBox3, "mAutoHide" );
    groupBox3Layout->addWidget( mAutoHide );

    layout2 = new TQHBoxLayout( 0, 0, 6, "layout2"); 
    spacer4 = new TQSpacerItem( 16, 16, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout2->addItem( spacer4 );

    mAutoHideTimeout = new TQSpinBox( groupBox3, "mAutoHideTimeout" );
    mAutoHideTimeout->setEnabled( true );
    mAutoHideTimeout->setMaxValue( 300 );
    mAutoHideTimeout->setMinValue( 3 );
    mAutoHideTimeout->setValue( 30 );
    layout2->addWidget( mAutoHideTimeout );

    textLabel1 = new TQLabel( groupBox3, "textLabel1" );
    textLabel1->setEnabled( true );
    layout2->addWidget( textLabel1 );
    spacer5 = new TQSpacerItem( 81, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout2->addItem( spacer5 );
    groupBox3Layout->addLayout( layout2 );
    AppearanceConfig_ContactListLayout->addWidget( groupBox3 );

    layout8 = new TQHBoxLayout( 0, 0, 6, "layout8"); 

    mEditTooltips = new TQPushButton( this, "mEditTooltips" );
    layout8->addWidget( mEditTooltips );
    spacer3 = new TQSpacerItem( 16, 16, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout8->addItem( spacer3 );
    AppearanceConfig_ContactListLayout->addLayout( layout8 );
    spacer15 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    AppearanceConfig_ContactListLayout->addItem( spacer15 );
    languageChange();
    resize( TQSize(707, 507).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( mTreeContactList, TQ_SIGNAL( toggled(bool) ), mIndentContacts, TQ_SLOT( setDisabled(bool) ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void AppearanceConfig_ContactList::languageChange()
{
    setCaption( tr2i18n( "Contact List Appearance" ) );
    groupBox1->setTitle( tr2i18n( "Layout" ) );
    mSortByGroup->setText( tr2i18n( "Arrange metacontacts by &group" ) );
    mTreeContactList->setText( tr2i18n( "Show tree &branch lines" ) );
    mIndentContacts->setText( tr2i18n( "In&dent contacts" ) );
    groupBox10->setTitle( tr2i18n( "Contact Display Mode" ) );
    mDisplayMode->setTitle( tr2i18n( "List Style" ) );
    radioButton8->setText( tr2i18n( "&Classic, left-aligned status icons" ) );
    radioButton9->setText( tr2i18n( "&Right-aligned status icons" ) );
    radioButton10->setText( tr2i18n( "Detailed &view" ) );
    mIconMode->setText( tr2i18n( "Use contact photos when available" ) );
    groupBox5->setTitle( tr2i18n( "Displayed Theme Path" ) );
    groupBox2->setTitle( tr2i18n( "Contact List Animations" ) );
    mAnimateChanges->setText( tr2i18n( "&Animate changes to contact list items" ) );
    mFadeVisibility->setText( tr2i18n( "Fade in / out contacts as the&y appear / disappear" ) );
    mFoldVisibility->setText( tr2i18n( "Fo&ld in / out contacts as they appear / disappear" ) );
    groupBox3->setTitle( tr2i18n( "Contact List Auto-Hide" ) );
    TQWhatsThis::add( groupBox3, tr2i18n( "When enabled, the contact list will automatically be hidden a fixed amount of time after the mouse cursor leaves the window. You can set the amount of time in the 'Time until autohide' box below." ) );
    mAutoHide->setText( tr2i18n( "A&uto-hide contact list" ) );
    mAutoHideTimeout->setSuffix( tr2i18n( " Sec" ) );
    TQWhatsThis::add( mAutoHideTimeout, tr2i18n( "The timeout value for both contact list and scrollbar auto-hiding." ) );
    textLabel1->setText( tr2i18n( "after the cursor left the window" ) );
    mEditTooltips->setText( tr2i18n( "Change &Tooltip Contents..." ) );
}

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

TQMetaObject *AppearanceConfig_ContactList::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_AppearanceConfig_ContactList( "AppearanceConfig_ContactList", &AppearanceConfig_ContactList::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* AppearanceConfig_ContactList::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 = TQDialog::staticMetaObject();
    static const TQUMethod slot_0 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"AppearanceConfig_ContactList", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_AppearanceConfig_ContactList.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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