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

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

#include "fmfpeditors.h"

#include <ntqvariant.h>
#include <kurlrequester.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqwidget.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqspinbox.h>
#include <ntqlineedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqimage.h>
#include <ntqpixmap.h>

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

    Layout8 = new TQHBoxLayout( 0, 0, 6, "Layout8"); 
    Spacer1 = new TQSpacerItem( 55, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout8->addItem( Spacer1 );

    pbOk = new TQPushButton( this, "pbOk" );
    Layout8->addWidget( pbOk );

    pbCancel = new TQPushButton( this, "pbCancel" );
    Layout8->addWidget( pbCancel );

    fmFPeditorSLayout->addLayout( Layout8, 1, 0 );

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

    tab = new TQWidget( tw, "tab" );
    tabLayout = new TQGridLayout( tab, 1, 1, 11, 6, "tabLayout"); 

    bgBorder = new TQButtonGroup( tab, "bgBorder" );
    bgBorder->setColumnLayout(0, TQt::Vertical );
    bgBorder->layout()->setSpacing( 6 );
    bgBorder->layout()->setMargin( 11 );
    bgBorderLayout = new TQGridLayout( bgBorder->layout() );
    bgBorderLayout->setAlignment( TQt::AlignTop );

    rbBorderYes = new TQRadioButton( bgBorder, "rbBorderYes" );
    rbBorderYes->setChecked( true );

    bgBorderLayout->addWidget( rbBorderYes, 0, 0 );

    rbBorderNo = new TQRadioButton( bgBorder, "rbBorderNo" );
    rbBorderNo->setChecked( false );

    bgBorderLayout->addWidget( rbBorderNo, 0, 1 );

    tabLayout->addWidget( bgBorder, 4, 0 );

    gbMargins = new TQGroupBox( tab, "gbMargins" );
    gbMargins->setColumnLayout(0, TQt::Vertical );
    gbMargins->layout()->setSpacing( 6 );
    gbMargins->layout()->setMargin( 11 );
    gbMarginsLayout = new TQGridLayout( gbMargins->layout() );
    gbMarginsLayout->setAlignment( TQt::AlignTop );

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

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

    TextLabel2_3 = new TQLabel( gbMargins, "TextLabel2_3" );
    Layout4->addWidget( TextLabel2_3 );

    sbLeft = new TQSpinBox( gbMargins, "sbLeft" );
    sbLeft->setValue( 10 );
    Layout4->addWidget( sbLeft );
    Layout8_2->addLayout( Layout4 );

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

    TextLabel1_3 = new TQLabel( gbMargins, "TextLabel1_3" );
    Layout3->addWidget( TextLabel1_3 );

    sbTop = new TQSpinBox( gbMargins, "sbTop" );
    sbTop->setValue( 10 );
    Layout3->addWidget( sbTop );
    Layout8_2->addLayout( Layout3 );

    gbMarginsLayout->addLayout( Layout8_2, 0, 0 );

    tabLayout->addWidget( gbMargins, 2, 0 );

    bgScrolling = new TQButtonGroup( tab, "bgScrolling" );
    bgScrolling->setColumnLayout(0, TQt::Vertical );
    bgScrolling->layout()->setSpacing( 6 );
    bgScrolling->layout()->setMargin( 11 );
    bgScrollingLayout = new TQGridLayout( bgScrolling->layout() );
    bgScrollingLayout->setAlignment( TQt::AlignTop );

    rbScrollingYes = new TQRadioButton( bgScrolling, "rbScrollingYes" );

    bgScrollingLayout->addWidget( rbScrollingYes, 0, 0 );

    rbScrollingAuto = new TQRadioButton( bgScrolling, "rbScrollingAuto" );
    rbScrollingAuto->setChecked( true );

    bgScrollingLayout->addWidget( rbScrollingAuto, 0, 2 );

    rbScrollingNo = new TQRadioButton( bgScrolling, "rbScrollingNo" );

    bgScrollingLayout->addWidget( rbScrollingNo, 0, 1 );

    tabLayout->addWidget( bgScrolling, 3, 0 );

    bgNoresize = new TQButtonGroup( tab, "bgNoresize" );
    bgNoresize->setExclusive( false );
    bgNoresize->setColumnLayout(0, TQt::Vertical );
    bgNoresize->layout()->setSpacing( 6 );
    bgNoresize->layout()->setMargin( 11 );
    bgNoresizeLayout = new TQGridLayout( bgNoresize->layout() );
    bgNoresizeLayout->setAlignment( TQt::AlignTop );

    rbResizeYes = new TQRadioButton( bgNoresize, "rbResizeYes" );

    bgNoresizeLayout->addWidget( rbResizeYes, 0, 0 );

    rbResizeNo = new TQRadioButton( bgNoresize, "rbResizeNo" );
    rbResizeNo->setChecked( true );

    bgNoresizeLayout->addWidget( rbResizeNo, 0, 1 );

    tabLayout->addWidget( bgNoresize, 1, 0 );

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

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

    tlFrameSource = new TQLabel( tab, "tlFrameSource" );
    Layout9->addWidget( tlFrameSource );

    tlFrameName = new TQLabel( tab, "tlFrameName" );
    Layout9->addWidget( tlFrameName );
    Layout10->addLayout( Layout9 );

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

    fc = new KURLRequester( tab, "fc" );
    Layout8_3->addWidget( fc );

    leName = new TQLineEdit( tab, "leName" );
    Layout8_3->addWidget( leName );
    Layout10->addLayout( Layout8_3 );

    tabLayout->addLayout( Layout10, 0, 0 );
    tw->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( tw, "tab_2" );
    tabLayout_2 = new TQGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); 

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

    tlId = new TQLabel( tab_2, "tlId" );
    Layout11->addWidget( tlId );

    TextLabel2_2 = new TQLabel( tab_2, "TextLabel2_2" );
    Layout11->addWidget( TextLabel2_2 );

    TextLabel3 = new TQLabel( tab_2, "TextLabel3" );
    Layout11->addWidget( TextLabel3 );

    TextLabel4 = new TQLabel( tab_2, "TextLabel4" );
    Layout11->addWidget( TextLabel4 );

    TextLabel6 = new TQLabel( tab_2, "TextLabel6" );
    Layout11->addWidget( TextLabel6 );

    tabLayout_2->addLayout( Layout11, 0, 0 );

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

    leId = new TQLineEdit( tab_2, "leId" );
    Layout10_2->addWidget( leId );

    leClass = new TQLineEdit( tab_2, "leClass" );
    Layout10_2->addWidget( leClass );

    leStyle = new TQLineEdit( tab_2, "leStyle" );
    Layout10_2->addWidget( leStyle );

    leTitle = new TQLineEdit( tab_2, "leTitle" );
    Layout10_2->addWidget( leTitle );

    leLongdesc = new TQLineEdit( tab_2, "leLongdesc" );
    Layout10_2->addWidget( leLongdesc );

    tabLayout_2->addLayout( Layout10_2, 0, 1 );
    spacer2 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_2->addItem( spacer2, 1, 1 );
    tw->insertTab( tab_2, TQString::fromLatin1("") );

    fmFPeditorSLayout->addWidget( tw, 0, 0 );
    languageChange();
    resize( TQSize(320, 430).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( pbOk, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) );
    connect( pbCancel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void fmFPeditorS::languageChange()
{
    setCaption( tr2i18n( "Frame Properties" ) );
    pbOk->setText( tr2i18n( "&OK" ) );
    pbCancel->setText( tr2i18n( "&Cancel" ) );
    bgBorder->setTitle( tr2i18n( "Border" ) );
    rbBorderYes->setText( tr2i18n( "Yes" ) );
    rbBorderNo->setText( tr2i18n( "No" ) );
    gbMargins->setTitle( tr2i18n( "Margins" ) );
    TextLabel2_3->setText( tr2i18n( "From left:" ) );
    sbLeft->setSuffix( tr2i18n( "px" ) );
    TextLabel1_3->setText( tr2i18n( "From top:" ) );
    sbTop->setSuffix( tr2i18n( "px" ) );
    bgScrolling->setTitle( tr2i18n( "Scrolling" ) );
    rbScrollingYes->setText( tr2i18n( "Yes" ) );
    rbScrollingAuto->setText( tr2i18n( "Auto" ) );
    rbScrollingNo->setText( tr2i18n( "No" ) );
    bgNoresize->setTitle( tr2i18n( "Resize" ) );
    rbResizeYes->setText( tr2i18n( "Yes" ) );
    rbResizeNo->setText( tr2i18n( "No" ) );
    tlFrameSource->setText( tr2i18n( "Frame source:" ) );
    tlFrameName->setText( tr2i18n( "Frame name:" ) );
    tw->changeTab( tab, tr2i18n( "Common" ) );
    tlId->setText( tr2i18n( "Id:" ) );
    TextLabel2_2->setText( tr2i18n( "Class:" ) );
    TextLabel3->setText( tr2i18n( "Style:" ) );
    TextLabel4->setText( tr2i18n( "Title:" ) );
    TextLabel6->setText( tr2i18n( "Long description:" ) );
    tw->changeTab( tab_2, tr2i18n( "Others" ) );
}

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

TQMetaObject *fmFPeditorS::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_fmFPeditorS( "fmFPeditorS", &fmFPeditorS::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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