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

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

#include "kmyfirewalltransactionlog.h"

#include <ntqvariant.h>
#include <kpushbutton.h>
#include <tdelistview.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqsplitter.h>
#include <ntqlabel.h>
#include <ntqtextedit.h>
#include <ntqtextbrowser.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    tabWidget2 = new TQTabWidget( this, "tabWidget2" );

    tab = new TQWidget( tabWidget2, "tab" );
    tabLayout = new TQGridLayout( tab, 1, 1, 2, 2, "tabLayout"); 

    splitter4 = new TQSplitter( tab, "splitter4" );
    splitter4->setFrameShape( TQSplitter::StyledPanel );
    splitter4->setOrientation( TQSplitter::Vertical );
    splitter4->setOpaqueResize( false );
    splitter4->setChildrenCollapsible( false );

    TQWidget* privateLayoutWidget = new TQWidget( splitter4, "layout3" );
    layout3 = new TQVBoxLayout( privateLayoutWidget, 11, 6, "layout3"); 

    m_lbl_lvUndoTransactions = new TQLabel( privateLayoutWidget, "m_lbl_lvUndoTransactions" );
    layout3->addWidget( m_lbl_lvUndoTransactions );

    m_lvUndoTransactions = new TDEListView( privateLayoutWidget, "m_lvUndoTransactions" );
    m_lvUndoTransactions->addColumn( tr2i18n( "Name" ) );
    m_lvUndoTransactions->header()->setClickEnabled( false, m_lvUndoTransactions->header()->count() - 1 );
    m_lvUndoTransactions->addColumn( tr2i18n( "ID" ) );
    m_lvUndoTransactions->header()->setClickEnabled( false, m_lvUndoTransactions->header()->count() - 1 );
    m_lvUndoTransactions->setRootIsDecorated( true );
    m_lvUndoTransactions->setFullWidth( true );
    m_lvUndoTransactions->setShadeSortColumn( true );
    layout3->addWidget( m_lvUndoTransactions );

    TQWidget* privateLayoutWidget_2 = new TQWidget( splitter4, "layout2" );
    layout2 = new TQVBoxLayout( privateLayoutWidget_2, 11, 6, "layout2"); 

    m_lbl_lvRedoTransactions = new TQLabel( privateLayoutWidget_2, "m_lbl_lvRedoTransactions" );
    layout2->addWidget( m_lbl_lvRedoTransactions );

    m_lvRedoTransactions = new TDEListView( privateLayoutWidget_2, "m_lvRedoTransactions" );
    m_lvRedoTransactions->addColumn( tr2i18n( "Name" ) );
    m_lvRedoTransactions->header()->setClickEnabled( false, m_lvRedoTransactions->header()->count() - 1 );
    m_lvRedoTransactions->addColumn( tr2i18n( "ID" ) );
    m_lvRedoTransactions->header()->setClickEnabled( false, m_lvRedoTransactions->header()->count() - 1 );
    m_lvRedoTransactions->setRootIsDecorated( true );
    m_lvRedoTransactions->setFullWidth( true );
    m_lvRedoTransactions->setItemsMovable( false );
    layout2->addWidget( m_lvRedoTransactions );

    tabLayout->addMultiCellWidget( splitter4, 0, 0, 0, 1 );

    m_cmd_clearStacks = new KPushButton( tab, "m_cmd_clearStacks" );

    tabLayout->addWidget( m_cmd_clearStacks, 1, 1 );
    spacer1 = new TQSpacerItem( 225, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabLayout->addItem( spacer1, 1, 0 );
    tabWidget2->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( tabWidget2, "tab_2" );
    tabLayout_2 = new TQGridLayout( tab_2, 1, 1, 2, 2, "tabLayout_2"); 

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

    m_lbl__transactionLog = new TQLabel( tab_2, "m_lbl__transactionLog" );
    layout4->addWidget( m_lbl__transactionLog );

    m_txt_transactionLog = new TQTextEdit( tab_2, "m_txt_transactionLog" );
    m_txt_transactionLog->setTextFormat( TQTextEdit::LogText );
    m_txt_transactionLog->setUndoRedoEnabled( false );
    layout4->addWidget( m_txt_transactionLog );

    tabLayout_2->addMultiCellLayout( layout4, 0, 0, 0, 1 );

    m_cmd_clearLog = new KPushButton( tab_2, "m_cmd_clearLog" );

    tabLayout_2->addWidget( m_cmd_clearLog, 1, 1 );
    spacer2 = new TQSpacerItem( 201, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabLayout_2->addItem( spacer2, 1, 0 );
    tabWidget2->insertTab( tab_2, TQString::fromLatin1("") );

    TabPage = new TQWidget( tabWidget2, "TabPage" );
    TabPageLayout = new TQGridLayout( TabPage, 1, 1, 2, 2, "TabPageLayout"); 

    m_txt_stats = new TQTextBrowser( TabPage, "m_txt_stats" );
    TQFont m_txt_stats_font(  m_txt_stats->font() );
    m_txt_stats_font.setFamily( "Nimbus Mono L" );
    m_txt_stats->setFont( m_txt_stats_font ); 

    TabPageLayout->addMultiCellWidget( m_txt_stats, 1, 1, 0, 1 );

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

    TabPageLayout->addWidget( textLabel1, 0, 0 );

    m_cmd_update = new KPushButton( TabPage, "m_cmd_update" );
    m_cmd_update->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)1, 0, 0, m_cmd_update->sizePolicy().hasHeightForWidth() ) );

    TabPageLayout->addWidget( m_cmd_update, 0, 1 );
    tabWidget2->insertTab( TabPage, TQString::fromLatin1("") );

    KMyFirewallTransactionLogLayout->addWidget( tabWidget2, 0, 0 );
    languageChange();
    resize( TQSize(520, 467).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KMyFirewallTransactionLog::languageChange()
{
    setCaption( tr2i18n( "Transaction Log" ) );
    m_lbl_lvUndoTransactions->setText( tr2i18n( "Undo stack" ) );
    m_lvUndoTransactions->header()->setLabel( 0, tr2i18n( "Name" ) );
    m_lvUndoTransactions->header()->setLabel( 1, tr2i18n( "ID" ) );
    m_lbl_lvRedoTransactions->setText( tr2i18n( "Redo stack" ) );
    m_lvRedoTransactions->header()->setLabel( 0, tr2i18n( "Name" ) );
    m_lvRedoTransactions->header()->setLabel( 1, tr2i18n( "ID" ) );
    m_cmd_clearStacks->setText( tr2i18n( "Clear stacks" ) );
    tabWidget2->changeTab( tab, tr2i18n( "Undo/Redo Stacks" ) );
    m_lbl__transactionLog->setText( tr2i18n( "Transaction Log" ) );
    m_cmd_clearLog->setText( tr2i18n( "Clear log" ) );
    tabWidget2->changeTab( tab_2, tr2i18n( "Application Log" ) );
    m_txt_stats->setText( TQString::null );
    textLabel1->setText( tr2i18n( "Object statistics:" ) );
    m_cmd_update->setText( tr2i18n( "Update" ) );
    tabWidget2->changeTab( TabPage, tr2i18n( "Statistics" ) );
}

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

TQMetaObject *KMyFirewallTransactionLog::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KMyFirewallTransactionLog( "KMyFirewallTransactionLog", &KMyFirewallTransactionLog::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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