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

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

#include "prefoptlayout.h"

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

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

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

    m_pExtEditorLabel = new TQLabel( this, "m_pExtEditorLabel" );
    m_pExtEditorLabel->setEnabled( true );
    layout7->addWidget( m_pExtEditorLabel );

    m_pExtEditorEdit = new TQLineEdit( this, "m_pExtEditorEdit" );
    m_pExtEditorEdit->setEnabled( true );
    m_pExtEditorEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 1, 0, m_pExtEditorEdit->sizePolicy().hasHeightForWidth() ) );
    layout7->addWidget( m_pExtEditorEdit );
    PrefOptLayoutLayout->addLayout( layout7 );

    m_pReadOnlyCheck = new TQCheckBox( this, "m_pReadOnlyCheck" );
    PrefOptLayoutLayout->addWidget( m_pReadOnlyCheck );

    m_pLastProjCheck = new TQCheckBox( this, "m_pLastProjCheck" );
    PrefOptLayoutLayout->addWidget( m_pLastProjCheck );

    m_pTagHlCheck = new TQCheckBox( this, "m_pTagHlCheck" );
    PrefOptLayoutLayout->addWidget( m_pTagHlCheck );

    m_pBriefQueryCaptCheck = new TQCheckBox( this, "m_pBriefQueryCaptCheck" );
    PrefOptLayoutLayout->addWidget( m_pBriefQueryCaptCheck );

    m_pWarnModifiedOnDiskCheck = new TQCheckBox( this, "m_pWarnModifiedOnDiskCheck" );
    PrefOptLayoutLayout->addWidget( m_pWarnModifiedOnDiskCheck );

    m_pAutoSortCheck = new TQCheckBox( this, "m_pAutoSortCheck" );
    PrefOptLayoutLayout->addWidget( m_pAutoSortCheck );

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

    textLabel1 = new TQLabel( this, "textLabel1" );
    layout2->addWidget( textLabel1 );

    m_pSysProfileCB = new TQComboBox( false, this, "m_pSysProfileCB" );
    layout2->addWidget( m_pSysProfileCB );
    PrefOptLayoutLayout->addLayout( layout2 );

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

    textLabel2 = new TQLabel( this, "textLabel2" );
    layout3->addWidget( textLabel2 );

    m_pEditorPopupCB = new TQComboBox( false, this, "m_pEditorPopupCB" );
    layout3->addWidget( m_pEditorPopupCB );
    PrefOptLayoutLayout->addLayout( layout3 );
    spacer11 = new TQSpacerItem( 21, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    PrefOptLayoutLayout->addItem( spacer11 );
    languageChange();
    resize( TQSize(354, 312).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void PrefOptLayout::languageChange()
{
    setCaption( tr2i18n( "Form4" ) );
    TQWhatsThis::add( this, tr2i18n( "Determines whether KScope should automatically load the last project when started." ) );
    m_pExtEditorLabel->setText( tr2i18n( "External Editor" ) );
    m_pReadOnlyCheck->setText( tr2i18n( "Read-Onl&y Mode" ) );
    TQWhatsThis::add( m_pReadOnlyCheck, tr2i18n( "Forces all editor windows to work in a read-only mode, so that the user cannot modify the displayed files." ) );
    m_pLastProjCheck->setText( tr2i18n( "Open Last Project on Start-Up" ) );
    m_pTagHlCheck->setText( tr2i18n( "Automatic Tag Highlighting" ) );
    TQWhatsThis::add( m_pTagHlCheck, tr2i18n( "Determines whether the tag list should highlight the relevant tag based on the cursor's position." ) );
    m_pBriefQueryCaptCheck->setText( tr2i18n( "Brief Tab Captions for &Query Pages" ) );
    TQWhatsThis::add( m_pBriefQueryCaptCheck, tr2i18n( "If set, the tab captions for query pages will be shortened, by using aliases for the query types." ) );
    m_pWarnModifiedOnDiskCheck->setText( tr2i18n( "Warn When a File is Modified Outside KScope" ) );
    TQWhatsThis::add( m_pWarnModifiedOnDiskCheck, tr2i18n( "If set, the user is prompted whenever the currently edited file is changed by an external programme." ) );
    m_pAutoSortCheck->setText( tr2i18n( "Automatically Sort Files in the File List" ) );
    TQWhatsThis::add( m_pAutoSortCheck, tr2i18n( "Sorts files in the project's file list when a project is loaded. This may be too slow for large projects on older machines." ) );
    textLabel1->setText( tr2i18n( "System Profile" ) );
    m_pSysProfileCB->clear();
    m_pSysProfileCB->insertItem( tr2i18n( "Fast" ) );
    m_pSysProfileCB->insertItem( tr2i18n( "Slow" ) );
    textLabel2->setText( tr2i18n( "Editor Popup Menu" ) );
    m_pEditorPopupCB->clear();
    m_pEditorPopupCB->insertItem( tr2i18n( "Embedded" ) );
    m_pEditorPopupCB->insertItem( tr2i18n( "KScope Only" ) );
}

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

TQMetaObject *PrefOptLayout::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_PrefOptLayout( "PrefOptLayout", &PrefOptLayout::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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