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

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

#include "queuetunerbase.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqtoolbutton.h>
#include <ntqgroupbox.h>
#include <ntqspinbox.h>
#include <ntqcombobox.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a QueueTunerBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
QueueTunerBase::QueueTunerBase( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "QueueTunerBase" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, sizePolicy().hasHeightForWidth() ) );
    QueueTunerBaseLayout = new TQHBoxLayout( this, 0, 1, "QueueTunerBaseLayout"); 

    layout92 = new TQVBoxLayout( 0, 1, 0, "layout92"); 
    spacer34 = new TQSpacerItem( 16, 34, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout92->addItem( spacer34 );

    m_closeButton = new TQToolButton( this, "m_closeButton" );
    m_closeButton->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, m_closeButton->sizePolicy().hasHeightForWidth() ) );
    m_closeButton->setAutoRaise( true );
    m_closeButton->setTextPosition( TQToolButton::BesideIcon );
    layout92->addWidget( m_closeButton );
    spacer35 = new TQSpacerItem( 16, 33, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout92->addItem( spacer35 );
    QueueTunerBaseLayout->addLayout( layout92 );

    m_slowBox = new TQGroupBox( this, "m_slowBox" );
    m_slowBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)3, 0, 0, m_slowBox->sizePolicy().hasHeightForWidth() ) );
    m_slowBox->setLineWidth( 1 );
    m_slowBox->setColumnLayout(0, TQt::Vertical );
    m_slowBox->layout()->setSpacing( 6 );
    m_slowBox->layout()->setMargin( 5 );
    m_slowBoxLayout = new TQGridLayout( m_slowBox->layout() );
    m_slowBoxLayout->setAlignment( TQt::AlignTop );

    layout164 = new TQHBoxLayout( 0, 0, 0, "layout164"); 

    m_slowRate = new TQSpinBox( m_slowBox, "m_slowRate" );
    m_slowRate->setEnabled( true );
    m_slowRate->setMaxValue( 999 );
    layout164->addWidget( m_slowRate );

    m_slowType = new TQComboBox( false, m_slowBox, "m_slowType" );
    m_slowType->setEnabled( false );
    layout164->addWidget( m_slowType );

    m_slowInterval = new TQSpinBox( m_slowBox, "m_slowInterval" );
    m_slowInterval->setMaxValue( 999 );
    layout164->addWidget( m_slowInterval );

    m_slowBoxLayout->addMultiCellLayout( layout164, 1, 1, 0, 1 );

    layout242 = new TQGridLayout( 0, 1, 1, 0, 0, "layout242"); 

    m_slowAge = new TQLabel( m_slowBox, "m_slowAge" );
    m_slowAge->setScaledContents( false );

    layout242->addMultiCellWidget( m_slowAge, 1, 2, 1, 1 );

    m_slowCount = new TQLabel( m_slowBox, "m_slowCount" );
    m_slowCount->setScaledContents( false );

    layout242->addWidget( m_slowCount, 0, 1 );

    m_textLabel3_2 = new TQLabel( m_slowBox, "m_textLabel3_2" );

    layout242->addWidget( m_textLabel3_2, 2, 0 );

    m_textLabel3 = new TQLabel( m_slowBox, "m_textLabel3" );

    layout242->addMultiCellWidget( m_textLabel3, 0, 1, 0, 0 );

    m_slowBoxLayout->addLayout( layout242, 0, 0 );

    layout236_2_2 = new TQGridLayout( 0, 1, 1, 0, 0, "layout236_2_2"); 

    textLabel4_2_2 = new TQLabel( m_slowBox, "textLabel4_2_2" );

    layout236_2_2->addWidget( textLabel4_2_2, 0, 0 );

    textLabel5_2_2 = new TQLabel( m_slowBox, "textLabel5_2_2" );

    layout236_2_2->addWidget( textLabel5_2_2, 1, 0 );

    m_slowLines = new TQLabel( m_slowBox, "m_slowLines" );

    layout236_2_2->addWidget( m_slowLines, 0, 1 );

    m_slowBytes = new TQLabel( m_slowBox, "m_slowBytes" );

    layout236_2_2->addWidget( m_slowBytes, 1, 1 );

    m_slowBoxLayout->addLayout( layout236_2_2, 0, 1 );
    QueueTunerBaseLayout->addWidget( m_slowBox );

    m_normalBox = new TQGroupBox( this, "m_normalBox" );
    m_normalBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)3, 0, 0, m_normalBox->sizePolicy().hasHeightForWidth() ) );
    m_normalBox->setLineWidth( 1 );
    m_normalBox->setColumnLayout(0, TQt::Vertical );
    m_normalBox->layout()->setSpacing( 6 );
    m_normalBox->layout()->setMargin( 5 );
    m_normalBoxLayout = new TQGridLayout( m_normalBox->layout() );
    m_normalBoxLayout->setAlignment( TQt::AlignTop );

    layout163 = new TQHBoxLayout( 0, 0, 0, "layout163"); 

    m_normalRate = new TQSpinBox( m_normalBox, "m_normalRate" );
    m_normalRate->setEnabled( true );
    m_normalRate->setMaxValue( 999 );
    layout163->addWidget( m_normalRate );

    m_normalType = new TQComboBox( false, m_normalBox, "m_normalType" );
    m_normalType->setEnabled( false );
    layout163->addWidget( m_normalType );

    m_normalInterval = new TQSpinBox( m_normalBox, "m_normalInterval" );
    m_normalInterval->setMaxValue( 999 );
    layout163->addWidget( m_normalInterval );

    m_normalBoxLayout->addMultiCellLayout( layout163, 1, 1, 0, 1 );

    layout236_2 = new TQGridLayout( 0, 1, 1, 0, 0, "layout236_2"); 

    textLabel4_2 = new TQLabel( m_normalBox, "textLabel4_2" );

    layout236_2->addWidget( textLabel4_2, 0, 0 );

    textLabel5_2 = new TQLabel( m_normalBox, "textLabel5_2" );

    layout236_2->addWidget( textLabel5_2, 1, 0 );

    m_normalLines = new TQLabel( m_normalBox, "m_normalLines" );

    layout236_2->addWidget( m_normalLines, 0, 1 );

    m_normalBytes = new TQLabel( m_normalBox, "m_normalBytes" );

    layout236_2->addWidget( m_normalBytes, 1, 1 );

    m_normalBoxLayout->addLayout( layout236_2, 0, 1 );

    layout240 = new TQGridLayout( 0, 1, 1, 0, 0, "layout240"); 

    m_textLabel3_4 = new TQLabel( m_normalBox, "m_textLabel3_4" );

    layout240->addWidget( m_textLabel3_4, 0, 0 );

    m_normalAge = new TQLabel( m_normalBox, "m_normalAge" );
    m_normalAge->setScaledContents( false );

    layout240->addWidget( m_normalAge, 1, 1 );

    m_normalCount = new TQLabel( m_normalBox, "m_normalCount" );
    m_normalCount->setScaledContents( false );

    layout240->addWidget( m_normalCount, 0, 1 );

    m_textLabel3_2_3 = new TQLabel( m_normalBox, "m_textLabel3_2_3" );

    layout240->addWidget( m_textLabel3_2_3, 1, 0 );

    m_normalBoxLayout->addLayout( layout240, 0, 0 );
    QueueTunerBaseLayout->addWidget( m_normalBox );

    m_fastBox = new TQGroupBox( this, "m_fastBox" );
    m_fastBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)3, 0, 0, m_fastBox->sizePolicy().hasHeightForWidth() ) );
    m_fastBox->setLineWidth( 1 );
    m_fastBox->setColumnLayout(0, TQt::Vertical );
    m_fastBox->layout()->setSpacing( 6 );
    m_fastBox->layout()->setMargin( 5 );
    m_fastBoxLayout = new TQGridLayout( m_fastBox->layout() );
    m_fastBoxLayout->setAlignment( TQt::AlignTop );

    layout161 = new TQHBoxLayout( 0, 0, 0, "layout161"); 

    m_fastRate = new TQSpinBox( m_fastBox, "m_fastRate" );
    m_fastRate->setMaxValue( 999 );
    layout161->addWidget( m_fastRate );

    m_fastType = new TQComboBox( false, m_fastBox, "m_fastType" );
    m_fastType->setEnabled( false );
    layout161->addWidget( m_fastType );

    m_fastInterval = new TQSpinBox( m_fastBox, "m_fastInterval" );
    m_fastInterval->setEnabled( true );
    m_fastInterval->setMaxValue( 999 );
    m_fastInterval->setLineStep( 1 );
    layout161->addWidget( m_fastInterval );

    m_fastBoxLayout->addMultiCellLayout( layout161, 1, 1, 0, 1 );

    layout237 = new TQGridLayout( 0, 1, 1, 0, 0, "layout237"); 

    m_textLabel3_2_3_2 = new TQLabel( m_fastBox, "m_textLabel3_2_3_2" );

    layout237->addWidget( m_textLabel3_2_3_2, 1, 0 );

    m_fastAge = new TQLabel( m_fastBox, "m_fastAge" );
    m_fastAge->setScaledContents( false );

    layout237->addWidget( m_fastAge, 1, 1 );

    m_fastCount = new TQLabel( m_fastBox, "m_fastCount" );
    m_fastCount->setScaledContents( false );

    layout237->addWidget( m_fastCount, 0, 1 );

    m_textLabel3_4_2 = new TQLabel( m_fastBox, "m_textLabel3_4_2" );

    layout237->addWidget( m_textLabel3_4_2, 0, 0 );

    m_fastBoxLayout->addLayout( layout237, 0, 0 );

    layout236 = new TQGridLayout( 0, 1, 1, 0, 0, "layout236"); 

    textLabel4 = new TQLabel( m_fastBox, "textLabel4" );

    layout236->addWidget( textLabel4, 0, 0 );

    textLabel5 = new TQLabel( m_fastBox, "textLabel5" );

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

    m_fastLines = new TQLabel( m_fastBox, "m_fastLines" );

    layout236->addWidget( m_fastLines, 0, 1 );

    m_fastBytes = new TQLabel( m_fastBox, "m_fastBytes" );

    layout236->addWidget( m_fastBytes, 1, 1 );

    m_fastBoxLayout->addLayout( layout236, 0, 1 );
    QueueTunerBaseLayout->addWidget( m_fastBox );

    m_globalBox = new TQGroupBox( this, "m_globalBox" );
    m_globalBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)3, 0, 0, m_globalBox->sizePolicy().hasHeightForWidth() ) );
    m_globalBox->setLineWidth( 1 );
    m_globalBox->setColumnLayout(0, TQt::Vertical );
    m_globalBox->layout()->setSpacing( 6 );
    m_globalBox->layout()->setMargin( 5 );
    m_globalBoxLayout = new TQVBoxLayout( m_globalBox->layout() );
    m_globalBoxLayout->setAlignment( TQt::AlignTop );

    layout88 = new TQGridLayout( 0, 1, 1, 0, 2, "layout88"); 

    textLabel13 = new TQLabel( m_globalBox, "textLabel13" );

    layout88->addWidget( textLabel13, 3, 0 );

    m_recvBytes = new TQLabel( m_globalBox, "m_recvBytes" );

    layout88->addWidget( m_recvBytes, 3, 1 );

    m_globalLines = new TQLabel( m_globalBox, "m_globalLines" );

    layout88->addWidget( m_globalLines, 0, 1 );

    textLabel9 = new TQLabel( m_globalBox, "textLabel9" );

    layout88->addWidget( textLabel9, 1, 0 );

    textLabel4_3 = new TQLabel( m_globalBox, "textLabel4_3" );

    layout88->addWidget( textLabel4_3, 2, 0 );

    m_globalBytes = new TQLabel( m_globalBox, "m_globalBytes" );

    layout88->addWidget( m_globalBytes, 1, 1 );

    m_srverBytes = new TQLabel( m_globalBox, "m_srverBytes" );

    layout88->addWidget( m_srverBytes, 2, 1 );

    textLabel8 = new TQLabel( m_globalBox, "textLabel8" );

    layout88->addWidget( textLabel8, 0, 0 );
    m_globalBoxLayout->addLayout( layout88 );
    QueueTunerBaseLayout->addWidget( m_globalBox );
    languageChange();
    resize( TQSize(726, 91).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void QueueTunerBase::languageChange()
{
    m_closeButton->setText( TQString::null );
    TQToolTip::add( m_closeButton, tr2i18n( "Close" ) );
    m_slowBox->setTitle( tr2i18n( "Slow Queue" ) );
    m_slowType->clear();
    m_slowType->insertItem( tr2i18n( "Lines" ) );
    m_slowType->insertItem( tr2i18n( "Bytes" ) );
    m_slowAge->setText( tr2i18n( "888" ) );
    m_slowCount->setText( tr2i18n( "888" ) );
    m_textLabel3_2->setText( tr2i18n( "Age:" ) );
    m_textLabel3->setText( tr2i18n( "Count:" ) );
    textLabel4_2_2->setText( tr2i18n( "Lines:" ) );
    textLabel5_2_2->setText( tr2i18n( "Bytes:" ) );
    m_slowLines->setText( tr2i18n( "888" ) );
    m_slowBytes->setText( tr2i18n( "888" ) );
    m_normalBox->setTitle( tr2i18n( "Normal Queue" ) );
    m_normalType->clear();
    m_normalType->insertItem( tr2i18n( "Lines" ) );
    m_normalType->insertItem( tr2i18n( "Bytes" ) );
    textLabel4_2->setText( tr2i18n( "Lines:" ) );
    textLabel5_2->setText( tr2i18n( "Bytes:" ) );
    m_normalLines->setText( tr2i18n( "888" ) );
    m_normalBytes->setText( tr2i18n( "888" ) );
    m_textLabel3_4->setText( tr2i18n( "Count:" ) );
    m_normalAge->setText( tr2i18n( "888" ) );
    m_normalCount->setText( tr2i18n( "888" ) );
    m_textLabel3_2_3->setText( tr2i18n( "Age:" ) );
    m_fastBox->setTitle( tr2i18n( "Fast Queue" ) );
    m_fastType->clear();
    m_fastType->insertItem( tr2i18n( "Lines" ) );
    m_fastType->insertItem( tr2i18n( "Bytes" ) );
    m_textLabel3_2_3_2->setText( tr2i18n( "Age:" ) );
    m_fastAge->setText( tr2i18n( "888" ) );
    m_fastCount->setText( tr2i18n( "888" ) );
    m_textLabel3_4_2->setText( tr2i18n( "Count:" ) );
    textLabel4->setText( tr2i18n( "Lines:" ) );
    textLabel5->setText( tr2i18n( "Bytes:" ) );
    m_fastLines->setText( tr2i18n( "888" ) );
    m_fastBytes->setText( tr2i18n( "888" ) );
    m_globalBox->setTitle( tr2i18n( "All Queues" ) );
    textLabel13->setText( tr2i18n( "Received:" ) );
    m_recvBytes->setText( tr2i18n( "888" ) );
    m_globalLines->setText( tr2i18n( "888" ) );
    textLabel9->setText( tr2i18n( "Bytes (Raw):" ) );
    textLabel4_3->setText( tr2i18n( "Bytes (Encoded):" ) );
    m_globalBytes->setText( tr2i18n( "888" ) );
    m_srverBytes->setText( tr2i18n( "888" ) );
    textLabel8->setText( tr2i18n( "Lines:" ) );
}

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

TQMetaObject *QueueTunerBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_QueueTunerBase( "QueueTunerBase", &QueueTunerBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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