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

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

#include "blacklistedit_Dialog.h"

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

/*
 *  Constructs a blacklistedit_Dialog 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.
 */
blacklistedit_Dialog::blacklistedit_Dialog( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "blacklistedit_Dialog" );
    setSizeGripEnabled( true );
    blacklistedit_DialogLayout = new TQGridLayout( this, 1, 1, 11, 6, "blacklistedit_DialogLayout"); 

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

    buttonOk = new TQPushButton( this, "buttonOk" );
    buttonOk->setAutoDefault( true );
    buttonOk->setDefault( true );

    layout2->addWidget( buttonOk, 0, 1 );

    buttonCancel = new TQPushButton( this, "buttonCancel" );
    buttonCancel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, buttonCancel->sizePolicy().hasHeightForWidth() ) );
    buttonCancel->setAutoDefault( true );

    layout2->addWidget( buttonCancel, 0, 3 );
    Horizontal_Spacing2 = new TQSpacerItem( 305, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout2->addItem( Horizontal_Spacing2, 0, 0 );

    blacklistedit_DialogLayout->addLayout( layout2, 1, 0 );

    bG_scheme = new TQButtonGroup( this, "bG_scheme" );
    bG_scheme->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, bG_scheme->sizePolicy().hasHeightForWidth() ) );
    bG_scheme->setColumnLayout(0, TQt::Vertical );
    bG_scheme->layout()->setSpacing( 6 );
    bG_scheme->layout()->setMargin( 11 );
    bG_schemeLayout = new TQGridLayout( bG_scheme->layout() );
    bG_schemeLayout->setAlignment( TQt::AlignTop );

    lE_blacklist = new TQLineEdit( bG_scheme, "lE_blacklist" );

    bG_schemeLayout->addWidget( lE_blacklist, 0, 0 );

    pB_add = new TQPushButton( bG_scheme, "pB_add" );

    bG_schemeLayout->addMultiCellWidget( pB_add, 0, 0, 1, 2 );

    pB_remove = new TQPushButton( bG_scheme, "pB_remove" );

    bG_schemeLayout->addMultiCellWidget( pB_remove, 1, 1, 1, 2 );

    lB_blacklist = new TQListBox( bG_scheme, "lB_blacklist" );
    lB_blacklist->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, lB_blacklist->sizePolicy().hasHeightForWidth() ) );
    lB_blacklist->setMinimumSize( TQSize( 0, 150 ) );

    bG_schemeLayout->addMultiCellWidget( lB_blacklist, 0, 2, 3, 3 );
    spacer22 = new TQSpacerItem( 31, 20, TQSizePolicy::Minimum, TQSizePolicy::Preferred );
    bG_schemeLayout->addItem( spacer22, 1, 0 );
    spacer23 = new TQSpacerItem( 21, 140, TQSizePolicy::Minimum, TQSizePolicy::Preferred );
    bG_schemeLayout->addItem( spacer23, 2, 2 );

    tLabel_info = new TQLabel( bG_scheme, "tLabel_info" );
    tLabel_info->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, tLabel_info->sizePolicy().hasHeightForWidth() ) );
    tLabel_info->setMinimumSize( TQSize( 220, 110 ) );
    tLabel_info->setAlignment( int( TQLabel::AlignBottom ) );

    bG_schemeLayout->addMultiCellWidget( tLabel_info, 2, 2, 0, 1 );

    blacklistedit_DialogLayout->addWidget( bG_scheme, 0, 0 );
    languageChange();
    resize( TQSize(490, 246).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( buttonOk, TQ_SIGNAL( released() ), this, TQ_SLOT( buttonOk_released() ) );
    connect( buttonCancel, TQ_SIGNAL( released() ), this, TQ_SLOT( buttonCancel_released() ) );
    connect( pB_remove, TQ_SIGNAL( released() ), this, TQ_SLOT( pB_remove_released() ) );
    connect( pB_add, TQ_SIGNAL( released() ), this, TQ_SLOT( pB_add_released() ) );
    connect( lE_blacklist, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( lE_blacklist_textChanged() ) );
    connect( lB_blacklist, TQ_SIGNAL( currentChanged(TQListBoxItem*) ), this, TQ_SLOT( lB_blacklist_currentChanged() ) );

    // tab order
    setTabOrder( buttonOk, buttonCancel );
    setTabOrder( buttonCancel, lE_blacklist );
    setTabOrder( lE_blacklist, pB_add );
    setTabOrder( pB_add, pB_remove );
    setTabOrder( pB_remove, lB_blacklist );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void blacklistedit_Dialog::languageChange()
{
    setCaption( tr2i18n( "Autosuspend Blacklist Edit" ) );
    buttonOk->setText( tr2i18n( "OK" ) );
    buttonCancel->setText( tr2i18n( "Cancel" ) );
    bG_scheme->setTitle( TQString::null );
    pB_add->setText( tr2i18n( "Add" ) );
    pB_remove->setText( tr2i18n( "Remove" ) );
    tLabel_info->setText( TQString::null );
}

void blacklistedit_Dialog::buttonOk_released()
{
    tqWarning( "blacklistedit_Dialog::buttonOk_released(): Not implemented yet" );
}

void blacklistedit_Dialog::buttonCancel_released()
{
    tqWarning( "blacklistedit_Dialog::buttonCancel_released(): Not implemented yet" );
}

void blacklistedit_Dialog::buttonApply_released()
{
    tqWarning( "blacklistedit_Dialog::buttonApply_released(): Not implemented yet" );
}

void blacklistedit_Dialog::pB_remove_released()
{
    tqWarning( "blacklistedit_Dialog::pB_remove_released(): Not implemented yet" );
}

void blacklistedit_Dialog::pB_add_released()
{
    tqWarning( "blacklistedit_Dialog::pB_add_released(): Not implemented yet" );
}

void blacklistedit_Dialog::lB_blacklist_selected(TQListBoxItem*)
{
    tqWarning( "blacklistedit_Dialog::lB_blacklist_selected(TQListBoxItem*): Not implemented yet" );
}

void blacklistedit_Dialog::lE_blacklist_textChanged()
{
    tqWarning( "blacklistedit_Dialog::lE_blacklist_textChanged(): Not implemented yet" );
}

void blacklistedit_Dialog::lB_blacklist_selected()
{
    tqWarning( "blacklistedit_Dialog::lB_blacklist_selected(): Not implemented yet" );
}

void blacklistedit_Dialog::lB_blacklist_currentChanged(TQListBoxItem*)
{
    tqWarning( "blacklistedit_Dialog::lB_blacklist_currentChanged(TQListBoxItem*): Not implemented yet" );
}

void blacklistedit_Dialog::lB_blacklist_currentChanged()
{
    tqWarning( "blacklistedit_Dialog::lB_blacklist_currentChanged(): Not implemented yet" );
}

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

TQMetaObject *blacklistedit_Dialog::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_blacklistedit_Dialog( "blacklistedit_Dialog", &blacklistedit_Dialog::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* blacklistedit_Dialog::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 = {"buttonOk_released", 0, 0 };
    static const TQUMethod slot_1 = {"buttonCancel_released", 0, 0 };
    static const TQUMethod slot_2 = {"buttonApply_released", 0, 0 };
    static const TQUMethod slot_3 = {"pB_remove_released", 0, 0 };
    static const TQUMethod slot_4 = {"pB_add_released", 0, 0 };
    static const TQUParameter param_slot_5[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"lB_blacklist_selected", 1, param_slot_5 };
    static const TQUMethod slot_6 = {"lE_blacklist_textChanged", 0, 0 };
    static const TQUMethod slot_7 = {"lB_blacklist_selected", 0, 0 };
    static const TQUParameter param_slot_8[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In }
    };
    static const TQUMethod slot_8 = {"lB_blacklist_currentChanged", 1, param_slot_8 };
    static const TQUMethod slot_9 = {"lB_blacklist_currentChanged", 0, 0 };
    static const TQUMethod slot_10 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "buttonOk_released()", &slot_0, TQMetaData::Public },
	{ "buttonCancel_released()", &slot_1, TQMetaData::Public },
	{ "buttonApply_released()", &slot_2, TQMetaData::Public },
	{ "pB_remove_released()", &slot_3, TQMetaData::Public },
	{ "pB_add_released()", &slot_4, TQMetaData::Public },
	{ "lB_blacklist_selected(TQListBoxItem*)", &slot_5, TQMetaData::Public },
	{ "lE_blacklist_textChanged()", &slot_6, TQMetaData::Public },
	{ "lB_blacklist_selected()", &slot_7, TQMetaData::Public },
	{ "lB_blacklist_currentChanged(TQListBoxItem*)", &slot_8, TQMetaData::Public },
	{ "lB_blacklist_currentChanged()", &slot_9, TQMetaData::Public },
	{ "languageChange()", &slot_10, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"blacklistedit_Dialog", parentObject,
	slot_tbl, 11,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_blacklistedit_Dialog.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool blacklistedit_Dialog::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: buttonOk_released(); break;
    case 1: buttonCancel_released(); break;
    case 2: buttonApply_released(); break;
    case 3: pB_remove_released(); break;
    case 4: pB_add_released(); break;
    case 5: lB_blacklist_selected((TQListBoxItem*)static_QUType_ptr.get(_o+1)); break;
    case 6: lE_blacklist_textChanged(); break;
    case 7: lB_blacklist_selected(); break;
    case 8: lB_blacklist_currentChanged((TQListBoxItem*)static_QUType_ptr.get(_o+1)); break;
    case 9: lB_blacklist_currentChanged(); break;
    case 10: languageChange(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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