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

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

#include "base_k3bdatavolumedescwidget.h"

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

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

    m_editVolumeName = new TQLineEdit( this, "m_editVolumeName" );
    m_editVolumeName->setMaxLength( 32 );

    base_K3bDataVolumeDescWidgetLayout->addWidget( m_editVolumeName, 0, 1 );

    m_editVolumeSetName = new TQLineEdit( this, "m_editVolumeSetName" );
    m_editVolumeSetName->setMaxLength( 128 );

    base_K3bDataVolumeDescWidgetLayout->addWidget( m_editVolumeSetName, 1, 1 );

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

    base_K3bDataVolumeDescWidgetLayout->addWidget( TextLabel2, 1, 0 );

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

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

    m_editPublisher = new TQLineEdit( this, "m_editPublisher" );
    m_editPublisher->setMaxLength( 128 );

    base_K3bDataVolumeDescWidgetLayout->addWidget( m_editPublisher, 3, 1 );

    m_editPreparer = new TQLineEdit( this, "m_editPreparer" );
    m_editPreparer->setMaxLength( 128 );

    base_K3bDataVolumeDescWidgetLayout->addWidget( m_editPreparer, 4, 1 );

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

    base_K3bDataVolumeDescWidgetLayout->addWidget( TextLabel4, 4, 0 );

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

    base_K3bDataVolumeDescWidgetLayout->addWidget( TextLabel3, 3, 0 );

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

    base_K3bDataVolumeDescWidgetLayout->addWidget( textLabel1, 2, 0 );

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

    m_spinVolumeSetSize = new TQSpinBox( this, "m_spinVolumeSetSize" );
    m_spinVolumeSetSize->setMinValue( 1 );
    m_spinVolumeSetSize->setValue( 1 );
    layout1->addWidget( m_spinVolumeSetSize );

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

    m_spinVolumeSetNumber = new TQSpinBox( this, "m_spinVolumeSetNumber" );
    m_spinVolumeSetNumber->setMaxValue( 2 );
    m_spinVolumeSetNumber->setMinValue( 1 );
    m_spinVolumeSetNumber->setValue( 1 );
    layout1->addWidget( m_spinVolumeSetNumber );

    base_K3bDataVolumeDescWidgetLayout->addLayout( layout1, 2, 1 );

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

    base_K3bDataVolumeDescWidgetLayout->addWidget( TextLabel5, 6, 0 );

    m_editSystem = new TQLineEdit( this, "m_editSystem" );
    m_editSystem->setMaxLength( 32 );

    base_K3bDataVolumeDescWidgetLayout->addWidget( m_editSystem, 6, 1 );

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

    base_K3bDataVolumeDescWidgetLayout->addWidget( TextLabel6, 7, 0 );
    Spacer1 = new TQSpacerItem( 20, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    base_K3bDataVolumeDescWidgetLayout->addItem( Spacer1, 12, 1 );

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

    base_K3bDataVolumeDescWidgetLayout->addMultiCellWidget( line1, 5, 5, 0, 1 );

    m_editApplication = new TQLineEdit( this, "m_editApplication" );
    m_editApplication->setMaxLength( 128 );

    base_K3bDataVolumeDescWidgetLayout->addWidget( m_editApplication, 7, 1 );

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

    m_editBiblio = new TQLineEdit( this, "m_editBiblio" );
    m_editBiblio->setMaxLength( 37 );
    layout4->addWidget( m_editBiblio );

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

    base_K3bDataVolumeDescWidgetLayout->addLayout( layout4, 11, 1 );

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

    m_editAbstract = new TQLineEdit( this, "m_editAbstract" );
    m_editAbstract->setMaxLength( 37 );
    layout2->addWidget( m_editAbstract );

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

    base_K3bDataVolumeDescWidgetLayout->addLayout( layout2, 9, 1 );

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

    m_editCopyright = new TQLineEdit( this, "m_editCopyright" );
    m_editCopyright->setMaxLength( 37 );
    layout3->addWidget( m_editCopyright );

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

    base_K3bDataVolumeDescWidgetLayout->addLayout( layout3, 10, 1 );

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

    base_K3bDataVolumeDescWidgetLayout->addWidget( textLabel1_2, 9, 0 );

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

    base_K3bDataVolumeDescWidgetLayout->addWidget( textLabel2_2, 10, 0 );

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

    base_K3bDataVolumeDescWidgetLayout->addWidget( textLabel3, 11, 0 );

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

    base_K3bDataVolumeDescWidgetLayout->addMultiCellWidget( line1_2, 8, 8, 0, 1 );
    languageChange();

    // tab order
    setTabOrder( m_editVolumeName, m_editVolumeSetName );
    setTabOrder( m_editVolumeSetName, m_spinVolumeSetSize );
    setTabOrder( m_spinVolumeSetSize, m_spinVolumeSetNumber );
    setTabOrder( m_spinVolumeSetNumber, m_editPublisher );
    setTabOrder( m_editPublisher, m_editPreparer );
    setTabOrder( m_editPreparer, m_editSystem );
    setTabOrder( m_editSystem, m_editApplication );

    // buddies
    TextLabel2->setBuddy( m_editVolumeSetName );
    TextLabel1->setBuddy( m_editVolumeName );
    TextLabel4->setBuddy( m_editPreparer );
    TextLabel3->setBuddy( m_editPublisher );
    textLabel1->setBuddy( m_spinVolumeSetSize );
    textLabel2->setBuddy( m_spinVolumeSetNumber );
    TextLabel5->setBuddy( m_editSystem );
    TextLabel6->setBuddy( m_editApplication );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void base_K3bDataVolumeDescWidget::languageChange()
{
    setCaption( tr2i18n( "Volume Descriptor" ) );
    TextLabel2->setText( tr2i18n( "V&olume set name:" ) );
    TextLabel1->setText( tr2i18n( "&Volume name:" ) );
    TextLabel4->setText( tr2i18n( "P&reparer:" ) );
    TextLabel3->setText( tr2i18n( "P&ublisher:" ) );
    textLabel1->setText( tr2i18n( "Volu&me set size:" ) );
    m_spinVolumeSetSize->setSpecialValueText( TQString::null );
    textLabel2->setText( tr2i18n( "Volume set &number:" ) );
    m_spinVolumeSetNumber->setSpecialValueText( TQString::null );
    TextLabel5->setText( tr2i18n( "S&ystem:" ) );
    TextLabel6->setText( tr2i18n( "&Application:" ) );
    m_buttonFindBiblio->setText( tr2i18n( "..." ) );
    TQToolTip::add( m_buttonFindBiblio, tr2i18n( "Select a bibliographic file from the project" ) );
    m_buttonFindAbstract->setText( tr2i18n( "..." ) );
    TQToolTip::add( m_buttonFindAbstract, tr2i18n( "Select an abstract file from the project" ) );
    m_buttonFindCopyright->setText( tr2i18n( "..." ) );
    TQToolTip::add( m_buttonFindCopyright, tr2i18n( "Select a copyright file from the project" ) );
    textLabel1_2->setText( tr2i18n( "Abstract file:" ) );
    textLabel2_2->setText( tr2i18n( "Copyright file:" ) );
    textLabel3->setText( tr2i18n( "Bibliographic file:" ) );
}

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

TQMetaObject *base_K3bDataVolumeDescWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_base_K3bDataVolumeDescWidget( "base_K3bDataVolumeDescWidget", &base_K3bDataVolumeDescWidget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

bool base_K3bDataVolumeDescWidget::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_K3bDataVolumeDescWidget::tqt_emit( int _id, TQUObject* _o )
{
    return TQWidget::tqt_emit(_id,_o);
}
#ifndef TQT_NO_PROPERTIES

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

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