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

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

#include "csseditors.h"

#include <ntqvariant.h>
#include <kpushbutton.h>
#include <ntqpushbutton.h>
#include <ntqcheckbox.h>
#include <ntqsplitter.h>
#include <ntqtabwidget.h>
#include <ntqwidget.h>
#include <ntqheader.h>
#include <ntqlistview.h>
#include <ntqframe.h>
#include <ntqtextedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a CSSEditorS 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.
 */
CSSEditorS::CSSEditorS( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "CSSEditorS" );
    setSizeGripEnabled( true );
    CSSEditorSLayout = new TQGridLayout( this, 1, 1, 11, 6, "CSSEditorSLayout"); 
    spacer1 = new TQSpacerItem( 280, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    CSSEditorSLayout->addItem( spacer1, 2, 1 );

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

    pbOk = new TQPushButton( this, "pbOk" );
    pbOk->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, pbOk->sizePolicy().hasHeightForWidth() ) );
    layout6->addWidget( pbOk );

    pbCancel = new TQPushButton( this, "pbCancel" );
    pbCancel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, pbCancel->sizePolicy().hasHeightForWidth() ) );
    layout6->addWidget( pbCancel );

    CSSEditorSLayout->addLayout( layout6, 2, 2 );

    SHckb = new TQCheckBox( this, "SHckb" );
    SHckb->setChecked( false );

    CSSEditorSLayout->addMultiCellWidget( SHckb, 1, 1, 0, 1 );

    splitter3 = new TQSplitter( this, "splitter3" );
    splitter3->setFrameShape( TQSplitter::NoFrame );
    splitter3->setFrameShadow( TQSplitter::Plain );
    splitter3->setOrientation( TQSplitter::Horizontal );

    twMediaGroup = new TQTabWidget( splitter3, "twMediaGroup" );
    twMediaGroup->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, twMediaGroup->sizePolicy().hasHeightForWidth() ) );
    twMediaGroup->setMinimumSize( TQSize( 33, 7 ) );
    twMediaGroup->setMaximumSize( TQSize( 290, 32767 ) );

    tab = new TQWidget( twMediaGroup, "tab" );
    tabLayout = new TQGridLayout( tab, 1, 1, 0, 6, "tabLayout"); 

    lvVisual = new TQListView( tab, "lvVisual" );
    lvVisual->addColumn( tr2i18n( "Properties" ) );
    lvVisual->header()->setClickEnabled( false, lvVisual->header()->count() - 1 );
    lvVisual->header()->setResizeEnabled( false, lvVisual->header()->count() - 1 );
    lvVisual->setCursor( TQCursor( 13 ) );
    lvVisual->setResizeMode( TQListView::LastColumn );

    tabLayout->addWidget( lvVisual, 0, 0 );
    twMediaGroup->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( twMediaGroup, "tab_2" );
    tabLayout_2 = new TQGridLayout( tab_2, 1, 1, 0, 6, "tabLayout_2"); 

    lvPaged = new TQListView( tab_2, "lvPaged" );
    lvPaged->addColumn( tr2i18n( "Properties" ) );
    lvPaged->setResizeMode( TQListView::AllColumns );

    tabLayout_2->addWidget( lvPaged, 0, 0 );
    twMediaGroup->insertTab( tab_2, TQString::fromLatin1("") );

    tab_3 = new TQWidget( twMediaGroup, "tab_3" );
    tabLayout_3 = new TQGridLayout( tab_3, 1, 1, 0, 6, "tabLayout_3"); 

    lvInteractive = new TQListView( tab_3, "lvInteractive" );
    lvInteractive->addColumn( tr2i18n( "Properties" ) );
    lvInteractive->setResizeMode( TQListView::AllColumns );

    tabLayout_3->addWidget( lvInteractive, 0, 0 );
    twMediaGroup->insertTab( tab_3, TQString::fromLatin1("") );

    tab_4 = new TQWidget( twMediaGroup, "tab_4" );
    tabLayout_4 = new TQGridLayout( tab_4, 1, 1, 0, 6, "tabLayout_4"); 

    lvAural = new TQListView( tab_4, "lvAural" );
    lvAural->addColumn( tr2i18n( "Properties" ) );
    lvAural->setResizeMode( TQListView::AllColumns );

    tabLayout_4->addWidget( lvAural, 0, 0 );
    twMediaGroup->insertTab( tab_4, TQString::fromLatin1("") );

    tab_5 = new TQWidget( twMediaGroup, "tab_5" );
    tabLayout_5 = new TQGridLayout( tab_5, 1, 1, 0, 6, "tabLayout_5"); 

    lvAll = new TQListView( tab_5, "lvAll" );
    lvAll->addColumn( tr2i18n( "Properties" ) );
    lvAll->setResizeMode( TQListView::AllColumns );

    tabLayout_5->addWidget( lvAll, 0, 0 );
    twMediaGroup->insertTab( tab_5, TQString::fromLatin1("") );

    splitter3_2 = new TQSplitter( splitter3, "splitter3_2" );
    splitter3_2->setOrientation( TQSplitter::Vertical );

    fEditing = new TQFrame( splitter3_2, "fEditing" );
    fEditing->setFrameShape( TQFrame::StyledPanel );
    fEditing->setFrameShadow( TQFrame::Raised );

    fPreview = new TQFrame( splitter3_2, "fPreview" );
    fPreview->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, fPreview->sizePolicy().hasHeightForWidth() ) );
    fPreview->setMinimumSize( TQSize( 0, 200 ) );
    fPreview->setFrameShape( TQFrame::StyledPanel );
    fPreview->setFrameShadow( TQFrame::Raised );

    display = new TQTextEdit( splitter3_2, "display" );
    display->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, display->sizePolicy().hasHeightForWidth() ) );
    display->setMaximumSize( TQSize( 32766, 32766 ) );
    display->setReadOnly( true );

    CSSEditorSLayout->addMultiCellWidget( splitter3, 0, 0, 0, 2 );

    pbHelp = new KPushButton( this, "pbHelp" );
    pbHelp->setEnabled( false );

    CSSEditorSLayout->addWidget( pbHelp, 2, 0 );
    languageChange();
    resize( TQSize(631, 490).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

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

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void CSSEditorS::languageChange()
{
    setCaption( tr2i18n( "CSS Editor" ) );
    pbOk->setText( tr2i18n( "&OK" ) );
    pbCancel->setText( tr2i18n( "&Cancel" ) );
    SHckb->setText( tr2i18n( "Use shorthand form" ) );
    lvVisual->header()->setLabel( 0, tr2i18n( "Properties" ) );
    twMediaGroup->changeTab( tab, tr2i18n( "Visual" ) );
    lvPaged->header()->setLabel( 0, tr2i18n( "Properties" ) );
    twMediaGroup->changeTab( tab_2, tr2i18n( "Paged" ) );
    lvInteractive->header()->setLabel( 0, tr2i18n( "Properties" ) );
    twMediaGroup->changeTab( tab_3, tr2i18n( "Interactive" ) );
    lvAural->header()->setLabel( 0, tr2i18n( "Properties" ) );
    twMediaGroup->changeTab( tab_4, tr2i18n( "Aural" ) );
    lvAll->header()->setLabel( 0, tr2i18n( "Properties" ) );
    twMediaGroup->changeTab( tab_5, tr2i18n( "All" ) );
    pbHelp->setText( tr2i18n( "&Help" ) );
}

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

TQMetaObject *CSSEditorS::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_CSSEditorS( "CSSEditorS", &CSSEditorS::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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