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

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

#include "graphicsconfigwidget.h"

#include <ntqvariant.h>
#include <klineedit.h>
#include <ntqbuttongroup.h>
#include <ntqlabel.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    m_bgGraphics = new TQButtonGroup( this, "m_bgGraphics" );
    m_bgGraphics->setColumnLayout(0, TQt::Vertical );
    m_bgGraphics->layout()->setSpacing( 6 );
    m_bgGraphics->layout()->setMargin( 11 );
    m_bgGraphicsLayout = new TQGridLayout( m_bgGraphics->layout() );
    m_bgGraphicsLayout->setAlignment( TQt::AlignTop );

    m_tlResolution = new TQLabel( m_bgGraphics, "m_tlResolution" );

    m_bgGraphicsLayout->addWidget( m_tlResolution, 0, 0 );

    kcfg_resolution = new KLineEdit( m_bgGraphics, "kcfg_resolution" );

    m_bgGraphicsLayout->addWidget( kcfg_resolution, 0, 1 );

    m_tlBbox = new TQLabel( m_bgGraphics, "m_tlBbox" );

    m_bgGraphicsLayout->addWidget( m_tlBbox, 2, 0 );

    m_tlImageMagick = new TQLabel( m_bgGraphics, "m_tlImageMagick" );

    m_bgGraphicsLayout->addWidget( m_tlImageMagick, 4, 0 );

    m_tlResolutionHelp = new TQLabel( m_bgGraphics, "m_tlResolutionHelp" );
    m_tlResolutionHelp->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 1, 0, m_tlResolutionHelp->sizePolicy().hasHeightForWidth() ) );

    m_bgGraphicsLayout->addWidget( m_tlResolutionHelp, 1, 1 );

    kcfg_boundingbox = new TQCheckBox( m_bgGraphics, "kcfg_boundingbox" );

    m_bgGraphicsLayout->addWidget( kcfg_boundingbox, 2, 1 );

    m_tlBBoxHelp = new TQLabel( m_bgGraphics, "m_tlBBoxHelp" );

    m_bgGraphicsLayout->addWidget( m_tlBBoxHelp, 3, 1 );

    m_lbImagemagick = new TQLabel( m_bgGraphics, "m_lbImagemagick" );

    m_bgGraphicsLayout->addWidget( m_lbImagemagick, 4, 1 );
    KileWidgetGraphicsConfigLayout->addWidget( m_bgGraphics );
    languageChange();
    resize( TQSize(602, 180).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // buddies
    m_tlResolution->setBuddy( kcfg_resolution );
    m_tlBbox->setBuddy( kcfg_boundingbox );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KileWidgetGraphicsConfig::languageChange()
{
    setCaption( tr2i18n( "Graphics" ) );
    m_bgGraphics->setTitle( tr2i18n( "Include Graphics" ) );
    m_tlResolution->setText( tr2i18n( "Default resolution:" ) );
    m_tlBbox->setText( tr2i18n( "Bounding box:" ) );
    m_tlImageMagick->setText( tr2i18n( "ImageMagick:" ) );
    m_tlResolutionHelp->setText( tr2i18n( "(used when the picture offers no resolution)" ) );
    kcfg_boundingbox->setText( tr2i18n( "Tr&y to determine from the picture" ) );
    m_tlBBoxHelp->setText( tr2i18n( "(you have to install the ImageMagick package to use this option)" ) );
    m_lbImagemagick->setText( TQString::null );
}

void KileWidgetGraphicsConfig::slotConfigure()
{
    tqWarning( "KileWidgetGraphicsConfig::slotConfigure(): Not implemented yet" );
}

void KileWidgetGraphicsConfig::init()
{
}

void KileWidgetGraphicsConfig::setLatexCommands(TDEConfig*,KileDocument::LatexCommands*)
{
    tqWarning( "KileWidgetGraphicsConfig::setLatexCommands(TDEConfig*,KileDocument::LatexCommands*): Not implemented yet" );
}

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

TQMetaObject *KileWidgetGraphicsConfig::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KileWidgetGraphicsConfig( "KileWidgetGraphicsConfig", &KileWidgetGraphicsConfig::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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