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

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

#include "configurationwidget.h"

#include <ntqvariant.h>
#include <knuminput.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqbuttongroup.h>
#include <ntqcheckbox.h>
#include <ntqframe.h>
#include <ntqlineedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqimage.h>
#include <ntqpixmap.h>

static const char* const image0_data[] = { 
"48 48 202 2",
"Qt c None",
"#9 c #000085",
"#W c #00008b",
"#V c #000094",
"#8 c #00009b",
"af c #0000a0",
"#7 c #0000b0",
"#K c #0000b5",
"#J c #0000b7",
"#I c #0000be",
"#D c #0000c0",
"#X c #0000c2",
"#6 c #0000c5",
"#L c #0000c9",
"#H c #0000ca",
"#C c #0000d0",
"#5 c #0000da",
"aa c #0000e0",
"#M c #0000ec",
"#G c #0000f4",
"aw c #0004ca",
"aD c #0012ca",
"ax c #0012f4",
"ao c #0020ef",
"aE c #0059f4",
"ag c #01017e",
"#B c #0404d4",
"ah c #070775",
"al c #080873",
"#x c #0808a8",
"#w c #0808c2",
"a. c #0c0c6c",
"aL c #0c0c9c",
"#v c #1010c1",
"#A c #1414a3",
"#Y c #1515e5",
"ay c #1555ff",
"a# c #181858",
"aK c #18187d",
"aJ c #181892",
"aQ c #1a1a71",
"ai c #1c1c51",
"aj c #212148",
"am c #28283d",
"#r c #282848",
"#q c #28284d",
"aU c #292945",
"ab c #2a2aff",
"aM c #2a37d0",
"ap c #2a60ff",
"ak c #2c2c37",
"#p c #2f2f52",
".# c #303030",
".a c #333333",
"aV c #363a4d",
"#u c #373737",
"bh c #393939",
"#S c #3a3a3a",
"#t c #3c3c3c",
"#y c #3d3d3d",
"aZ c #3e3e3e",
".b c #404040",
"#4 c #4040ef",
"an c #414141",
"aY c #424242",
".c c #434343",
"aX c #434445",
"#i c #444444",
"aW c #444b50",
"#h c #474747",
"av c #4848f9",
"#o c #4a4a52",
"#j c #4b4b4b",
"aH c #4e4e4e",
"#Z c #4e4eff",
"aR c #4e64c2",
"az c #4ea7ff",
"#n c #515151",
"aO c #518ad2",
".i c #525252",
"aB c #535353",
"aN c #5374dd",
"#g c #555555",
"#m c #575757",
"#l c #585858",
"#z c #585897",
"aI c #585898",
"#a c #595959",
".G c #5a5a5a",
"## c #5b5b5b",
".6 c #5e5e5e",
"#R c #5f5f5f",
"#c c #606060",
".R c #616161",
".F c #626262",
".7 c #636363",
"#0 c #646464",
".P c #656565",
".B c #686868",
"aC c #68686f",
".z c #696969",
"#N c #6a6afa",
"aF c #6aaaff",
".1 c #6c6c6c",
".V c #6e6e6e",
".0 c #6f6f6f",
"#s c #737373",
".Z c #747474",
"aP c #7494b4",
".T c #757575",
"#b c #767676",
"#. c #777777",
"ad c #787878",
".H c #797979",
".E c #7b7b7b",
".y c #7c7c7c",
".d c #7e7e7e",
".Q c #7f7f7f",
".t c #808080",
"#F c #8080ff",
"#d c #828282",
".S c #838383",
".l c #858585",
".O c #868686",
".2 c #878787",
".I c #888888",
"#k c #898989",
".4 c #8a8a8a",
".u c #8b8b8b",
"a4 c #8d7878",
".e c #8d8d8d",
".s c #8e8e8e",
"aT c #8e969b",
".U c #8f8f8f",
".h c #909090",
".o c #929292",
".N c #939393",
"aS c #93b7cf",
".n c #949494",
"#3 c #9595ff",
".W c #969696",
"b# c #977474",
"#f c #979797",
"ae c #989898",
".D c #999999",
".m c #9b9b9b",
".x c #9c9c9c",
".g c #9d9d9d",
"bf c #9e9797",
".q c #9f9f9f",
".f c #a0a0a0",
"bc c #a19c9c",
"#e c #a1a1a1",
".k c #a2a2a2",
"a0 c #a39393",
"bg c #a39c9c",
".5 c #a3a3a3",
"a7 c #a48a8a",
".M c #a5a5a5",
".9 c #a6a6a6",
"a5 c #a89393",
".C c #a8a8a8",
".J c #a9a9a9",
"bd c #ab8585",
"be c #ac8989",
".A c #acacac",
"a1 c #ad5d5d",
"ba c #ad8a8a",
".r c #adadad",
".Y c #b2b2b2",
".3 c #b3b3b3",
".p c #b4b4b4",
"a8 c #b63131",
".v c #b8b8b8",
".X c #b9b9b9",
".K c #bababa",
".8 c #bcbcbc",
".w c #bdbdbd",
"au c #bfbfe2",
"a2 c #c05050",
".L c #c1c1c1",
"a3 c #c25858",
".j c #c3c3c3",
"as c #c4c4c4",
"a6 c #c85d5d",
"ar c #cbcbcb",
"ac c #d4d4ff",
"aq c #d4dfff",
"a9 c #d51b1b",
"#T c #dcdcdc",
"#O c #dcdcff",
"aA c #dcedff",
"at c #dddddd",
"b. c #de2c2c",
"bb c #e23131",
"#E c #e2e2e2",
"#2 c #eaeaff",
"#1 c #eeeeee",
"#P c #f8f8ff",
"aG c #f8fbff",
"#U c #f9f9f9",
"#Q c #ffffff",
"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
"QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
".#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
".#.a.b.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.b.a",
".#.b.d.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e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.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#"};


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

    TabWidget2 = new TQTabWidget( this, "TabWidget2" );

    tab = new TQWidget( TabWidget2, "tab" );
    tabLayout = new TQVBoxLayout( tab, 11, 6, "tabLayout"); 

    GroupBox1 = new TQGroupBox( tab, "GroupBox1" );
    GroupBox1->setAlignment( int( TQGroupBox::AlignAuto ) );
    GroupBox1->setColumnLayout(0, TQt::Vertical );
    GroupBox1->layout()->setSpacing( 6 );
    GroupBox1->layout()->setMargin( 11 );
    GroupBox1Layout = new TQVBoxLayout( GroupBox1->layout() );
    GroupBox1Layout->setAlignment( TQt::AlignTop );

    invitationNumLabel = new TQLabel( GroupBox1, "invitationNumLabel" );
    GroupBox1Layout->addWidget( invitationNumLabel );

    manageInvitations = new TQPushButton( GroupBox1, "manageInvitations" );
    manageInvitations->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, manageInvitations->sizePolicy().hasHeightForWidth() ) );
    GroupBox1Layout->addWidget( manageInvitations );
    tabLayout->addWidget( GroupBox1 );

    ButtonGroup7 = new TQButtonGroup( tab, "ButtonGroup7" );
    ButtonGroup7->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, 0, 0, ButtonGroup7->sizePolicy().hasHeightForWidth() ) );
    ButtonGroup7->setColumnLayout(0, TQt::Vertical );
    ButtonGroup7->layout()->setSpacing( 6 );
    ButtonGroup7->layout()->setMargin( 11 );
    ButtonGroup7Layout = new TQVBoxLayout( ButtonGroup7->layout() );
    ButtonGroup7Layout->setAlignment( TQt::AlignTop );

    allowUninvitedCB = new TQCheckBox( ButtonGroup7, "allowUninvitedCB" );
    allowUninvitedCB->setChecked( true );
    ButtonGroup7Layout->addWidget( allowUninvitedCB );

    enableSLPCB = new TQCheckBox( ButtonGroup7, "enableSLPCB" );
    enableSLPCB->setChecked( true );
    ButtonGroup7Layout->addWidget( enableSLPCB );

    confirmConnectionsCB = new TQCheckBox( ButtonGroup7, "confirmConnectionsCB" );
    ButtonGroup7Layout->addWidget( confirmConnectionsCB );

    allowDesktopControlCB = new TQCheckBox( ButtonGroup7, "allowDesktopControlCB" );
    ButtonGroup7Layout->addWidget( allowDesktopControlCB );

    Frame4 = new TQFrame( ButtonGroup7, "Frame4" );
    Frame4->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, Frame4->sizePolicy().hasHeightForWidth() ) );
    Frame4->setFrameShape( TQFrame::NoFrame );
    Frame4->setFrameShadow( TQFrame::Plain );
    Frame4Layout = new TQVBoxLayout( Frame4, 6, 6, "Frame4Layout"); 

    TextLabel1 = new TQLabel( Frame4, "TextLabel1" );
    TextLabel1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
    Frame4Layout->addWidget( TextLabel1 );

    passwordInput = new TQLineEdit( Frame4, "passwordInput" );
    passwordInput->setMaxLength( 9 );
    passwordInput->setEchoMode( TQLineEdit::Password );
    Frame4Layout->addWidget( passwordInput );
    ButtonGroup7Layout->addWidget( Frame4 );
    tabLayout->addWidget( ButtonGroup7 );
    Spacer3 = new TQSpacerItem( 0, 50, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout->addItem( Spacer3 );
    TabWidget2->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( TabWidget2, "tab_2" );
    tabLayout_2 = new TQVBoxLayout( tab_2, 11, 6, "tabLayout_2"); 

    GroupBox4 = new TQGroupBox( tab_2, "GroupBox4" );
    GroupBox4->setColumnLayout(0, TQt::Vertical );
    GroupBox4->layout()->setSpacing( 6 );
    GroupBox4->layout()->setMargin( 11 );
    GroupBox4Layout = new TQVBoxLayout( GroupBox4->layout() );
    GroupBox4Layout->setAlignment( TQt::AlignTop );

    disableBackgroundCB = new TQCheckBox( GroupBox4, "disableBackgroundCB" );
    disableBackgroundCB->setChecked( false );
    GroupBox4Layout->addWidget( disableBackgroundCB );
    tabLayout_2->addWidget( GroupBox4 );
    Spacer4 = new TQSpacerItem( 0, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_2->addItem( Spacer4 );
    TabWidget2->insertTab( tab_2, TQString::fromLatin1("") );

    tab_3 = new TQWidget( TabWidget2, "tab_3" );
    tabLayout_3 = new TQVBoxLayout( tab_3, 11, 6, "tabLayout_3"); 

    GroupBox3 = new TQGroupBox( tab_3, "GroupBox3" );
    GroupBox3->setColumnLayout(0, TQt::Vertical );
    GroupBox3->layout()->setSpacing( 6 );
    GroupBox3->layout()->setMargin( 11 );
    GroupBox3Layout = new TQVBoxLayout( GroupBox3->layout() );
    GroupBox3Layout->setAlignment( TQt::AlignTop );

    autoPortCB = new TQCheckBox( GroupBox3, "autoPortCB" );
    autoPortCB->setChecked( true );
    GroupBox3Layout->addWidget( autoPortCB );

    portInputFrame = new TQFrame( GroupBox3, "portInputFrame" );
    portInputFrame->setEnabled( false );
    portInputFrame->setFrameShape( TQFrame::NoFrame );
    portInputFrame->setFrameShadow( TQFrame::Plain );
    portInputFrameLayout = new TQHBoxLayout( portInputFrame, 11, 6, "portInputFrameLayout"); 

    TextLabel1_2 = new TQLabel( portInputFrame, "TextLabel1_2" );
    portInputFrameLayout->addWidget( TextLabel1_2 );

    portInput = new KIntNumInput( portInputFrame, "portInput" );
    portInput->setValue( 5900 );
    portInput->setMinValue( 1024 );
    portInput->setMaxValue( 65535 );
    portInputFrameLayout->addWidget( portInput );
    GroupBox3Layout->addWidget( portInputFrame );
    tabLayout_3->addWidget( GroupBox3 );
    Spacer4_2 = new TQSpacerItem( 0, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_3->addItem( Spacer4_2 );
    TabWidget2->insertTab( tab_3, TQString::fromLatin1("") );
    ConfigurationWidgetLayout->addWidget( TabWidget2 );
    languageChange();
    resize( TQSize(421, 445).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( autoPortCB, TQ_SIGNAL( toggled(bool) ), portInputFrame, TQ_SLOT( setDisabled(bool) ) );
    connect( allowUninvitedCB, TQ_SIGNAL( toggled(bool) ), confirmConnectionsCB, TQ_SLOT( setEnabled(bool) ) );
    connect( allowUninvitedCB, TQ_SIGNAL( toggled(bool) ), allowDesktopControlCB, TQ_SLOT( setEnabled(bool) ) );
    connect( allowUninvitedCB, TQ_SIGNAL( toggled(bool) ), Frame4, TQ_SLOT( setEnabled(bool) ) );

    // tab order
    setTabOrder( autoPortCB, TabWidget2 );
    setTabOrder( TabWidget2, manageInvitations );
    setTabOrder( manageInvitations, allowUninvitedCB );
    setTabOrder( allowUninvitedCB, confirmConnectionsCB );
    setTabOrder( confirmConnectionsCB, allowDesktopControlCB );
    setTabOrder( allowDesktopControlCB, passwordInput );
    setTabOrder( passwordInput, portInput );

    // buddies
    TextLabel1->setBuddy( passwordInput );
    TextLabel1_2->setBuddy( portInput );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ConfigurationWidget::languageChange()
{
    GroupBox1->setTitle( tr2i18n( "Invitations" ) );
    invitationNumLabel->setText( tr2i18n( "You have no open invitations." ) );
    manageInvitations->setText( tr2i18n( "Create && &Manage Invitations..." ) );
    TQWhatsThis::add( manageInvitations, tr2i18n( "Click to view or delete the open invitations." ) );
    ButtonGroup7->setTitle( tr2i18n( "Uninvited Connections" ) );
    allowUninvitedCB->setText( tr2i18n( "Allow &uninvited connections" ) );
    TQWhatsThis::add( allowUninvitedCB, tr2i18n( "Select this option to allow connecting without inviting. This is useful if you want to access your desktop remotely." ) );
    enableSLPCB->setText( tr2i18n( "Announce service &on the network" ) );
    TQWhatsThis::add( enableSLPCB, tr2i18n( "If you allow uninvited connections and enable this option, Desktop Sharing will announce the service and your identity on the local network, so people can find you and your computer." ) );
    confirmConnectionsCB->setText( tr2i18n( "Confirm uninvited connections &before accepting" ) );
    TQWhatsThis::add( confirmConnectionsCB, tr2i18n( "If enabled, a dialog will appear when somebody attempts to connect, asking you whether you want to accept the connection." ) );
    allowDesktopControlCB->setText( tr2i18n( "A&llow uninvited connections to control the desktop" ) );
    TQWhatsThis::add( allowDesktopControlCB, tr2i18n( "Enable this option to allow uninvited user to control your desktop (using mouse and keyboard)." ) );
    TextLabel1->setText( tr2i18n( "Pass&word:" ) );
    TQWhatsThis::add( passwordInput, tr2i18n( "If you allow uninvited connections, it is highly recommended to set a password in order to protect your computer from unauthorized access." ) );
    TabWidget2->changeTab( tab, tr2i18n( "Acc&ess" ) );
    GroupBox4->setTitle( tr2i18n( "Session Preferences" ) );
    disableBackgroundCB->setText( tr2i18n( "Always disable &background image" ) );
    TQWhatsThis::add( disableBackgroundCB, tr2i18n( "Check this option to always disable the background image during a remote session. Otherwise the client decides whether the background will be enabled or disabled." ) );
    TabWidget2->changeTab( tab_2, tr2i18n( "&Session" ) );
    GroupBox3->setTitle( tr2i18n( "Network Port" ) );
    autoPortCB->setText( tr2i18n( "Assi&gn port automatically" ) );
    TQWhatsThis::add( autoPortCB, tr2i18n( "Check this option to assign the network port automatically. This is recommended unless your network setup requires you to use a fixed port, for example because of a firewall." ) );
    TextLabel1_2->setText( tr2i18n( "P&ort:" ) );
    TQToolTip::add( portInput, tr2i18n( "Enter the TCP port number here" ) );
    TQWhatsThis::add( portInput, tr2i18n( "Use this field to set a static port number for the desktop sharing service. Note that if the port is already in use the Desktop Sharing service will not be accessible until you free it. It is recommended to assign the port automatically unless you know what you are doing.\n"
"Most VNC clients use a display number instead of the actual port. This display number is the offset to port 5900, so port 5901 has the display number 1." ) );
    TabWidget2->changeTab( tab_3, tr2i18n( "&Network" ) );
}

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

TQMetaObject *ConfigurationWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ConfigurationWidget( "ConfigurationWidget", &ConfigurationWidget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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