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

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

#include "FktDlgData.h"

#include <ntqvariant.h>
#include <tdelistview.h>
#include <ntqpushbutton.h>
#include <ntqframe.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a FktDlgData 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.
 */
FktDlgData::FktDlgData( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "FktDlgData" );
    setMinimumSize( TQSize( 350, 250 ) );
    FktDlgDataLayout = new TQGridLayout( this, 1, 1, 11, 6, "FktDlgDataLayout"); 

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

    pushButtonHelp = new TQPushButton( this, "pushButtonHelp" );
    layout3->addWidget( pushButtonHelp );
    spacer6 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout3->addItem( spacer6 );

    PushButtonOk = new TQPushButton( this, "PushButtonOk" );
    layout3->addWidget( PushButtonOk );

    pushButtonCancel = new TQPushButton( this, "pushButtonCancel" );
    layout3->addWidget( pushButtonCancel );

    FktDlgDataLayout->addLayout( layout3, 1, 0 );

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

    lb_fktliste = new TDEListView( frame5, "lb_fktliste" );
    lb_fktliste->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 2, 0, lb_fktliste->sizePolicy().hasHeightForWidth() ) );
    lb_fktliste->setFrameShape( TDEListView::StyledPanel );
    lb_fktliste->setFrameShadow( TDEListView::Sunken );

    frame5Layout->addMultiCellWidget( lb_fktliste, 0, 8, 0, 0 );

    PushButtonDel = new TQPushButton( frame5, "PushButtonDel" );
    PushButtonDel->setEnabled( false );
    PushButtonDel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 1, 0, PushButtonDel->sizePolicy().hasHeightForWidth() ) );

    frame5Layout->addWidget( PushButtonDel, 4, 1 );

    PushButtonEdit = new TQPushButton( frame5, "PushButtonEdit" );
    PushButtonEdit->setEnabled( false );
    PushButtonEdit->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 1, 0, PushButtonEdit->sizePolicy().hasHeightForWidth() ) );

    frame5Layout->addWidget( PushButtonEdit, 3, 1 );

    PushButtonNewFunction = new TQPushButton( frame5, "PushButtonNewFunction" );
    PushButtonNewFunction->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 1, 0, PushButtonNewFunction->sizePolicy().hasHeightForWidth() ) );
    PushButtonNewFunction->setDefault( true );

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

    PushButtonNewParametric = new TQPushButton( frame5, "PushButtonNewParametric" );
    PushButtonNewParametric->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 1, 0, PushButtonNewParametric->sizePolicy().hasHeightForWidth() ) );

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

    PushButtonNewPolar = new TQPushButton( frame5, "PushButtonNewPolar" );
    PushButtonNewPolar->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 1, 0, PushButtonNewPolar->sizePolicy().hasHeightForWidth() ) );

    frame5Layout->addWidget( PushButtonNewPolar, 2, 1 );
    Spacer1 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    frame5Layout->addItem( Spacer1, 8, 1 );

    cmdCopyFunction = new TQPushButton( frame5, "cmdCopyFunction" );
    cmdCopyFunction->setEnabled( false );
    cmdCopyFunction->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 1, 0, cmdCopyFunction->sizePolicy().hasHeightForWidth() ) );

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

    cmdMoveFunction = new TQPushButton( frame5, "cmdMoveFunction" );
    cmdMoveFunction->setEnabled( false );
    cmdMoveFunction->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 1, 0, cmdMoveFunction->sizePolicy().hasHeightForWidth() ) );

    frame5Layout->addWidget( cmdMoveFunction, 7, 1 );
    spacer4 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    frame5Layout->addItem( spacer4, 5, 1 );

    FktDlgDataLayout->addWidget( frame5, 0, 0 );
    languageChange();
    resize( TQSize(462, 355).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( PushButtonDel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotDelete() ) );
    connect( lb_fktliste, TQ_SIGNAL( selectionChanged() ), this, TQ_SLOT( slotHasSelection() ) );
    connect( PushButtonOk, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) );
    connect( pushButtonCancel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );
    connect( PushButtonEdit, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotEdit() ) );
    connect( PushButtonNewFunction, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotNewFunction() ) );
    connect( PushButtonNewParametric, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotNewParametric() ) );
    connect( PushButtonNewPolar, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotNewPolar() ) );
    connect( pushButtonHelp, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotHelp() ) );

    // tab order
    setTabOrder( lb_fktliste, PushButtonNewFunction );
    setTabOrder( PushButtonNewFunction, PushButtonNewParametric );
    setTabOrder( PushButtonNewParametric, PushButtonNewPolar );
    setTabOrder( PushButtonNewPolar, PushButtonEdit );
    setTabOrder( PushButtonEdit, PushButtonDel );
    setTabOrder( PushButtonDel, PushButtonOk );
    setTabOrder( PushButtonOk, pushButtonCancel );
    setTabOrder( pushButtonCancel, pushButtonHelp );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void FktDlgData::languageChange()
{
    setCaption( tr2i18n( "Edit Plots" ) );
    pushButtonHelp->setText( tr2i18n( "&Help" ) );
    PushButtonOk->setText( tr2i18n( "&OK" ) );
    TQToolTip::add( PushButtonOk, tr2i18n( "apply the changes and close the dialog" ) );
    TQWhatsThis::add( PushButtonOk, tr2i18n( "Click here to apply your changes and close this dialog." ) );
    pushButtonCancel->setText( tr2i18n( "&Cancel" ) );
    TQToolTip::add( pushButtonCancel, tr2i18n( "cancel without any changes" ) );
    TQWhatsThis::add( pushButtonCancel, tr2i18n( "Click here to close the dialog without any changes." ) );
    TQToolTip::add( lb_fktliste, tr2i18n( "list of functions to be plotted" ) );
    TQWhatsThis::add( lb_fktliste, tr2i18n( "Here you see the list of all functions to be plotted. The checked functions are visible, the others are hidden. Click on a checkbox to show or hide the function." ) );
    PushButtonDel->setText( tr2i18n( "&Delete" ) );
    TQToolTip::add( PushButtonDel, tr2i18n( "delete the selected function" ) );
    TQWhatsThis::add( PushButtonDel, tr2i18n( "Click here to delete the selected function from the list." ) );
    PushButtonEdit->setText( tr2i18n( "&Edit..." ) );
    TQToolTip::add( PushButtonEdit, tr2i18n( "edit the selected function" ) );
    TQWhatsThis::add( PushButtonEdit, tr2i18n( "Click here to edit the selected function." ) );
    PushButtonNewFunction->setText( tr2i18n( "Ne&w Function Plot..." ) );
    TQToolTip::add( PushButtonNewFunction, tr2i18n( "define a new function" ) );
    TQWhatsThis::add( PushButtonNewFunction, tr2i18n( "Click here to define a new function. There are 3 types of function, explicit given functions, parametric plots and polar plots. Choose the appropriate type from the drop down list." ) );
    PushButtonNewParametric->setText( tr2i18n( "New &Parametric Plot..." ) );
    TQToolTip::add( PushButtonNewParametric, tr2i18n( "define a new function" ) );
    TQWhatsThis::add( PushButtonNewParametric, tr2i18n( "Click here to define a new function. There are 3 types of function, explicit given functions, parametric plots and polar plots. Choose the appropriate type from the drop down list." ) );
    PushButtonNewPolar->setText( tr2i18n( "&New Polar Plot..." ) );
    TQToolTip::add( PushButtonNewPolar, tr2i18n( "define a new function" ) );
    TQWhatsThis::add( PushButtonNewPolar, tr2i18n( "Click here to define a new function. There are 3 types of function, explicit given functions, parametric plots and polar plots. Choose the appropriate type from the drop down list." ) );
    cmdCopyFunction->setText( tr2i18n( "Cop&y Function..." ) );
    TQToolTip::add( cmdCopyFunction, tr2i18n( "define a new function" ) );
    TQWhatsThis::add( cmdCopyFunction, tr2i18n( "Click here to define a new function. There are 3 types of function, explicit given functions, parametric plots and polar plots. Choose the appropriate type from the drop down list." ) );
    cmdMoveFunction->setText( tr2i18n( "&Move Function..." ) );
    TQToolTip::add( cmdMoveFunction, tr2i18n( "define a new function" ) );
    TQWhatsThis::add( cmdMoveFunction, tr2i18n( "Click here to define a new function. There are 3 types of function, explicit given functions, parametric plots and polar plots. Choose the appropriate type from the drop down list." ) );
}

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

void FktDlgData::slotEdit()
{
    tqWarning( "FktDlgData::slotEdit(): Not implemented yet" );
}

void FktDlgData::slotHasSelection()
{
    tqWarning( "FktDlgData::slotHasSelection(): Not implemented yet" );
}

void FktDlgData::slotNewParametric()
{
    tqWarning( "FktDlgData::slotNewParametric(): Not implemented yet" );
}

void FktDlgData::slotNewPolar()
{
    tqWarning( "FktDlgData::slotNewPolar(): Not implemented yet" );
}

void FktDlgData::slotNewFunction()
{
    tqWarning( "FktDlgData::slotNewFunction(): Not implemented yet" );
}

void FktDlgData::slotHelp()
{
    tqWarning( "FktDlgData::slotHelp(): Not implemented yet" );
}

void FktDlgData::slotNewPrime()
{
    tqWarning( "FktDlgData::slotNewPrime(): Not implemented yet" );
}

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

TQMetaObject *FktDlgData::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_FktDlgData( "FktDlgData", &FktDlgData::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* FktDlgData::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 = {"slotDelete", 0, 0 };
    static const TQUMethod slot_1 = {"slotEdit", 0, 0 };
    static const TQUMethod slot_2 = {"slotHasSelection", 0, 0 };
    static const TQUMethod slot_3 = {"slotNewParametric", 0, 0 };
    static const TQUMethod slot_4 = {"slotNewPolar", 0, 0 };
    static const TQUMethod slot_5 = {"slotNewFunction", 0, 0 };
    static const TQUMethod slot_6 = {"slotNewPrime", 0, 0 };
    static const TQUMethod slot_7 = {"languageChange", 0, 0 };
    static const TQUMethod slot_8 = {"slotHelp", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "slotDelete()", &slot_0, TQMetaData::Public },
	{ "slotEdit()", &slot_1, TQMetaData::Public },
	{ "slotHasSelection()", &slot_2, TQMetaData::Public },
	{ "slotNewParametric()", &slot_3, TQMetaData::Public },
	{ "slotNewPolar()", &slot_4, TQMetaData::Public },
	{ "slotNewFunction()", &slot_5, TQMetaData::Public },
	{ "slotNewPrime()", &slot_6, TQMetaData::Public },
	{ "languageChange()", &slot_7, TQMetaData::Protected },
	{ "slotHelp()", &slot_8, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"FktDlgData", parentObject,
	slot_tbl, 9,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_FktDlgData.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool FktDlgData::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: slotDelete(); break;
    case 1: slotEdit(); break;
    case 2: slotHasSelection(); break;
    case 3: slotNewParametric(); break;
    case 4: slotNewPolar(); break;
    case 5: slotNewFunction(); break;
    case 6: slotNewPrime(); break;
    case 7: languageChange(); break;
    case 8: slotHelp(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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