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

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

#include "tabs_preferencesui.h"

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

/*
 *  Constructs a Tabs_PreferencesUI as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
Tabs_PreferencesUI::Tabs_PreferencesUI( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "Tabs_PreferencesUI" );
    Tabs_PreferencesUILayout = new TQVBoxLayout( this, 0, KDialog::spacingHint(), "Tabs_PreferencesUILayout"); 

    lookGBox = new TQGroupBox( this, "lookGBox" );
    lookGBox->setColumnLayout(0, TQt::Vertical );
    lookGBox->layout()->setSpacing( KDialog::spacingHint() );
    lookGBox->layout()->setMargin( KDialog::marginHint() );
    lookGBoxLayout = new TQVBoxLayout( lookGBox->layout() );
    lookGBoxLayout->setAlignment( TQt::AlignTop );

    layout2 = new TQHBoxLayout( 0, 0, KDialog::spacingHint(), "layout2"); 

    placementLabel = new TQLabel( lookGBox, "placementLabel" );
    layout2->addWidget( placementLabel );

    kcfg_TabPlacement = new TQComboBox( false, lookGBox, "kcfg_TabPlacement" );
    layout2->addWidget( kcfg_TabPlacement );
    spacer4 = new TQSpacerItem( 111, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout2->addItem( spacer4 );
    lookGBoxLayout->addLayout( layout2 );

    kcfg_CloseButtons = new TQCheckBox( lookGBox, "kcfg_CloseButtons" );
    lookGBoxLayout->addWidget( kcfg_CloseButtons );

    kcfg_ShowTabBarCloseButton = new TQCheckBox( lookGBox, "kcfg_ShowTabBarCloseButton" );
    lookGBoxLayout->addWidget( kcfg_ShowTabBarCloseButton );

    kcfg_UseMaxSizedTabs = new TQCheckBox( lookGBox, "kcfg_UseMaxSizedTabs" );
    lookGBoxLayout->addWidget( kcfg_UseMaxSizedTabs );
    Tabs_PreferencesUILayout->addWidget( lookGBox );

    focusGBox = new TQGroupBox( this, "focusGBox" );
    focusGBox->setColumnLayout(0, TQt::Vertical );
    focusGBox->layout()->setSpacing( KDialog::spacingHint() );
    focusGBox->layout()->setMargin( KDialog::marginHint() );
    focusGBoxLayout = new TQVBoxLayout( focusGBox->layout() );
    focusGBoxLayout->setAlignment( TQt::AlignTop );

    kcfg_BringToFront = new TQCheckBox( focusGBox, "kcfg_BringToFront" );
    focusGBoxLayout->addWidget( kcfg_BringToFront );

    kcfg_FocusNewQueries = new TQCheckBox( focusGBox, "kcfg_FocusNewQueries" );
    focusGBoxLayout->addWidget( kcfg_FocusNewQueries );
    Tabs_PreferencesUILayout->addWidget( focusGBox );

    mouseGBox = new TQGroupBox( this, "mouseGBox" );
    mouseGBox->setColumnLayout(0, TQt::Vertical );
    mouseGBox->layout()->setSpacing( KDialog::spacingHint() );
    mouseGBox->layout()->setMargin( KDialog::marginHint() );
    mouseGBoxLayout = new TQVBoxLayout( mouseGBox->layout() );
    mouseGBoxLayout->setAlignment( TQt::AlignTop );

    kcfg_MiddleClickClose = new TQCheckBox( mouseGBox, "kcfg_MiddleClickClose" );
    mouseGBoxLayout->addWidget( kcfg_MiddleClickClose );
    Tabs_PreferencesUILayout->addWidget( mouseGBox );
    spacer1 = new TQSpacerItem( 20, 100, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Tabs_PreferencesUILayout->addItem( spacer1 );
    languageChange();
    resize( TQSize(337, 495).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void Tabs_PreferencesUI::languageChange()
{
    setCaption( tr2i18n( "TabBar_Config" ) );
    lookGBox->setTitle( tr2i18n( "Look" ) );
    placementLabel->setText( tr2i18n( "Placement:" ) );
    kcfg_TabPlacement->clear();
    kcfg_TabPlacement->insertItem( tr2i18n( "Top" ) );
    kcfg_TabPlacement->insertItem( tr2i18n( "Bottom" ) );
    kcfg_TabPlacement->insertItem( tr2i18n( "Left" ) );
    kcfg_CloseButtons->setText( tr2i18n( "Show &close button on tabs" ) );
    kcfg_ShowTabBarCloseButton->setText( tr2i18n( "Show a close button on the &right side of the tab bar" ) );
    kcfg_UseMaxSizedTabs->setText( tr2i18n( "Limit the &size of the tab labels to fit all on screen" ) );
    focusGBox->setTitle( tr2i18n( "Focus" ) );
    kcfg_BringToFront->setText( tr2i18n( "&Focus new tabs" ) );
    kcfg_FocusNewQueries->setText( tr2i18n( "Focus new &queries" ) );
    mouseGBox->setTitle( tr2i18n( "Mouse" ) );
    kcfg_MiddleClickClose->setText( tr2i18n( "&Middle-click on a tab to close it" ) );
}

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

TQMetaObject *Tabs_PreferencesUI::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_Tabs_PreferencesUI( "Tabs_PreferencesUI", &Tabs_PreferencesUI::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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