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

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

#include "statform.h"

#include <ntqvariant.h>
#include <klineedit.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    stdDevLabel = new TQLabel( this, "stdDevLabel" );

    statFormLayout->addWidget( stdDevLabel, 6, 0 );

    bitpixOUT = new KLineEdit( this, "bitpixOUT" );
    bitpixOUT->setReadOnly( true );

    statFormLayout->addWidget( bitpixOUT, 2, 1 );

    maxLabel = new TQLabel( this, "maxLabel" );

    statFormLayout->addWidget( maxLabel, 3, 0 );

    meanOUT = new KLineEdit( this, "meanOUT" );
    meanOUT->setReadOnly( true );

    statFormLayout->addWidget( meanOUT, 5, 1 );

    atMinLabel = new TQLabel( this, "atMinLabel" );

    statFormLayout->addWidget( atMinLabel, 4, 2 );

    bitPixLabel = new TQLabel( this, "bitPixLabel" );

    statFormLayout->addWidget( bitPixLabel, 2, 0 );

    minOUT = new KLineEdit( this, "minOUT" );
    minOUT->setReadOnly( true );

    statFormLayout->addWidget( minOUT, 4, 1 );

    heightLabel = new TQLabel( this, "heightLabel" );

    statFormLayout->addWidget( heightLabel, 1, 0 );

    widthOUT = new KLineEdit( this, "widthOUT" );
    widthOUT->setReadOnly( true );

    statFormLayout->addWidget( widthOUT, 0, 1 );

    meanLabel = new TQLabel( this, "meanLabel" );

    statFormLayout->addWidget( meanLabel, 5, 0 );

    heightOUT = new KLineEdit( this, "heightOUT" );
    heightOUT->setReadOnly( true );

    statFormLayout->addWidget( heightOUT, 1, 1 );

    atMaxLabel = new TQLabel( this, "atMaxLabel" );

    statFormLayout->addWidget( atMaxLabel, 3, 2 );

    widthLabel = new TQLabel( this, "widthLabel" );

    statFormLayout->addWidget( widthLabel, 0, 0 );

    atMaxOUT = new KLineEdit( this, "atMaxOUT" );
    atMaxOUT->setReadOnly( true );

    statFormLayout->addWidget( atMaxOUT, 3, 3 );

    maxOUT = new KLineEdit( this, "maxOUT" );
    maxOUT->setReadOnly( true );

    statFormLayout->addWidget( maxOUT, 3, 1 );

    atMinOUT = new KLineEdit( this, "atMinOUT" );
    atMinOUT->setReadOnly( true );

    statFormLayout->addWidget( atMinOUT, 4, 3 );

    minLabel = new TQLabel( this, "minLabel" );

    statFormLayout->addWidget( minLabel, 4, 0 );

    stddevOUT = new KLineEdit( this, "stddevOUT" );
    stddevOUT->setReadOnly( true );

    statFormLayout->addWidget( stddevOUT, 6, 1 );
    languageChange();
    resize( TQSize(261, 241).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( widthOUT, heightOUT );
    setTabOrder( heightOUT, bitpixOUT );
    setTabOrder( bitpixOUT, maxOUT );
    setTabOrder( maxOUT, atMaxOUT );
    setTabOrder( atMaxOUT, minOUT );
    setTabOrder( minOUT, atMinOUT );
    setTabOrder( atMinOUT, meanOUT );
    setTabOrder( meanOUT, stddevOUT );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void statForm::languageChange()
{
    setCaption( tr2i18n( "Statistics" ) );
    stdDevLabel->setText( tr2i18n( "Std. dev:" ) );
    maxLabel->setText( tr2i18n( "Max:" ) );
    atMinLabel->setText( tr2i18n( "@" ) );
    bitPixLabel->setText( tr2i18n( "Bitpix:" ) );
    heightLabel->setText( tr2i18n( "Height:" ) );
    meanLabel->setText( tr2i18n( "Mean:" ) );
    atMaxLabel->setText( tr2i18n( "@" ) );
    widthLabel->setText( tr2i18n( "Width:" ) );
    minLabel->setText( tr2i18n( "Min:" ) );
}

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

TQMetaObject *statForm::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_statForm( "statForm", &statForm::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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