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

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

#include "kschedulebriefwidget.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqframe.h>
#include <ntqtoolbutton.h>
#include <ntqlabel.h>
#include <ntqlineedit.h>
#include <ntqtextedit.h>
#include <kpushbutton.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    frame3 = new TQFrame( this, "frame3" );
    frame3->setFrameShape( TQFrame::WinPanel );
    frame3->setFrameShadow( TQFrame::Raised );
    frame3->setLineWidth( 2 );
    frame3->setMargin( 0 );
    frame3->setMidLineWidth( 100 );
    frame3Layout = new TQVBoxLayout( frame3, 11, 6, "frame3Layout"); 

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

    m_prevButton = new TQToolButton( frame3, "m_prevButton" );
    layout5->addWidget( m_prevButton );
    spacer1 = new TQSpacerItem( 40, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout5->addItem( spacer1 );

    m_indexLabel = new TQLabel( frame3, "m_indexLabel" );
    layout5->addWidget( m_indexLabel );
    spacer2 = new TQSpacerItem( 70, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout5->addItem( spacer2 );

    m_nextButton = new TQToolButton( frame3, "m_nextButton" );
    layout5->addWidget( m_nextButton );
    frame3Layout->addLayout( layout5 );

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

    textLabel1 = new TQLabel( frame3, "textLabel1" );
    textLabel1->setMinimumSize( TQSize( 60, 0 ) );
    textLabel1->setMaximumSize( TQSize( 60, 32767 ) );

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

    textLabel2 = new TQLabel( frame3, "textLabel2" );
    textLabel2->setMinimumSize( TQSize( 60, 0 ) );
    textLabel2->setMaximumSize( TQSize( 60, 32767 ) );

    layout7->addWidget( textLabel2, 2, 0 );

    m_name = new TQLineEdit( frame3, "m_name" );
    m_name->setEnabled( true );
    m_name->setReadOnly( true );

    layout7->addWidget( m_name, 1, 1 );

    m_account = new TQLineEdit( frame3, "m_account" );
    m_account->setEnabled( true );
    m_account->setReadOnly( true );

    layout7->addWidget( m_account, 0, 1 );

    m_type = new TQLineEdit( frame3, "m_type" );
    m_type->setEnabled( true );
    m_type->setReadOnly( true );

    layout7->addWidget( m_type, 2, 1 );

    textLabel1_2 = new TQLabel( frame3, "textLabel1_2" );
    textLabel1_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, textLabel1_2->sizePolicy().hasHeightForWidth() ) );
    textLabel1_2->setMinimumSize( TQSize( 60, 0 ) );

    layout7->addWidget( textLabel1_2, 0, 0 );
    frame3Layout->addLayout( layout7 );

    m_details = new TQTextEdit( frame3, "m_details" );
    m_details->setEnabled( true );
    m_details->setTextFormat( TQTextEdit::RichText );
    m_details->setReadOnly( true );
    frame3Layout->addWidget( m_details );

    Layout6 = new TQHBoxLayout( 0, 0, 6, "Layout6"); 
    Spacer3 = new TQSpacerItem( 35, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout6->addItem( Spacer3 );

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

    m_buttonEnter = new KPushButton( frame3, "m_buttonEnter" );
    Layout5->addWidget( m_buttonEnter );

    m_skipButton = new KPushButton( frame3, "m_skipButton" );
    Layout5->addWidget( m_skipButton );

    m_closeButton = new KPushButton( frame3, "m_closeButton" );
    m_closeButton->setProperty( "stdItem", 13 );
    Layout5->addWidget( m_closeButton );
    Layout6->addLayout( Layout5 );
    Spacer4 = new TQSpacerItem( 43, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout6->addItem( Spacer4 );
    frame3Layout->addLayout( Layout6 );
    kScheduleBriefWidgetLayout->addWidget( frame3 );
    languageChange();
    resize( TQSize(341, 339).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void kScheduleBriefWidget::languageChange()
{
    setCaption( tr2i18n( "Schedules" ) );
    m_prevButton->setText( tr2i18n( "..." ) );
    m_indexLabel->setText( tr2i18n( "n of n" ) );
    m_nextButton->setText( tr2i18n( "..." ) );
    textLabel1->setText( tr2i18n( "Name:" ) );
    textLabel2->setText( tr2i18n( "Type:" ) );
    textLabel1_2->setText( tr2i18n( "Account:" ) );
    m_details->setText( tr2i18n( "1" ) );
    m_buttonEnter->setText( tr2i18n( "Enter..." ) );
    m_skipButton->setText( tr2i18n( "Skip" ) );
    m_closeButton->setText( tr2i18n( "&Close" ) );
}

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

TQMetaObject *kScheduleBriefWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_kScheduleBriefWidget( "kScheduleBriefWidget", &kScheduleBriefWidget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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