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

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

#include "projectnewwebs.h"

#include <ntqvariant.h>
#include <uploadtreeview.h>
#include <kled.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqcombobox.h>
#include <ntqlineedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include "../treeviews/uploadtreeview.h"

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

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

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

    layout7 = new TQGridLayout( 0, 1, 1, 0, 6, "layout7"); 
    Spacer8 = new TQSpacerItem( 309, 16, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout7->addItem( Spacer8, 1, 2 );

    KLed1 = new KLed( this, "KLed1" );
    KLed1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, KLed1->sizePolicy().hasHeightForWidth() ) );
    KLed1->setShape( KLed::Circular );

    layout7->addWidget( KLed1, 1, 0 );

    button = new TQPushButton( this, "button" );
    button->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, button->sizePolicy().hasHeightForWidth() ) );

    layout7->addWidget( button, 1, 3 );

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

    layout7->addMultiCellWidget( listView, 0, 0, 0, 3 );

    KLed2 = new KLed( this, "KLed2" );
    KLed2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, KLed2->sizePolicy().hasHeightForWidth() ) );
    KLed2->setShape( KLed::Circular );
    KLed2->setLook( KLed::Raised );

    layout7->addWidget( KLed2, 1, 1 );

    ProjectNewWebSLayout->addLayout( layout7, 1, 1 );

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

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

    layout6->addWidget( TextLabel10, 2, 0 );
    Spacer5 = new TQSpacerItem( 228, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout6->addItem( Spacer5, 1, 2 );

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

    layout6->addWidget( protocolCombo, 1, 1 );

    siteUrl = new TQLineEdit( this, "siteUrl" );

    layout6->addMultiCellWidget( siteUrl, 0, 0, 1, 2 );

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

    layout6->addWidget( TextLabel1, 1, 0 );

    commandLine = new TQLineEdit( this, "commandLine" );

    layout6->addMultiCellWidget( commandLine, 2, 2, 1, 2 );

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

    layout6->addWidget( TextLabel9, 0, 0 );

    ProjectNewWebSLayout->addLayout( layout6, 0, 1 );
    languageChange();
    resize( TQSize(620, 418).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( siteUrl, protocolCombo );
    setTabOrder( protocolCombo, commandLine );
    setTabOrder( commandLine, button );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ProjectNewWebS::languageChange()
{
    imagelabel->setText( TQString::null );
    button->setText( tr2i18n( "Start" ) );
    TextLabel10->setText( tr2i18n( "wget's command line:" ) );
    protocolCombo->clear();
    protocolCombo->insertItem( tr2i18n( "HTTP" ) );
    protocolCombo->insertItem( tr2i18n( "FTP" ) );
    TextLabel1->setText( tr2i18n( "Protocol:" ) );
    TextLabel9->setText( tr2i18n( "Site source:" ) );
}

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

TQMetaObject *ProjectNewWebS::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ProjectNewWebS( "ProjectNewWebS", &ProjectNewWebS::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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