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

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

#include "gwchatpropswidget.h"

#include <ntqvariant.h>
#include <kpushbutton.h>
#include <tdelistbox.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqlineedit.h>
#include <ntqcheckbox.h>
#include <ntqframe.h>
#include <ntqbuttongroup.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    m_displayName = new TQLabel( this, "m_displayName" );
    GroupWiseChatPropsWidgetLayout->addWidget( m_displayName );

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

    m_creator = new TQLineEdit( this, "m_creator" );
    m_creator->setReadOnly( true );

    layout16->addWidget( m_creator, 4, 1 );

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

    layout16->addWidget( textLabel10_2, 2, 2 );

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

    layout16->addWidget( lblTopic, 1, 0 );

    m_disclaimer = new TQLineEdit( this, "m_disclaimer" );
    m_disclaimer->setReadOnly( false );

    layout16->addWidget( m_disclaimer, 1, 3 );

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

    layout16->addWidget( m__2_2, 2, 0 );

    m_topic = new TQLineEdit( this, "m_topic" );
    m_topic->setReadOnly( false );

    layout16->addWidget( m_topic, 1, 1 );

    m_query = new TQLineEdit( this, "m_query" );
    m_query->setReadOnly( true );

    layout16->addWidget( m_query, 2, 3 );

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

    layout16->addWidget( textLabel11_2_2, 3, 2 );

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

    layout16->addWidget( m__2_2_2, 3, 0 );

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

    layout16->addWidget( lbl_displayName_2, 1, 2 );

    m_description = new TQLineEdit( this, "m_description" );
    m_description->setReadOnly( true );

    layout16->addWidget( m_description, 5, 1 );

    m_maxUsers = new TQLineEdit( this, "m_maxUsers" );
    m_maxUsers->setReadOnly( true );

    layout16->addWidget( m_maxUsers, 3, 3 );

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

    layout16->addWidget( textLabel10, 4, 0 );

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

    layout16->addWidget( textLabel11, 5, 0 );

    m_createdOn = new TQLineEdit( this, "m_createdOn" );
    m_createdOn->setReadOnly( false );

    layout16->addWidget( m_createdOn, 3, 1 );

    m_archive = new TQCheckBox( this, "m_archive" );

    layout16->addWidget( m_archive, 4, 2 );

    m_owner = new TQLineEdit( this, "m_owner" );
    m_owner->setReadOnly( false );

    layout16->addWidget( m_owner, 2, 1 );

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

    layout16->addMultiCellWidget( line4, 0, 0, 0, 3 );
    GroupWiseChatPropsWidgetLayout->addLayout( layout16 );

    buttonGroup2 = new TQButtonGroup( this, "buttonGroup2" );
    buttonGroup2->setColumnLayout(0, TQt::Vertical );
    buttonGroup2->layout()->setSpacing( 6 );
    buttonGroup2->layout()->setMargin( 11 );
    buttonGroup2Layout = new TQHBoxLayout( buttonGroup2->layout() );
    buttonGroup2Layout->setAlignment( TQt::AlignTop );

    m_chkRead = new TQCheckBox( buttonGroup2, "m_chkRead" );
    buttonGroup2Layout->addWidget( m_chkRead );

    m_chkWrite = new TQCheckBox( buttonGroup2, "m_chkWrite" );
    buttonGroup2Layout->addWidget( m_chkWrite );

    m_chkModify = new TQCheckBox( buttonGroup2, "m_chkModify" );
    buttonGroup2Layout->addWidget( m_chkModify );
    GroupWiseChatPropsWidgetLayout->addWidget( buttonGroup2 );

    textLabel1 = new TQLabel( this, "textLabel1" );
    GroupWiseChatPropsWidgetLayout->addWidget( textLabel1 );

    m_acl = new TDEListBox( this, "m_acl" );
    GroupWiseChatPropsWidgetLayout->addWidget( m_acl );

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

    m_btnAddAcl = new KPushButton( this, "m_btnAddAcl" );
    layout15->addWidget( m_btnAddAcl );

    m_btnEditAcl = new KPushButton( this, "m_btnEditAcl" );
    layout15->addWidget( m_btnEditAcl );

    m_btnDeleteAcl = new KPushButton( this, "m_btnDeleteAcl" );
    layout15->addWidget( m_btnDeleteAcl );
    GroupWiseChatPropsWidgetLayout->addLayout( layout15 );
    languageChange();
    resize( TQSize(493, 425).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // buddies
    lblTopic->setBuddy( m_displayName );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void GroupWiseChatPropsWidget::languageChange()
{
    setCaption( tr2i18n( "GroupWiseChatPropertiesWidget" ) );
    m_displayName->setText( tr2i18n( "DISPLAY NAME" ) );
    m_creator->setText( TQString::null );
    TQToolTip::add( m_creator, tr2i18n( "The user who created the chatroom" ) );
    textLabel10_2->setText( tr2i18n( "Query:" ) );
    lblTopic->setText( tr2i18n( "Topic:" ) );
    m_disclaimer->setText( TQString::null );
    TQToolTip::add( m_disclaimer, tr2i18n( "A disclaimer for users entering the chatroom" ) );
    m__2_2->setText( tr2i18n( "Owner:" ) );
    m_topic->setText( TQString::null );
    TQToolTip::add( m_topic, tr2i18n( "The current topic of the discussion" ) );
    m_query->setText( TQString::null );
    TQToolTip::add( m_query, tr2i18n( "UNKNOWN" ) );
    textLabel11_2_2->setText( tr2i18n( "Maximum Users:" ) );
    m__2_2_2->setText( tr2i18n( "Created on:" ) );
    lbl_displayName_2->setText( tr2i18n( "Disclaimer:" ) );
    m_description->setText( TQString::null );
    TQToolTip::add( m_description, tr2i18n( "General description of the chatroom" ) );
    m_maxUsers->setText( TQString::null );
    TQToolTip::add( m_maxUsers, tr2i18n( "Maximum simultaneous users allowed in the chatroom" ) );
    textLabel10->setText( tr2i18n( "Creator:" ) );
    textLabel11->setText( tr2i18n( "Description:" ) );
    m_createdOn->setText( TQString::null );
    TQToolTip::add( m_createdOn, tr2i18n( "Date and time the chatroom was created" ) );
    m_archive->setText( tr2i18n( "Archived" ) );
    TQToolTip::add( m_archive, tr2i18n( "Indicates if the chatroom is being archived on the server" ) );
    m_owner->setText( TQString::null );
    TQToolTip::add( m_owner, tr2i18n( "The user who owns this chatroom" ) );
    buttonGroup2->setTitle( tr2i18n( "Default Access" ) );
    m_chkRead->setText( tr2i18n( "Read Message" ) );
    TQToolTip::add( m_chkRead, tr2i18n( "General permission to read messages in the chatroom" ) );
    m_chkWrite->setText( tr2i18n( "Write Message" ) );
    TQToolTip::add( m_chkWrite, tr2i18n( "General permission to write messages in the chatroom" ) );
    m_chkModify->setText( tr2i18n( "Modify Access" ) );
    TQToolTip::add( m_chkModify, tr2i18n( "General permission to modify the chatroom's access control list" ) );
    textLabel1->setText( tr2i18n( "Access Control List" ) );
    TQToolTip::add( m_acl, tr2i18n( "Access permissions for specific users" ) );
    m_btnAddAcl->setText( tr2i18n( "A&dd" ) );
    TQToolTip::add( m_btnAddAcl, tr2i18n( "Add a new ACL entry" ) );
    m_btnEditAcl->setText( tr2i18n( "Ed&it" ) );
    TQToolTip::add( m_btnEditAcl, tr2i18n( "Edit an existing ACL entry" ) );
    m_btnDeleteAcl->setText( tr2i18n( "D&elete" ) );
    TQToolTip::add( m_btnDeleteAcl, tr2i18n( "Delete a ACL entry" ) );
}

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

TQMetaObject *GroupWiseChatPropsWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_GroupWiseChatPropsWidget( "GroupWiseChatPropsWidget", &GroupWiseChatPropsWidget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* GroupWiseChatPropsWidget::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 TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"GroupWiseChatPropsWidget", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_GroupWiseChatPropsWidget.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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