/****************************************************************************
** TQLineEdit meta object code from reading C++ file 'ntqlineedit.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 "../../widgets/ntqlineedit.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

#include <ntqvariant.h>
const char *TQLineEdit::className() const
{
    return "TQLineEdit";
}

TQMetaObject *TQLineEdit::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQLineEdit( "TQLineEdit", &TQLineEdit::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQLineEdit::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 = TQFrame::staticMetaObject();
#ifndef TQT_NO_PROPERTIES
    static const TQMetaEnum::Item enum_0[] = {
	{ "Normal",  (int) TQLineEdit::Normal },
	{ "NoEcho",  (int) TQLineEdit::NoEcho },
	{ "Password",  (int) TQLineEdit::Password },
	{ "PasswordThreeStars",  (int) TQLineEdit::PasswordThreeStars }
    };
    static const TQMetaEnum enum_tbl[] = {
	{ "EchoMode", 4, enum_0, false }
    };
#endif // TQT_NO_PROPERTIES
    static const TQUParameter param_slot_0[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"setText", 1, param_slot_0 };
    static const TQUMethod slot_1 = {"selectAll", 0, 0 };
    static const TQUMethod slot_2 = {"deselect", 0, 0 };
    static const TQUMethod slot_3 = {"clearValidator", 0, 0 };
    static const TQUParameter param_slot_4[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"insert", 1, param_slot_4 };
    static const TQUMethod slot_5 = {"clear", 0, 0 };
    static const TQUMethod slot_6 = {"undo", 0, 0 };
    static const TQUMethod slot_7 = {"redo", 0, 0 };
    static const TQUParameter param_slot_8[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_8 = {"setMaxLength", 1, param_slot_8 };
    static const TQUParameter param_slot_9[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_9 = {"setFrame", 1, param_slot_9 };
    static const TQUParameter param_slot_10[] = {
	{ 0, &static_QUType_enum, 
#ifndef TQT_NO_PROPERTIES
	  &enum_tbl[0]
#else
	  0
#endif // TQT_NO_PROPERTIES
	  , TQUParameter::In }
    };
    static const TQUMethod slot_10 = {"setEchoMode", 1, param_slot_10 };
    static const TQUParameter param_slot_11[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_11 = {"setReadOnly", 1, param_slot_11 };
    static const TQUParameter param_slot_12[] = {
	{ 0, &static_QUType_ptr, "TQValidator", TQUParameter::In }
    };
    static const TQUMethod slot_12 = {"setValidator", 1, param_slot_12 };
    static const TQUParameter param_slot_13[] = {
	{ 0, &static_QUType_varptr, "\x05", TQUParameter::In }
    };
    static const TQUMethod slot_13 = {"setFont", 1, param_slot_13 };
    static const TQUParameter param_slot_14[] = {
	{ 0, &static_QUType_varptr, "\x0b", TQUParameter::In }
    };
    static const TQUMethod slot_14 = {"setPalette", 1, param_slot_14 };
    static const TQUParameter param_slot_15[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In },
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_15 = {"setSelection", 2, param_slot_15 };
    static const TQUParameter param_slot_16[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_16 = {"setCursorPosition", 1, param_slot_16 };
    static const TQUParameter param_slot_17[] = {
	{ "flag", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_17 = {"setAlignment", 1, param_slot_17 };
    static const TQUMethod slot_18 = {"cut", 0, 0 };
    static const TQUMethod slot_19 = {"copy", 0, 0 };
    static const TQUMethod slot_20 = {"paste", 0, 0 };
    static const TQUParameter param_slot_21[] = {
	{ "b", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_21 = {"setDragEnabled", 1, param_slot_21 };
    static const TQUMethod slot_22 = {"clipboardChanged", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "setText(const TQString&)", &slot_0, TQMetaData::Public },
	{ "selectAll()", &slot_1, TQMetaData::Public },
	{ "deselect()", &slot_2, TQMetaData::Public },
	{ "clearValidator()", &slot_3, TQMetaData::Public },
	{ "insert(const TQString&)", &slot_4, TQMetaData::Public },
	{ "clear()", &slot_5, TQMetaData::Public },
	{ "undo()", &slot_6, TQMetaData::Public },
	{ "redo()", &slot_7, TQMetaData::Public },
	{ "setMaxLength(int)", &slot_8, TQMetaData::Public },
	{ "setFrame(bool)", &slot_9, TQMetaData::Public },
	{ "setEchoMode(EchoMode)", &slot_10, TQMetaData::Public },
	{ "setReadOnly(bool)", &slot_11, TQMetaData::Public },
	{ "setValidator(const TQValidator*)", &slot_12, TQMetaData::Public },
	{ "setFont(const TQFont&)", &slot_13, TQMetaData::Public },
	{ "setPalette(const TQPalette&)", &slot_14, TQMetaData::Public },
	{ "setSelection(int,int)", &slot_15, TQMetaData::Public },
	{ "setCursorPosition(int)", &slot_16, TQMetaData::Public },
	{ "setAlignment(int)", &slot_17, TQMetaData::Public },
	{ "cut()", &slot_18, TQMetaData::Public },
	{ "copy()", &slot_19, TQMetaData::Public },
	{ "paste()", &slot_20, TQMetaData::Public },
	{ "setDragEnabled(bool)", &slot_21, TQMetaData::Public },
	{ "clipboardChanged()", &slot_22, TQMetaData::Private }
    };
    static const TQUParameter param_signal_0[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod signal_0 = {"textChanged", 1, param_signal_0 };
    static const TQUMethod signal_1 = {"returnPressed", 0, 0 };
    static const TQUMethod signal_2 = {"lostFocus", 0, 0 };
    static const TQUMethod signal_3 = {"selectionChanged", 0, 0 };
    static const TQMetaData signal_tbl[] = {
	{ "textChanged(const TQString&)", &signal_0, TQMetaData::Public },
	{ "returnPressed()", &signal_1, TQMetaData::Public },
	{ "lostFocus()", &signal_2, TQMetaData::Public },
	{ "selectionChanged()", &signal_3, TQMetaData::Public }
    };
#ifndef TQT_NO_PROPERTIES
    static const TQMetaProperty props_tbl[19] = {
 	{ "TQString","text", 0x3000103, &TQLineEdit::metaObj, 0, -1 },
	{ "int","maxLength", 0x10000103, &TQLineEdit::metaObj, 0, -1 },
	{ "bool","frame", 0x12000103, &TQLineEdit::metaObj, 0, -1 },
	{ "EchoMode","echoMode", 0x0107, &TQLineEdit::metaObj, &enum_tbl[0], -1 },
	{ "TQString","displayText", 0x3000001, &TQLineEdit::metaObj, 0, -1 },
	{ "int","cursorPosition", 0x10000103, &TQLineEdit::metaObj, 0, -1 },
	{ "Alignment","alignment", 0x010f, &TQLineEdit::metaObj, 0, -1 },
	{ "bool","edited", 0x12001103, &TQLineEdit::metaObj, 0, -1 },
	{ "bool","modified", 0x12000001, &TQLineEdit::metaObj, 0, -1 },
	{ "bool","hasMarkedText", 0x12001001, &TQLineEdit::metaObj, 0, -1 },
	{ "bool","hasSelectedText", 0x12000001, &TQLineEdit::metaObj, 0, -1 },
	{ "TQString","markedText", 0x3001001, &TQLineEdit::metaObj, 0, -1 },
	{ "TQString","selectedText", 0x3000001, &TQLineEdit::metaObj, 0, -1 },
	{ "bool","dragEnabled", 0x12000103, &TQLineEdit::metaObj, 0, -1 },
	{ "bool","readOnly", 0x12000103, &TQLineEdit::metaObj, 0, -1 },
	{ "bool","undoAvailable", 0x12000001, &TQLineEdit::metaObj, 0, -1 },
	{ "bool","redoAvailable", 0x12000001, &TQLineEdit::metaObj, 0, -1 },
	{ "TQString","inputMask", 0x3000103, &TQLineEdit::metaObj, 0, -1 },
	{ "bool","acceptableInput", 0x12000001, &TQLineEdit::metaObj, 0, -1 }
    };
#endif // TQT_NO_PROPERTIES
    metaObj = TQMetaObject::new_metaobject(
	"TQLineEdit", parentObject,
	slot_tbl, 23,
	signal_tbl, 4,
#ifndef TQT_NO_PROPERTIES
	props_tbl, 19,
	enum_tbl, 1,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQLineEdit.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

// TQ_SIGNAL textChanged
void TQLineEdit::textChanged( const TQString& t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 0, t0 );
}

// TQ_SIGNAL returnPressed
void TQLineEdit::returnPressed()
{
    activate_signal( staticMetaObject()->signalOffset() + 1 );
}

// TQ_SIGNAL lostFocus
void TQLineEdit::lostFocus()
{
    activate_signal( staticMetaObject()->signalOffset() + 2 );
}

// TQ_SIGNAL selectionChanged
void TQLineEdit::selectionChanged()
{
    activate_signal( staticMetaObject()->signalOffset() + 3 );
}

bool TQLineEdit::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: setText((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 1: selectAll(); break;
    case 2: deselect(); break;
    case 3: clearValidator(); break;
    case 4: insert((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 5: clear(); break;
    case 6: undo(); break;
    case 7: redo(); break;
    case 8: setMaxLength((int)static_QUType_int.get(_o+1)); break;
    case 9: setFrame((bool)static_QUType_bool.get(_o+1)); break;
    case 10: setEchoMode((EchoMode)static_QUType_enum.get(_o+1)); break;
    case 11: setReadOnly((bool)static_QUType_bool.get(_o+1)); break;
    case 12: setValidator((const TQValidator*)static_QUType_ptr.get(_o+1)); break;
    case 13: setFont((const TQFont&)*((const TQFont*)static_QUType_ptr.get(_o+1))); break;
    case 14: setPalette((const TQPalette&)*((const TQPalette*)static_QUType_ptr.get(_o+1))); break;
    case 15: setSelection((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
    case 16: setCursorPosition((int)static_QUType_int.get(_o+1)); break;
    case 17: setAlignment((int)static_QUType_int.get(_o+1)); break;
    case 18: cut(); break;
    case 19: copy(); break;
    case 20: paste(); break;
    case 21: setDragEnabled((bool)static_QUType_bool.get(_o+1)); break;
    case 22: clipboardChanged(); break;
    default:
	return TQFrame::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQLineEdit::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: textChanged((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 1: returnPressed(); break;
    case 2: lostFocus(); break;
    case 3: selectionChanged(); break;
    default:
	return TQFrame::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

bool TQLineEdit::tqt_property( int id, int f, TQVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 0: setText(v->asString()); break;
	case 1: *v = TQVariant( this->text() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 1: switch( f ) {
	case 0: setMaxLength(v->asInt()); break;
	case 1: *v = TQVariant( this->maxLength() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 2: switch( f ) {
	case 0: setFrame(v->asBool()); break;
	case 1: *v = TQVariant( this->frame() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 3: switch( f ) {
	case 0: setEchoMode((EchoMode&)v->asInt()); break;
	case 1: *v = TQVariant( (int)this->echoMode() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 4: switch( f ) {
	case 1: *v = TQVariant( this->displayText() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 5: switch( f ) {
	case 0: setCursorPosition(v->asInt()); break;
	case 1: *v = TQVariant( this->cursorPosition() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 6: switch( f ) {
	case 0: setAlignment(v->asInt()); break;
	case 1: *v = TQVariant( (int)this->alignment() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 7: switch( f ) {
	case 0: setEdited(v->asBool()); break;
	case 1: *v = TQVariant( this->edited() ); break;
	case 4: case 5: break;
	default: return false;
    } break;
    case 8: switch( f ) {
	case 1: *v = TQVariant( this->isModified() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 9: switch( f ) {
	case 1: *v = TQVariant( this->hasMarkedText() ); break;
	case 4: case 5: break;
	default: return false;
    } break;
    case 10: switch( f ) {
	case 1: *v = TQVariant( this->hasSelectedText() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 11: switch( f ) {
	case 1: *v = TQVariant( this->markedText() ); break;
	case 4: case 5: break;
	default: return false;
    } break;
    case 12: switch( f ) {
	case 1: *v = TQVariant( this->selectedText() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 13: switch( f ) {
	case 0: setDragEnabled(v->asBool()); break;
	case 1: *v = TQVariant( this->dragEnabled() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 14: switch( f ) {
	case 0: setReadOnly(v->asBool()); break;
	case 1: *v = TQVariant( this->isReadOnly() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 15: switch( f ) {
	case 1: *v = TQVariant( this->isUndoAvailable() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 16: switch( f ) {
	case 1: *v = TQVariant( this->isRedoAvailable() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 17: switch( f ) {
	case 0: setInputMask(v->asString()); break;
	case 1: *v = TQVariant( this->inputMask() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    case 18: switch( f ) {
	case 1: *v = TQVariant( this->hasAcceptableInput() ); break;
	case 3: case 4: case 5: break;
	default: return false;
    } break;
    default:
	return TQFrame::tqt_property( id, f, v );
    }
    return true;
}

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