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

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

#include "configimageviewpage.h"

#include <ntqvariant.h>
#include <kcolorbutton.h>
#include <ntqpushbutton.h>
#include <ntqcheckbox.h>
#include <ntqlabel.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqframe.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    kcfg_enlargeSmallImages = new TQCheckBox( this, "kcfg_enlargeSmallImages" );

    ConfigImageViewPageLayout->addMultiCellWidget( kcfg_enlargeSmallImages, 0, 0, 0, 5 );

    textLabel1 = new TQLabel( this, "textLabel1" );

    ConfigImageViewPageLayout->addMultiCellWidget( textLabel1, 2, 2, 0, 1 );

    kcfg_backgroundColor = new KColorButton( this, "kcfg_backgroundColor" );

    ConfigImageViewPageLayout->addWidget( kcfg_backgroundColor, 2, 2 );
    spacer2 = new TQSpacerItem( 181, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    ConfigImageViewPageLayout->addMultiCell( spacer2, 2, 2, 3, 5 );

    textLabel1_3_2 = new TQLabel( this, "textLabel1_3_2" );

    ConfigImageViewPageLayout->addMultiCellWidget( textLabel1_3_2, 3, 3, 0, 5 );

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

    kcfg_smoothAlgorithm = new TQButtonGroup( this, "kcfg_smoothAlgorithm" );
    kcfg_smoothAlgorithm->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)5, 0, 0, kcfg_smoothAlgorithm->sizePolicy().hasHeightForWidth() ) );
    kcfg_smoothAlgorithm->setFrameShape( TQButtonGroup::NoFrame );
    kcfg_smoothAlgorithm->setColumnLayout(0, TQt::Vertical );
    kcfg_smoothAlgorithm->layout()->setSpacing( 6 );
    kcfg_smoothAlgorithm->layout()->setMargin( 0 );
    kcfg_smoothAlgorithmLayout = new TQVBoxLayout( kcfg_smoothAlgorithm->layout() );
    kcfg_smoothAlgorithmLayout->setAlignment( TQt::AlignTop );

    mSmoothNone = new TQRadioButton( kcfg_smoothAlgorithm, "mSmoothNone" );
    mSmoothNone->setChecked( true );
    kcfg_smoothAlgorithm->insert( mSmoothNone, 0 );
    kcfg_smoothAlgorithmLayout->addWidget( mSmoothNone );

    mSmoothFast = new TQRadioButton( kcfg_smoothAlgorithm, "mSmoothFast" );
    kcfg_smoothAlgorithm->insert( mSmoothFast, 1 );
    kcfg_smoothAlgorithmLayout->addWidget( mSmoothFast );

    mSmoothNormal = new TQRadioButton( kcfg_smoothAlgorithm, "mSmoothNormal" );
    kcfg_smoothAlgorithm->insert( mSmoothNormal, 2 );
    kcfg_smoothAlgorithmLayout->addWidget( mSmoothNormal );

    mSmoothBest = new TQRadioButton( kcfg_smoothAlgorithm, "mSmoothBest" );
    kcfg_smoothAlgorithm->insert( mSmoothBest, 3 );
    kcfg_smoothAlgorithmLayout->addWidget( mSmoothBest );
    layout4->addWidget( kcfg_smoothAlgorithm );

    line1 = new TQFrame( this, "line1" );
    line1->setFrameShape( TQFrame::VLine );
    line1->setFrameShadow( TQFrame::Sunken );
    line1->setFrameShape( TQFrame::VLine );
    layout4->addWidget( line1 );

    frame3 = new TQFrame( this, "frame3" );
    frame3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, frame3->sizePolicy().hasHeightForWidth() ) );
    frame3->setFrameShape( TQFrame::NoFrame );
    frame3->setFrameShadow( TQFrame::Raised );
    frame3Layout = new TQVBoxLayout( frame3, 0, 6, "frame3Layout"); 

    kcfg_delayedSmoothing = new TQCheckBox( frame3, "kcfg_delayedSmoothing" );
    kcfg_delayedSmoothing->setEnabled( false );
    frame3Layout->addWidget( kcfg_delayedSmoothing );

    textLabel1_4 = new TQLabel( frame3, "textLabel1_4" );
    textLabel1_4->setEnabled( false );
    textLabel1_4->setMargin( 3 );
    textLabel1_4->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignTop ) );
    frame3Layout->addWidget( textLabel1_4 );
    layout4->addWidget( frame3 );

    ConfigImageViewPageLayout->addMultiCellLayout( layout4, 4, 4, 0, 5 );
    spacer10_2_3_2 = new TQSpacerItem( 21, 16, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    ConfigImageViewPageLayout->addItem( spacer10_2_3_2, 5, 4 );

    mMouseWheelGroup = new TQButtonGroup( this, "mMouseWheelGroup" );
    mMouseWheelGroup->setFrameShape( TQButtonGroup::NoFrame );
    mMouseWheelGroup->setColumnLayout(0, TQt::Vertical );
    mMouseWheelGroup->layout()->setSpacing( 6 );
    mMouseWheelGroup->layout()->setMargin( 0 );
    mMouseWheelGroupLayout = new TQVBoxLayout( mMouseWheelGroup->layout() );
    mMouseWheelGroupLayout->setAlignment( TQt::AlignTop );

    mMouseWheelScroll = new TQRadioButton( mMouseWheelGroup, "mMouseWheelScroll" );
    mMouseWheelGroup->insert( mMouseWheelScroll, 1 );
    mMouseWheelGroupLayout->addWidget( mMouseWheelScroll );

    mMouseWheelBrowse = new TQRadioButton( mMouseWheelGroup, "mMouseWheelBrowse" );
    mMouseWheelGroup->insert( mMouseWheelBrowse, 0 );
    mMouseWheelGroupLayout->addWidget( mMouseWheelBrowse );

    ConfigImageViewPageLayout->addMultiCellWidget( mMouseWheelGroup, 7, 7, 0, 5 );

    textLabel1_3 = new TQLabel( this, "textLabel1_3" );

    ConfigImageViewPageLayout->addMultiCellWidget( textLabel1_3, 6, 6, 0, 5 );

    kcfg_showScrollBars = new TQCheckBox( this, "kcfg_showScrollBars" );

    ConfigImageViewPageLayout->addMultiCellWidget( kcfg_showScrollBars, 1, 1, 0, 5 );
    languageChange();
    resize( TQSize(387, 404).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( mSmoothNone, TQ_SIGNAL( toggled(bool) ), kcfg_delayedSmoothing, TQ_SLOT( setDisabled(bool) ) );
    connect( mSmoothNone, TQ_SIGNAL( toggled(bool) ), textLabel1_4, TQ_SLOT( setDisabled(bool) ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ConfigImageViewPage::languageChange()
{
    setCaption( tr2i18n( "Configure Image View" ) );
    kcfg_enlargeSmallImages->setText( tr2i18n( "Enlarge small images when auto &zoom is activated" ) );
    textLabel1->setText( tr2i18n( "Background color:" ) );
    kcfg_backgroundColor->setText( TQString::null );
    textLabel1_3_2->setText( tr2i18n( "<b>Smoothing</b>" ) );
    kcfg_smoothAlgorithm->setTitle( TQString::null );
    mSmoothNone->setText( tr2i18n( "None" ) );
    mSmoothFast->setText( tr2i18n( "Fast" ) );
    mSmoothNormal->setText( tr2i18n( "Normal" ) );
    mSmoothBest->setText( tr2i18n( "Best" ) );
    kcfg_delayedSmoothing->setText( tr2i18n( "Delayed smoothing" ) );
    textLabel1_4->setText( tr2i18n( "Using this option, Gwenview will display the image as fast as possible, and smooth it after a short delay.\n"
"Use this option if your computer is not very fast." ) );
    mMouseWheelGroup->setTitle( TQString::null );
    mMouseWheelScroll->setText( tr2i18n( "Scroll current image" ) );
    mMouseWheelBrowse->setText( tr2i18n( "Browse image list" ) );
    textLabel1_3->setText( tr2i18n( "<b>Mouse Wheel Behavior over Image</b>" ) );
    kcfg_showScrollBars->setText( tr2i18n( "Show scroll bars" ) );
}

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

TQMetaObject *ConfigImageViewPage::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ConfigImageViewPage( "ConfigImageViewPage", &ConfigImageViewPage::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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