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

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

#include "filemaskss.h"

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

/*
 *  Constructs a FileMasksS as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
FileMasksS::FileMasksS( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "FileMasksS" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, sizePolicy().hasHeightForWidth() ) );
    setMinimumSize( TQSize( 0, 0 ) );
    FileMasksSLayout = new TQGridLayout( this, 1, 1, 11, 6, "FileMasksSLayout"); 

    encodingCombo = new TQComboBox( false, this, "encodingCombo" );

    FileMasksSLayout->addWidget( encodingCombo, 1, 1 );

    defaultDTDCombo = new TQComboBox( false, this, "defaultDTDCombo" );

    FileMasksSLayout->addWidget( defaultDTDCombo, 2, 1 );

    GroupBox1 = new TQGroupBox( this, "GroupBox1" );
    GroupBox1->setFrameShape( TQGroupBox::GroupBoxPanel );
    GroupBox1->setFrameShadow( TQGroupBox::Sunken );
    GroupBox1->setColumnLayout(0, TQt::Vertical );
    GroupBox1->layout()->setSpacing( 6 );
    GroupBox1->layout()->setMargin( 11 );
    GroupBox1Layout = new TQGridLayout( GroupBox1->layout() );
    GroupBox1Layout->setAlignment( TQt::AlignTop );

    lineMarkup = new TQLineEdit( GroupBox1, "lineMarkup" );
    lineMarkup->setAlignment( int( TQLineEdit::AlignLeft ) );

    GroupBox1Layout->addMultiCellWidget( lineMarkup, 0, 0, 1, 2 );

    lineImage = new TQLineEdit( GroupBox1, "lineImage" );
    lineImage->setAlignment( int( TQLineEdit::AlignLeft ) );

    GroupBox1Layout->addMultiCellWidget( lineImage, 2, 2, 1, 2 );

    buttonDefault = new TQPushButton( GroupBox1, "buttonDefault" );

    GroupBox1Layout->addWidget( buttonDefault, 4, 2 );

    TextLabel4_2 = new TQLabel( GroupBox1, "TextLabel4_2" );

    GroupBox1Layout->addWidget( TextLabel4_2, 3, 0 );

    TextLabel1_3 = new TQLabel( GroupBox1, "TextLabel1_3" );

    GroupBox1Layout->addWidget( TextLabel1_3, 0, 0 );

    TextLabel3_2 = new TQLabel( GroupBox1, "TextLabel3_2" );

    GroupBox1Layout->addWidget( TextLabel3_2, 2, 0 );

    lineText = new TQLineEdit( GroupBox1, "lineText" );
    lineText->setAlignment( int( TQLineEdit::AlignLeft ) );

    GroupBox1Layout->addMultiCellWidget( lineText, 3, 3, 1, 2 );

    TextLabel2_2 = new TQLabel( GroupBox1, "TextLabel2_2" );
    TextLabel2_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, TextLabel2_2->sizePolicy().hasHeightForWidth() ) );
    TextLabel2_2->setMinimumSize( TQSize( 0, 0 ) );
    TextLabel2_2->setScaledContents( false );

    GroupBox1Layout->addWidget( TextLabel2_2, 1, 0 );
    Spacer2_2 = new TQSpacerItem( 153, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    GroupBox1Layout->addItem( Spacer2_2, 4, 1 );

    lineScript = new TQLineEdit( GroupBox1, "lineScript" );
    lineScript->setAlignment( int( TQLineEdit::AlignLeft ) );

    GroupBox1Layout->addMultiCellWidget( lineScript, 1, 1, 1, 2 );

    FileMasksSLayout->addMultiCellWidget( GroupBox1, 0, 0, 0, 1 );

    TextLabel1_2 = new TQLabel( this, "TextLabel1_2" );
    TextLabel1_2->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignLeft ) );

    FileMasksSLayout->addWidget( TextLabel1_2, 1, 0 );

    TextLabel1_2_3 = new TQLabel( this, "TextLabel1_2_3" );

    FileMasksSLayout->addWidget( TextLabel1_2_3, 2, 0 );
    spacer3 = new TQSpacerItem( 20, 50, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    FileMasksSLayout->addItem( spacer3, 6, 0 );

    buttonGroup7 = new TQButtonGroup( this, "buttonGroup7" );
    buttonGroup7->setColumnLayout(0, TQt::Vertical );
    buttonGroup7->layout()->setSpacing( 6 );
    buttonGroup7->layout()->setMargin( 11 );
    buttonGroup7Layout = new TQGridLayout( buttonGroup7->layout() );
    buttonGroup7Layout->setAlignment( TQt::AlignTop );

    reloadFiles = new TQCheckBox( buttonGroup7, "reloadFiles" );

    buttonGroup7Layout->addWidget( reloadFiles, 3, 0 );

    showSplash = new TQCheckBox( buttonGroup7, "showSplash" );

    buttonGroup7Layout->addWidget( showSplash, 1, 0 );

    reloadProject = new TQCheckBox( buttonGroup7, "reloadProject" );

    buttonGroup7Layout->addWidget( reloadProject, 2, 0 );

    FileMasksSLayout->addMultiCellWidget( buttonGroup7, 5, 5, 0, 1 );

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

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

    sbAutoSave = new TQSpinBox( this, "sbAutoSave" );
    sbAutoSave->setMaxValue( 30000 );
    sbAutoSave->setMinValue( 1 );
    sbAutoSave->setValue( 15 );
    layout2->addWidget( sbAutoSave );

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

    FileMasksSLayout->addLayout( layout2, 4, 0 );

    showDTDSelectDialog = new TQCheckBox( this, "showDTDSelectDialog" );

    FileMasksSLayout->addMultiCellWidget( showDTDSelectDialog, 3, 3, 0, 1 );
    languageChange();
    resize( TQSize(571, 571).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( lineMarkup, lineScript );
    setTabOrder( lineScript, lineImage );
    setTabOrder( lineImage, lineText );
    setTabOrder( lineText, buttonDefault );
    setTabOrder( buttonDefault, encodingCombo );
    setTabOrder( encodingCombo, defaultDTDCombo );
    setTabOrder( defaultDTDCombo, showDTDSelectDialog );
    setTabOrder( showDTDSelectDialog, sbAutoSave );
    setTabOrder( sbAutoSave, showSplash );
    setTabOrder( showSplash, reloadProject );
    setTabOrder( reloadProject, reloadFiles );

    // buddies
    TextLabel4_2->setBuddy( lineText );
    TextLabel1_3->setBuddy( lineMarkup );
    TextLabel3_2->setBuddy( lineImage );
    TextLabel2_2->setBuddy( lineScript );
    TextLabel1_2->setBuddy( encodingCombo );
    TextLabel1_2_3->setBuddy( defaultDTDCombo );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void FileMasksS::languageChange()
{
    TQToolTip::add( defaultDTDCombo, tr2i18n( "New files will have the extension and highlighting according to this setting" ) );
    GroupBox1->setTitle( tr2i18n( "Mimetypes" ) );
    buttonDefault->setText( tr2i18n( "&Reset to Default" ) );
    TextLabel4_2->setText( tr2i18n( "Te&xts:" ) );
    TextLabel1_3->setText( tr2i18n( "&Markups:" ) );
    TextLabel3_2->setText( tr2i18n( "&Images:" ) );
    TextLabel2_2->setText( tr2i18n( "&Scripts:" ) );
    TextLabel1_2->setText( tr2i18n( "Default character &encoding:" ) );
    TextLabel1_2_3->setText( tr2i18n( "Default &DTD:" ) );
    buttonGroup7->setTitle( tr2i18n( "Startup Options" ) );
    reloadFiles->setText( tr2i18n( "L&oad last-opened files" ) );
    showSplash->setText( tr2i18n( "S&how splashscreen" ) );
    reloadProject->setText( tr2i18n( "&Load last-opened project" ) );
    tlAutoSave->setText( tr2i18n( "Create backups every" ) );
    textLabel1->setText( tr2i18n( "minutes" ) );
    showDTDSelectDialog->setText( tr2i18n( "Show the DTD selection dialog when loading files with &unknown DTD" ) );
}

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

TQMetaObject *FileMasksS::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_FileMasksS( "FileMasksS", &FileMasksS::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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