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

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

#include "projectoptions.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqlineedit.h>
#include <ntqlabel.h>
#include <ntqgroupbox.h>
#include <ntqcombobox.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include "projectoptions.ui.h"

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

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

    ProjectOptionsLayout->addWidget( buttonToolbar, 2, 5 );

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

    ProjectOptionsLayout->addWidget( buttonTmpl, 1, 5 );

    lineEmail = new TQLineEdit( this, "lineEmail" );
    lineEmail->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, lineEmail->sizePolicy().hasHeightForWidth() ) );
    lineEmail->setMinimumSize( TQSize( 200, 0 ) );

    ProjectOptionsLayout->addMultiCellWidget( lineEmail, 3, 3, 4, 5 );

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

    ProjectOptionsLayout->addMultiCellWidget( lineAuthor, 3, 3, 1, 2 );

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

    ProjectOptionsLayout->addMultiCellWidget( lineExclude, 4, 4, 1, 5 );

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

    ProjectOptionsLayout->addMultiCellWidget( linePrjToolbar, 2, 2, 1, 4 );

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

    ProjectOptionsLayout->addMultiCellWidget( linePrjTmpl, 1, 1, 1, 4 );

    linePrjName = new TQLineEdit( this, "linePrjName" );
    linePrjName->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, linePrjName->sizePolicy().hasHeightForWidth() ) );
    linePrjName->setMinimumSize( TQSize( 300, 0 ) );

    ProjectOptionsLayout->addMultiCellWidget( linePrjName, 0, 0, 1, 5 );

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

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

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

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

    TextLabel1_2_2 = new TQLabel( this, "TextLabel1_2_2" );
    TextLabel1_2_2->setFrameShape( TQLabel::NoFrame );
    TextLabel1_2_2->setFrameShadow( TQLabel::Plain );

    ProjectOptionsLayout->addWidget( TextLabel1_2_2, 2, 0 );

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

    ProjectOptionsLayout->addWidget( TextLabel4, 3, 0 );

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

    ProjectOptionsLayout->addWidget( TextLabel5, 3, 3 );

    GroupBox5 = new TQGroupBox( this, "GroupBox5" );
    GroupBox5->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, GroupBox5->sizePolicy().hasHeightForWidth() ) );
    GroupBox5->setColumnLayout(0, TQt::Vertical );
    GroupBox5->layout()->setSpacing( 6 );
    GroupBox5->layout()->setMargin( 11 );
    GroupBox5Layout = new TQGridLayout( GroupBox5->layout() );
    GroupBox5Layout->setAlignment( TQt::AlignTop );

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

    GroupBox5Layout->addWidget( TextLabel1_2_3, 2, 0 );

    TextLabel1_3_2 = new TQLabel( GroupBox5, "TextLabel1_3_2" );

    GroupBox5Layout->addWidget( TextLabel1_3_2, 1, 0 );

    TextLabel3_2_2_2 = new TQLabel( GroupBox5, "TextLabel3_2_2_2" );
    TextLabel3_2_2_2->setMaximumSize( TQSize( 32767, 32767 ) );

    GroupBox5Layout->addWidget( TextLabel3_2_2_2, 0, 0 );

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

    GroupBox5Layout->addWidget( encodingCombo, 0, 1 );

    viewCombo = new TQComboBox( false, GroupBox5, "viewCombo" );

    GroupBox5Layout->addWidget( viewCombo, 1, 1 );

    dtdCombo = new TQComboBox( false, GroupBox5, "dtdCombo" );

    GroupBox5Layout->addWidget( dtdCombo, 2, 1 );

    ProjectOptionsLayout->addMultiCellWidget( GroupBox5, 6, 6, 0, 5 );

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

    ProjectOptionsLayout->addWidget( textLabel1, 4, 0 );

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

    ProjectOptionsLayout->addMultiCellWidget( checkCvsignore, 5, 5, 0, 5 );

    GroupBox5_debug = new TQGroupBox( this, "GroupBox5_debug" );
    GroupBox5_debug->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, GroupBox5_debug->sizePolicy().hasHeightForWidth() ) );
    GroupBox5_debug->setColumnLayout(0, TQt::Vertical );
    GroupBox5_debug->layout()->setSpacing( 6 );
    GroupBox5_debug->layout()->setMargin( 11 );
    GroupBox5_debugLayout = new TQGridLayout( GroupBox5_debug->layout() );
    GroupBox5_debugLayout->setAlignment( TQt::AlignTop );

    TextLabel2_2_2 = new TQLabel( GroupBox5_debug, "TextLabel2_2_2" );

    GroupBox5_debugLayout->addWidget( TextLabel2_2_2, 0, 0 );

    comboDebuggerClient = new TQComboBox( false, GroupBox5_debug, "comboDebuggerClient" );
    comboDebuggerClient->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 4, 0, comboDebuggerClient->sizePolicy().hasHeightForWidth() ) );
    comboDebuggerClient->setAutoCompletion( true );

    GroupBox5_debugLayout->addWidget( comboDebuggerClient, 0, 1 );

    buttonDebuggerOptions = new TQPushButton( GroupBox5_debug, "buttonDebuggerOptions" );
    buttonDebuggerOptions->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)0, 0, 0, buttonDebuggerOptions->sizePolicy().hasHeightForWidth() ) );

    GroupBox5_debugLayout->addWidget( buttonDebuggerOptions, 0, 2 );

    checkDebuggerPersistentBreakpoints = new TQCheckBox( GroupBox5_debug, "checkDebuggerPersistentBreakpoints" );

    GroupBox5_debugLayout->addMultiCellWidget( checkDebuggerPersistentBreakpoints, 1, 1, 0, 1 );

    checkDebuggerPersistentWatches = new TQCheckBox( GroupBox5_debug, "checkDebuggerPersistentWatches" );

    GroupBox5_debugLayout->addMultiCellWidget( checkDebuggerPersistentWatches, 2, 2, 0, 1 );

    ProjectOptionsLayout->addMultiCellWidget( GroupBox5_debug, 9, 9, 0, 5 );

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

    ProjectOptionsLayout->addMultiCellWidget( checkPersistentBookmarks, 8, 8, 0, 1 );

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

    ProjectOptionsLayout->addMultiCellWidget( checkPrefix, 7, 7, 0, 1 );

    linePrefix = new TQLineEdit( this, "linePrefix" );
    linePrefix->setEnabled( false );
    linePrefix->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, linePrefix->sizePolicy().hasHeightForWidth() ) );

    ProjectOptionsLayout->addMultiCellWidget( linePrefix, 7, 7, 2, 5 );
    languageChange();
    resize( TQSize(644, 438).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( buttonTmpl, TQ_SIGNAL( clicked() ), this, TQ_SLOT( buttonTemplate_clicked() ) );
    connect( buttonToolbar, TQ_SIGNAL( clicked() ), this, TQ_SLOT( buttonToolbar_clicked() ) );
    connect( checkPrefix, TQ_SIGNAL( toggled(bool) ), linePrefix, TQ_SLOT( setEnabled(bool) ) );
    connect( comboDebuggerClient, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( comboDebuggerClient_activated(int) ) );

    // tab order
    setTabOrder( linePrjName, linePrjTmpl );
    setTabOrder( linePrjTmpl, buttonTmpl );
    setTabOrder( buttonTmpl, linePrjToolbar );
    setTabOrder( linePrjToolbar, buttonToolbar );
    setTabOrder( buttonToolbar, lineAuthor );
    setTabOrder( lineAuthor, lineEmail );
    setTabOrder( lineEmail, lineExclude );
    setTabOrder( lineExclude, checkCvsignore );
    setTabOrder( checkCvsignore, encodingCombo );
    setTabOrder( encodingCombo, viewCombo );
    setTabOrder( viewCombo, dtdCombo );
    setTabOrder( dtdCombo, checkPrefix );
    setTabOrder( checkPrefix, linePrefix );
    setTabOrder( linePrefix, checkPersistentBookmarks );
    setTabOrder( checkPersistentBookmarks, comboDebuggerClient );
    setTabOrder( comboDebuggerClient, buttonDebuggerOptions );

    // buddies
    TextLabel1->setBuddy( linePrjName );
    TextLabel1_2->setBuddy( linePrjTmpl );
    TextLabel1_2_2->setBuddy( linePrjToolbar );
    TextLabel4->setBuddy( lineAuthor );
    TextLabel5->setBuddy( lineEmail );
    TextLabel1_2_3->setBuddy( dtdCombo );
    TextLabel1_3_2->setBuddy( viewCombo );
    TextLabel3_2_2_2->setBuddy( encodingCombo );
    textLabel1->setBuddy( lineExclude );
    TextLabel2_2_2->setBuddy( comboDebuggerClient );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ProjectOptions::languageChange()
{
    setCaption( tr2i18n( "Project Options" ) );
    buttonToolbar->setText( tr2i18n( "..." ) );
    buttonTmpl->setText( tr2i18n( "..." ) );
    lineEmail->setText( TQString::null );
    linePrjName->setText( TQString::null );
    TextLabel1->setText( tr2i18n( "Project &name:" ) );
    TextLabel1_2->setText( tr2i18n( "&Templates folder:" ) );
    TextLabel1_2_2->setText( tr2i18n( "T&oolbars folder:" ) );
    TextLabel4->setText( tr2i18n( "&Author:" ) );
    TextLabel5->setText( tr2i18n( "E&mail:" ) );
    GroupBox5->setTitle( tr2i18n( "Project Defaults" ) );
    TextLabel1_2_3->setText( tr2i18n( "Default &DTD:" ) );
    TextLabel1_3_2->setText( tr2i18n( "Default &view:" ) );
    TextLabel3_2_2_2->setText( tr2i18n( "Default &encoding:" ) );
    TQToolTip::add( dtdCombo, tr2i18n( "New files will have the extension and highlighting according to this setting" ) );
    textLabel1->setText( tr2i18n( "E&xclude from project:" ) );
    checkCvsignore->setText( tr2i18n( "Exclude &files listed in .cvsignore" ) );
    TQWhatsThis::add( checkCvsignore, tr2i18n( "The files listed in <i>.cvsignore</i> files will not appear in the project tree, nor will be shown when you rescan the project folder or upload the project. Files matching the <i>.cvsignore</i> entries that were already present in the project will be removed from it, but they will not be removed from the disc.<br>\n"
"<b>NOTE:</b> This feature works only for local projects." ) );
    GroupBox5_debug->setTitle( tr2i18n( "Debugger" ) );
    TextLabel2_2_2->setText( tr2i18n( "Debu&gger:" ) );
    buttonDebuggerOptions->setText( tr2i18n( "Optio&ns" ) );
    checkDebuggerPersistentBreakpoints->setText( tr2i18n( "Remember &breakpoints across sessions" ) );
    checkDebuggerPersistentWatches->setText( tr2i18n( "Remember watches across sessions" ) );
    checkPersistentBookmarks->setText( tr2i18n( "Use persistent boo&kmarks" ) );
    checkPrefix->setText( tr2i18n( "&Use preview prefix:" ) );
}

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

TQMetaObject *ProjectOptions::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ProjectOptions( "ProjectOptions", &ProjectOptions::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* ProjectOptions::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 = {"buttonTemplate_clicked", 0, 0 };
    static const TQUMethod slot_1 = {"buttonToolbar_clicked", 0, 0 };
    static const TQUParameter param_slot_2[] = {
	{ "idx", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"comboDebuggerClient_activated", 1, param_slot_2 };
    static const TQUMethod slot_3 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "buttonTemplate_clicked()", &slot_0, TQMetaData::Public },
	{ "buttonToolbar_clicked()", &slot_1, TQMetaData::Public },
	{ "comboDebuggerClient_activated(int)", &slot_2, TQMetaData::Public },
	{ "languageChange()", &slot_3, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"ProjectOptions", parentObject,
	slot_tbl, 4,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_ProjectOptions.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool ProjectOptions::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: buttonTemplate_clicked(); break;
    case 1: buttonToolbar_clicked(); break;
    case 2: comboDebuggerClient_activated((int)static_QUType_int.get(_o+1)); break;
    case 3: languageChange(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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