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

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

#include "LogFileSettings.h"

#include <ntqvariant.h>
#include <kcolorbutton.h>
#include <kdialog.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqwidget.h>
#include <ntqgroupbox.h>
#include <ntqlineedit.h>
#include <ntqbuttongroup.h>
#include <ntqlabel.h>
#include <ntqlistbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a LogFileSettings 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.
 */
LogFileSettings::LogFileSettings( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "LogFileSettings" );
    setSizeGripEnabled( true );
    LogFileSettingsLayout = new TQVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint(), "LogFileSettingsLayout"); 

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

    tab = new TQWidget( TabWidget, "tab" );
    tabLayout = new TQVBoxLayout( tab, KDialog::marginHint(), KDialog::spacingHint(), "tabLayout"); 

    GroupBox8 = new TQGroupBox( tab, "GroupBox8" );
    GroupBox8->setColumnLayout(0, TQt::Vertical );
    GroupBox8->layout()->setSpacing( KDialog::spacingHint() );
    GroupBox8->layout()->setMargin( KDialog::marginHint() );
    GroupBox8Layout = new TQHBoxLayout( GroupBox8->layout() );
    GroupBox8Layout->setAlignment( TQt::AlignTop );

    title = new TQLineEdit( GroupBox8, "title" );
    GroupBox8Layout->addWidget( title );
    tabLayout->addWidget( GroupBox8 );

    styleGroup = new TQButtonGroup( tab, "styleGroup" );
    styleGroup->setExclusive( true );
    styleGroup->setColumnLayout(0, TQt::Vertical );
    styleGroup->layout()->setSpacing( KDialog::spacingHint() );
    styleGroup->layout()->setMargin( KDialog::marginHint() );
    styleGroupLayout = new TQVBoxLayout( styleGroup->layout() );
    styleGroupLayout->setAlignment( TQt::AlignTop );

    layout6 = new TQHBoxLayout( 0, 0, KDialog::spacingHint(), "layout6"); 

    layout5 = new TQVBoxLayout( 0, 0, KDialog::spacingHint(), "layout5"); 

    textLabel1 = new TQLabel( styleGroup, "textLabel1" );
    layout5->addWidget( textLabel1 );

    textLabel2 = new TQLabel( styleGroup, "textLabel2" );
    layout5->addWidget( textLabel2 );
    layout6->addLayout( layout5 );

    layout4 = new TQVBoxLayout( 0, 0, KDialog::spacingHint(), "layout4"); 

    fgColor = new KColorButton( styleGroup, "fgColor" );
    layout4->addWidget( fgColor );

    bgColor = new KColorButton( styleGroup, "bgColor" );
    layout4->addWidget( bgColor );
    layout6->addLayout( layout4 );
    styleGroupLayout->addLayout( layout6 );
    Spacer8 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    styleGroupLayout->addItem( Spacer8 );
    tabLayout->addWidget( styleGroup );

    GroupBox11 = new TQGroupBox( tab, "GroupBox11" );
    GroupBox11->setColumnLayout(0, TQt::Vertical );
    GroupBox11->layout()->setSpacing( KDialog::spacingHint() );
    GroupBox11->layout()->setMargin( KDialog::marginHint() );
    GroupBox11Layout = new TQHBoxLayout( GroupBox11->layout() );
    GroupBox11Layout->setAlignment( TQt::AlignTop );
    Spacer14 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    GroupBox11Layout->addItem( Spacer14 );

    fontButton = new TQPushButton( GroupBox11, "fontButton" );
    GroupBox11Layout->addWidget( fontButton );
    tabLayout->addWidget( GroupBox11 );
    TabWidget->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( TabWidget, "tab_2" );
    tabLayout_2 = new TQHBoxLayout( tab_2, KDialog::marginHint(), KDialog::spacingHint(), "tabLayout_2"); 

    Layout7 = new TQVBoxLayout( 0, 0, KDialog::spacingHint(), "Layout7"); 

    ruleText = new TQLineEdit( tab_2, "ruleText" );
    Layout7->addWidget( ruleText );

    ruleList = new TQListBox( tab_2, "ruleList" );
    Layout7->addWidget( ruleList );
    tabLayout_2->addLayout( Layout7 );

    Layout9 = new TQVBoxLayout( 0, 0, KDialog::spacingHint(), "Layout9"); 

    addButton = new TQPushButton( tab_2, "addButton" );
    Layout9->addWidget( addButton );

    deleteButton = new TQPushButton( tab_2, "deleteButton" );
    Layout9->addWidget( deleteButton );

    changeButton = new TQPushButton( tab_2, "changeButton" );
    Layout9->addWidget( changeButton );
    Spacer7_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Layout9->addItem( Spacer7_2 );
    tabLayout_2->addLayout( Layout9 );
    TabWidget->insertTab( tab_2, TQString::fromLatin1("") );
    LogFileSettingsLayout->addWidget( TabWidget );

    Layout5 = new TQHBoxLayout( 0, 0, KDialog::spacingHint(), "Layout5"); 

    okButton = new TQPushButton( this, "okButton" );
    okButton->setDefault( true );
    Layout5->addWidget( okButton );

    applyButton = new TQPushButton( this, "applyButton" );
    Layout5->addWidget( applyButton );
    Spacer1 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout5->addItem( Spacer1 );

    cancelButton = new TQPushButton( this, "cancelButton" );
    Layout5->addWidget( cancelButton );
    LogFileSettingsLayout->addLayout( Layout5 );
    languageChange();
    resize( TQSize(438, 320).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( okButton, applyButton );
    setTabOrder( applyButton, cancelButton );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void LogFileSettings::languageChange()
{
    setCaption( tr2i18n( "Log File Settings" ) );
    GroupBox8->setTitle( tr2i18n( "Title" ) );
    styleGroup->setTitle( tr2i18n( "Colors" ) );
    textLabel1->setText( tr2i18n( "Foreground color:" ) );
    textLabel2->setText( tr2i18n( "Background color:" ) );
    fgColor->setText( TQString::null );
    bgColor->setText( TQString::null );
    GroupBox11->setTitle( tr2i18n( "Font" ) );
    fontButton->setText( tr2i18n( "Select Font..." ) );
    TabWidget->changeTab( tab, tr2i18n( "Text" ) );
    addButton->setText( tr2i18n( "&Add" ) );
    deleteButton->setText( tr2i18n( "&Delete" ) );
    changeButton->setText( tr2i18n( "&Change" ) );
    TabWidget->changeTab( tab_2, tr2i18n( "Filter" ) );
    okButton->setText( tr2i18n( "&OK" ) );
    applyButton->setText( tr2i18n( "&Apply" ) );
    cancelButton->setText( tr2i18n( "&Cancel" ) );
}

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

TQMetaObject *LogFileSettings::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_LogFileSettings( "LogFileSettings", &LogFileSettings::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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