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

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

#include "toolsconfigwidgetbase.h"

#include <ntqvariant.h>
#include <kdialog.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqlistbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

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

    toolmenuTab = new TQWidget( tabwidget, "toolmenuTab" );
    toolmenuTabLayout = new TQGridLayout( toolmenuTab, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "toolmenuTabLayout"); 

    toolsmenuBox = new TQListBox( toolmenuTab, "toolsmenuBox" );

    toolmenuTabLayout->addWidget( toolsmenuBox, 0, 0 );

    Layout4_3 = new TQVBoxLayout( 0, 0, KDialog::spacingHint(), "Layout4_3"); 
    Spacer9_3 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Layout4_3->addItem( Spacer9_3 );

    toolsmenuaddButton = new TQPushButton( toolmenuTab, "toolsmenuaddButton" );
    toolsmenuaddButton->setAutoDefault( true );
    Layout4_3->addWidget( toolsmenuaddButton );

    toolsmenuremoveButton = new TQPushButton( toolmenuTab, "toolsmenuremoveButton" );
    toolsmenuremoveButton->setAutoDefault( true );
    Layout4_3->addWidget( toolsmenuremoveButton );
    Spacer10_3 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Layout4_3->addItem( Spacer10_3 );

    toolmenuTabLayout->addLayout( Layout4_3, 0, 1 );
    Spacer11_3 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    toolmenuTabLayout->addItem( Spacer11_3, 1, 0 );
    tabwidget->insertTab( toolmenuTab, TQString::fromLatin1("") );

    filecontextTab = new TQWidget( tabwidget, "filecontextTab" );
    filecontextTabLayout = new TQGridLayout( filecontextTab, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "filecontextTabLayout"); 

    filecontextBox = new TQListBox( filecontextTab, "filecontextBox" );

    filecontextTabLayout->addWidget( filecontextBox, 0, 0 );

    Layout4_2 = new TQVBoxLayout( 0, 0, KDialog::spacingHint(), "Layout4_2"); 
    Spacer9_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Layout4_2->addItem( Spacer9_2 );

    filecontextaddButton = new TQPushButton( filecontextTab, "filecontextaddButton" );
    filecontextaddButton->setAutoDefault( true );
    Layout4_2->addWidget( filecontextaddButton );

    filecontextremoveButton = new TQPushButton( filecontextTab, "filecontextremoveButton" );
    filecontextremoveButton->setAutoDefault( true );
    Layout4_2->addWidget( filecontextremoveButton );
    Spacer10_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Layout4_2->addItem( Spacer10_2 );

    filecontextTabLayout->addLayout( Layout4_2, 0, 1 );
    Spacer11_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    filecontextTabLayout->addItem( Spacer11_2, 1, 0 );
    tabwidget->insertTab( filecontextTab, TQString::fromLatin1("") );

    dircontextTab = new TQWidget( tabwidget, "dircontextTab" );
    dircontextTabLayout = new TQGridLayout( dircontextTab, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "dircontextTabLayout"); 

    dircontextBox = new TQListBox( dircontextTab, "dircontextBox" );

    dircontextTabLayout->addWidget( dircontextBox, 0, 0 );

    Layout4 = new TQVBoxLayout( 0, 0, KDialog::spacingHint(), "Layout4"); 
    Spacer9 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Layout4->addItem( Spacer9 );

    dircontextaddButton = new TQPushButton( dircontextTab, "dircontextaddButton" );
    dircontextaddButton->setAutoDefault( true );
    Layout4->addWidget( dircontextaddButton );

    dircontextremoveButton = new TQPushButton( dircontextTab, "dircontextremoveButton" );
    dircontextremoveButton->setAutoDefault( true );
    Layout4->addWidget( dircontextremoveButton );
    Spacer10 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Layout4->addItem( Spacer10 );

    dircontextTabLayout->addLayout( Layout4, 0, 1 );
    Spacer11 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    dircontextTabLayout->addItem( Spacer11, 1, 0 );
    tabwidget->insertTab( dircontextTab, TQString::fromLatin1("") );
    tools_config_widgetLayout->addWidget( tabwidget );
    languageChange();
    resize( TQSize(541, 376).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( filecontextaddButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( filecontextaddClicked() ) );
    connect( dircontextaddButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( dircontextaddClicked() ) );
    connect( dircontextremoveButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( dircontextremoveClicked() ) );
    connect( filecontextremoveButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( filecontextremoveClicked() ) );
    connect( toolsmenuaddButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( toolsmenuaddClicked() ) );
    connect( toolsmenuremoveButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( toolsmenuremoveClicked() ) );

    // tab order
    setTabOrder( toolsmenuBox, toolsmenuaddButton );
    setTabOrder( toolsmenuaddButton, toolsmenuremoveButton );
    setTabOrder( toolsmenuremoveButton, tabwidget );
    setTabOrder( tabwidget, filecontextBox );
    setTabOrder( filecontextBox, filecontextaddButton );
    setTabOrder( filecontextaddButton, filecontextremoveButton );
    setTabOrder( filecontextremoveButton, dircontextBox );
    setTabOrder( dircontextBox, dircontextaddButton );
    setTabOrder( dircontextaddButton, dircontextremoveButton );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ToolsConfigWidgetBase::languageChange()
{
    setCaption( tr2i18n( "External Tools" ) );
    toolsmenuaddButton->setText( tr2i18n( "&Add..." ) );
    toolsmenuremoveButton->setText( tr2i18n( "&Remove" ) );
    tabwidget->changeTab( toolmenuTab, tr2i18n( "&Tools Menu" ) );
    filecontextaddButton->setText( tr2i18n( "&Add..." ) );
    filecontextremoveButton->setText( tr2i18n( "&Remove" ) );
    tabwidget->changeTab( filecontextTab, tr2i18n( "&File Context Menu" ) );
    dircontextaddButton->setText( tr2i18n( "&Add..." ) );
    dircontextremoveButton->setText( tr2i18n( "&Remove" ) );
    tabwidget->changeTab( dircontextTab, tr2i18n( "&Directory Context Menu" ) );
}

void ToolsConfigWidgetBase::dircontextaddClicked()
{
    tqWarning( "ToolsConfigWidgetBase::dircontextaddClicked(): Not implemented yet" );
}

void ToolsConfigWidgetBase::filecontextaddClicked()
{
    tqWarning( "ToolsConfigWidgetBase::filecontextaddClicked(): Not implemented yet" );
}

void ToolsConfigWidgetBase::filecontextremoveClicked()
{
    tqWarning( "ToolsConfigWidgetBase::filecontextremoveClicked(): Not implemented yet" );
}

void ToolsConfigWidgetBase::dircontextremoveClicked()
{
    tqWarning( "ToolsConfigWidgetBase::dircontextremoveClicked(): Not implemented yet" );
}

void ToolsConfigWidgetBase::toolsmenuaddClicked()
{
    tqWarning( "ToolsConfigWidgetBase::toolsmenuaddClicked(): Not implemented yet" );
}

void ToolsConfigWidgetBase::toolsmenuremoveClicked()
{
    tqWarning( "ToolsConfigWidgetBase::toolsmenuremoveClicked(): Not implemented yet" );
}

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

TQMetaObject *ToolsConfigWidgetBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ToolsConfigWidgetBase( "ToolsConfigWidgetBase", &ToolsConfigWidgetBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* ToolsConfigWidgetBase::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 TQUMethod slot_1 = {"dircontextaddClicked", 0, 0 };
    static const TQUMethod slot_2 = {"filecontextaddClicked", 0, 0 };
    static const TQUMethod slot_3 = {"filecontextremoveClicked", 0, 0 };
    static const TQUMethod slot_4 = {"dircontextremoveClicked", 0, 0 };
    static const TQUMethod slot_5 = {"toolsmenuaddClicked", 0, 0 };
    static const TQUMethod slot_6 = {"toolsmenuremoveClicked", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected },
	{ "dircontextaddClicked()", &slot_1, TQMetaData::Protected },
	{ "filecontextaddClicked()", &slot_2, TQMetaData::Protected },
	{ "filecontextremoveClicked()", &slot_3, TQMetaData::Protected },
	{ "dircontextremoveClicked()", &slot_4, TQMetaData::Protected },
	{ "toolsmenuaddClicked()", &slot_5, TQMetaData::Protected },
	{ "toolsmenuremoveClicked()", &slot_6, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"ToolsConfigWidgetBase", parentObject,
	slot_tbl, 7,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_ToolsConfigWidgetBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool ToolsConfigWidgetBase::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: languageChange(); break;
    case 1: dircontextaddClicked(); break;
    case 2: filecontextaddClicked(); break;
    case 3: filecontextremoveClicked(); break;
    case 4: dircontextremoveClicked(); break;
    case 5: toolsmenuaddClicked(); break;
    case 6: toolsmenuremoveClicked(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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