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

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

#include "userInterOpts.h"

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

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

    m_group_1 = new TQGroupBox( this, "m_group_1" );
    m_group_1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)4, 0, 0, m_group_1->sizePolicy().hasHeightForWidth() ) );
    m_group_1->setColumnLayout(0, TQt::Vertical );
    m_group_1->layout()->setSpacing( KDialog::spacingHint() );
    m_group_1->layout()->setMargin( KDialog::marginHint() );
    m_group_1Layout = new TQGridLayout( m_group_1->layout() );
    m_group_1Layout->setAlignment( TQt::AlignTop );

    layout = new TQVBoxLayout( 0, 0, KDialog::spacingHint(), "layout"); 

    m_pShowMMBInTabs = new TQCheckBox( m_group_1, "m_pShowMMBInTabs" );
    layout->addWidget( m_pShowMMBInTabs );

    m_pDynamicTabbarHide = new TQCheckBox( m_group_1, "m_pDynamicTabbarHide" );
    layout->addWidget( m_pDynamicTabbarHide );

    m_pDynamicTabbarCycle = new TQCheckBox( m_group_1, "m_pDynamicTabbarCycle" );
    layout->addWidget( m_pDynamicTabbarCycle );

    m_pNewTabsInBackground = new TQCheckBox( m_group_1, "m_pNewTabsInBackground" );
    layout->addWidget( m_pNewTabsInBackground );

    m_pOpenAfterCurrentPage = new TQCheckBox( m_group_1, "m_pOpenAfterCurrentPage" );
    layout->addWidget( m_pOpenAfterCurrentPage );

    m_pTabConfirm = new TQCheckBox( m_group_1, "m_pTabConfirm" );
    layout->addWidget( m_pTabConfirm );

    m_pPermanentCloseButton = new TQCheckBox( m_group_1, "m_pPermanentCloseButton" );
    layout->addWidget( m_pPermanentCloseButton );

    m_pHoverCloseButton = new TQCheckBox( m_group_1, "m_pHoverCloseButton" );
    layout->addWidget( m_pHoverCloseButton );

    m_pPopupsWithinTabs = new TQCheckBox( m_group_1, "m_pPopupsWithinTabs" );
    layout->addWidget( m_pPopupsWithinTabs );

    m_pKonquerorTabforExternalURL = new TQCheckBox( m_group_1, "m_pKonquerorTabforExternalURL" );
    layout->addWidget( m_pKonquerorTabforExternalURL );

    m_pTabCloseActivatePrevious = new TQCheckBox( m_group_1, "m_pTabCloseActivatePrevious" );
    layout->addWidget( m_pTabCloseActivatePrevious );

    m_group_1Layout->addLayout( layout, 0, 0 );
    userInterOptsBaseLayout->addWidget( m_group_1 );
    spacer = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    userInterOptsBaseLayout->addItem( spacer );
    languageChange();
    resize( TQSize(644, 208).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void userInterOptsBase::languageChange()
{
    m_group_1->setTitle( tr2i18n( "Tabbed Browsing" ) );
    m_pShowMMBInTabs->setText( tr2i18n( "Open &links in new tab instead of in new window" ) );
    TQWhatsThis::add( m_pShowMMBInTabs, tr2i18n( "This will open a new tab instead of a new window in various situations, such as choosing a link or a folder with the middle mouse button." ) );
    m_pDynamicTabbarHide->setText( tr2i18n( "&Hide the tab bar when only one tab is open" ) );
    TQWhatsThis::add( m_pDynamicTabbarHide, tr2i18n( "This will display the tab bar only if there are two or more tabs. Otherwise it will always be displayed." ) );
    m_pDynamicTabbarCycle->setText( tr2i18n( "C&ycle tabs with mouse wheel" ) );
    TQWhatsThis::add( m_pDynamicTabbarCycle, tr2i18n( "This will cycle through tabs when there are two or more tabs using the mouse wheel." ) );
    m_pNewTabsInBackground->setText( tr2i18n( "O&pen new tabs in the background" ) );
    TQWhatsThis::add( m_pNewTabsInBackground, tr2i18n( "This will open a new tab in the background, instead of in the foreground." ) );
    m_pOpenAfterCurrentPage->setText( tr2i18n( "Open &new tab after current tab" ) );
    TQWhatsThis::add( m_pOpenAfterCurrentPage, tr2i18n( "This will open a new tab opened from a page after the current tab, instead of after the last tab." ) );
    m_pTabConfirm->setText( tr2i18n( "Confirm &when closing windows with multiple tabs" ) );
    TQWhatsThis::add( m_pTabConfirm, tr2i18n( "This will ask you whether you are sure you want to close a window when it has multiple tabs opened in it." ) );
    m_pPermanentCloseButton->setText( tr2i18n( "&Show close button instead of website icon" ) );
    TQWhatsThis::add( m_pPermanentCloseButton, tr2i18n( "This will display close buttons inside each tab instead of websites' icons." ) );
    m_pHoverCloseButton->setText( tr2i18n( "&Show close button instead of website icon with mouse hover" ) );
    TQWhatsThis::add( m_pHoverCloseButton, tr2i18n( "This will display a close button inside each tab instead of websites' icons when the mouse pointer hovers the icon." ) );
    m_pPopupsWithinTabs->setText( tr2i18n( "Open pop&ups in new tab instead of in new window" ) );
    TQWhatsThis::add( m_pPopupsWithinTabs, tr2i18n( "Whether or not JavaScript popups if allowed shall open in a new tab or in a new window." ) );
    m_pKonquerorTabforExternalURL->setText( tr2i18n( "Open as tab in existing Konqueror when URL is called externally" ) );
    TQWhatsThis::add( m_pKonquerorTabforExternalURL, tr2i18n( "When you click a URL in another TDE program or call kfmclient to open a URL, the current desktop will be searched for a non-minimized Konqueror and, if found, the URL opened as a new tab within it. Otherwise a new Konqueror window will be opened with the required URL." ) );
    m_pTabCloseActivatePrevious->setText( tr2i18n( "Activate previous used tab when closing the current tab" ) );
    TQWhatsThis::add( m_pTabCloseActivatePrevious, tr2i18n( "When checking this the previous used or opened tab will be activated when you close the current active tab instead of the one right to the current tab." ) );
}

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

TQMetaObject *userInterOptsBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_userInterOptsBase( "userInterOptsBase", &userInterOptsBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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