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

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

#include "cwbugdetailscontainer_base.h"

#include <ntqvariant.h>
#include <kactivelabel.h>
#include <tqwidgetstack.h>
#include <ntqpushbutton.h>
#include <ntqwidgetstack.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    m_bugStack = new TQWidgetStack( this, "m_bugStack" );
    m_bugStack->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, m_bugStack->sizePolicy().hasHeightForWidth() ) );

    CWBugDetailsContainer_BaseLayout->addWidget( m_bugStack, 1, 0 );

    Layout5 = new TQVBoxLayout( 0, 0, 0, "Layout5"); 

    m_bugLabel = new KActiveLabel( this, "m_bugLabel" );
    m_bugLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, m_bugLabel->sizePolicy().hasHeightForWidth() ) );
    m_bugLabel->setMinimumSize( TQSize( 100, 20 ) );
    Layout5->addWidget( m_bugLabel );

    m_cmdLabel = new TQLabel( this, "m_cmdLabel" );
    Layout5->addWidget( m_cmdLabel );

    CWBugDetailsContainer_BaseLayout->addLayout( Layout5, 0, 0 );

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

    m_cmdClearBtn = new TQPushButton( this, "m_cmdClearBtn" );
    Layout3->addWidget( m_cmdClearBtn );
    Spacer1 = new TQSpacerItem( 0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Layout3->addItem( Spacer1 );

    m_bugCloseBtn = new TQPushButton( this, "m_bugCloseBtn" );
    m_bugCloseBtn->setEnabled( false );
    Layout3->addWidget( m_bugCloseBtn );

    m_bugCloseSilentlyBtn = new TQPushButton( this, "m_bugCloseSilentlyBtn" );
    m_bugCloseSilentlyBtn->setEnabled( false );
    Layout3->addWidget( m_bugCloseSilentlyBtn );

    m_bugReopenBtn = new TQPushButton( this, "m_bugReopenBtn" );
    m_bugReopenBtn->setEnabled( false );
    Layout3->addWidget( m_bugReopenBtn );

    m_bugReassignBtn = new TQPushButton( this, "m_bugReassignBtn" );
    m_bugReassignBtn->setEnabled( false );
    Layout3->addWidget( m_bugReassignBtn );

    m_bugTitleBtn = new TQPushButton( this, "m_bugTitleBtn" );
    m_bugTitleBtn->setEnabled( false );
    Layout3->addWidget( m_bugTitleBtn );

    m_bugSeverityBtn = new TQPushButton( this, "m_bugSeverityBtn" );
    m_bugSeverityBtn->setEnabled( false );
    Layout3->addWidget( m_bugSeverityBtn );
    Spacer1_2 = new TQSpacerItem( 0, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Layout3->addItem( Spacer1_2 );

    m_bugReplyBtn = new TQPushButton( this, "m_bugReplyBtn" );
    m_bugReplyBtn->setEnabled( false );
    Layout3->addWidget( m_bugReplyBtn );

    m_bugReplyPrivBtn = new TQPushButton( this, "m_bugReplyPrivBtn" );
    m_bugReplyPrivBtn->setEnabled( false );
    Layout3->addWidget( m_bugReplyPrivBtn );

    CWBugDetailsContainer_BaseLayout->addLayout( Layout3, 1, 1 );
    languageChange();
    resize( TQSize(507, 559).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void CWBugDetailsContainer_Base::languageChange()
{
    m_bugLabel->setText( tr2i18n( "Bug Title" ) );
    m_cmdLabel->setText( tr2i18n( "Bug Commands" ) );
    m_cmdClearBtn->setText( tr2i18n( "Clear Co&mmands" ) );
    m_bugCloseBtn->setText( tr2i18n( "C&lose..." ) );
    m_bugCloseSilentlyBtn->setText( tr2i18n( "Close Silentl&y" ) );
    m_bugReopenBtn->setText( tr2i18n( "Re&open" ) );
    m_bugReassignBtn->setText( tr2i18n( "Re&assign..." ) );
    m_bugTitleBtn->setText( tr2i18n( "Change &Title..." ) );
    m_bugSeverityBtn->setText( tr2i18n( "Chan&ge Severity..." ) );
    m_bugReplyBtn->setText( tr2i18n( "&Reply..." ) );
    m_bugReplyPrivBtn->setText( tr2i18n( "Reply &Privately..." ) );
}

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

TQMetaObject *CWBugDetailsContainer_Base::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_CWBugDetailsContainer_Base( "CWBugDetailsContainer_Base", &CWBugDetailsContainer_Base::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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