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

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

#include "qparametereditor.h"

#include <ntqvariant.h>
#include <kpushbutton.h>
#include <tdelistbox.h>
#include <kcolorbutton.h>
#include <ntqpushbutton.h>
#include <ntqframe.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    frame3 = new TQFrame( this, "frame3" );
    frame3->setFrameShape( TQFrame::StyledPanel );
    frame3->setFrameShadow( TQFrame::Raised );
    frame3Layout = new TQGridLayout( frame3, 1, 1, 11, 6, "frame3Layout"); 

    cmdEdit = new KPushButton( frame3, "cmdEdit" );
    cmdEdit->setEnabled( false );

    frame3Layout->addWidget( cmdEdit, 1, 1 );

    list = new TDEListBox( frame3, "list" );

    frame3Layout->addMultiCellWidget( list, 0, 7, 0, 0 );

    cmdNew = new KPushButton( frame3, "cmdNew" );

    frame3Layout->addWidget( cmdNew, 0, 1 );

    cmdClose = new KPushButton( frame3, "cmdClose" );

    frame3Layout->addWidget( cmdClose, 7, 1 );

    cmdDelete = new KPushButton( frame3, "cmdDelete" );
    cmdDelete->setEnabled( false );

    frame3Layout->addWidget( cmdDelete, 2, 1 );
    spacer2 = new TQSpacerItem( 20, 80, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    frame3Layout->addItem( spacer2, 6, 1 );

    cmdExport = new KPushButton( frame3, "cmdExport" );
    cmdExport->setEnabled( true );

    frame3Layout->addWidget( cmdExport, 5, 1 );
    spacer2_2 = new TQSpacerItem( 20, 21, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    frame3Layout->addItem( spacer2_2, 3, 1 );

    cmdImport = new KPushButton( frame3, "cmdImport" );
    cmdImport->setEnabled( true );

    frame3Layout->addWidget( cmdImport, 4, 1 );

    QParameterEditorLayout->addWidget( frame3, 0, 0 );
    languageChange();
    resize( TQSize(395, 339).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void QParameterEditor::languageChange()
{
    setCaption( tr2i18n( "Parameter Editor" ) );
    cmdEdit->setText( tr2i18n( "&Change Value..." ) );
    TQToolTip::add( cmdEdit, tr2i18n( "Change the value of a user-defined constant" ) );
    TQWhatsThis::add( cmdEdit, tr2i18n( "Click here to edit the value of the selected constant. Its name cannot be changed." ) );
    TQToolTip::add( list, tr2i18n( "list of parameter values" ) );
    TQWhatsThis::add( list, tr2i18n( "Here you see the list of all parameter values for the function." ) );
    cmdNew->setText( tr2i18n( "&New..." ) );
    TQToolTip::add( cmdNew, tr2i18n( "Add a new constant" ) );
    TQWhatsThis::add( cmdNew, tr2i18n( "Click this button to add a new constant." ) );
    cmdClose->setText( tr2i18n( "&Close" ) );
    TQToolTip::add( cmdClose, tr2i18n( "Close the dialog" ) );
    TQWhatsThis::add( cmdClose, tr2i18n( "Close the window and return to the function dialog." ) );
    cmdDelete->setText( tr2i18n( "&Delete" ) );
    TQToolTip::add( cmdDelete, tr2i18n( "delete selected constant" ) );
    TQWhatsThis::add( cmdDelete, tr2i18n( "Click here to delete the selected constant; it can only be removed if it is not currently used by a plot." ) );
    cmdExport->setText( tr2i18n( "&Export..." ) );
    TQToolTip::add( cmdExport, tr2i18n( "Export values to a textfile" ) );
    TQWhatsThis::add( cmdExport, tr2i18n( "Export values to a textfile. Every value in the parameter list will be written to one line in the file." ) );
    cmdImport->setText( tr2i18n( "&Import..." ) );
    TQToolTip::add( cmdImport, tr2i18n( "Import values from a textfile" ) );
    TQWhatsThis::add( cmdImport, tr2i18n( "Import values from a textfile. Every line in the file is parsed as a value or expression." ) );
}

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

TQMetaObject *QParameterEditor::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_QParameterEditor( "QParameterEditor", &QParameterEditor::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* QParameterEditor::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 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"QParameterEditor", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_QParameterEditor.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool QParameterEditor::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: languageChange(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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