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

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

#include "kxearchiveextssettingspage.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqlistbox.h>
#include <ntqlineedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    m_pLblExtensions = new TQLabel( this, "m_pLblExtensions" );

    KXEArchiveExtsSettingsPageLayout->addWidget( m_pLblExtensions, 0, 0 );

    m_pExtensions = new TQListBox( this, "m_pExtensions" );
    m_pExtensions->setMinimumSize( TQSize( 0, 80 ) );

    KXEArchiveExtsSettingsPageLayout->addWidget( m_pExtensions, 1, 0 );

    layout2 = new TQGridLayout( 0, 1, 1, 0, 6, "layout2"); 

    m_pLblExtension = new TQLabel( this, "m_pLblExtension" );

    layout2->addWidget( m_pLblExtension, 0, 0 );

    m_pExtension = new TQLineEdit( this, "m_pExtension" );

    layout2->addWidget( m_pExtension, 0, 1 );
    spacer2 = new TQSpacerItem( 71, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout2->addItem( spacer2, 1, 0 );

    layout1 = new TQHBoxLayout( 0, 0, 6, "layout1"); 

    m_pBtnNew = new TQPushButton( this, "m_pBtnNew" );
    layout1->addWidget( m_pBtnNew );

    m_pBtnDelete = new TQPushButton( this, "m_pBtnDelete" );
    layout1->addWidget( m_pBtnDelete );
    spacer1 = new TQSpacerItem( 41, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout1->addItem( spacer1 );

    layout2->addLayout( layout1, 1, 1 );

    KXEArchiveExtsSettingsPageLayout->addLayout( layout2, 2, 0 );
    languageChange();
    resize( TQSize(293, 187).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // buddies
    m_pLblExtensions->setBuddy( m_pExtensions );
    m_pLblExtension->setBuddy( m_pExtension );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KXEArchiveExtsSettingsPage::languageChange()
{
    setCaption( tr2i18n( "Archive Exts Settings Page" ) );
    m_pLblExtensions->setText( tr2i18n( "Extensions of archive &files:" ) );
    TQWhatsThis::add( m_pLblExtensions, tr2i18n( "<b>Extensions of archive files</b>\n"
"<br>\n"
"This list contains the known extensions for archive files.<br>\n"
"You can choose one to edit or remove it with the dialog widgets below." ) );
    TQWhatsThis::add( m_pExtensions, tr2i18n( "<b>Extensions of archive files</b>\n"
"<br>\n"
"This list contains the known extensions for archive files." ) );
    m_pLblExtension->setText( tr2i18n( "&Extension:" ) );
    TQWhatsThis::add( m_pLblExtension, tr2i18n( "<b>Extension</b>\n"
"<br>\n"
"Change the selected extension here." ) );
    TQWhatsThis::add( m_pExtension, tr2i18n( "<b>Extension</b>\n"
"<br>\n"
"Change the selected extension here." ) );
    m_pBtnNew->setText( tr2i18n( "&New" ) );
    TQWhatsThis::add( m_pBtnNew, tr2i18n( "<b>New</b>\n"
"<br>\n"
"You can create a new item for another known extension in the list above." ) );
    m_pBtnDelete->setText( tr2i18n( "&Delete" ) );
    TQWhatsThis::add( m_pBtnDelete, tr2i18n( "<b>Delete</b>\n"
"<br>\n"
"You can delete the selected extension from the list above." ) );
}

void KXEArchiveExtsSettingsPage::slotUpdateExtension(const TQString&)
{
    tqWarning( "KXEArchiveExtsSettingsPage::slotUpdateExtension(const TQString&): Not implemented yet" );
}

void KXEArchiveExtsSettingsPage::slotDeleteExtension()
{
    tqWarning( "KXEArchiveExtsSettingsPage::slotDeleteExtension(): Not implemented yet" );
}

void KXEArchiveExtsSettingsPage::slotAddExtension()
{
    tqWarning( "KXEArchiveExtsSettingsPage::slotAddExtension(): Not implemented yet" );
}

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

TQMetaObject *KXEArchiveExtsSettingsPage::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KXEArchiveExtsSettingsPage( "KXEArchiveExtsSettingsPage", &KXEArchiveExtsSettingsPage::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* KXEArchiveExtsSettingsPage::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 TQUParameter param_slot_0[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_0 = {"slotUpdateExtension", 1, param_slot_0 };
    static const TQUMethod slot_1 = {"slotDeleteExtension", 0, 0 };
    static const TQUMethod slot_2 = {"slotAddExtension", 0, 0 };
    static const TQUMethod slot_3 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "slotUpdateExtension(const TQString&)", &slot_0, TQMetaData::Public },
	{ "slotDeleteExtension()", &slot_1, TQMetaData::Public },
	{ "slotAddExtension()", &slot_2, TQMetaData::Public },
	{ "languageChange()", &slot_3, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"KXEArchiveExtsSettingsPage", parentObject,
	slot_tbl, 4,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_KXEArchiveExtsSettingsPage.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool KXEArchiveExtsSettingsPage::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: slotUpdateExtension((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 1: slotDeleteExtension(); break;
    case 2: slotAddExtension(); break;
    case 3: languageChange(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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