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

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

#include "base_k3baudiocdtextallfieldswidget.h"

#include <ntqvariant.h>
#include <klineedit.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqtoolbutton.h>
#include <ntqframe.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a base_K3bAudioCdTextAllFieldsWidget as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
base_K3bAudioCdTextAllFieldsWidget::base_K3bAudioCdTextAllFieldsWidget( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "base_K3bAudioCdTextAllFieldsWidget" );
    base_K3bAudioCdTextAllFieldsWidgetLayout = new TQGridLayout( this, 1, 1, 0, 6, "base_K3bAudioCdTextAllFieldsWidgetLayout"); 

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

    base_K3bAudioCdTextAllFieldsWidgetLayout->addWidget( textLabel8, 8, 0 );

    layout2 = new TQHBoxLayout( 0, 0, 6, "layout2"); 

    m_editSongwriter = new KLineEdit( this, "m_editSongwriter" );
    layout2->addWidget( m_editSongwriter );

    m_buttonCopySongwriter = new TQToolButton( this, "m_buttonCopySongwriter" );
    layout2->addWidget( m_buttonCopySongwriter );

    base_K3bAudioCdTextAllFieldsWidgetLayout->addLayout( layout2, 4, 1 );

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

    base_K3bAudioCdTextAllFieldsWidgetLayout->addWidget( textLabel6, 6, 0 );

    layout1 = new TQHBoxLayout( 0, 0, 6, "layout1"); 

    m_editComposer = new KLineEdit( this, "m_editComposer" );
    layout1->addWidget( m_editComposer );

    m_buttonCopyComposer = new TQToolButton( this, "m_buttonCopyComposer" );
    layout1->addWidget( m_buttonCopyComposer );

    base_K3bAudioCdTextAllFieldsWidgetLayout->addLayout( layout1, 5, 1 );

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

    base_K3bAudioCdTextAllFieldsWidgetLayout->addWidget( textLabel4, 4, 0 );

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

    base_K3bAudioCdTextAllFieldsWidgetLayout->addWidget( textLabel5, 5, 0 );

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

    base_K3bAudioCdTextAllFieldsWidgetLayout->addWidget( textLabel7, 7, 0 );

    layout3 = new TQHBoxLayout( 0, 0, 6, "layout3"); 

    m_editArranger = new KLineEdit( this, "m_editArranger" );
    layout3->addWidget( m_editArranger );

    m_buttonCopyArranger = new TQToolButton( this, "m_buttonCopyArranger" );
    layout3->addWidget( m_buttonCopyArranger );

    base_K3bAudioCdTextAllFieldsWidgetLayout->addLayout( layout3, 3, 1 );

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

    base_K3bAudioCdTextAllFieldsWidgetLayout->addWidget( textLabel3, 3, 0 );

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

    base_K3bAudioCdTextAllFieldsWidgetLayout->addWidget( m_editUpc_ean, 6, 1 );

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

    base_K3bAudioCdTextAllFieldsWidgetLayout->addWidget( m_editDisc_id, 7, 1 );

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

    base_K3bAudioCdTextAllFieldsWidgetLayout->addWidget( m_editMessage, 8, 1 );

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

    base_K3bAudioCdTextAllFieldsWidgetLayout->addWidget( textLabel2, 1, 0 );

    layout5 = new TQHBoxLayout( 0, 0, 6, "layout5"); 

    m_editTitle = new KLineEdit( this, "m_editTitle" );
    layout5->addWidget( m_editTitle );

    m_buttonCopyTitle = new TQToolButton( this, "m_buttonCopyTitle" );
    layout5->addWidget( m_buttonCopyTitle );

    base_K3bAudioCdTextAllFieldsWidgetLayout->addLayout( layout5, 0, 1 );

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

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

    line4 = new TQFrame( this, "line4" );
    line4->setFrameShape( TQFrame::HLine );
    line4->setFrameShadow( TQFrame::Sunken );
    line4->setFrameShape( TQFrame::HLine );

    base_K3bAudioCdTextAllFieldsWidgetLayout->addMultiCellWidget( line4, 2, 2, 0, 1 );

    layout4 = new TQHBoxLayout( 0, 0, 6, "layout4"); 

    m_editPerformer = new KLineEdit( this, "m_editPerformer" );
    layout4->addWidget( m_editPerformer );

    m_buttonCopyPerformer = new TQToolButton( this, "m_buttonCopyPerformer" );
    layout4->addWidget( m_buttonCopyPerformer );

    base_K3bAudioCdTextAllFieldsWidgetLayout->addLayout( layout4, 1, 1 );
    languageChange();

    // buddies
    textLabel8->setBuddy( m_editMessage );
    textLabel6->setBuddy( m_editUpc_ean );
    textLabel4->setBuddy( m_editSongwriter );
    textLabel5->setBuddy( m_editComposer );
    textLabel7->setBuddy( m_editDisc_id );
    textLabel3->setBuddy( m_editArranger );
    textLabel2->setBuddy( m_editPerformer );
    textLabel1->setBuddy( m_editTitle );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void base_K3bAudioCdTextAllFieldsWidget::languageChange()
{
    textLabel8->setText( tr2i18n( "Messa&ge:" ) );
    m_buttonCopySongwriter->setText( tr2i18n( "..." ) );
    TQToolTip::add( m_buttonCopySongwriter, tr2i18n( "Copy to all tracks" ) );
    textLabel6->setText( tr2i18n( "&UPC EAN:" ) );
    m_buttonCopyComposer->setText( tr2i18n( "..." ) );
    TQToolTip::add( m_buttonCopyComposer, tr2i18n( "Copy to all tracks" ) );
    textLabel4->setText( tr2i18n( "So&ngwriter:" ) );
    textLabel5->setText( tr2i18n( "&Composer:" ) );
    textLabel7->setText( tr2i18n( "&Disk id:" ) );
    m_buttonCopyArranger->setText( tr2i18n( "..." ) );
    TQToolTip::add( m_buttonCopyArranger, tr2i18n( "Copy to all tracks" ) );
    textLabel3->setText( tr2i18n( "&Arranger:" ) );
    textLabel2->setText( tr2i18n( "&Performer:" ) );
    m_buttonCopyTitle->setText( tr2i18n( "..." ) );
    TQToolTip::add( m_buttonCopyTitle, tr2i18n( "Copy to all tracks" ) );
    textLabel1->setText( tr2i18n( "&Title:" ) );
    m_buttonCopyPerformer->setText( tr2i18n( "..." ) );
    TQToolTip::add( m_buttonCopyPerformer, tr2i18n( "Copy to all tracks" ) );
}

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

TQMetaObject *base_K3bAudioCdTextAllFieldsWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_base_K3bAudioCdTextAllFieldsWidget( "base_K3bAudioCdTextAllFieldsWidget", &base_K3bAudioCdTextAllFieldsWidget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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