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

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

#include "FromToEntryPageForm.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqframe.h>
#include <ntqcombobox.h>
#include <ntqlineedit.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include "MySpinBox.h"

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

    direc_label = new TQGroupBox( this, "direc_label" );
    direc_label->setColumnLayout(0, TQt::Vertical );
    direc_label->layout()->setSpacing( 6 );
    direc_label->layout()->setMargin( 11 );
    direc_labelLayout = new TQVBoxLayout( direc_label->layout() );
    direc_labelLayout->setAlignment( TQt::AlignTop );

    Frame3 = new TQFrame( direc_label, "Frame3" );
    Frame3->setFrameShape( TQFrame::NoFrame );
    Frame3->setFrameShadow( TQFrame::Plain );
    Frame3Layout = new TQGridLayout( Frame3, 1, 1, 11, 6, "Frame3Layout"); 
    Spacer2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Frame3Layout->addItem( Spacer2, 0, 2 );

    gradebox = new TQComboBox( false, Frame3, "gradebox" );
    gradebox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, gradebox->sizePolicy().hasHeightForWidth() ) );

    Frame3Layout->addWidget( gradebox, 0, 1 );

    fauxami_line = new TQLineEdit( Frame3, "fauxami_line" );
    fauxami_line->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, fauxami_line->sizePolicy().hasHeightForWidth() ) );

    Frame3Layout->addMultiCellWidget( fauxami_line, 1, 1, 1, 2 );

    fauxami_label = new TQLabel( Frame3, "fauxami_label" );

    Frame3Layout->addWidget( fauxami_label, 1, 0 );

    grade_label = new TQLabel( Frame3, "grade_label" );

    Frame3Layout->addWidget( grade_label, 0, 0 );
    direc_labelLayout->addWidget( Frame3 );

    GroupBox2 = new TQGroupBox( direc_label, "GroupBox2" );
    GroupBox2->setColumnLayout(0, TQt::Vertical );
    GroupBox2->layout()->setSpacing( 6 );
    GroupBox2->layout()->setMargin( 11 );
    GroupBox2Layout = new TQHBoxLayout( GroupBox2->layout() );
    GroupBox2Layout->setAlignment( TQt::AlignTop );

    year_spin = new MySpinBox( GroupBox2, "year_spin" );
    year_spin->setMinimumSize( TQSize( 60, 0 ) );
    GroupBox2Layout->addWidget( year_spin );

    month_spin = new MySpinBox( GroupBox2, "month_spin" );
    month_spin->setMinimumSize( TQSize( 110, 0 ) );
    GroupBox2Layout->addWidget( month_spin );

    day_spin = new MySpinBox( GroupBox2, "day_spin" );
    day_spin->setMinimumSize( TQSize( 60, 0 ) );
    GroupBox2Layout->addWidget( day_spin );
    Spacer1 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    GroupBox2Layout->addItem( Spacer1 );

    today = new TQPushButton( GroupBox2, "today" );
    GroupBox2Layout->addWidget( today );

    never = new TQPushButton( GroupBox2, "never" );
    GroupBox2Layout->addWidget( never );
    direc_labelLayout->addWidget( GroupBox2 );

    GroupBox3 = new TQGroupBox( direc_label, "GroupBox3" );
    GroupBox3->setColumnLayout(0, TQt::Vertical );
    GroupBox3->layout()->setSpacing( 6 );
    GroupBox3->layout()->setMargin( 11 );
    GroupBox3Layout = new TQGridLayout( GroupBox3->layout() );
    GroupBox3Layout->setAlignment( TQt::AlignTop );

    bcount_label = new TQLabel( GroupBox3, "bcount_label" );

    GroupBox3Layout->addWidget( bcount_label, 1, 0 );

    qcount_label = new TQLabel( GroupBox3, "qcount_label" );

    GroupBox3Layout->addWidget( qcount_label, 0, 0 );

    qcount_line = new TQLineEdit( GroupBox3, "qcount_line" );
    qcount_line->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, qcount_line->sizePolicy().hasHeightForWidth() ) );

    GroupBox3Layout->addWidget( qcount_line, 0, 1 );

    bcount_line = new TQLineEdit( GroupBox3, "bcount_line" );
    bcount_line->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, bcount_line->sizePolicy().hasHeightForWidth() ) );

    GroupBox3Layout->addWidget( bcount_line, 1, 1 );
    direc_labelLayout->addWidget( GroupBox3 );
    FromToEntryPageFormLayout->addWidget( direc_label );
    languageChange();
    resize( TQSize(552, 292).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( gradebox, fauxami_line );
    setTabOrder( fauxami_line, today );
    setTabOrder( today, never );
    setTabOrder( never, qcount_line );
    setTabOrder( qcount_line, bcount_line );

    // buddies
    fauxami_label->setBuddy( fauxami_line );
    grade_label->setBuddy( gradebox );
    bcount_label->setBuddy( bcount_line );
    qcount_label->setBuddy( qcount_line );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void FromToEntryPageForm::languageChange()
{
    setCaption( tr2i18n( "-" ) );
    direc_label->setTitle( tr2i18n( "Properties From Original" ) );
    fauxami_label->setText( tr2i18n( "False fr&iend:" ) );
    grade_label->setText( tr2i18n( "&Grade:" ) );
    GroupBox2->setTitle( tr2i18n( "Last Query &Date" ) );
    today->setText( tr2i18n( "T&oday" ) );
    never->setText( tr2i18n( "&Never" ) );
    GroupBox3->setTitle( tr2i18n( "Query Counters" ) );
    bcount_label->setText( tr2i18n( "&Wrong:" ) );
    qcount_label->setText( tr2i18n( "&Altogether:" ) );
}

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

TQMetaObject *FromToEntryPageForm::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_FromToEntryPageForm( "FromToEntryPageForm", &FromToEntryPageForm::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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