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

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

#include "kpropertiesdesktopadvbase.h"

#include <ntqvariant.h>
#include <klineedit.h>
#include <ntqpushbutton.h>
#include <ntqbuttongroup.h>
#include <ntqcheckbox.h>
#include <ntqlabel.h>
#include <ntqcombobox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    buttonGroup2 = new TQButtonGroup( this, "buttonGroup2" );
    buttonGroup2->setColumnLayout(0, TQt::Vertical );
    buttonGroup2->layout()->setSpacing( 6 );
    buttonGroup2->layout()->setMargin( 11 );
    buttonGroup2Layout = new TQGridLayout( buttonGroup2->layout() );
    buttonGroup2Layout->setAlignment( TQt::AlignTop );
    spacer3 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Minimum );
    buttonGroup2Layout->addMultiCell( spacer3, 1, 2, 0, 0 );

    terminalCheck = new TQCheckBox( buttonGroup2, "terminalCheck" );

    buttonGroup2Layout->addMultiCellWidget( terminalCheck, 0, 0, 0, 2 );

    terminalEditLabel = new TQLabel( buttonGroup2, "terminalEditLabel" );

    buttonGroup2Layout->addWidget( terminalEditLabel, 2, 1 );

    terminalCloseCheck = new TQCheckBox( buttonGroup2, "terminalCloseCheck" );

    buttonGroup2Layout->addMultiCellWidget( terminalCloseCheck, 1, 1, 1, 2 );

    terminalEdit = new KLineEdit( buttonGroup2, "terminalEdit" );

    buttonGroup2Layout->addWidget( terminalEdit, 2, 2 );
    widget11Layout->addWidget( buttonGroup2 );

    buttonGroup2_2 = new TQButtonGroup( this, "buttonGroup2_2" );
    buttonGroup2_2->setColumnLayout(0, TQt::Vertical );
    buttonGroup2_2->layout()->setSpacing( 6 );
    buttonGroup2_2->layout()->setMargin( 11 );
    buttonGroup2_2Layout = new TQGridLayout( buttonGroup2_2->layout() );
    buttonGroup2_2Layout->setAlignment( TQt::AlignTop );

    suidCheck = new TQCheckBox( buttonGroup2_2, "suidCheck" );

    buttonGroup2_2Layout->addMultiCellWidget( suidCheck, 0, 0, 0, 2 );
    spacer3_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Minimum );
    buttonGroup2_2Layout->addItem( spacer3_2, 1, 0 );

    suidEditLabel = new TQLabel( buttonGroup2_2, "suidEditLabel" );

    buttonGroup2_2Layout->addWidget( suidEditLabel, 1, 1 );

    suidEdit = new KLineEdit( buttonGroup2_2, "suidEdit" );

    buttonGroup2_2Layout->addWidget( suidEdit, 1, 2 );
    widget11Layout->addWidget( buttonGroup2_2 );

    buttonGroup4 = new TQButtonGroup( this, "buttonGroup4" );
    buttonGroup4->setColumnLayout(0, TQt::Vertical );
    buttonGroup4->layout()->setSpacing( 6 );
    buttonGroup4->layout()->setMargin( 11 );
    buttonGroup4Layout = new TQGridLayout( buttonGroup4->layout() );
    buttonGroup4Layout->setAlignment( TQt::AlignTop );

    startupInfoCheck = new TQCheckBox( buttonGroup4, "startupInfoCheck" );

    buttonGroup4Layout->addMultiCellWidget( startupInfoCheck, 0, 0, 0, 2 );

    systrayCheck = new TQCheckBox( buttonGroup4, "systrayCheck" );

    buttonGroup4Layout->addMultiCellWidget( systrayCheck, 1, 1, 0, 2 );

    textLabel12 = new TQLabel( buttonGroup4, "textLabel12" );

    buttonGroup4Layout->addWidget( textLabel12, 2, 0 );

    dcopCombo = new TQComboBox( false, buttonGroup4, "dcopCombo" );

    buttonGroup4Layout->addWidget( dcopCombo, 2, 1 );
    spacer33 = new TQSpacerItem( 50, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    buttonGroup4Layout->addItem( spacer33, 2, 2 );
    widget11Layout->addWidget( buttonGroup4 );
    languageChange();
    resize( TQSize(463, 294).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( terminalCheck, TQ_SIGNAL( toggled(bool) ), terminalCloseCheck, TQ_SLOT( setEnabled(bool) ) );
    connect( terminalCheck, TQ_SIGNAL( toggled(bool) ), terminalEdit, TQ_SLOT( setEnabled(bool) ) );
    connect( terminalCheck, TQ_SIGNAL( toggled(bool) ), terminalEditLabel, TQ_SLOT( setEnabled(bool) ) );
    connect( suidCheck, TQ_SIGNAL( toggled(bool) ), suidEdit, TQ_SLOT( setEnabled(bool) ) );
    connect( suidCheck, TQ_SIGNAL( toggled(bool) ), suidEditLabel, TQ_SLOT( setEnabled(bool) ) );

    // buddies
    terminalEditLabel->setBuddy( terminalEdit );
    suidEditLabel->setBuddy( suidEdit );
    textLabel12->setBuddy( dcopCombo );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KPropertiesDesktopAdvBase::languageChange()
{
    buttonGroup2->setTitle( tr2i18n( "Terminal" ) );
    terminalCheck->setText( tr2i18n( "&Run in terminal" ) );
    TQWhatsThis::add( terminalCheck, tr2i18n( "Check this option if the application you want to run is a text mode application or if you want the information that is provided by the terminal emulator window." ) );
    terminalEditLabel->setText( tr2i18n( "&Terminal options:" ) );
    terminalCloseCheck->setText( tr2i18n( "Do not &close when command exits" ) );
    TQWhatsThis::add( terminalCloseCheck, tr2i18n( "Check this option if the text mode application offers relevant information on exit. Keeping the terminal emulator open allows you to retrieve this information." ) );
    buttonGroup2_2->setTitle( tr2i18n( "User" ) );
    suidCheck->setText( tr2i18n( "Ru&n as a different user" ) );
    TQWhatsThis::add( suidCheck, tr2i18n( "Check this option if you want to run this application with a different user id. Every process has a different user id associated with it. This id code determines file access and other permissions. The password of the user is required to use this option." ) );
    suidEditLabel->setText( tr2i18n( "&Username:" ) );
    TQWhatsThis::add( suidEditLabel, tr2i18n( "Enter the user name you want to run the application as." ) );
    TQWhatsThis::add( suidEdit, tr2i18n( "Enter the user name you want to run the application as here." ) );
    buttonGroup4->setTitle( tr2i18n( "Startup" ) );
    startupInfoCheck->setText( tr2i18n( "Enable &launch feedback" ) );
    TQWhatsThis::add( startupInfoCheck, tr2i18n( "Check this option if you want to make clear that your application has started. This visual feedback may appear as a busy cursor or in the taskbar." ) );
    systrayCheck->setText( tr2i18n( "&Place in system tray" ) );
    TQWhatsThis::add( systrayCheck, tr2i18n( "Check this option if you want to have a system tray handle for your application." ) );
    textLabel12->setText( tr2i18n( "&DCOP registration:" ) );
    dcopCombo->clear();
    dcopCombo->insertItem( tr2i18n( "None" ) );
    dcopCombo->insertItem( tr2i18n( "Multiple Instances" ) );
    dcopCombo->insertItem( tr2i18n( "Single Instance" ) );
    dcopCombo->insertItem( tr2i18n( "Run Until Finished" ) );
}

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

TQMetaObject *KPropertiesDesktopAdvBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KPropertiesDesktopAdvBase( "KPropertiesDesktopAdvBase", &KPropertiesDesktopAdvBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* KPropertiesDesktopAdvBase::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(
	"KPropertiesDesktopAdvBase", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_KPropertiesDesktopAdvBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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