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

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

#include "kcontroladdeditbase.h"

#include <ntqvariant.h>
#include <klineedit.h>
#include <kpushbutton.h>
#include <kurlrequester.h>
#include <knuminput.h>
#include <tdelistview.h>
#include <kcombobox.h>
#include <ntqpushbutton.h>
#include <ntqwidget.h>
#include <ntqframe.h>
#include <ntqlabel.h>
#include <ntqlineedit.h>
#include <ntqtextedit.h>
#include <ntqcombobox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqimage.h>
#include <ntqpixmap.h>

static const char* const editbase_image0_data[] = { 
"125 15 22 1",
"n c #e6e2ff",
"m c #e6e6ff",
"j c #e6ffe6",
"o c #eee6ff",
"p c #eeeaff",
"r c #eeeeff",
"k c #eeffee",
"q c #f6eeff",
"s c #f6f2ff",
"t c #f6f6ff",
"l c #f6fff6",
"# c #ffe2e6",
"a c #ffe6e6",
". c #ffe6ee",
"b c #ffeaee",
"c c #ffeeee",
"d c #ffeef6",
"e c #fff2f6",
"f c #fff6f6",
"g c #fff6ff",
"h c #fffaff",
"i c #ffffff",
".#.#.a.a.a.a..bab.b.b.bbbbbbbbcbdbcbdbdcdcdcdcdcedecededeeeeeeeeeefegegegfgfgfgfgfhfhghghghhhhhhhhhhihihihiiiiiiiiiiiiiiiiiii",
"jjjjjkjjjkjkjkjkjkjkjkjkkkkkkkkkkkkkkkkkklklklklklklklklllkllllllllllllllilllilililililililiiiliiiiiiiiiiiiiiiiiiiiiiiiiiiiii",
"mnonomomomomompopmpopoppppppppqprpqpqpqrqrqrqrqrsrsqsqsqssssssssssgstsgsgtgtgtgtgthghthghghhhhhhhhhhihihihiiiiiiiiiiiiiiiiiii",
"#a#a#a#.#.a.a.a.a.abab.babbbbbbbbbbcbcbdbcbdcdcdcdcdcececedeeeeeeeeeefefefegegfgfgfgfgfhfhghfhghhhhhhhhihihihihiiiiiiiiiiiiii",
"kjkjkjkjkjkjkkkjkkkkkkkkkkkkkkkklkkklklklklklklklllkllllllllllllllllililililililililiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii",
"nmnmnonmnomomomomompmpmpopppppppppprprprpqpqrqrqrqrqrsrsqsrsssssssssststsgstsgtgtgtgtgthththghthhhhhhhhihihihihiiiiiiiiiiiiii",
"a#.#.a.a.a.a.ab.bab.b.bbbbbbbbdbcbdbdbdcdcdcdcdcecedededeeeeeeeeeegefegegfgfgfgfgfhghfhghghhhhhhhhhhihihihiiiiiiiiiiiiiiiiiii",
"jjjjjjjkjkjkjkjkjkjkjkkkjkkkkkkkkkkkkkklkkklklklklklklklkllllllllllllllllllilililililililiiiliiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii",
"ononomomomomoopmpopopopppppppprpqprpqpqrqrqrqrqrsqsrsqsqsssssssssstsgsgsgtgtgtgtgththghghghhhhhhhhhhihihihiiiiiiiiiiiiiiiiiii",
"#a#a#.#a#.a.a.a.a.ababab.bbbbbbbbbbcbcbcbdbdcdcdcdcdcecedeceeeeeeeeeefefegefegfgfgfgfgfhfhfhghfhhhhhhhhihihihihiiiiiiiiiiiiii",
"jjkjkjkjkjkjkjkkkjkkkkkkkkkkkklkkklklklklklklklklkllllllllllllllllilllililililililiiiliiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii",
"nmnmnmnonomomomomompmpopmpppppppppprprpqprpqrqrqrqrqrsrsrsqsssssssssstststsgsgtgtgtgtgththghthghhhhhhhhihihihihiiiiiiiiiiiiii",
".#.#.a.a.a.a..bab.b.b.bbbbbbbbcbdbcbdbdcdcdcdcdcedecededeeeeeeeeeefegegegfgfgfgfgfhfhghghghhhhhhhhhhihihihiiiiiiiiiiiiiiiiiii",
"jjjjjkjjjkjkjkjkjkjkjkjkkkkkkkkkkkkkkkkkklklklklklklklklllkllllllllllllllilllilililililililiiiliiiiiiiiiiiiiiiiiiiiiiiiiiiiii",
"mnonomomomomompopmpopoppppppppqprpqpqpqrqrqrqrqrsrsqsqsqssssssssssgstsgsgtgtgtgtgthghthghghhhhhhhhhhihihihiiiiiiiiiiiiiiiiiii"};


/*
 *  Constructs a KControlAddEditBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qwizard will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qwizard.
 */
KControlAddEditBase::KControlAddEditBase( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : KWizard( parent, name, modal, fl ),
      editbase_image0( (const char **) editbase_image0_data )
{
    if ( !name )
	setName( "KControlAddEditBase" );

    _pageQuestion = new TQWidget( this, "_pageQuestion" );
    _pageQuestionLayout = new TQHBoxLayout( _pageQuestion, 0, 6, "_pageQuestionLayout"); 

    frame3 = new TQFrame( _pageQuestion, "frame3" );
    frame3->setMinimumSize( TQSize( 125, 0 ) );
    frame3->setMaximumSize( TQSize( 125, 32767 ) );
    frame3->setPaletteBackgroundPixmap( editbase_image0 );
    frame3->setFrameShape( TQFrame::Box );
    frame3->setFrameShadow( TQFrame::Plain );
    frame3Layout = new TQVBoxLayout( frame3, 11, 6, "frame3Layout"); 

    _questionPreview = new TQLabel( frame3, "_questionPreview" );
    _questionPreview->setMinimumSize( TQSize( 100, 100 ) );
    _questionPreview->setMaximumSize( TQSize( 100, 100 ) );
    _questionPreview->setPaletteBackgroundColor( TQColor( 255, 255, 255 ) );
    _questionPreview->setFrameShape( TQLabel::Box );
    _questionPreview->setFrameShadow( TQLabel::Plain );
    _questionPreview->setScaledContents( true );
    frame3Layout->addWidget( _questionPreview );
    spacer1 = new TQSpacerItem( 20, 21, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    frame3Layout->addItem( spacer1 );

    textLabel1 = new TQLabel( frame3, "textLabel1" );
    frame3Layout->addWidget( textLabel1 );
    spacer2 = new TQSpacerItem( 20, 41, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    frame3Layout->addItem( spacer2 );
    _pageQuestionLayout->addWidget( frame3 );

    frame5 = new TQFrame( _pageQuestion, "frame5" );
    frame5->setFrameShape( TQFrame::Box );
    frame5->setFrameShadow( TQFrame::Sunken );
    frame5Layout = new TQGridLayout( frame5, 1, 1, 11, 6, "frame5Layout"); 

    textLabel2 = new TQLabel( frame5, "textLabel2" );
    textLabel2->setAlignment( int( TQLabel::AlignTop | TQLabel::AlignRight ) );

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

    textLabel4 = new TQLabel( frame5, "textLabel4" );
    textLabel4->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    frame5Layout->addWidget( textLabel4, 2, 0 );

    textLabel3 = new TQLabel( frame5, "textLabel3" );
    textLabel3->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    frame5Layout->addWidget( textLabel3, 1, 0 );

    _questionPicture = new KURLRequester( frame5, "_questionPicture" );

    frame5Layout->addWidget( _questionPicture, 1, 1 );

    _questionType = new KComboBox( false, frame5, "_questionType" );

    frame5Layout->addWidget( _questionType, 2, 1 );

    textLabel5 = new TQLabel( frame5, "textLabel5" );
    textLabel5->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    frame5Layout->addWidget( textLabel5, 3, 0 );

    textLabel6 = new TQLabel( frame5, "textLabel6" );
    textLabel6->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    frame5Layout->addWidget( textLabel6, 4, 0 );

    textLabel7 = new TQLabel( frame5, "textLabel7" );
    textLabel7->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    frame5Layout->addWidget( textLabel7, 5, 0 );

    _questionTip = new TQLineEdit( frame5, "_questionTip" );

    frame5Layout->addWidget( _questionTip, 5, 1 );

    textLabel8 = new TQLabel( frame5, "textLabel8" );
    textLabel8->setAlignment( int( TQLabel::AlignTop | TQLabel::AlignRight ) );

    frame5Layout->addWidget( textLabel8, 6, 0 );

    _questionText = new TQTextEdit( frame5, "_questionText" );

    frame5Layout->addWidget( _questionText, 0, 1 );

    _questionExplain = new TQTextEdit( frame5, "_questionExplain" );

    frame5Layout->addWidget( _questionExplain, 6, 1 );

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

    _questionTime = new KIntNumInput( frame5, "_questionTime" );
    layout1->addWidget( _questionTime );
    spacer4 = new TQSpacerItem( 81, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout1->addItem( spacer4 );

    frame5Layout->addLayout( layout1, 4, 1 );

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

    _questionPoint = new KIntNumInput( frame5, "_questionPoint" );
    layout2->addWidget( _questionPoint );
    spacer3 = new TQSpacerItem( 131, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout2->addItem( spacer3 );

    frame5Layout->addLayout( layout2, 3, 1 );
    _pageQuestionLayout->addWidget( frame5 );
    addPage( _pageQuestion, TQString("") );

    _pageAnswer = new TQWidget( this, "_pageAnswer" );
    _pageAnswerLayout = new TQHBoxLayout( _pageAnswer, 0, 6, "_pageAnswerLayout"); 

    frame3_2 = new TQFrame( _pageAnswer, "frame3_2" );
    frame3_2->setMinimumSize( TQSize( 125, 0 ) );
    frame3_2->setMaximumSize( TQSize( 125, 32767 ) );
    frame3_2->setPaletteBackgroundPixmap( editbase_image0 );
    frame3_2->setFrameShape( TQFrame::Box );
    frame3_2->setFrameShadow( TQFrame::Plain );
    frame3_2Layout = new TQVBoxLayout( frame3_2, 11, 6, "frame3_2Layout"); 

    _answerPreview = new TQLabel( frame3_2, "_answerPreview" );
    _answerPreview->setMinimumSize( TQSize( 100, 100 ) );
    _answerPreview->setMaximumSize( TQSize( 100, 100 ) );
    _answerPreview->setPaletteBackgroundColor( TQColor( 255, 255, 255 ) );
    _answerPreview->setFrameShape( TQLabel::Box );
    _answerPreview->setFrameShadow( TQLabel::Plain );
    _answerPreview->setScaledContents( true );
    frame3_2Layout->addWidget( _answerPreview );
    spacer1_2 = new TQSpacerItem( 20, 21, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    frame3_2Layout->addItem( spacer1_2 );

    textLabel2_2 = new TQLabel( frame3_2, "textLabel2_2" );
    frame3_2Layout->addWidget( textLabel2_2 );
    spacer2_2 = new TQSpacerItem( 20, 41, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    frame3_2Layout->addItem( spacer2_2 );
    _pageAnswerLayout->addWidget( frame3_2 );

    frame6 = new TQFrame( _pageAnswer, "frame6" );
    frame6->setFrameShape( TQFrame::Box );
    frame6->setFrameShadow( TQFrame::Sunken );
    frame6Layout = new TQVBoxLayout( frame6, 11, 6, "frame6Layout"); 

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

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

    _answerPoints = new KIntNumInput( frame6, "_answerPoints" );
    layout3->addWidget( _answerPoints );
    spacer9 = new TQSpacerItem( 31, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout3->addItem( spacer9 );

    layout11->addLayout( layout3, 2, 1 );

    _answerText = new TQTextEdit( frame6, "_answerText" );

    layout11->addWidget( _answerText, 0, 1 );

    textLabel1_2 = new TQLabel( frame6, "textLabel1_2" );
    textLabel1_2->setAlignment( int( TQLabel::AlignTop | TQLabel::AlignRight ) );

    layout11->addWidget( textLabel1_2, 0, 0 );

    textLabel2_3 = new TQLabel( frame6, "textLabel2_3" );
    textLabel2_3->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    layout11->addWidget( textLabel2_3, 1, 0 );

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

    _answerValue = new TQComboBox( false, frame6, "_answerValue" );
    layout7->addWidget( _answerValue );

    layout11->addLayout( layout7, 1, 1 );

    textLabel3_2 = new TQLabel( frame6, "textLabel3_2" );
    textLabel3_2->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    layout11->addWidget( textLabel3_2, 2, 0 );
    frame6Layout->addLayout( layout11 );

    line2 = new TQFrame( frame6, "line2" );
    line2->setFrameShape( TQFrame::HLine );
    line2->setFrameShadow( TQFrame::Sunken );
    line2->setFrameShape( TQFrame::HLine );
    frame6Layout->addWidget( line2 );

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

    _listAnswers = new TDEListView( frame6, "_listAnswers" );
    _listAnswers->addColumn( tr2i18n( "Answer" ) );
    _listAnswers->addColumn( tr2i18n( "Value" ) );
    _listAnswers->addColumn( tr2i18n( "Points" ) );
    _listAnswers->setAllColumnsShowFocus( true );
    layout17->addWidget( _listAnswers );

    layout16 = new TQVBoxLayout( 0, 0, 6, "layout16"); 

    _buttonInsert = new TQPushButton( frame6, "_buttonInsert" );
    _buttonInsert->setEnabled( false );
    layout16->addWidget( _buttonInsert );

    _buttonRemove = new TQPushButton( frame6, "_buttonRemove" );
    _buttonRemove->setEnabled( false );
    layout16->addWidget( _buttonRemove );
    spacer11 = new TQSpacerItem( 20, 10, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    layout16->addItem( spacer11 );

    _buttonUp = new TQPushButton( frame6, "_buttonUp" );
    _buttonUp->setEnabled( false );
    layout16->addWidget( _buttonUp );

    _buttonDown = new TQPushButton( frame6, "_buttonDown" );
    _buttonDown->setEnabled( false );
    layout16->addWidget( _buttonDown );
    spacer12 = new TQSpacerItem( 20, 21, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout16->addItem( spacer12 );
    layout17->addLayout( layout16 );
    frame6Layout->addLayout( layout17 );
    _pageAnswerLayout->addWidget( frame6 );
    addPage( _pageAnswer, TQString("") );
    languageChange();
    resize( TQSize(600, 480).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( _questionText, TQ_SIGNAL( textChanged() ), this, TQ_SLOT( slotDataChanged() ) );
    connect( _questionPicture, TQ_SIGNAL( urlSelected(const TQString&) ), this, TQ_SLOT( slotPreviewImage(const TQString&) ) );
    connect( _questionType, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( slotQuestionTypeChanged(int) ) );
    connect( _buttonInsert, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotAddAnswer() ) );
    connect( _buttonRemove, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotRemoveAnswer() ) );
    connect( _buttonUp, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotMoveUpAnswer() ) );
    connect( _buttonDown, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotMoveDownAnswer() ) );
    connect( _listAnswers, TQ_SIGNAL( selectionChanged(TQListViewItem*) ), this, TQ_SLOT( slotAnswerSelected(TQListViewItem*) ) );
    connect( _answerText, TQ_SIGNAL( textChanged() ), this, TQ_SLOT( slotDataChanged() ) );

    // tab order
    setTabOrder( _answerText, _answerValue );
    setTabOrder( _answerValue, _answerPoints );
    setTabOrder( _answerPoints, _listAnswers );
    setTabOrder( _listAnswers, _buttonInsert );
    setTabOrder( _buttonInsert, _buttonRemove );
    setTabOrder( _buttonRemove, _buttonUp );
    setTabOrder( _buttonUp, _buttonDown );
    setTabOrder( _buttonDown, _questionText );
    setTabOrder( _questionText, _questionPicture );
    setTabOrder( _questionPicture, _questionType );
    setTabOrder( _questionType, _questionPoint );
    setTabOrder( _questionPoint, _questionTime );
    setTabOrder( _questionTime, _questionTip );
    setTabOrder( _questionTip, _questionExplain );

    // buddies
    textLabel2->setBuddy( _questionText );
    textLabel4->setBuddy( _questionType );
    textLabel3->setBuddy( _questionPicture );
    textLabel5->setBuddy( _questionPoint );
    textLabel6->setBuddy( _questionTime );
    textLabel7->setBuddy( _questionTip );
    textLabel8->setBuddy( _questionExplain );
    textLabel1_2->setBuddy( _answerText );
    textLabel2_3->setBuddy( _answerValue );
    textLabel3_2->setBuddy( _answerPoints );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KControlAddEditBase::languageChange()
{
    _questionPreview->setText( TQString::null );
    textLabel1->setText( tr2i18n( "<span style=\"color:black\">\n"
"  <p><b>Question</b></p>\n"
"<hr>\n"
"  <p>Only the question and type is required.</p>\n"
"</span>" ) );
    textLabel2->setText( tr2i18n( "&Question:" ) );
    textLabel4->setText( tr2i18n( "&Type:" ) );
    textLabel3->setText( tr2i18n( "&Picture:" ) );
    _questionType->clear();
    _questionType->insertItem( tr2i18n( "Test" ) );
    _questionType->insertItem( tr2i18n( "Test with Question Points" ) );
    _questionType->insertItem( tr2i18n( "Test with Answers Points" ) );
    textLabel5->setText( tr2i18n( "P&oint:" ) );
    textLabel6->setText( tr2i18n( "Ti&me:" ) );
    textLabel7->setText( tr2i18n( "T&ip:" ) );
    textLabel8->setText( tr2i18n( "&Explain:" ) );
    setTitle( _pageQuestion, tr2i18n( "Question" ) );
    _answerPreview->setText( TQString::null );
    textLabel2_2->setText( tr2i18n( "<span style=\"color:black\">\n"
"  <p><b>Answers</b></p>\n"
"<hr>\n"
"  <p>Only the answer and value is required.</p>\n"
"</span>" ) );
    textLabel1_2->setText( tr2i18n( "&Answer:" ) );
    textLabel2_3->setText( tr2i18n( "&Value:" ) );
    _answerValue->clear();
    _answerValue->insertItem( tr2i18n( "False" ) );
    _answerValue->insertItem( tr2i18n( "True" ) );
    textLabel3_2->setText( tr2i18n( "&Points:" ) );
    _listAnswers->header()->setLabel( 0, tr2i18n( "Answer" ) );
    _listAnswers->header()->setLabel( 1, tr2i18n( "Value" ) );
    _listAnswers->header()->setLabel( 2, tr2i18n( "Points" ) );
    _buttonInsert->setText( tr2i18n( "&Add" ) );
    _buttonRemove->setText( tr2i18n( "&Remove" ) );
    _buttonUp->setText( tr2i18n( "Move &Up" ) );
    _buttonDown->setText( tr2i18n( "Move &Down" ) );
    setTitle( _pageAnswer, tr2i18n( "Answer" ) );
}

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

TQMetaObject *KControlAddEditBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KControlAddEditBase( "KControlAddEditBase", &KControlAddEditBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* KControlAddEditBase::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 = KWizard::staticMetaObject();
    static const TQUMethod slot_0 = {"languageChange", 0, 0 };
    static const TQUMethod slot_1 = {"slotAddAnswer", 0, 0 };
    static const TQUMethod slot_2 = {"slotRemoveAnswer", 0, 0 };
    static const TQUMethod slot_3 = {"slotMoveUpAnswer", 0, 0 };
    static const TQUMethod slot_4 = {"slotMoveDownAnswer", 0, 0 };
    static const TQUParameter param_slot_5[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"slotPreviewImage", 1, param_slot_5 };
    static const TQUParameter param_slot_6[] = {
	{ "index", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_6 = {"slotQuestionTypeChanged", 1, param_slot_6 };
    static const TQUMethod slot_7 = {"slotDataChanged", 0, 0 };
    static const TQUParameter param_slot_8[] = {
	{ 0, &static_QUType_ptr, "TQListViewItem", TQUParameter::In }
    };
    static const TQUMethod slot_8 = {"slotAnswerSelected", 1, param_slot_8 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected },
	{ "slotAddAnswer()", &slot_1, TQMetaData::Private },
	{ "slotRemoveAnswer()", &slot_2, TQMetaData::Private },
	{ "slotMoveUpAnswer()", &slot_3, TQMetaData::Private },
	{ "slotMoveDownAnswer()", &slot_4, TQMetaData::Private },
	{ "slotPreviewImage(const TQString&)", &slot_5, TQMetaData::Private },
	{ "slotQuestionTypeChanged(int)", &slot_6, TQMetaData::Private },
	{ "slotDataChanged()", &slot_7, TQMetaData::Private },
	{ "slotAnswerSelected(TQListViewItem*)", &slot_8, TQMetaData::Private }
    };
    metaObj = TQMetaObject::new_metaobject(
	"KControlAddEditBase", parentObject,
	slot_tbl, 9,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_KControlAddEditBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool KControlAddEditBase::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: languageChange(); break;
    case 1: slotAddAnswer(); break;
    case 2: slotRemoveAnswer(); break;
    case 3: slotMoveUpAnswer(); break;
    case 4: slotMoveDownAnswer(); break;
    case 5: slotPreviewImage((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 6: slotQuestionTypeChanged((int)static_QUType_int.get(_o+1)); break;
    case 7: slotDataChanged(); break;
    case 8: slotAnswerSelected((TQListViewItem*)static_QUType_ptr.get(_o+1)); break;
    default:
	return KWizard::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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