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

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

#include "projectnewlocals.h"

#include <ntqvariant.h>
#include <uploadtreeview.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqcheckbox.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqlineedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include "../treeviews/uploadtreeview.h"

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

    imagelabel = new TQLabel( this, "imagelabel" );
    imagelabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)3, 0, 0, imagelabel->sizePolicy().hasHeightForWidth() ) );
    imagelabel->setMinimumSize( TQSize( 115, 0 ) );
    imagelabel->setMaximumSize( TQSize( 115, 480 ) );
    imagelabel->setFrameShape( TQLabel::NoFrame );
    imagelabel->setFrameShadow( TQLabel::Plain );
    imagelabel->setScaledContents( true );
    imagelabel->setAlignment( int( TQLabel::AlignTop | TQLabel::AlignLeft ) );

    ProjectNewLocalSLayout->addMultiCellWidget( imagelabel, 0, 1, 0, 0 );

    layout2 = new TQGridLayout( 0, 1, 1, 0, 6, "layout2"); 

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

    layout2->addWidget( checkInsert, 0, 0 );

    TextLabel8 = new TQLabel( this, "TextLabel8" );
    TextLabel8->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, TextLabel8->sizePolicy().hasHeightForWidth() ) );

    layout2->addWidget( TextLabel8, 2, 0 );

    ButtonGroup12 = new TQButtonGroup( this, "ButtonGroup12" );
    ButtonGroup12->setEnabled( false );
    ButtonGroup12->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, ButtonGroup12->sizePolicy().hasHeightForWidth() ) );
    ButtonGroup12->setColumnLayout(0, TQt::Vertical );
    ButtonGroup12->layout()->setSpacing( 6 );
    ButtonGroup12->layout()->setMargin( 11 );
    ButtonGroup12Layout = new TQGridLayout( ButtonGroup12->layout() );
    ButtonGroup12Layout->setAlignment( TQt::AlignTop );

    checkInsertWithMask = new TQRadioButton( ButtonGroup12, "checkInsertWithMask" );

    ButtonGroup12Layout->addWidget( checkInsertWithMask, 1, 0 );

    mask = new TQLineEdit( ButtonGroup12, "mask" );
    mask->setEnabled( false );

    ButtonGroup12Layout->addWidget( mask, 1, 1 );

    checkInsertWeb = new TQRadioButton( ButtonGroup12, "checkInsertWeb" );
    checkInsertWeb->setChecked( true );

    ButtonGroup12Layout->addMultiCellWidget( checkInsertWeb, 0, 0, 0, 1 );

    layout2->addWidget( ButtonGroup12, 1, 0 );

    ProjectNewLocalSLayout->addLayout( layout2, 0, 1 );

    layout5 = new TQGridLayout( 0, 1, 1, 0, 6, "layout5"); 

    listView = new UploadTreeView( this, "listView" );
    listView->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, listView->sizePolicy().hasHeightForWidth() ) );

    layout5->addWidget( listView, 0, 1 );

    layout5_2 = new TQHBoxLayout( 0, 0, 6, "layout5_2"); 
    Spacer4 = new TQSpacerItem( 85, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout5_2->addItem( Spacer4 );

    addFiles = new TQPushButton( this, "addFiles" );
    layout5_2->addWidget( addFiles );

    addFolder = new TQPushButton( this, "addFolder" );
    layout5_2->addWidget( addFolder );

    clearList = new TQPushButton( this, "clearList" );
    layout5_2->addWidget( clearList );
    Spacer4_2 = new TQSpacerItem( 89, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout5_2->addItem( Spacer4_2 );

    layout5->addMultiCellLayout( layout5_2, 1, 1, 0, 1 );
    Spacer3 = new TQSpacerItem( 16, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout5->addItem( Spacer3, 0, 0 );

    ProjectNewLocalSLayout->addLayout( layout5, 1, 1 );
    languageChange();
    resize( TQSize(715, 418).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( checkInsertWithMask, TQ_SIGNAL( toggled(bool) ), mask, TQ_SLOT( setEnabled(bool) ) );
    connect( checkInsert, TQ_SIGNAL( toggled(bool) ), ButtonGroup12, TQ_SLOT( setEnabled(bool) ) );

    // tab order
    setTabOrder( checkInsert, checkInsertWeb );
    setTabOrder( checkInsertWeb, mask );
    setTabOrder( mask, addFiles );
    setTabOrder( addFiles, addFolder );
    setTabOrder( addFolder, clearList );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ProjectNewLocalS::languageChange()
{
    imagelabel->setText( TQString::null );
    checkInsert->setText( tr2i18n( "Insert files from" ) );
    TextLabel8->setText( tr2i18n( "Included files:" ) );
    ButtonGroup12->setTitle( tr2i18n( "Filters" ) );
    checkInsertWithMask->setText( tr2i18n( "Insert files with the following &mask:" ) );
    checkInsertWeb->setText( tr2i18n( "Insert onl&y markup, script and image files" ) );
    addFiles->setText( tr2i18n( "&Add Files..." ) );
    addFolder->setText( tr2i18n( "A&dd Folder..." ) );
    clearList->setText( tr2i18n( "&Clear List" ) );
}

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

TQMetaObject *ProjectNewLocalS::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ProjectNewLocalS( "ProjectNewLocalS", &ProjectNewLocalS::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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