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

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

#include "broadcasteditorui.h"

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

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

    Layout6 = new TQVBoxLayout( 0, 0, 6, "Layout6"); 

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

    Layout2 = new TQVBoxLayout( 0, 0, 6, "Layout2"); 

    TextLabel1 = new TQLabel( this, "TextLabel1" );
    TextLabel1->setScaledContents( false );
    Layout2->addWidget( TextLabel1 );

    channelLb = new TQListBox( this, "channelLb" );
    channelLb->setColumnMode( TQListBox::FixedNumber );
    Layout2->addWidget( channelLb );
    Layout4->addLayout( Layout2 );

    Layout1 = new TQVBoxLayout( 0, 0, 6, "Layout1"); 
    Spacer1 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Layout1->addItem( Spacer1 );

    addBtn = new KPushButton( this, "addBtn" );
    Layout1->addWidget( addBtn );

    resetBtn = new KPushButton( this, "resetBtn" );
    Layout1->addWidget( resetBtn );
    Spacer2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Layout1->addItem( Spacer2 );
    Layout4->addLayout( Layout1 );

    Layout3 = new TQVBoxLayout( 0, 0, 6, "Layout3"); 

    TextLabel2 = new TQLabel( this, "TextLabel2" );
    Layout3->addWidget( TextLabel2 );

    broadcastLb = new TQListBox( this, "broadcastLb" );
    broadcastLb->setColumnMode( TQListBox::FixedNumber );
    Layout3->addWidget( broadcastLb );
    Layout4->addLayout( Layout3 );
    Layout6->addLayout( Layout4 );

    Line1 = new TQFrame( this, "Line1" );
    Line1->setFrameShape( TQFrame::HLine );
    Line1->setFrameShadow( TQFrame::Sunken );
    Line1->setFrameShape( TQFrame::HLine );
    Layout6->addWidget( Line1 );

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

    cancelBtn = new KPushButton( this, "cancelBtn" );
    Layout5->addWidget( cancelBtn );
    Spacer3 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout5->addItem( Spacer3 );

    okBtn = new KPushButton( this, "okBtn" );
    Layout5->addWidget( okBtn );
    Layout6->addLayout( Layout5 );

    BroadcastEditorUILayout->addLayout( Layout6, 0, 0 );
    languageChange();
    resize( TQSize(458, 378).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( addBtn, TQ_SIGNAL( clicked() ), this, TQ_SLOT( addToList() ) );
    connect( resetBtn, TQ_SIGNAL( clicked() ), this, TQ_SLOT( resetList() ) );
    connect( cancelBtn, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );
    connect( okBtn, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) );

    // tab order
    setTabOrder( channelLb, addBtn );
    setTabOrder( addBtn, resetBtn );
    setTabOrder( resetBtn, broadcastLb );
    setTabOrder( broadcastLb, cancelBtn );
    setTabOrder( cancelBtn, okBtn );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void BroadcastEditorUI::languageChange()
{
    setCaption( tr2i18n( "Broadcasting Editor" ) );
    TextLabel1->setText( tr2i18n( "Available channels:" ) );
    channelLb->clear();
    channelLb->insertItem( tr2i18n( "New Item" ) );
    addBtn->setText( TQString::null );
    resetBtn->setText( TQString::null );
    TextLabel2->setText( tr2i18n( "Broadcasting list:" ) );
    broadcastLb->clear();
    broadcastLb->insertItem( tr2i18n( "New Item" ) );
    cancelBtn->setText( TQString::null );
    okBtn->setText( TQString::null );
}

void BroadcastEditorUI::addToList()
{
    tqWarning( "BroadcastEditorUI::addToList(): Not implemented yet" );
}

void BroadcastEditorUI::resetList()
{
    tqWarning( "BroadcastEditorUI::resetList(): Not implemented yet" );
}

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

TQMetaObject *BroadcastEditorUI::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_BroadcastEditorUI( "BroadcastEditorUI", &BroadcastEditorUI::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* BroadcastEditorUI::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 = {"addToList", 0, 0 };
    static const TQUMethod slot_1 = {"resetList", 0, 0 };
    static const TQUMethod slot_2 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "addToList()", &slot_0, TQMetaData::Public },
	{ "resetList()", &slot_1, TQMetaData::Public },
	{ "languageChange()", &slot_2, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"BroadcastEditorUI", parentObject,
	slot_tbl, 3,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_BroadcastEditorUI.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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