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

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

#include "generalinfowidgetbase.h"

#include <ntqvariant.h>
#include <kdialog.h>
#include <klineedit.h>
#include <ntqcombobox.h>
#include <ntqlabel.h>
#include <ksqueezedtextlabel.h>
#include <ntqtextedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqimage.h>
#include <ntqpixmap.h>

static const unsigned char image0_data[] = { 
    0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
    0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10,
    0x08, 0x06, 0x00, 0x00, 0x00, 0x1f, 0xf3, 0xff, 0x61, 0x00, 0x00, 0x01,
    0xdb, 0x49, 0x44, 0x41, 0x54, 0x38, 0x8d, 0xa5, 0x93, 0x31, 0x68, 0x53,
    0x51, 0x14, 0x86, 0xbf, 0x27, 0x6f, 0x78, 0x81, 0x0a, 0x19, 0x5f, 0xc0,
    0x21, 0x8a, 0x83, 0xe9, 0x16, 0x88, 0xc3, 0xbb, 0x9b, 0x42, 0x97, 0x4c,
    0x92, 0x55, 0x70, 0x50, 0x9c, 0xc4, 0xcd, 0x31, 0x16, 0x44, 0x5d, 0xd4,
    0xba, 0x88, 0x9b, 0x0a, 0x82, 0xe8, 0x22, 0x5d, 0xac, 0x6b, 0x07, 0xb1,
    0xb7, 0x4b, 0xa1, 0x8b, 0x18, 0x87, 0x42, 0x87, 0x96, 0xe6, 0x41, 0x83,
    0xef, 0xa2, 0xc1, 0xdc, 0x21, 0xf0, 0x3b, 0xdc, 0x24, 0x7d, 0x4d, 0xed,
    0xe4, 0x81, 0x03, 0x97, 0x1f, 0xfe, 0xff, 0xfc, 0xe7, 0xdc, 0x73, 0x22,
    0x6b, 0x2d, 0xff, 0x13, 0xf1, 0x3c, 0x90, 0x7d, 0xfa, 0x2c, 0x16, 0x12,
    0x88, 0x93, 0x63, 0xf8, 0xc8, 0x39, 0x2e, 0x3c, 0x7d, 0xcc, 0xea, 0x17,
    0x1b, 0x95, 0xf1, 0x68, 0xea, 0x20, 0xcb, 0x32, 0xf1, 0xe4, 0x19, 0x34,
    0x1a, 0x90, 0x54, 0x20, 0x99, 0x08, 0x8c, 0x3d, 0xf8, 0x11, 0x14, 0x8e,
    0xf5, 0x0f, 0xef, 0x59, 0x19, 0x14, 0x74, 0x9f, 0xaf, 0x44, 0x27, 0x05,
    0xdc, 0x4f, 0x31, 0xf4, 0x50, 0x38, 0x70, 0xc5, 0x91, 0xb7, 0x31, 0xe0,
    0x5c, 0x10, 0x02, 0xbe, 0xbb, 0x82, 0xfb, 0x7b, 0x39, 0xf7, 0x96, 0xbb,
    0x11, 0xc0, 0x19, 0x80, 0xac, 0xd3, 0x11, 0x7b, 0x39, 0xf4, 0x7a, 0xf0,
    0xa3, 0x07, 0x69, 0x2d, 0x90, 0x06, 0x0e, 0xf6, 0x77, 0xa1, 0x5a, 0x0d,
    0x2d, 0xed, 0xf7, 0x59, 0x1c, 0x7a, 0x6e, 0xe6, 0x7d, 0x3a, 0xc6, 0x68,
    0x26, 0xc0, 0xb9, 0x5a, 0xa8, 0xfa, 0x6d, 0x1b, 0xea, 0xe7, 0xe1, 0xc6,
    0x75, 0x58, 0x6a, 0xc3, 0x4e, 0x0f, 0xe2, 0x0a, 0xdc, 0xbd, 0x03, 0xb7,
    0x6f, 0xc1, 0xc8, 0xc3, 0x61, 0x9f, 0xc5, 0x41, 0x41, 0x03, 0x30, 0xc6,
    0x28, 0x18, 0x1d, 0x14, 0xb0, 0xb5, 0x09, 0x87, 0x05, 0x7c, 0x5d, 0x0f,
    0x73, 0x58, 0xba, 0x0a, 0x83, 0x3e, 0xb4, 0x4c, 0x10, 0x79, 0xf1, 0x12,
    0xf2, 0x3e, 0x38, 0x47, 0xe1, 0xf2, 0xa3, 0x29, 0x5a, 0x6b, 0x51, 0x9a,
    0x4a, 0x17, 0xeb, 0xd2, 0x42, 0x22, 0x5d, 0x6a, 0x84, 0xf7, 0xdb, 0x77,
    0x92, 0x24, 0xfd, 0xfa, 0x23, 0x5d, 0xeb, 0x48, 0x69, 0x1a, 0x32, 0x46,
    0x1b, 0x31, 0xba, 0x02, 0x02, 0x14, 0x5a, 0xf0, 0x3e, 0xf4, 0x3c, 0xf4,
    0x61, 0x06, 0xde, 0x43, 0x66, 0xe0, 0xf7, 0x08, 0xce, 0x56, 0xe0, 0x72,
    0x13, 0xf2, 0x3c, 0xe4, 0x18, 0x3c, 0xc9, 0x9c, 0x83, 0x18, 0x29, 0x49,
    0x24, 0x90, 0x5a, 0x4d, 0xe9, 0xe0, 0x20, 0x54, 0x6e, 0x35, 0xa5, 0x07,
    0x0f, 0x83, 0x93, 0xd7, 0xaf, 0xa4, 0x18, 0x09, 0xb4, 0x96, 0x24, 0x33,
    0x07, 0x31, 0xc0, 0x68, 0x0c, 0x95, 0xc9, 0x37, 0xe1, 0x0a, 0xd8, 0xd9,
    0x85, 0xe5, 0x2e, 0x6c, 0x6d, 0x87, 0x4c, 0x6b, 0x30, 0x2c, 0x8e, 0x2d,
    0x96, 0x2f, 0x3b, 0x48, 0x41, 0x1f, 0x09, 0xea, 0x82, 0x59, 0xa5, 0x7f,
    0xe5, 0x46, 0x9c, 0xa8, 0x33, 0xa9, 0x0e, 0x08, 0x6b, 0x2d, 0xd6, 0x5a,
    0xaa, 0xa0, 0xb5, 0x53, 0x48, 0xa7, 0x92, 0x41, 0x51, 0xf9, 0x98, 0xda,
    0xc6, 0xe8, 0x51, 0x0c, 0xf5, 0xb9, 0x3b, 0x98, 0x6e, 0xe4, 0x9b, 0xb1,
    0x67, 0xb5, 0x04, 0x59, 0x6b, 0xa3, 0x68, 0xfe, 0x1a, 0xdb, 0xc6, 0xa8,
    0x79, 0x92, 0x8e, 0x07, 0x36, 0xe7, 0xc8, 0x50, 0xba, 0x85, 0x72, 0x98,
    0xc9, 0x9a, 0x9e, 0x16, 0x53, 0x32, 0xc0, 0x5f, 0xc9, 0x53, 0x28, 0x63,
    0xe0, 0x3d, 0xd5, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44,
    0xae, 0x42, 0x60, 0x82
};


/*
 *  Constructs a GeneralInfoWidgetBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
GeneralInfoWidgetBase::GeneralInfoWidgetBase( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    TQImage img;
    img.loadFromData( image0_data, sizeof( image0_data ), "PNG" );
    image0 = img;
    if ( !name )
	setName( "general_info_widget" );
    general_info_widgetLayout = new TQGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "general_info_widgetLayout"); 

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

    general_info_widgetLayout->addWidget( project_directory_combo, 0, 4 );
    spacer1 = new TQSpacerItem( 408, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    general_info_widgetLayout->addMultiCell( spacer1, 4, 4, 3, 4 );

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

    general_info_widgetLayout->addMultiCellWidget( description_label, 5, 5, 0, 4 );

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

    general_info_widgetLayout->addWidget( project_directory_label, 0, 0 );

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

    general_info_widgetLayout->addWidget( author_label, 2, 0 );

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

    general_info_widgetLayout->addWidget( email_label, 3, 0 );

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

    general_info_widgetLayout->addWidget( version_label, 4, 0 );

    version_edit = new KLineEdit( this, "version_edit" );
    version_edit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, version_edit->sizePolicy().hasHeightForWidth() ) );
    version_edit->setMaximumSize( TQSize( 100, 32767 ) );

    general_info_widgetLayout->addMultiCellWidget( version_edit, 4, 4, 1, 2 );

    email_edit = new KLineEdit( this, "email_edit" );

    general_info_widgetLayout->addMultiCellWidget( email_edit, 3, 3, 1, 4 );

    author_edit = new KLineEdit( this, "author_edit" );

    general_info_widgetLayout->addMultiCellWidget( author_edit, 2, 2, 1, 4 );

    project_directory_diagnostic_icon = new TQLabel( this, "project_directory_diagnostic_icon" );
    project_directory_diagnostic_icon->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, project_directory_diagnostic_icon->sizePolicy().hasHeightForWidth() ) );
    project_directory_diagnostic_icon->setMinimumSize( TQSize( 16, 16 ) );
    project_directory_diagnostic_icon->setMaximumSize( TQSize( 16, 16 ) );
    TQFont project_directory_diagnostic_icon_font(  project_directory_diagnostic_icon->font() );
    project_directory_diagnostic_icon_font.setPointSize( 10 );
    project_directory_diagnostic_icon->setFont( project_directory_diagnostic_icon_font ); 
    project_directory_diagnostic_icon->setPixmap( image0 );

    general_info_widgetLayout->addWidget( project_directory_diagnostic_icon, 1, 1 );

    project_directory_edit = new KLineEdit( this, "project_directory_edit" );

    general_info_widgetLayout->addMultiCellWidget( project_directory_edit, 0, 0, 1, 3 );

    project_directory_diagnostic_label = new KSqueezedTextLabel( this, "project_directory_diagnostic_label" );
    TQFont project_directory_diagnostic_label_font(  project_directory_diagnostic_label->font() );
    project_directory_diagnostic_label->setFont( project_directory_diagnostic_label_font ); 

    general_info_widgetLayout->addMultiCellWidget( project_directory_diagnostic_label, 1, 1, 2, 4 );

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

    general_info_widgetLayout->addMultiCellWidget( textLabel1, 7, 7, 0, 1 );

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

    general_info_widgetLayout->addMultiCellWidget( encoding_combo, 7, 7, 2, 3 );

    description_edit = new TQTextEdit( this, "description_edit" );

    general_info_widgetLayout->addMultiCellWidget( description_edit, 6, 6, 0, 4 );
    languageChange();
    resize( TQSize(518, 375).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( project_directory_edit, project_directory_combo );
    setTabOrder( project_directory_combo, author_edit );
    setTabOrder( author_edit, email_edit );
    setTabOrder( email_edit, version_edit );
    setTabOrder( version_edit, description_edit );
    setTabOrder( description_edit, encoding_combo );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void GeneralInfoWidgetBase::languageChange()
{
    setCaption( tr2i18n( "General Settings" ) );
    project_directory_combo->clear();
    project_directory_combo->insertItem( tr2i18n( "Absolute Path" ) );
    project_directory_combo->insertItem( tr2i18n( "Relative to Project File" ) );
    description_label->setText( tr2i18n( "Description:" ) );
    project_directory_label->setText( tr2i18n( "Project directory:" ) );
    author_label->setText( tr2i18n( "Author:" ) );
    email_label->setText( tr2i18n( "Email:" ) );
    version_label->setText( tr2i18n( "Version:" ) );
    TQToolTip::add( version_edit, tr2i18n( "Project Version\n"
"You may need to run automake & friends to update\n"
"the version in all files after changing this." ) );
    TQToolTip::add( email_edit, tr2i18n( "Used in templates as $EMAIL$\n"
"Placed in the AUTHORS file" ) );
    TQToolTip::add( author_edit, tr2i18n( "Used in templates as $AUTHOR$\n"
"Placed in the AUTHORS file" ) );
    project_directory_diagnostic_icon->setText( TQString::null );
    TQToolTip::add( project_directory_edit, tr2i18n( "Where the project starts." ) );
    project_directory_diagnostic_label->setText( tr2i18n( "Please select a project directory" ) );
    textLabel1->setText( tr2i18n( "Default encoding:" ) );
    TQToolTip::add( encoding_combo, tr2i18n( "Default encoding used when opening text files" ) );
    TQToolTip::add( description_edit, tr2i18n( "Text that stays in the project file." ) );
}

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

TQMetaObject *GeneralInfoWidgetBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_GeneralInfoWidgetBase( "GeneralInfoWidgetBase", &GeneralInfoWidgetBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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