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

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

#include "detailed_Dialog.h"

#include <ntqvariant.h>
#include <kled.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqsplitter.h>
#include <ntqlabel.h>
#include <ntqframe.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a detailed_Dialog 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.
 */
detailed_Dialog::detailed_Dialog( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "detailed_Dialog" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)3, 0, 0, sizePolicy().hasHeightForWidth() ) );
    setSizeGripEnabled( true );
    detailed_DialogLayout = new TQGridLayout( this, 1, 1, 11, 6, "detailed_DialogLayout"); 

    GeneralGroup = new TQGroupBox( this, "GeneralGroup" );
    GeneralGroup->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, GeneralGroup->sizePolicy().hasHeightForWidth() ) );
    GeneralGroup->setColumnLayout(0, TQt::Vertical );
    GeneralGroup->layout()->setSpacing( 6 );
    GeneralGroup->layout()->setMargin( 11 );
    GeneralGroupLayout = new TQGridLayout( GeneralGroup->layout() );
    GeneralGroupLayout->setAlignment( TQt::AlignTop );

    splitter7 = new TQSplitter( GeneralGroup, "splitter7" );
    splitter7->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, splitter7->sizePolicy().hasHeightForWidth() ) );
    splitter7->setOrientation( TQSplitter::Horizontal );

    TQWidget* privateLayoutWidget = new TQWidget( splitter7, "layout17" );
    layout17 = new TQGridLayout( privateLayoutWidget, 1, 1, 11, 6, "layout17"); 

    InfoLabelValue = new TQLabel( privateLayoutWidget, "InfoLabelValue" );
    InfoLabelValue->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, InfoLabelValue->sizePolicy().hasHeightForWidth() ) );
    TQFont InfoLabelValue_font(  InfoLabelValue->font() );
    InfoLabelValue_font.setBold( true );
    InfoLabelValue->setFont( InfoLabelValue_font ); 
    InfoLabelValue->setAlignment( int( TQLabel::AlignTop | TQLabel::AlignRight ) );

    layout17->addWidget( InfoLabelValue, 0, 1 );

    InfoLabel = new TQLabel( privateLayoutWidget, "InfoLabel" );
    InfoLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, InfoLabel->sizePolicy().hasHeightForWidth() ) );
    InfoLabel->setAlignment( int( TQLabel::AlignTop ) );

    layout17->addWidget( InfoLabel, 0, 0 );

    GeneralGroupLayout->addWidget( splitter7, 0, 1 );

    layout18 = new TQVBoxLayout( 0, 0, 6, "layout18"); 

    InfoPictogram = new TQLabel( GeneralGroup, "InfoPictogram" );
    InfoPictogram->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, InfoPictogram->sizePolicy().hasHeightForWidth() ) );
    InfoPictogram->setMinimumSize( TQSize( 22, 22 ) );
    InfoPictogram->setMaximumSize( TQSize( 22, 22 ) );
    InfoPictogram->setScaledContents( true );
    layout18->addWidget( InfoPictogram );
    spacer14 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::MinimumExpanding );
    layout18->addItem( spacer14 );

    GeneralGroupLayout->addLayout( layout18, 0, 0 );

    detailed_DialogLayout->addWidget( GeneralGroup, 0, 0 );

    BatteryGroup = new TQGroupBox( this, "BatteryGroup" );
    BatteryGroup->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, BatteryGroup->sizePolicy().hasHeightForWidth() ) );
    BatteryGroup->setColumnLayout(0, TQt::Vertical );
    BatteryGroup->layout()->setSpacing( 6 );
    BatteryGroup->layout()->setMargin( 11 );
    BatteryGroupLayout = new TQGridLayout( BatteryGroup->layout() );
    BatteryGroupLayout->setAlignment( TQt::AlignTop );
    spacer2_2 = new TQSpacerItem( 16, 118, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    BatteryGroupLayout->addItem( spacer2_2, 0, 2 );

    layout15 = new TQGridLayout( 0, 1, 1, 0, 6, "layout15"); 

    layout14 = new TQHBoxLayout( 0, 0, 6, "layout14"); 

    LabelAC = new TQLabel( BatteryGroup, "LabelAC" );
    LabelAC->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, LabelAC->sizePolicy().hasHeightForWidth() ) );
    layout14->addWidget( LabelAC );
    spacer9_3 = new TQSpacerItem( 5, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout14->addItem( spacer9_3 );

    LedAC = new KLed( BatteryGroup, "LedAC" );
    LedAC->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, LedAC->sizePolicy().hasHeightForWidth() ) );
    layout14->addWidget( LedAC );
    spacer9 = new TQSpacerItem( 5, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout14->addItem( spacer9 );

    LabelACStatus = new TQLabel( BatteryGroup, "LabelACStatus" );
    LabelACStatus->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, LabelACStatus->sizePolicy().hasHeightForWidth() ) );
    LabelACStatus->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
    layout14->addWidget( LabelACStatus );

    layout15->addLayout( layout14, 3, 0 );

    powerConsLayout = new TQHBoxLayout( 0, 0, 6, "powerConsLayout"); 

    tl_powerConsDesc = new TQLabel( BatteryGroup, "tl_powerConsDesc" );
    powerConsLayout->addWidget( tl_powerConsDesc );

    tl_powerConsValue = new TQLabel( BatteryGroup, "tl_powerConsValue" );
    tl_powerConsValue->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
    powerConsLayout->addWidget( tl_powerConsValue );

    layout15->addLayout( powerConsLayout, 2, 0 );

    BatteryFrame = new TQFrame( BatteryGroup, "BatteryFrame" );
    BatteryFrame->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, BatteryFrame->sizePolicy().hasHeightForWidth() ) );
    BatteryFrame->setFrameShape( TQFrame::NoFrame );
    BatteryFrame->setFrameShadow( TQFrame::Raised );

    layout15->addWidget( BatteryFrame, 0, 0 );
    spacer3 = new TQSpacerItem( 20, 5, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    layout15->addItem( spacer3, 1, 0 );

    BatteryGroupLayout->addLayout( layout15, 0, 1 );

    layout12 = new TQGridLayout( 0, 1, 1, 0, 6, "layout12"); 
    spacer5 = new TQSpacerItem( 20, 90, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout12->addItem( spacer5, 1, 0 );

    BatteryPictogram = new TQLabel( BatteryGroup, "BatteryPictogram" );
    BatteryPictogram->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, BatteryPictogram->sizePolicy().hasHeightForWidth() ) );
    BatteryPictogram->setMinimumSize( TQSize( 22, 22 ) );
    BatteryPictogram->setMaximumSize( TQSize( 22, 22 ) );
    BatteryPictogram->setScaledContents( true );

    layout12->addWidget( BatteryPictogram, 0, 0 );

    BatteryGroupLayout->addLayout( layout12, 0, 0 );

    detailed_DialogLayout->addWidget( BatteryGroup, 1, 0 );

    ProcessorGroup = new TQGroupBox( this, "ProcessorGroup" );
    ProcessorGroup->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, ProcessorGroup->sizePolicy().hasHeightForWidth() ) );
    ProcessorGroup->setColumnLayout(0, TQt::Vertical );
    ProcessorGroup->layout()->setSpacing( 6 );
    ProcessorGroup->layout()->setMargin( 11 );
    ProcessorGroupLayout = new TQGridLayout( ProcessorGroup->layout() );
    ProcessorGroupLayout->setAlignment( TQt::AlignTop );

    layout12_2 = new TQGridLayout( 0, 1, 1, 0, 6, "layout12_2"); 
    spacer5_2 = new TQSpacerItem( 20, 90, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout12_2->addItem( spacer5_2, 1, 0 );

    ProcessorPictogram = new TQLabel( ProcessorGroup, "ProcessorPictogram" );
    ProcessorPictogram->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, ProcessorPictogram->sizePolicy().hasHeightForWidth() ) );
    ProcessorPictogram->setMinimumSize( TQSize( 22, 22 ) );
    ProcessorPictogram->setMaximumSize( TQSize( 22, 22 ) );
    ProcessorPictogram->setScaledContents( true );

    layout12_2->addWidget( ProcessorPictogram, 0, 0 );

    ProcessorGroupLayout->addLayout( layout12_2, 0, 0 );

    splitter6 = new TQSplitter( ProcessorGroup, "splitter6" );
    splitter6->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, splitter6->sizePolicy().hasHeightForWidth() ) );
    splitter6->setOrientation( TQSplitter::Horizontal );

    TQWidget* privateLayoutWidget_2 = new TQWidget( splitter6, "layout16" );
    layout16 = new TQGridLayout( privateLayoutWidget_2, 1, 1, 11, 6, "layout16"); 

    ProcessorFrame = new TQFrame( privateLayoutWidget_2, "ProcessorFrame" );
    ProcessorFrame->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, ProcessorFrame->sizePolicy().hasHeightForWidth() ) );
    ProcessorFrame->setFrameShape( TQFrame::NoFrame );
    ProcessorFrame->setFrameShadow( TQFrame::Raised );

    layout16->addWidget( ProcessorFrame, 0, 0 );

    ProcessorGroupLayout->addWidget( splitter6, 0, 1 );

    detailed_DialogLayout->addWidget( ProcessorGroup, 2, 0 );

    layout19 = new TQGridLayout( 0, 1, 1, 0, 6, "layout19"); 
    spacer2 = new TQSpacerItem( 230, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout19->addItem( spacer2, 0, 0 );

    OkButton = new TQPushButton( this, "OkButton" );
    OkButton->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, OkButton->sizePolicy().hasHeightForWidth() ) );

    layout19->addWidget( OkButton, 0, 1 );

    detailed_DialogLayout->addLayout( layout19, 3, 0 );
    languageChange();
    resize( TQSize(287, 381).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void detailed_Dialog::languageChange()
{
    setCaption( tr2i18n( "tdepowersave" ) );
    GeneralGroup->setTitle( tr2i18n( "General Information" ) );
    InfoLabelValue->setText( TQString::null );
    InfoLabel->setText( TQString::null );
    BatteryGroup->setTitle( tr2i18n( "Battery Status" ) );
    LabelAC->setText( tr2i18n( "AC Adapter" ) );
    LabelACStatus->setText( tr2i18n( "plugged in" ) );
    tl_powerConsDesc->setText( tr2i18n( "Power Consumption: " ) );
    tl_powerConsValue->setText( TQString::null );
    ProcessorGroup->setTitle( tr2i18n( "Processor Status" ) );
    OkButton->setText( tr2i18n( "OK" ) );
}

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

TQMetaObject *detailed_Dialog::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_detailed_Dialog( "detailed_Dialog", &detailed_Dialog::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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