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

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

#include "GenStatPageForm.h"

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

/*
 *  Constructs a GenStatPageForm as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
GenStatPageForm::GenStatPageForm( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "Form1" );
    Form1Layout = new TQGridLayout( this, 1, 1, 0, 6, "Form1Layout"); 

    TextLabel1 = new TQLabel( this, "TextLabel1" );
    TQFont TextLabel1_font(  TextLabel1->font() );
    TextLabel1->setFont( TextLabel1_font ); 

    Form1Layout->addWidget( TextLabel1, 0, 0 );

    TextLabel1_2 = new TQLabel( this, "TextLabel1_2" );
    TQFont TextLabel1_2_font(  TextLabel1_2->font() );
    TextLabel1_2->setFont( TextLabel1_2_font ); 

    Form1Layout->addWidget( TextLabel1_2, 1, 0 );

    TextLabel1_2_2_2 = new TQLabel( this, "TextLabel1_2_2_2" );
    TQFont TextLabel1_2_2_2_font(  TextLabel1_2_2_2->font() );
    TextLabel1_2_2_2->setFont( TextLabel1_2_2_2_font ); 

    Form1Layout->addWidget( TextLabel1_2_2_2, 3, 0 );

    TextLabel1_2_2 = new TQLabel( this, "TextLabel1_2_2" );
    TQFont TextLabel1_2_2_font(  TextLabel1_2_2->font() );
    TextLabel1_2_2->setFont( TextLabel1_2_2_font ); 

    Form1Layout->addWidget( TextLabel1_2_2, 2, 0 );

    TextLabel1_2_2_2_2 = new TQLabel( this, "TextLabel1_2_2_2_2" );
    TQFont TextLabel1_2_2_2_2_font(  TextLabel1_2_2_2_2->font() );
    TextLabel1_2_2_2_2->setFont( TextLabel1_2_2_2_2_font ); 

    Form1Layout->addWidget( TextLabel1_2_2_2_2, 4, 0 );

    l_lessons = new TQLabel( this, "l_lessons" );
    l_lessons->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, l_lessons->sizePolicy().hasHeightForWidth() ) );
    l_lessons->setFrameShape( TQLabel::Panel );
    l_lessons->setFrameShadow( TQLabel::Sunken );

    Form1Layout->addWidget( l_lessons, 4, 1 );

    kcfg_entriesPerLesson = new TQLabel( this, "kcfg_entriesPerLesson" );
    kcfg_entriesPerLesson->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, kcfg_entriesPerLesson->sizePolicy().hasHeightForWidth() ) );
    kcfg_entriesPerLesson->setFrameShape( TQLabel::Panel );
    kcfg_entriesPerLesson->setFrameShadow( TQLabel::Sunken );

    Form1Layout->addWidget( kcfg_entriesPerLesson, 3, 1 );

    l_author = new TQLabel( this, "l_author" );
    l_author->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, l_author->sizePolicy().hasHeightForWidth() ) );
    l_author->setFrameShape( TQLabel::Panel );
    l_author->setFrameShadow( TQLabel::Sunken );

    Form1Layout->addWidget( l_author, 2, 1 );

    l_title = new TQLabel( this, "l_title" );
    l_title->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, l_title->sizePolicy().hasHeightForWidth() ) );
    l_title->setFrameShape( TQLabel::Panel );
    l_title->setFrameShadow( TQLabel::Sunken );

    Form1Layout->addWidget( l_title, 1, 1 );

    l_filename = new TQLabel( this, "l_filename" );
    l_filename->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)1, 0, 0, l_filename->sizePolicy().hasHeightForWidth() ) );
    l_filename->setFrameShape( TQLabel::Panel );
    l_filename->setFrameShadow( TQLabel::Sunken );

    Form1Layout->addWidget( l_filename, 0, 1 );
    Spacer2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Form1Layout->addItem( Spacer2, 5, 0 );
    languageChange();
    resize( TQSize(423, 190).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void GenStatPageForm::languageChange()
{
    setCaption( tr2i18n( "-" ) );
    TextLabel1->setText( tr2i18n( "Filename:" ) );
    TextLabel1_2->setText( tr2i18n( "Title:" ) );
    TextLabel1_2_2_2->setText( tr2i18n( "Entries:" ) );
    TextLabel1_2_2->setText( tr2i18n( "Author:" ) );
    TextLabel1_2_2_2_2->setText( tr2i18n( "Lessons:" ) );
    l_lessons->setText( TQString::null );
    kcfg_entriesPerLesson->setText( TQString::null );
    l_author->setText( TQString::null );
    l_title->setText( TQString::null );
    l_filename->setText( TQString::null );
}

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

TQMetaObject *GenStatPageForm::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_GenStatPageForm( "GenStatPageForm", &GenStatPageForm::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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