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

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

#include "projectnewgenerals.h"

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

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

    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 ) );

    ProjectNewGeneralSLayout->addMultiCellWidget( imagelabel, 0, 1, 0, 0 );
    spacer11 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Preferred );
    ProjectNewGeneralSLayout->addItem( spacer11, 1, 1 );

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

    GroupBox3 = new TQGroupBox( this, "GroupBox3" );
    GroupBox3->setColumnLayout(0, TQt::Vertical );
    GroupBox3->layout()->setSpacing( 6 );
    GroupBox3->layout()->setMargin( 11 );
    GroupBox3Layout = new TQGridLayout( GroupBox3->layout() );
    GroupBox3Layout->setAlignment( TQt::AlignTop );

    linePrjTmpl = new TQLineEdit( GroupBox3, "linePrjTmpl" );

    GroupBox3Layout->addWidget( linePrjTmpl, 1, 2 );

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

    GroupBox3Layout->addMultiCellWidget( TextLabel1_2_3, 1, 1, 0, 1 );

    buttonToolbar = new TQPushButton( GroupBox3, "buttonToolbar" );
    buttonToolbar->setMinimumSize( TQSize( 0, 0 ) );
    buttonToolbar->setMaximumSize( TQSize( 32, 32767 ) );

    GroupBox3Layout->addWidget( buttonToolbar, 2, 3 );

    linePrjToolbar = new TQLineEdit( GroupBox3, "linePrjToolbar" );

    GroupBox3Layout->addWidget( linePrjToolbar, 2, 2 );

    TextLabel1_2_2_2 = new TQLabel( GroupBox3, "TextLabel1_2_2_2" );

    GroupBox3Layout->addMultiCellWidget( TextLabel1_2_2_2, 2, 2, 0, 1 );

    buttonTmpl = new TQPushButton( GroupBox3, "buttonTmpl" );
    buttonTmpl->setMinimumSize( TQSize( 0, 0 ) );
    buttonTmpl->setMaximumSize( TQSize( 32, 32767 ) );

    GroupBox3Layout->addWidget( buttonTmpl, 1, 3 );

    buttonDir = new TQPushButton( GroupBox3, "buttonDir" );
    buttonDir->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, buttonDir->sizePolicy().hasHeightForWidth() ) );
    buttonDir->setMaximumSize( TQSize( 32, 32767 ) );

    GroupBox3Layout->addWidget( buttonDir, 0, 3 );

    TextLabel2_3 = new TQLabel( GroupBox3, "TextLabel2_3" );

    GroupBox3Layout->addWidget( TextLabel2_3, 0, 0 );

    linePrjDir = new TQLineEdit( GroupBox3, "linePrjDir" );

    GroupBox3Layout->addMultiCellWidget( linePrjDir, 0, 0, 1, 2 );

    layout12->addMultiCellWidget( GroupBox3, 2, 2, 0, 3 );

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

    layout12->addWidget( linePrjFile, 0, 3 );

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

    radioLocal = new TQRadioButton( bGroupSources, "radioLocal" );
    radioLocal->setChecked( true );

    bGroupSourcesLayout->addWidget( radioLocal, 0, 0 );

    radioWeb = new TQRadioButton( bGroupSources, "radioWeb" );

    bGroupSourcesLayout->addWidget( radioWeb, 1, 0 );

    layout12->addMultiCellWidget( bGroupSources, 3, 3, 0, 3 );

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

    layout12->addWidget( TextLabel3, 0, 2 );

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

    layout12->addWidget( TextLabel1, 0, 0 );

    GroupBox2 = new TQGroupBox( this, "GroupBox2" );
    GroupBox2->setColumnLayout(0, TQt::Vertical );
    GroupBox2->layout()->setSpacing( 6 );
    GroupBox2->layout()->setMargin( 11 );
    GroupBox2Layout = new TQGridLayout( GroupBox2->layout() );
    GroupBox2Layout->setAlignment( TQt::AlignTop );

    TextLabel1_3 = new TQLabel( GroupBox2, "TextLabel1_3" );
    TextLabel1_3->setAlignment( int( TQLabel::AlignVCenter ) );

    GroupBox2Layout->addMultiCellWidget( TextLabel1_3, 0, 0, 0, 1 );

    TextLabel3_3 = new TQLabel( GroupBox2, "TextLabel3_3" );
    TextLabel3_3->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    GroupBox2Layout->addWidget( TextLabel3_3, 1, 4 );

    linePort = new TQLineEdit( GroupBox2, "linePort" );
    linePort->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, linePort->sizePolicy().hasHeightForWidth() ) );

    GroupBox2Layout->addWidget( linePort, 1, 7 );

    comboProtocol = new TQComboBox( false, GroupBox2, "comboProtocol" );

    GroupBox2Layout->addWidget( comboProtocol, 0, 2 );

    linePasswd = new TQLineEdit( GroupBox2, "linePasswd" );
    linePasswd->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, linePasswd->sizePolicy().hasHeightForWidth() ) );
    linePasswd->setMinimumSize( TQSize( 0, 26 ) );
    TQFont linePasswd_font(  linePasswd->font() );
    linePasswd_font.setFamily( "Lucida Console [Xft]" );
    linePasswd->setFont( linePasswd_font ); 
    linePasswd->setEchoMode( TQLineEdit::Password );

    GroupBox2Layout->addWidget( linePasswd, 1, 5 );

    TextLabel1_2_4 = new TQLabel( GroupBox2, "TextLabel1_2_4" );
    TextLabel1_2_4->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    GroupBox2Layout->addWidget( TextLabel1_2_4, 1, 6 );

    lineHost = new TQLineEdit( GroupBox2, "lineHost" );

    GroupBox2Layout->addMultiCellWidget( lineHost, 0, 0, 4, 7 );

    TextLabel4_2 = new TQLabel( GroupBox2, "TextLabel4_2" );
    TextLabel4_2->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

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

    TextLabel2_2 = new TQLabel( GroupBox2, "TextLabel2_2" );

    GroupBox2Layout->addWidget( TextLabel2_2, 1, 0 );

    lineUser = new TQLineEdit( GroupBox2, "lineUser" );
    lineUser->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, lineUser->sizePolicy().hasHeightForWidth() ) );

    GroupBox2Layout->addMultiCellWidget( lineUser, 1, 1, 1, 3 );

    layout12->addMultiCellWidget( GroupBox2, 1, 1, 0, 3 );

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

    layout12->addWidget( linePrjName, 0, 1 );

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

    // tab order
    setTabOrder( linePrjName, linePrjFile );
    setTabOrder( linePrjFile, comboProtocol );
    setTabOrder( comboProtocol, lineHost );
    setTabOrder( lineHost, lineUser );
    setTabOrder( lineUser, linePasswd );
    setTabOrder( linePasswd, linePort );
    setTabOrder( linePort, linePrjDir );
    setTabOrder( linePrjDir, buttonDir );
    setTabOrder( buttonDir, linePrjTmpl );
    setTabOrder( linePrjTmpl, buttonTmpl );
    setTabOrder( buttonTmpl, linePrjToolbar );
    setTabOrder( linePrjToolbar, buttonToolbar );
    setTabOrder( buttonToolbar, radioLocal );
    setTabOrder( radioLocal, radioWeb );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ProjectNewGeneralS::languageChange()
{
    imagelabel->setText( TQString::null );
    GroupBox3->setTitle( tr2i18n( "Directory Settings" ) );
    TextLabel1_2_3->setText( tr2i18n( "Templates directory:" ) );
    buttonToolbar->setText( tr2i18n( "..." ) );
    TextLabel1_2_2_2->setText( tr2i18n( "Toolbars directory:" ) );
    buttonTmpl->setText( tr2i18n( "..." ) );
    buttonDir->setText( tr2i18n( "..." ) );
    TextLabel2_3->setText( tr2i18n( "Main directory:" ) );
    bGroupSources->setTitle( tr2i18n( "Project Sources" ) );
    radioLocal->setText( tr2i18n( "&Add local or remote files" ) );
    radioWeb->setText( tr2i18n( "&Use wget to download files from a site" ) );
    TextLabel3->setText( tr2i18n( "File:" ) );
    TextLabel1->setText( tr2i18n( "Name:" ) );
    GroupBox2->setTitle( tr2i18n( "Server Settings" ) );
    TextLabel1_3->setText( tr2i18n( "Protocol: " ) );
    TextLabel3_3->setText( tr2i18n( "Password:" ) );
    comboProtocol->clear();
    comboProtocol->insertItem( tr2i18n( "Local" ) );
    TextLabel1_2_4->setText( tr2i18n( "Port:" ) );
    TextLabel4_2->setText( tr2i18n( "Host:" ) );
    TextLabel2_2->setText( tr2i18n( "User:" ) );
}

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

TQMetaObject *ProjectNewGeneralS::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ProjectNewGeneralS( "ProjectNewGeneralS", &ProjectNewGeneralS::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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