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

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

#include "qverbedit.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqheader.h>
#include <ntqlistview.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqimage.h>
#include <ntqpixmap.h>

static const char* const image0_data[] = { 
"16 16 2 1",
". c #ff0000",
"# c #ffff00",
"................",
"................",
"................",
"................",
"################",
"################",
"################",
"################",
"################",
"################",
"################",
"################",
"................",
"................",
"................",
"................"};

static const char* const image1_data[] = { 
"16 16 3 1",
". c #000000",
"# c #ff0000",
"a c #ffff00",
"................",
"................",
"................",
"................",
"................",
"################",
"################",
"################",
"################",
"################",
"################",
"aaaaaaaaaaaaaaaa",
"aaaaaaaaaaaaaaaa",
"aaaaaaaaaaaaaaaa",
"aaaaaaaaaaaaaaaa",
"aaaaaaaaaaaaaaaa"};


/*
 *  Constructs a QVerbEdit as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qdialog will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qdialog.
 */
QVerbEdit::QVerbEdit( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl ),
      image0( (const char **) image0_data ),
      image1( (const char **) image1_data )
{
    if ( !name )
	setName( "QVerbEdit" );
    QVerbEditLayout = new TQGridLayout( this, 1, 1, 11, 6, "QVerbEditLayout"); 

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

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

    ButtonDelete = new TQPushButton( this, "ButtonDelete" );
    Layout1->addWidget( ButtonDelete );
    Spacer1 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout1->addItem( Spacer1 );

    ButtonOK = new TQPushButton( this, "ButtonOK" );
    Layout1->addWidget( ButtonOK );

    ButtonEdit = new TQPushButton( this, "ButtonEdit" );
    Layout1->addWidget( ButtonEdit );

    ButtonCancel = new TQPushButton( this, "ButtonCancel" );
    Layout1->addWidget( ButtonCancel );

    Layout2->addLayout( Layout1, 1, 0 );

    ListView1 = new TQListView( this, "ListView1" );
    ListView1->addColumn( tr2i18n( "Spanish Verb" ) );
    ListView1->header()->setLabel( ListView1->header()->count() - 1, image0, tr2i18n( "Spanish Verb" ) );
    ListView1->addColumn( tr2i18n( "Foreign Language" ) );
    ListView1->header()->setLabel( ListView1->header()->count() - 1, image1, tr2i18n( "Foreign Language" ) );

    Layout2->addWidget( ListView1, 0, 0 );

    QVerbEditLayout->addLayout( Layout2, 0, 0 );
    languageChange();
    resize( TQSize(588, 482).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( ButtonDelete, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotDelete() ) );
    connect( ButtonOK, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotDlgEnde() ) );
    connect( ButtonCancel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotCancel() ) );
    connect( ButtonEdit, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotEditVerb() ) );
    connect( ListView1, TQ_SIGNAL( doubleClicked(TQListViewItem*) ), this, TQ_SLOT( slotEditVerb() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void QVerbEdit::languageChange()
{
    setCaption( tr2i18n( "Edit Verb List" ) );
    ButtonDelete->setText( tr2i18n( "&Delete" ) );
    ButtonOK->setText( tr2i18n( "&OK" ) );
    ButtonEdit->setText( tr2i18n( "&Edit" ) );
    ButtonCancel->setText( tr2i18n( "&Cancel" ) );
    ListView1->header()->setLabel( 0, tr2i18n( "Spanish Verb" ) );
    ListView1->header()->setLabel( 1, tr2i18n( "Foreign Language" ) );
}

void QVerbEdit::slotEditVerb()
{
    tqWarning( "QVerbEdit::slotEditVerb(): Not implemented yet" );
}

void QVerbEdit::slotCancel()
{
    tqWarning( "QVerbEdit::slotCancel(): Not implemented yet" );
}

void QVerbEdit::slotDelete()
{
    tqWarning( "QVerbEdit::slotDelete(): Not implemented yet" );
}

void QVerbEdit::slotDlgEnde()
{
    tqWarning( "QVerbEdit::slotDlgEnde(): Not implemented yet" );
}

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

TQMetaObject *QVerbEdit::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_QVerbEdit( "QVerbEdit", &QVerbEdit::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* QVerbEdit::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 = TQDialog::staticMetaObject();
    static const TQUMethod slot_0 = {"slotEditVerb", 0, 0 };
    static const TQUMethod slot_1 = {"slotCancel", 0, 0 };
    static const TQUMethod slot_2 = {"slotDelete", 0, 0 };
    static const TQUMethod slot_3 = {"slotDlgEnde", 0, 0 };
    static const TQUMethod slot_4 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "slotEditVerb()", &slot_0, TQMetaData::Public },
	{ "slotCancel()", &slot_1, TQMetaData::Public },
	{ "slotDelete()", &slot_2, TQMetaData::Public },
	{ "slotDlgEnde()", &slot_3, TQMetaData::Public },
	{ "languageChange()", &slot_4, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"QVerbEdit", parentObject,
	slot_tbl, 5,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_QVerbEdit.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool QVerbEdit::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: slotEditVerb(); break;
    case 1: slotCancel(); break;
    case 2: slotDelete(); break;
    case 3: slotDlgEnde(); break;
    case 4: languageChange(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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