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

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

#include "koptionsdlgs.h"

#include <ntqvariant.h>
#include <kcombobox.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqwidget.h>
#include <ntqgroupbox.h>
#include <ntqcheckbox.h>
#include <ntqlabel.h>
#include <ntqlineedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a KOptionsDlgS 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.
 */
KOptionsDlgS::KOptionsDlgS( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "KOptionsDlgS" );
    setSizeGripEnabled( true );
    KOptionsDlgSLayout = new TQGridLayout( this, 1, 1, 11, 6, "KOptionsDlgSLayout"); 

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

    tab1 = new TQWidget( tabWidget2, "tab1" );
    tab1Layout = new TQGridLayout( tab1, 1, 1, 11, 6, "tab1Layout"); 

    groupBox7 = new TQGroupBox( tab1, "groupBox7" );
    groupBox7->setColumnLayout(0, TQt::Vertical );
    groupBox7->layout()->setSpacing( 6 );
    groupBox7->layout()->setMargin( 11 );
    groupBox7Layout = new TQGridLayout( groupBox7->layout() );
    groupBox7Layout->setAlignment( TQt::AlignTop );

    m_chbVariables = new TQCheckBox( groupBox7, "m_chbVariables" );

    groupBox7Layout->addMultiCellWidget( m_chbVariables, 4, 4, 0, 2 );

    m_tlBackup = new TQLabel( groupBox7, "m_tlBackup" );

    groupBox7Layout->addWidget( m_tlBackup, 7, 0 );

    m_leBackup = new TQLineEdit( groupBox7, "m_leBackup" );

    groupBox7Layout->addMultiCellWidget( m_leBackup, 7, 7, 1, 2 );

    m_chbNotifyOnErrors = new TQCheckBox( groupBox7, "m_chbNotifyOnErrors" );

    groupBox7Layout->addMultiCellWidget( m_chbNotifyOnErrors, 5, 5, 0, 2 );

    m_chbCaseSensitive = new TQCheckBox( groupBox7, "m_chbCaseSensitive" );

    groupBox7Layout->addMultiCellWidget( m_chbCaseSensitive, 1, 1, 0, 2 );

    m_chbRecursive = new TQCheckBox( groupBox7, "m_chbRecursive" );

    groupBox7Layout->addMultiCellWidget( m_chbRecursive, 2, 2, 0, 2 );

    m_chbRegularExpressions = new TQCheckBox( groupBox7, "m_chbRegularExpressions" );
    m_chbRegularExpressions->setEnabled( true );

    groupBox7Layout->addMultiCellWidget( m_chbRegularExpressions, 3, 3, 0, 2 );

    m_chbBackup = new TQCheckBox( groupBox7, "m_chbBackup" );

    groupBox7Layout->addMultiCellWidget( m_chbBackup, 6, 6, 0, 2 );

    textLabel1 = new TQLabel( groupBox7, "textLabel1" );

    groupBox7Layout->addMultiCellWidget( textLabel1, 0, 0, 0, 1 );

    m_cbEncoding = new KComboBox( false, groupBox7, "m_cbEncoding" );
    m_cbEncoding->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, m_cbEncoding->sizePolicy().hasHeightForWidth() ) );

    groupBox7Layout->addWidget( m_cbEncoding, 0, 2 );

    tab1Layout->addWidget( groupBox7, 0, 0 );
    tabWidget2->insertTab( tab1, TQString::fromLatin1("") );

    Tab3 = new TQWidget( tabWidget2, "Tab3" );
    Tab3Layout = new TQGridLayout( Tab3, 1, 1, 11, 6, "Tab3Layout"); 

    gbxConfirm = new TQGroupBox( Tab3, "gbxConfirm" );
    gbxConfirm->setColumnLayout(0, TQt::Vertical );
    gbxConfirm->layout()->setSpacing( 6 );
    gbxConfirm->layout()->setMargin( 11 );
    gbxConfirmLayout = new TQGridLayout( gbxConfirm->layout() );
    gbxConfirmLayout->setAlignment( TQt::AlignTop );

    m_chbIgnoreHidden = new TQCheckBox( gbxConfirm, "m_chbIgnoreHidden" );

    gbxConfirmLayout->addWidget( m_chbIgnoreHidden, 5, 0 );

    m_chbFollowSymLinks = new TQCheckBox( gbxConfirm, "m_chbFollowSymLinks" );

    gbxConfirmLayout->addWidget( m_chbFollowSymLinks, 4, 0 );

    m_chbHaltOnFirstOccurrence = new TQCheckBox( gbxConfirm, "m_chbHaltOnFirstOccurrence" );

    gbxConfirmLayout->addWidget( m_chbHaltOnFirstOccurrence, 3, 0 );

    m_chbIgnoreFiles = new TQCheckBox( gbxConfirm, "m_chbIgnoreFiles" );
    m_chbIgnoreFiles->setEnabled( true );

    gbxConfirmLayout->addWidget( m_chbIgnoreFiles, 2, 0 );

    layout9 = new TQHBoxLayout( 0, 0, 6, "layout9"); 
    spacer2 = new TQSpacerItem( 16, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout9->addItem( spacer2 );

    m_chbShowConfirmDialog = new TQCheckBox( gbxConfirm, "m_chbShowConfirmDialog" );
    m_chbShowConfirmDialog->setEnabled( false );
    layout9->addWidget( m_chbShowConfirmDialog );

    gbxConfirmLayout->addLayout( layout9, 1, 0 );

    m_chbConfirmStrings = new TQCheckBox( gbxConfirm, "m_chbConfirmStrings" );
    m_chbConfirmStrings->setEnabled( false );

    gbxConfirmLayout->addWidget( m_chbConfirmStrings, 0, 0 );

    Tab3Layout->addWidget( gbxConfirm, 0, 0 );
    tabWidget2->insertTab( Tab3, TQString::fromLatin1("") );

    KOptionsDlgSLayout->addMultiCellWidget( tabWidget2, 0, 0, 0, 4 );

    m_pbHelp = new TQPushButton( this, "m_pbHelp" );
    m_pbHelp->setEnabled( true );

    KOptionsDlgSLayout->addWidget( m_pbHelp, 1, 0 );
    spacer1 = new TQSpacerItem( 202, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    KOptionsDlgSLayout->addItem( spacer1, 1, 1 );

    m_pbDefault = new TQPushButton( this, "m_pbDefault" );

    KOptionsDlgSLayout->addWidget( m_pbDefault, 1, 2 );

    m_pbOK = new TQPushButton( this, "m_pbOK" );

    KOptionsDlgSLayout->addWidget( m_pbOK, 1, 3 );

    m_pbCancel = new TQPushButton( this, "m_pbCancel" );

    KOptionsDlgSLayout->addWidget( m_pbCancel, 1, 4 );
    languageChange();
    resize( TQSize(572, 420).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( m_pbCancel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );

    // tab order
    setTabOrder( tabWidget2, m_cbEncoding );
    setTabOrder( m_cbEncoding, m_chbCaseSensitive );
    setTabOrder( m_chbCaseSensitive, m_chbRecursive );
    setTabOrder( m_chbRecursive, m_chbRegularExpressions );
    setTabOrder( m_chbRegularExpressions, m_chbVariables );
    setTabOrder( m_chbVariables, m_chbNotifyOnErrors );
    setTabOrder( m_chbNotifyOnErrors, m_chbBackup );
    setTabOrder( m_chbBackup, m_leBackup );
    setTabOrder( m_leBackup, m_pbDefault );
    setTabOrder( m_pbDefault, m_pbOK );
    setTabOrder( m_pbOK, m_pbCancel );
    setTabOrder( m_pbCancel, m_pbHelp );
    setTabOrder( m_pbHelp, m_chbConfirmStrings );
    setTabOrder( m_chbConfirmStrings, m_chbShowConfirmDialog );
    setTabOrder( m_chbShowConfirmDialog, m_chbIgnoreFiles );
    setTabOrder( m_chbIgnoreFiles, m_chbHaltOnFirstOccurrence );
    setTabOrder( m_chbHaltOnFirstOccurrence, m_chbFollowSymLinks );
    setTabOrder( m_chbFollowSymLinks, m_chbIgnoreHidden );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KOptionsDlgS::languageChange()
{
    setCaption( tr2i18n( "Options" ) );
    groupBox7->setTitle( tr2i18n( "General Options" ) );
    m_chbVariables->setText( tr2i18n( "Enable commands in replace strings" ) );
    m_tlBackup->setText( tr2i18n( "Backup copy suffix:" ) );
    m_leBackup->setText( TQString::null );
    m_chbNotifyOnErrors->setText( tr2i18n( "Notif&y on errors" ) );
    m_chbCaseSensitive->setText( tr2i18n( "Case sensitive" ) );
    m_chbRecursive->setText( tr2i18n( "Recursive (search/replace in all sub folders)" ) );
    m_chbRegularExpressions->setText( tr2i18n( "Enable regular e&xpressions" ) );
    m_chbBackup->setText( tr2i18n( "Do &backup copy" ) );
    textLabel1->setText( tr2i18n( "Encoding of the files:" ) );
    tabWidget2->changeTab( tab1, tr2i18n( "General" ) );
    gbxConfirm->setTitle( tr2i18n( "Advanced Options" ) );
    m_chbIgnoreHidden->setText( tr2i18n( "Ignore hidden files and folders" ) );
    m_chbFollowSymLinks->setText( tr2i18n( "Follow s&ymbolic links" ) );
    m_chbHaltOnFirstOccurrence->setText( tr2i18n( "When searching, stop on first string found (faster but no details)" ) );
    m_chbIgnoreFiles->setText( tr2i18n( "Do not show file if no strings are found or replaced" ) );
    m_chbShowConfirmDialog->setText( tr2i18n( "Show confirmation dialog" ) );
    m_chbConfirmStrings->setText( tr2i18n( "Confirm before replace each string" ) );
    tabWidget2->changeTab( Tab3, tr2i18n( "&Advanced" ) );
    m_pbHelp->setText( tr2i18n( "&Help" ) );
    m_pbDefault->setText( tr2i18n( "&Default Values" ) );
    m_pbOK->setText( tr2i18n( "&OK" ) );
    m_pbCancel->setText( tr2i18n( "&Cancel" ) );
}

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

TQMetaObject *KOptionsDlgS::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KOptionsDlgS( "KOptionsDlgS", &KOptionsDlgS::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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