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

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

#include "advanceddialogimpl.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqcombobox.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    qgbPriority = new TQGroupBox( this, "qgbPriority" );
    qgbPriority->setFrameShape( TQGroupBox::GroupBoxPanel );
    qgbPriority->setFrameShadow( TQGroupBox::Sunken );
    qgbPriority->setColumnLayout(0, TQt::Vertical );
    qgbPriority->layout()->setSpacing( 6 );
    qgbPriority->layout()->setMargin( 11 );
    qgbPriorityLayout = new TQGridLayout( qgbPriority->layout() );
    qgbPriorityLayout->setAlignment( TQt::AlignTop );

    qcbPriority = new TQComboBox( false, qgbPriority, "qcbPriority" );

    qgbPriorityLayout->addWidget( qcbPriority, 0, 0 );
    spacer5 = new TQSpacerItem( 31, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    qgbPriorityLayout->addItem( spacer5, 0, 1 );

    Form1Layout->addWidget( qgbPriority, 1, 0 );

    groupBox1 = new TQGroupBox( this, "groupBox1" );
    groupBox1->setColumnLayout(0, TQt::Vertical );
    groupBox1->layout()->setSpacing( 6 );
    groupBox1->layout()->setMargin( 11 );
    groupBox1Layout = new TQGridLayout( groupBox1->layout() );
    groupBox1Layout->setAlignment( TQt::AlignTop );

    qlMonitorLabel = new TQLabel( groupBox1, "qlMonitorLabel" );

    groupBox1Layout->addMultiCellWidget( qlMonitorLabel, 3, 4, 0, 1 );

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

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

    qlTopLeft = new TQLabel( groupBox1, "qlTopLeft" );
    layout1->addWidget( qlTopLeft );

    qcbTopLeft = new TQComboBox( false, groupBox1, "qcbTopLeft" );
    layout1->addWidget( qcbTopLeft );
    layout8->addLayout( layout1 );
    spacer6 = new TQSpacerItem( 41, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout8->addItem( spacer6 );

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

    qlTopRight = new TQLabel( groupBox1, "qlTopRight" );
    layout3->addWidget( qlTopRight );

    qcbTopRight = new TQComboBox( false, groupBox1, "qcbTopRight" );
    layout3->addWidget( qcbTopRight );
    layout8->addLayout( layout3 );

    groupBox1Layout->addMultiCellLayout( layout8, 0, 0, 0, 1 );

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

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

    qlBottomLeft = new TQLabel( groupBox1, "qlBottomLeft" );
    layout4->addWidget( qlBottomLeft );

    qcbBottomLeft = new TQComboBox( false, groupBox1, "qcbBottomLeft" );
    layout4->addWidget( qcbBottomLeft );
    layout9->addLayout( layout4 );
    spacer7 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout9->addItem( spacer7 );

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

    qlBottomRight = new TQLabel( groupBox1, "qlBottomRight" );
    layout2->addWidget( qlBottomRight );

    qcbBottomRight = new TQComboBox( false, groupBox1, "qcbBottomRight" );
    layout2->addWidget( qcbBottomRight );
    layout9->addLayout( layout2 );

    groupBox1Layout->addMultiCellLayout( layout9, 5, 5, 0, 1 );

    layout10 = new TQHBoxLayout( 0, 0, 6, "layout10"); 
    spacer8 = new TQSpacerItem( 21, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout10->addItem( spacer8 );

    monitorLabel = new TQLabel( groupBox1, "monitorLabel" );
    layout10->addWidget( monitorLabel );
    spacer9 = new TQSpacerItem( 31, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout10->addItem( spacer9 );

    groupBox1Layout->addMultiCellLayout( layout10, 2, 2, 0, 1 );
    spacer10 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    groupBox1Layout->addItem( spacer10, 1, 1 );
    spacer11 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    groupBox1Layout->addItem( spacer11, 4, 1 );

    Form1Layout->addWidget( groupBox1, 0, 0 );
    languageChange();
    resize( TQSize(403, 399).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void AdvancedDialogImpl::languageChange()
{
    qgbPriority->setTitle( tr2i18n( "Screen Saver Priority" ) );
    qcbPriority->clear();
    qcbPriority->insertItem( tr2i18n( "Low" ) );
    qcbPriority->insertItem( tr2i18n( "Medium" ) );
    qcbPriority->insertItem( tr2i18n( "High" ) );
    TQToolTip::add( qcbPriority, TQString::null );
    groupBox1->setTitle( tr2i18n( "Screen Corner Actions" ) );
    qlMonitorLabel->setText( TQString::null );
    qlTopLeft->setText( tr2i18n( "Top left:" ) );
    qcbTopLeft->clear();
    qcbTopLeft->insertItem( tr2i18n( "No Action" ) );
    qcbTopLeft->insertItem( tr2i18n( "Lock Screen" ) );
    qcbTopLeft->insertItem( tr2i18n( "Prevent Locking" ) );
    qlTopRight->setText( tr2i18n( "Top right:" ) );
    qcbTopRight->clear();
    qcbTopRight->insertItem( tr2i18n( "No Action" ) );
    qcbTopRight->insertItem( tr2i18n( "Lock Screen" ) );
    qcbTopRight->insertItem( tr2i18n( "Prevent Locking" ) );
    qlBottomLeft->setText( tr2i18n( "Bottom left:" ) );
    qcbBottomLeft->clear();
    qcbBottomLeft->insertItem( tr2i18n( "No Action" ) );
    qcbBottomLeft->insertItem( tr2i18n( "Lock Screen" ) );
    qcbBottomLeft->insertItem( tr2i18n( "Prevent Locking" ) );
    qlBottomRight->setText( tr2i18n( "Bottom right:" ) );
    qcbBottomRight->clear();
    qcbBottomRight->insertItem( tr2i18n( "No Action" ) );
    qcbBottomRight->insertItem( tr2i18n( "Lock Screen" ) );
    qcbBottomRight->insertItem( tr2i18n( "Prevent Locking" ) );
    monitorLabel->setText( TQString::null );
}

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

TQMetaObject *AdvancedDialogImpl::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_AdvancedDialogImpl( "AdvancedDialogImpl", &AdvancedDialogImpl::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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