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

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

#include "cppcodegenerationformbase.h"

#include <ntqvariant.h>
#include <kcombobox.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqcombobox.h>
#include <ntqlabel.h>
#include <ntqtabwidget.h>
#include <ntqheader.h>
#include <ntqlistview.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a CPPCodeGenerationFormBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
CPPCodeGenerationFormBase::CPPCodeGenerationFormBase( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "CPPCodeGenerationFormBase" );

    groupBox1 = new TQGroupBox( this, "groupBox1" );
    groupBox1->setGeometry( TQRect( 11, 44, 436, 72 ) );
    groupBox1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, groupBox1->sizePolicy().hasHeightForWidth() ) );
    groupBox1->setColumnLayout(0, TQt::Vertical );
    groupBox1->layout()->setSpacing( 6 );
    groupBox1->layout()->setMargin( 11 );
    groupBox1Layout = new TQGridLayout( groupBox1->layout() );
    groupBox1Layout->setAlignment( TQt::AlignTop );

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

    m_SelectCommentStyle = new TQComboBox( false, groupBox1, "m_SelectCommentStyle" );

    layout4->addWidget( m_SelectCommentStyle, 0, 1 );

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

    layout4->addWidget( textLabel1, 0, 0 );

    groupBox1Layout->addLayout( layout4, 0, 0 );

    textLabel1_2 = new TQLabel( this, "textLabel1_2" );
    textLabel1_2->setGeometry( TQRect( 11, 11, 436, 27 ) );
    textLabel1_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)4, 0, 0, textLabel1_2->sizePolicy().hasHeightForWidth() ) );

    tabWidget2 = new TQTabWidget( this, "tabWidget2" );
    tabWidget2->setGeometry( TQRect( 10, 120, 436, 305 ) );

    tab = new TQWidget( tabWidget2, "tab" );
    tabLayout = new TQVBoxLayout( tab, 11, 6, "tabLayout"); 

    GeneralOptionsListView = new TQListView( tab, "GeneralOptionsListView" );
    tabLayout->addWidget( GeneralOptionsListView );
    tabWidget2->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( tabWidget2, "tab_2" );
    tabLayout_2 = new TQGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); 
    spacer4 = new TQSpacerItem( 410, 113, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_2->addItem( spacer4, 2, 0 );

    textLabel2_2_2_2 = new TQLabel( tab_2, "textLabel2_2_2_2" );

    tabLayout_2->addWidget( textLabel2_2_2_2, 0, 0 );

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

    m_listClassHCombo = new KHistoryCombo( tab_2, "m_listClassHCombo" );
    m_listClassHCombo->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)0, 0, 0, m_listClassHCombo->sizePolicy().hasHeightForWidth() ) );
    m_listClassHCombo->setEditable( false );
    m_listClassHCombo->setInsertionPolicy( KHistoryCombo::NoInsertion );
    m_listClassHCombo->setDuplicatesEnabled( false );
    TQStringList m_listClassHCombo_stringlist;
    m_listClassHCombo_stringlist << "QPtrList";
    m_listClassHCombo_stringlist << "vector";
    m_listClassHCombo->setHistoryItems( m_listClassHCombo_stringlist );

    layout17->addMultiCellWidget( m_listClassHCombo, 1, 1, 1, 2 );

    textLabel1_3_2_2_2 = new TQLabel( tab_2, "textLabel1_3_2_2_2" );

    layout17->addMultiCellWidget( textLabel1_3_2_2_2, 0, 0, 0, 1 );

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

    layout17->addMultiCellWidget( m_browseStringButton, 2, 2, 4, 5 );

    m_globalStringCheckBox = new TQCheckBox( tab_2, "m_globalStringCheckBox" );
    m_globalStringCheckBox->setChecked( true );

    layout17->addWidget( m_globalStringCheckBox, 2, 7 );

    m_stringClassHCombo = new KHistoryCombo( tab_2, "m_stringClassHCombo" );
    m_stringClassHCombo->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)0, 0, 0, m_stringClassHCombo->sizePolicy().hasHeightForWidth() ) );
    m_stringClassHCombo->setEditable( false );
    m_stringClassHCombo->setInsertionPolicy( KHistoryCombo::NoInsertion );
    m_stringClassHCombo->setDuplicatesEnabled( false );
    TQStringList m_stringClassHCombo_stringlist;
    m_stringClassHCombo_stringlist << "TQString";
    m_stringClassHCombo_stringlist << "string";
    m_stringClassHCombo->setHistoryItems( m_stringClassHCombo_stringlist );

    layout17->addMultiCellWidget( m_stringClassHCombo, 2, 2, 1, 2 );
    spacer2_2_2_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Minimum );
    layout17->addItem( spacer2_2_2_2, 2, 6 );
    spacer1_2_2_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Minimum );
    layout17->addItem( spacer1_2_2_2, 1, 6 );

    stringClassTextLabel = new TQLabel( tab_2, "stringClassTextLabel" );
    stringClassTextLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, stringClassTextLabel->sizePolicy().hasHeightForWidth() ) );

    layout17->addWidget( stringClassTextLabel, 2, 0 );

    listClassTextLabel = new TQLabel( tab_2, "listClassTextLabel" );
    listClassTextLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, listClassTextLabel->sizePolicy().hasHeightForWidth() ) );

    layout17->addWidget( listClassTextLabel, 1, 0 );

    m_listIncludeFileHistoryCombo = new KHistoryCombo( tab_2, "m_listIncludeFileHistoryCombo" );
    m_listIncludeFileHistoryCombo->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, m_listIncludeFileHistoryCombo->sizePolicy().hasHeightForWidth() ) );
    m_listIncludeFileHistoryCombo->setInsertionPolicy( KHistoryCombo::AtTop );
    TQStringList m_listIncludeFileHistoryCombo_stringlist;
    m_listIncludeFileHistoryCombo_stringlist << "qptrlist.h";
    m_listIncludeFileHistoryCombo_stringlist << "vector";
    m_listIncludeFileHistoryCombo->setHistoryItems( m_listIncludeFileHistoryCombo_stringlist );

    layout17->addWidget( m_listIncludeFileHistoryCombo, 1, 3 );

    textLabel4_2_2_2 = new TQLabel( tab_2, "textLabel4_2_2_2" );

    layout17->addMultiCellWidget( textLabel4_2_2_2, 0, 0, 5, 7 );

    m_stringIncludeFileHistoryCombo = new KHistoryCombo( tab_2, "m_stringIncludeFileHistoryCombo" );
    m_stringIncludeFileHistoryCombo->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, m_stringIncludeFileHistoryCombo->sizePolicy().hasHeightForWidth() ) );
    m_stringIncludeFileHistoryCombo->setInsertionPolicy( KHistoryCombo::AtTop );
    TQStringList m_stringIncludeFileHistoryCombo_stringlist;
    m_stringIncludeFileHistoryCombo_stringlist << "qstring.h";
    m_stringIncludeFileHistoryCombo_stringlist << "string";
    m_stringIncludeFileHistoryCombo->setHistoryItems( m_stringIncludeFileHistoryCombo_stringlist );

    layout17->addWidget( m_stringIncludeFileHistoryCombo, 2, 3 );

    m_globalListCheckBox = new TQCheckBox( tab_2, "m_globalListCheckBox" );
    m_globalListCheckBox->setChecked( true );

    layout17->addWidget( m_globalListCheckBox, 1, 7 );

    textLabel3_2_2 = new TQLabel( tab_2, "textLabel3_2_2" );

    layout17->addWidget( textLabel3_2_2, 0, 2 );

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

    layout17->addMultiCellWidget( m_browseListButton, 1, 1, 4, 5 );

    textLabel5_2_2_2 = new TQLabel( tab_2, "textLabel5_2_2_2" );

    layout17->addMultiCellWidget( textLabel5_2_2_2, 0, 0, 3, 4 );

    tabLayout_2->addLayout( layout17, 1, 0 );
    tabWidget2->insertTab( tab_2, TQString::fromLatin1("") );
    languageChange();
    resize( TQSize(648, 549).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( m_browseListButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( browseClicked() ) );
    connect( m_browseStringButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( browseClicked() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void CPPCodeGenerationFormBase::languageChange()
{
    groupBox1->setTitle( tr2i18n( "Documentation" ) );
    m_SelectCommentStyle->clear();
    m_SelectCommentStyle->insertItem( tr2i18n( "Slash-Slash (//)" ) );
    m_SelectCommentStyle->insertItem( tr2i18n( "Slash-Star (/**  */)" ) );
    textLabel1->setText( tr2i18n( "Style:" ) );
    textLabel1_2->setText( tr2i18n( "<p align=\"center\">C++ Code Generation</p>" ) );
    tabWidget2->changeTab( tab, tr2i18n( "General" ) );
    textLabel2_2_2_2->setText( tr2i18n( "Use following for classes in generated code:" ) );
    m_listClassHCombo->setCurrentItem( 0 );
    textLabel1_3_2_2_2->setText( tr2i18n( "<b>Variable</b>" ) );
    m_browseStringButton->setText( tr2i18n( "..." ) );
    m_globalStringCheckBox->setText( TQString::null );
    m_stringClassHCombo->setCurrentItem( 0 );
    stringClassTextLabel->setText( tr2i18n( "<p align=\"center\">String</p>" ) );
    listClassTextLabel->setText( tr2i18n( "<p align=\"center\">List</p>" ) );
    m_listIncludeFileHistoryCombo->setCurrentItem( 0 );
    textLabel4_2_2_2->setText( tr2i18n( "<i>global?</i>" ) );
    m_stringIncludeFileHistoryCombo->setCurrentItem( 0 );
    m_globalListCheckBox->setText( TQString::null );
    textLabel3_2_2->setText( tr2i18n( "Class name" ) );
    m_browseListButton->setText( tr2i18n( "..." ) );
    textLabel5_2_2_2->setText( tr2i18n( "<i><p align=\"center\">Include file</p></i>" ) );
    tabWidget2->changeTab( tab_2, tr2i18n( "Method Body Generation" ) );
}

void CPPCodeGenerationFormBase::browseClicked()
{
    tqWarning( "CPPCodeGenerationFormBase::browseClicked(): Not implemented yet" );
}

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

TQMetaObject *CPPCodeGenerationFormBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_CPPCodeGenerationFormBase( "CPPCodeGenerationFormBase", &CPPCodeGenerationFormBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* CPPCodeGenerationFormBase::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 = {"browseClicked", 0, 0 };
    static const TQUMethod slot_1 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "browseClicked()", &slot_0, TQMetaData::Public },
	{ "languageChange()", &slot_1, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"CPPCodeGenerationFormBase", parentObject,
	slot_tbl, 2,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_CPPCodeGenerationFormBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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