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

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

#include "sq_writeoption.h"

#include <ntqvariant.h>
#include <knuminput.h>
#include <ntqpushbutton.h>
#include <ntqwidgetstack.h>
#include <ntqgroupbox.h>
#include <ntqcheckbox.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a SQ_WriteOption as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
SQ_WriteOption::SQ_WriteOption( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "SQ_WriteOption" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
    setMinimumSize( TQSize( 250, 0 ) );
    SQ_WriteOptionLayout = new TQGridLayout( this, 1, 1, 11, 6, "SQ_WriteOptionLayout"); 

    widgetStack = new TQWidgetStack( this, "widgetStack" );

    WStackPage = new TQWidget( widgetStack, "WStackPage" );
    WStackPageLayout = new TQGridLayout( WStackPage, 1, 1, 0, 0, "WStackPageLayout"); 

    groupBox1 = new TQGroupBox( WStackPage, "groupBox1" );
    groupBox1->setColumnLayout(0, TQt::Vertical );
    groupBox1->layout()->setSpacing( 6 );
    groupBox1->layout()->setMargin( 11 );
    groupBox1Layout = new TQGridLayout( groupBox1->layout() );
    groupBox1Layout->setAlignment( TQt::AlignTop );
    spacer1 = new TQSpacerItem( 16, 10, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    groupBox1Layout->addItem( spacer1, 3, 0 );

    checkRLE = new TQCheckBox( groupBox1, "checkRLE" );

    groupBox1Layout->addWidget( checkRLE, 2, 0 );

    slider = new KIntNumInput( groupBox1, "slider" );

    groupBox1Layout->addWidget( slider, 0, 0 );

    checkInterlaced = new TQCheckBox( groupBox1, "checkInterlaced" );

    groupBox1Layout->addWidget( checkInterlaced, 1, 0 );

    WStackPageLayout->addWidget( groupBox1, 0, 0 );
    widgetStack->addWidget( WStackPage, 0 );

    WStackPage_2 = new TQWidget( widgetStack, "WStackPage_2" );
    WStackPageLayout_2 = new TQGridLayout( WStackPage_2, 1, 1, 0, 0, "WStackPageLayout_2"); 

    groupBox2 = new TQGroupBox( WStackPage_2, "groupBox2" );
    groupBox2->setColumnLayout(0, TQt::Vertical );
    groupBox2->layout()->setSpacing( 6 );
    groupBox2->layout()->setMargin( 11 );
    groupBox2Layout = new TQGridLayout( groupBox2->layout() );
    groupBox2Layout->setAlignment( TQt::AlignTop );

    textLabel1 = new TQLabel( groupBox2, "textLabel1" );
    textLabel1->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignTop | TQLabel::AlignHCenter ) );
    textLabel1->setIndent( 20 );

    groupBox2Layout->addWidget( textLabel1, 0, 0 );

    WStackPageLayout_2->addWidget( groupBox2, 0, 0 );
    widgetStack->addWidget( WStackPage_2, 1 );

    SQ_WriteOptionLayout->addWidget( widgetStack, 0, 0 );
    languageChange();
    resize( TQSize(250, 340).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void SQ_WriteOption::languageChange()
{
    setCaption( tr2i18n( "SQ_WriteOption" ) );
    groupBox1->setTitle( TQString::null );
    checkRLE->setText( tr2i18n( "RLE compression" ) );
    slider->setLabel( tr2i18n( "Compression level" ) );
    checkInterlaced->setText( tr2i18n( "Interlaced" ) );
    groupBox2->setTitle( TQString::null );
    textLabel1->setText( tr2i18n( "<i>No special options available for this format</i>" ) );
}

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

TQMetaObject *SQ_WriteOption::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_SQ_WriteOption( "SQ_WriteOption", &SQ_WriteOption::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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