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

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

#include "membereditdlgs.h"

#include <ntqvariant.h>
#include <kpushbutton.h>
#include <klineedit.h>
#include <kcombobox.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    nameCombo = new KComboBox( false, this, "nameCombo" );
    nameCombo->setEditable( true );

    MemberEditDlgSLayout->addMultiCellWidget( nameCombo, 0, 0, 1, 2 );

    selectButton = new KPushButton( this, "selectButton" );

    MemberEditDlgSLayout->addWidget( selectButton, 0, 3 );

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

    MemberEditDlgSLayout->addWidget( textLabel2, 0, 0 );

    editSubprojectsButton = new KPushButton( this, "editSubprojectsButton" );

    MemberEditDlgSLayout->addMultiCellWidget( editSubprojectsButton, 5, 5, 2, 3 );

    roleCombo = new KComboBox( false, this, "roleCombo" );

    MemberEditDlgSLayout->addMultiCellWidget( roleCombo, 3, 3, 1, 3 );

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

    MemberEditDlgSLayout->addMultiCellWidget( taskEdit, 4, 4, 1, 3 );

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

    MemberEditDlgSLayout->addWidget( textLabel5, 4, 0 );

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

    MemberEditDlgSLayout->addWidget( textLabel6, 5, 0 );

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

    MemberEditDlgSLayout->addWidget( textLabel4, 3, 0 );

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

    MemberEditDlgSLayout->addWidget( textLabel3, 2, 0 );

    subprojectCombo = new KComboBox( false, this, "subprojectCombo" );
    subprojectCombo->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, subprojectCombo->sizePolicy().hasHeightForWidth() ) );

    MemberEditDlgSLayout->addWidget( subprojectCombo, 5, 1 );

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

    MemberEditDlgSLayout->addWidget( textLabel3_2, 1, 0 );

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

    MemberEditDlgSLayout->addMultiCellWidget( emailEdit, 2, 2, 1, 3 );

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

    MemberEditDlgSLayout->addMultiCellWidget( nicknameEdit, 1, 1, 1, 3 );
    languageChange();
    resize( TQSize(553, 236).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( roleCombo, TQ_SIGNAL( activated(const TQString&) ), this, TQ_SLOT( slotRoleSelected(const TQString&) ) );
    connect( editSubprojectsButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotEditSubprojects() ) );
    connect( nameCombo, TQ_SIGNAL( activated(const TQString&) ), this, TQ_SLOT( slotMemberSelected() ) );
    connect( selectButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotSelectFromAddrBook() ) );

    // tab order
    setTabOrder( nameCombo, selectButton );
    setTabOrder( selectButton, nicknameEdit );
    setTabOrder( nicknameEdit, emailEdit );
    setTabOrder( emailEdit, roleCombo );
    setTabOrder( roleCombo, taskEdit );
    setTabOrder( taskEdit, subprojectCombo );
    setTabOrder( subprojectCombo, editSubprojectsButton );

    // buddies
    textLabel2->setBuddy( nameCombo );
    textLabel5->setBuddy( taskEdit );
    textLabel6->setBuddy( subprojectCombo );
    textLabel4->setBuddy( roleCombo );
    textLabel3->setBuddy( emailEdit );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void MemberEditDlgS::languageChange()
{
    selectButton->setText( tr2i18n( "..." ) );
    textLabel2->setText( tr2i18n( "&Name:" ) );
    editSubprojectsButton->setText( tr2i18n( "E&dit Subprojects" ) );
    textLabel5->setText( tr2i18n( "Tas&k:" ) );
    textLabel6->setText( tr2i18n( "Subpro&ject:" ) );
    textLabel4->setText( tr2i18n( "&Role:" ) );
    textLabel3->setText( tr2i18n( "&Email:" ) );
    textLabel3_2->setText( tr2i18n( "Nickname:" ) );
}

void MemberEditDlgS::slotRoleSelected(const TQString&)
{
    tqWarning( "MemberEditDlgS::slotRoleSelected(const TQString&): Not implemented yet" );
}

void MemberEditDlgS::slotEditSubprojects()
{
    tqWarning( "MemberEditDlgS::slotEditSubprojects(): Not implemented yet" );
}

void MemberEditDlgS::slotMemberSelected()
{
    tqWarning( "MemberEditDlgS::slotMemberSelected(): Not implemented yet" );
}

void MemberEditDlgS::slotSelectFromAddrBook()
{
    tqWarning( "MemberEditDlgS::slotSelectFromAddrBook(): Not implemented yet" );
}

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

TQMetaObject *MemberEditDlgS::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_MemberEditDlgS( "MemberEditDlgS", &MemberEditDlgS::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* MemberEditDlgS::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 TQUParameter param_slot_0[] = {
	{ "roleName", &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"slotRoleSelected", 1, param_slot_0 };
    static const TQUMethod slot_1 = {"slotEditSubprojects", 0, 0 };
    static const TQUMethod slot_2 = {"slotMemberSelected", 0, 0 };
    static const TQUMethod slot_3 = {"slotSelectFromAddrBook", 0, 0 };
    static const TQUMethod slot_4 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "slotRoleSelected(const TQString&)", &slot_0, TQMetaData::Public },
	{ "slotEditSubprojects()", &slot_1, TQMetaData::Public },
	{ "slotMemberSelected()", &slot_2, TQMetaData::Public },
	{ "slotSelectFromAddrBook()", &slot_3, TQMetaData::Public },
	{ "languageChange()", &slot_4, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"MemberEditDlgS", parentObject,
	slot_tbl, 5,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_MemberEditDlgS.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool MemberEditDlgS::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: slotRoleSelected((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 1: slotEditSubprojects(); break;
    case 2: slotMemberSelected(); break;
    case 3: slotSelectFromAddrBook(); break;
    case 4: languageChange(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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