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

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

#include "qminmax.h"

#include <ntqvariant.h>
#include <kpushbutton.h>
#include <klineedit.h>
#include <tdelistbox.h>
#include <ntqpushbutton.h>
#include <ntqframe.h>
#include <ntqlabel.h>
#include <ntqgroupbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    cmdFind = new KPushButton( this, "cmdFind" );
    cmdFind->setDefault( true );

    QMinMaxLayout->addWidget( cmdFind, 3, 0 );

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

    lblMin = new TQLabel( frame5, "lblMin" );
    lblMin->setAlignment( int( TQLabel::AlignCenter ) );

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

    lblMax = new TQLabel( frame5, "lblMax" );
    lblMax->setAlignment( int( TQLabel::AlignCenter ) );

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

    min = new KLineEdit( frame5, "min" );
    min->setEnabled( true );

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

    max = new KLineEdit( frame5, "max" );
    max->setEnabled( true );

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

    QMinMaxLayout->addMultiCellWidget( frame5, 0, 0, 0, 1 );

    groupBox2 = new TQGroupBox( this, "groupBox2" );
    groupBox2->setColumnLayout(0, TQt::Vertical );
    groupBox2->layout()->setSpacing( 6 );
    groupBox2->layout()->setMargin( 11 );
    groupBox2Layout = new TQGridLayout( groupBox2->layout() );
    groupBox2Layout->setAlignment( TQt::AlignTop );

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

    groupBox2Layout->addWidget( list, 0, 0 );

    QMinMaxLayout->addMultiCellWidget( groupBox2, 1, 1, 0, 1 );

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

    QMinMaxLayout->addWidget( cmdClose, 3, 1 );

    cmdParameter = new TQPushButton( this, "cmdParameter" );

    QMinMaxLayout->addMultiCellWidget( cmdParameter, 2, 2, 0, 1 );
    languageChange();
    resize( TQSize(301, 339).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void QMinMax::languageChange()
{
    setCaption( tr2i18n( "Find Minimum Point" ) );
    cmdFind->setText( tr2i18n( "&Find" ) );
    lblMin->setText( tr2i18n( "Search between the x-value:" ) );
    lblMax->setText( tr2i18n( "and:" ) );
    groupBox2->setTitle( tr2i18n( "Graph" ) );
    TQToolTip::add( list, tr2i18n( "The available functions you can search in" ) );
    TQWhatsThis::add( list, tr2i18n( "Here you can see all available functions you can use. Select one of them." ) );
    cmdClose->setText( tr2i18n( "&Close" ) );
    TQToolTip::add( cmdClose, tr2i18n( "close the dialog" ) );
    TQWhatsThis::add( cmdClose, tr2i18n( "Close the dialog and return to the main window." ) );
    cmdParameter->setText( tr2i18n( "Choose Parameter Value..." ) );
    TQToolTip::add( cmdParameter, tr2i18n( "select the parameter value you want to use" ) );
    TQWhatsThis::add( cmdParameter, tr2i18n( "If the function has any parameter values you must select it here." ) );
}

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

TQMetaObject *QMinMax::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_QMinMax( "QMinMax", &QMinMax::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* QMinMax::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(
	"QMinMax", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_QMinMax.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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