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

#include "statistics.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqframe.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqimage.h>
#include <ntqpixmap.h>

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

    layout2 = new TQHBoxLayout( 0, 0, 6, "layout2"); 
    spacer4_2 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout2->addItem( spacer4_2 );

    closeBtn = new TQPushButton( this, "closeBtn" );
    layout2->addWidget( closeBtn );
    spacer4 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout2->addItem( spacer4 );

    StatisticsLayout->addLayout( layout2, 1, 0 );

    frame4 = new TQFrame( this, "frame4" );
    frame4->setFrameShape( TQFrame::GroupBoxPanel );
    frame4->setFrameShadow( TQFrame::Raised );
    frame4Layout = new TQGridLayout( frame4, 1, 1, 11, 6, "frame4Layout"); 

    textLabel4 = new TQLabel( frame4, "textLabel4" );
    textLabel4->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    frame4Layout->addWidget( textLabel4, 0, 2 );

    textLabel5 = new TQLabel( frame4, "textLabel5" );
    textLabel5->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    frame4Layout->addWidget( textLabel5, 0, 1 );

    untrWords = new TQLabel( frame4, "untrWords" );
    untrWords->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    frame4Layout->addWidget( untrWords, 1, 1 );

    trWords = new TQLabel( frame4, "trWords" );
    trWords->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    frame4Layout->addWidget( trWords, 1, 2 );

    textLabel1 = new TQLabel( frame4, "textLabel1" );

    frame4Layout->addWidget( textLabel1, 1, 0 );

    trChars = new TQLabel( frame4, "trChars" );
    trChars->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    frame4Layout->addWidget( trChars, 2, 2 );

    untrChars = new TQLabel( frame4, "untrChars" );
    untrChars->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    frame4Layout->addWidget( untrChars, 2, 1 );

    textLabel3 = new TQLabel( frame4, "textLabel3" );

    frame4Layout->addWidget( textLabel3, 2, 0 );

    textLabel6 = new TQLabel( frame4, "textLabel6" );

    frame4Layout->addWidget( textLabel6, 3, 0 );

    trCharsSpc = new TQLabel( frame4, "trCharsSpc" );
    trCharsSpc->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    frame4Layout->addWidget( trCharsSpc, 3, 2 );

    untrCharsSpc = new TQLabel( frame4, "untrCharsSpc" );
    untrCharsSpc->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );

    frame4Layout->addWidget( untrCharsSpc, 3, 1 );

    StatisticsLayout->addWidget( frame4, 0, 0 );
    languageChange();
    resize( TQSize(336, 164).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( closeBtn, TQ_SIGNAL( clicked() ), this, TQ_SLOT( close() ) );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void Statistics::languageChange()
{
    setCaption( tr( "Statistics" ) );
    closeBtn->setText( tr( "&Close" ) );
    textLabel4->setText( tr( "Translation" ) );
    textLabel5->setText( tr( "Source" ) );
    untrWords->setText( tr( "0" ) );
    trWords->setText( tr( "0" ) );
    textLabel1->setText( tr( "Words:" ) );
    trChars->setText( tr( "0" ) );
    untrChars->setText( tr( "0" ) );
    textLabel3->setText( tr( "Characters:" ) );
    textLabel6->setText( tr( "Characters (with spaces):" ) );
    trCharsSpc->setText( tr( "0" ) );
    untrCharsSpc->setText( tr( "0" ) );
}

