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

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

#include "logprefwidgetbase.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqbuttongroup.h>
#include <ntqcombobox.h>
#include <ntqlabel.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a LogPrefWidgetBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
LogPrefWidgetBase::LogPrefWidgetBase( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "LogPrefWidgetBase" );
    LogPrefWidgetBaseLayout = new TQGridLayout( this, 1, 1, 11, 6, "LogPrefWidgetBaseLayout"); 
    spacer1 = new TQSpacerItem( 20, 110, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    LogPrefWidgetBaseLayout->addMultiCell( spacer1, 2, 2, 0, 1 );

    buttonGroup2 = new TQButtonGroup( this, "buttonGroup2" );
    buttonGroup2->setColumnLayout(0, TQt::Vertical );
    buttonGroup2->layout()->setSpacing( 6 );
    buttonGroup2->layout()->setMargin( 11 );
    buttonGroup2Layout = new TQGridLayout( buttonGroup2->layout() );
    buttonGroup2Layout->setAlignment( TQt::AlignTop );

    m_sysipf = new TQComboBox( false, buttonGroup2, "m_sysipf" );

    buttonGroup2Layout->addWidget( m_sysipf, 0, 1 );

    textLabel2 = new TQLabel( buttonGroup2, "textLabel2" );

    buttonGroup2Layout->addWidget( textLabel2, 0, 0 );

    m_syssrc = new TQComboBox( false, buttonGroup2, "m_syssrc" );

    buttonGroup2Layout->addWidget( m_syssrc, 1, 1 );

    textLabel2_2 = new TQLabel( buttonGroup2, "textLabel2_2" );

    buttonGroup2Layout->addWidget( textLabel2_2, 1, 0 );

    m_syspnp = new TQComboBox( false, buttonGroup2, "m_syspnp" );

    buttonGroup2Layout->addWidget( m_syspnp, 2, 1 );

    textLabel2_3 = new TQLabel( buttonGroup2, "textLabel2_3" );

    buttonGroup2Layout->addWidget( textLabel2_3, 2, 0 );

    textLabel2_4 = new TQLabel( buttonGroup2, "textLabel2_4" );

    buttonGroup2Layout->addWidget( textLabel2_4, 3, 0 );

    m_syssnf = new TQComboBox( false, buttonGroup2, "m_syssnf" );

    buttonGroup2Layout->addWidget( m_syssnf, 3, 1 );

    m_sysscd = new TQComboBox( false, buttonGroup2, "m_sysscd" );

    buttonGroup2Layout->addWidget( m_sysscd, 4, 1 );

    textLabel2_5 = new TQLabel( buttonGroup2, "textLabel2_5" );

    buttonGroup2Layout->addWidget( textLabel2_5, 4, 0 );

    m_syspfi = new TQComboBox( false, buttonGroup2, "m_syspfi" );

    buttonGroup2Layout->addWidget( m_syspfi, 5, 1 );

    textLabel2_6 = new TQLabel( buttonGroup2, "textLabel2_6" );

    buttonGroup2Layout->addWidget( textLabel2_6, 5, 0 );

    textLabel2_7 = new TQLabel( buttonGroup2, "textLabel2_7" );

    buttonGroup2Layout->addWidget( textLabel2_7, 6, 0 );

    m_sysinw = new TQComboBox( false, buttonGroup2, "m_sysinw" );

    buttonGroup2Layout->addWidget( m_sysinw, 6, 1 );

    textLabel2_7_2 = new TQLabel( buttonGroup2, "textLabel2_7_2" );

    buttonGroup2Layout->addWidget( textLabel2_7_2, 7, 0 );

    m_sysrss = new TQComboBox( false, buttonGroup2, "m_sysrss" );

    buttonGroup2Layout->addWidget( m_sysrss, 7, 1 );

    m_sysweb = new TQComboBox( false, buttonGroup2, "m_sysweb" );

    buttonGroup2Layout->addWidget( m_sysweb, 8, 1 );

    textLabel2_7_2_2 = new TQLabel( buttonGroup2, "textLabel2_7_2_2" );

    buttonGroup2Layout->addWidget( textLabel2_7_2_2, 8, 0 );

    LogPrefWidgetBaseLayout->addWidget( buttonGroup2, 0, 1 );

    buttonGroup3 = new TQButtonGroup( this, "buttonGroup3" );
    buttonGroup3->setColumnLayout(0, TQt::Vertical );
    buttonGroup3->layout()->setSpacing( 6 );
    buttonGroup3->layout()->setMargin( 11 );
    buttonGroup3Layout = new TQGridLayout( buttonGroup3->layout() );
    buttonGroup3Layout->setAlignment( TQt::AlignTop );

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

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

    textLabel2_8 = new TQLabel( buttonGroup3, "textLabel2_8" );

    buttonGroup3Layout->addWidget( textLabel2_8, 1, 0 );

    textLabel2_9 = new TQLabel( buttonGroup3, "textLabel2_9" );

    buttonGroup3Layout->addWidget( textLabel2_9, 2, 0 );

    textLabel2_10 = new TQLabel( buttonGroup3, "textLabel2_10" );

    buttonGroup3Layout->addWidget( textLabel2_10, 3, 0 );

    m_sysgen = new TQComboBox( false, buttonGroup3, "m_sysgen" );

    buttonGroup3Layout->addWidget( m_sysgen, 0, 1 );

    m_syscon = new TQComboBox( false, buttonGroup3, "m_syscon" );

    buttonGroup3Layout->addWidget( m_syscon, 1, 1 );

    m_sysdht = new TQComboBox( false, buttonGroup3, "m_sysdht" );

    buttonGroup3Layout->addWidget( m_sysdht, 2, 1 );

    textLabel1_2 = new TQLabel( buttonGroup3, "textLabel1_2" );

    buttonGroup3Layout->addWidget( textLabel1_2, 4, 0 );

    m_systrk = new TQComboBox( false, buttonGroup3, "m_systrk" );

    buttonGroup3Layout->addWidget( m_systrk, 3, 1 );

    m_sysdio = new TQComboBox( false, buttonGroup3, "m_sysdio" );

    buttonGroup3Layout->addWidget( m_sysdio, 4, 1 );

    LogPrefWidgetBaseLayout->addWidget( buttonGroup3, 0, 0 );

    buttonGroup3_2 = new TQButtonGroup( this, "buttonGroup3_2" );
    buttonGroup3_2->setColumnLayout(0, TQt::Vertical );
    buttonGroup3_2->layout()->setSpacing( 6 );
    buttonGroup3_2->layout()->setMargin( 11 );
    buttonGroup3_2Layout = new TQGridLayout( buttonGroup3_2->layout() );
    buttonGroup3_2Layout->setAlignment( TQt::AlignTop );

    m_useRich = new TQCheckBox( buttonGroup3_2, "m_useRich" );

    buttonGroup3_2Layout->addWidget( m_useRich, 0, 0 );

    LogPrefWidgetBaseLayout->addMultiCellWidget( buttonGroup3_2, 1, 1, 0, 1 );
    languageChange();
    resize( TQSize(600, 480).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void LogPrefWidgetBase::languageChange()
{
    setCaption( tr2i18n( "LogViewer Options" ) );
    buttonGroup2->setTitle( tr2i18n( "Plugins" ) );
    m_sysipf->clear();
    m_sysipf->insertItem( tr2i18n( "All" ) );
    m_sysipf->insertItem( tr2i18n( "Debug" ) );
    m_sysipf->insertItem( tr2i18n( "Notice" ) );
    m_sysipf->insertItem( tr2i18n( "Important" ) );
    m_sysipf->insertItem( tr2i18n( "None" ) );
    textLabel2->setText( tr2i18n( "IPFilter:" ) );
    m_syssrc->clear();
    m_syssrc->insertItem( tr2i18n( "All" ) );
    m_syssrc->insertItem( tr2i18n( "Debug" ) );
    m_syssrc->insertItem( tr2i18n( "Notice" ) );
    m_syssrc->insertItem( tr2i18n( "Important" ) );
    m_syssrc->insertItem( tr2i18n( "None" ) );
    textLabel2_2->setText( tr2i18n( "Search:" ) );
    m_syspnp->clear();
    m_syspnp->insertItem( tr2i18n( "All" ) );
    m_syspnp->insertItem( tr2i18n( "Debug" ) );
    m_syspnp->insertItem( tr2i18n( "Notice" ) );
    m_syspnp->insertItem( tr2i18n( "Important" ) );
    m_syspnp->insertItem( tr2i18n( "None" ) );
    textLabel2_3->setText( tr2i18n( "UPnP:" ) );
    textLabel2_4->setText( tr2i18n( "ScanFolder:" ) );
    m_syssnf->clear();
    m_syssnf->insertItem( tr2i18n( "All" ) );
    m_syssnf->insertItem( tr2i18n( "Debug" ) );
    m_syssnf->insertItem( tr2i18n( "Notice" ) );
    m_syssnf->insertItem( tr2i18n( "Important" ) );
    m_syssnf->insertItem( tr2i18n( "None" ) );
    m_sysscd->clear();
    m_sysscd->insertItem( tr2i18n( "All" ) );
    m_sysscd->insertItem( tr2i18n( "Debug" ) );
    m_sysscd->insertItem( tr2i18n( "Notice" ) );
    m_sysscd->insertItem( tr2i18n( "Important" ) );
    m_sysscd->insertItem( tr2i18n( "None" ) );
    textLabel2_5->setText( tr2i18n( "Scheduler:" ) );
    m_syspfi->clear();
    m_syspfi->insertItem( tr2i18n( "All" ) );
    m_syspfi->insertItem( tr2i18n( "Debug" ) );
    m_syspfi->insertItem( tr2i18n( "Notice" ) );
    m_syspfi->insertItem( tr2i18n( "Important" ) );
    m_syspfi->insertItem( tr2i18n( "None" ) );
    textLabel2_6->setText( tr2i18n( "PartFileImport:" ) );
    textLabel2_7->setText( tr2i18n( "InfoWidget:" ) );
    m_sysinw->clear();
    m_sysinw->insertItem( tr2i18n( "All" ) );
    m_sysinw->insertItem( tr2i18n( "Debug" ) );
    m_sysinw->insertItem( tr2i18n( "Notice" ) );
    m_sysinw->insertItem( tr2i18n( "Important" ) );
    m_sysinw->insertItem( tr2i18n( "None" ) );
    textLabel2_7_2->setText( tr2i18n( "RSS plugin:" ) );
    m_sysrss->clear();
    m_sysrss->insertItem( tr2i18n( "All" ) );
    m_sysrss->insertItem( tr2i18n( "Debug" ) );
    m_sysrss->insertItem( tr2i18n( "Notice" ) );
    m_sysrss->insertItem( tr2i18n( "Important" ) );
    m_sysrss->insertItem( tr2i18n( "None" ) );
    m_sysweb->clear();
    m_sysweb->insertItem( tr2i18n( "All" ) );
    m_sysweb->insertItem( tr2i18n( "Debug" ) );
    m_sysweb->insertItem( tr2i18n( "Notice" ) );
    m_sysweb->insertItem( tr2i18n( "Important" ) );
    m_sysweb->insertItem( tr2i18n( "None" ) );
    textLabel2_7_2_2->setText( tr2i18n( "WebInterface plugin:" ) );
    buttonGroup3->setTitle( tr2i18n( "System" ) );
    textLabel1->setText( tr2i18n( "General:" ) );
    textLabel2_8->setText( tr2i18n( "Connections:" ) );
    textLabel2_9->setText( tr2i18n( "DHT:" ) );
    textLabel2_10->setText( tr2i18n( "Tracker:" ) );
    m_sysgen->clear();
    m_sysgen->insertItem( tr2i18n( "All" ) );
    m_sysgen->insertItem( tr2i18n( "Debug" ) );
    m_sysgen->insertItem( tr2i18n( "Notice" ) );
    m_sysgen->insertItem( tr2i18n( "Important" ) );
    m_sysgen->insertItem( tr2i18n( "None" ) );
    m_syscon->clear();
    m_syscon->insertItem( tr2i18n( "All" ) );
    m_syscon->insertItem( tr2i18n( "Debug" ) );
    m_syscon->insertItem( tr2i18n( "Notice" ) );
    m_syscon->insertItem( tr2i18n( "Important" ) );
    m_syscon->insertItem( tr2i18n( "None" ) );
    m_sysdht->clear();
    m_sysdht->insertItem( tr2i18n( "All" ) );
    m_sysdht->insertItem( tr2i18n( "Debug" ) );
    m_sysdht->insertItem( tr2i18n( "Notice" ) );
    m_sysdht->insertItem( tr2i18n( "Important" ) );
    m_sysdht->insertItem( tr2i18n( "None" ) );
    textLabel1_2->setText( tr2i18n( "Disk I/O:" ) );
    m_systrk->clear();
    m_systrk->insertItem( tr2i18n( "All" ) );
    m_systrk->insertItem( tr2i18n( "Debug" ) );
    m_systrk->insertItem( tr2i18n( "Notice" ) );
    m_systrk->insertItem( tr2i18n( "Important" ) );
    m_systrk->insertItem( tr2i18n( "None" ) );
    m_sysdio->clear();
    m_sysdio->insertItem( tr2i18n( "All" ) );
    m_sysdio->insertItem( tr2i18n( "Debug" ) );
    m_sysdio->insertItem( tr2i18n( "Notice" ) );
    m_sysdio->insertItem( tr2i18n( "Important" ) );
    m_sysdio->insertItem( tr2i18n( "None" ) );
    buttonGroup3_2->setTitle( tr2i18n( "Options" ) );
    m_useRich->setText( tr2i18n( "Use rich te&xt for log" ) );
}

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

TQMetaObject *LogPrefWidgetBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_LogPrefWidgetBase( "LogPrefWidgetBase", &LogPrefWidgetBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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