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

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

#include "MainWidgetBase.h"

#include <ntqvariant.h>
#include <kactivelabel.h>
#include <kcolorbutton.h>
#include <kcombobox.h>
#include <knuminput.h>
#include <kpushbutton.h>
#include <ksqueezedtextlabel.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqwidgetstack.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqcheckbox.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a MainWidgetBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
MainWidgetBase::MainWidgetBase( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "MainWidgetBase" );
    setCursor( TQCursor( 0 ) );
    setAcceptDrops( true );
    MainWidgetBaseLayout = new TQHBoxLayout( this, 11, 6, "MainWidgetBaseLayout"); 

    imagesTabs = new TQTabWidget( this, "imagesTabs" );
    imagesTabs->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, imagesTabs->sizePolicy().hasHeightForWidth() ) );
    imagesTabs->setMaximumSize( TQSize( 800, 600 ) );

    tab = new TQWidget( imagesTabs, "tab" );
    tabLayout = new TQGridLayout( tab, 1, 1, 11, 6, "tabLayout"); 
    imagesTabs->insertTab( tab, TQString::fromLatin1("") );
    MainWidgetBaseLayout->addWidget( imagesTabs );

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

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

    potracePage = new TQWidget( backendStack, "potracePage" );
    potracePageLayout = new TQGridLayout( potracePage, 1, 1, 11, 6, "potracePageLayout"); 

    tabWidget3 = new TQTabWidget( potracePage, "tabWidget3" );
    tabWidget3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)7, 0, 0, tabWidget3->sizePolicy().hasHeightForWidth() ) );

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

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

    textLabel2_3 = new TQLabel( groupBox2, "textLabel2_3" );

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

    blackLevel = new KDoubleNumInput( groupBox2, "blackLevel" );
    blackLevel->setValue( 0.5 );
    blackLevel->setMaxValue( 1 );

    groupBox2Layout->addWidget( blackLevel, 0, 1 );

    invertInput = new TQCheckBox( groupBox2, "invertInput" );

    groupBox2Layout->addMultiCellWidget( invertInput, 1, 1, 0, 1 );

    tabLayout_2->addWidget( groupBox2, 0, 0 );

    groupBox8 = new TQGroupBox( tab_2, "groupBox8" );
    groupBox8->setColumnLayout(0, TQt::Vertical );
    groupBox8->layout()->setSpacing( 6 );
    groupBox8->layout()->setMargin( 11 );
    groupBox8Layout = new TQGridLayout( groupBox8->layout() );
    groupBox8Layout->setAlignment( TQt::AlignTop );

    foregroundBtn = new KColorButton( groupBox8, "foregroundBtn" );
    foregroundBtn->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, foregroundBtn->sizePolicy().hasHeightForWidth() ) );

    groupBox8Layout->addWidget( foregroundBtn, 0, 1 );

    textLabel4_2_2_3 = new TQLabel( groupBox8, "textLabel4_2_2_3" );

    groupBox8Layout->addWidget( textLabel4_2_2_3, 0, 0 );

    opaque = new TQCheckBox( groupBox8, "opaque" );

    groupBox8Layout->addWidget( opaque, 1, 0 );

    backgroundBtn = new KColorButton( groupBox8, "backgroundBtn" );
    backgroundBtn->setEnabled( false );
    backgroundBtn->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, backgroundBtn->sizePolicy().hasHeightForWidth() ) );

    groupBox8Layout->addWidget( backgroundBtn, 1, 1 );

    tabLayout_2->addWidget( groupBox8, 0, 1 );

    groupBox1 = new TQGroupBox( tab_2, "groupBox1" );
    groupBox1->setColumnLayout(0, TQt::Vertical );
    groupBox1->layout()->setSpacing( 6 );
    groupBox1->layout()->setMargin( 11 );
    groupBox1Layout = new TQGridLayout( groupBox1->layout() );
    groupBox1Layout->setAlignment( TQt::AlignTop );

    kSqueezedTextLabel2 = new KSqueezedTextLabel( groupBox1, "kSqueezedTextLabel2" );
    kSqueezedTextLabel2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, kSqueezedTextLabel2->sizePolicy().hasHeightForWidth() ) );

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

    outputFormat = new KComboBox( false, groupBox1, "outputFormat" );
    outputFormat->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, outputFormat->sizePolicy().hasHeightForWidth() ) );

    groupBox1Layout->addMultiCellWidget( outputFormat, 1, 1, 1, 2 );

    tabLayout_2->addMultiCellWidget( groupBox1, 1, 1, 0, 1 );

    optionsStack = new TQWidgetStack( tab_2, "optionsStack" );

    psPage = new TQWidget( optionsStack, "psPage" );
    psPageLayout = new TQGridLayout( psPage, 1, 1, 11, 6, "psPageLayout"); 

    psFrame = new TQGroupBox( psPage, "psFrame" );
    psFrame->setColumnLayout(0, TQt::Vertical );
    psFrame->layout()->setSpacing( 6 );
    psFrame->layout()->setMargin( 11 );
    psFrameLayout = new TQGridLayout( psFrame->layout() );
    psFrameLayout->setAlignment( TQt::AlignTop );

    textLabel3_3 = new TQLabel( psFrame, "textLabel3_3" );

    psFrameLayout->addWidget( textLabel3_3, 0, 0 );

    pageSize = new KComboBox( false, psFrame, "pageSize" );
    pageSize->setEditable( true );

    psFrameLayout->addWidget( pageSize, 0, 1 );

    optimizedNumericalCode = new TQCheckBox( psFrame, "optimizedNumericalCode" );
    optimizedNumericalCode->setChecked( true );

    psFrameLayout->addMultiCellWidget( optimizedNumericalCode, 1, 1, 0, 1 );

    compressionLevel = new TQButtonGroup( psFrame, "compressionLevel" );
    compressionLevel->setColumnLayout(0, TQt::Vertical );
    compressionLevel->layout()->setSpacing( 6 );
    compressionLevel->layout()->setMargin( 11 );
    compressionLevelLayout = new TQVBoxLayout( compressionLevel->layout() );
    compressionLevelLayout->setAlignment( TQt::AlignTop );

    level1 = new TQRadioButton( compressionLevel, "level1" );
    compressionLevel->insert( level1, 3 );
    compressionLevelLayout->addWidget( level1 );

    level2 = new TQRadioButton( compressionLevel, "level2" );
    level2->setChecked( true );
    compressionLevel->insert( level2, 3 );
    compressionLevelLayout->addWidget( level2 );

    level3 = new TQRadioButton( compressionLevel, "level3" );
    compressionLevel->insert( level3, 3 );
    compressionLevelLayout->addWidget( level3 );

    psFrameLayout->addMultiCellWidget( compressionLevel, 0, 1, 2, 2 );

    psPageLayout->addWidget( psFrame, 0, 0 );
    optionsStack->addWidget( psPage, 0 );

    svgPage = new TQWidget( optionsStack, "svgPage" );
    svgPageLayout = new TQGridLayout( svgPage, 1, 1, 11, 6, "svgPageLayout"); 

    svgFrame = new TQGroupBox( svgPage, "svgFrame" );
    svgFrame->setColumnLayout(0, TQt::Vertical );
    svgFrame->layout()->setSpacing( 6 );
    svgFrame->layout()->setMargin( 11 );
    svgFrameLayout = new TQGridLayout( svgFrame->layout() );
    svgFrameLayout->setAlignment( TQt::AlignTop );

    SVGGroup = new TQCheckBox( svgFrame, "SVGGroup" );

    svgFrameLayout->addWidget( SVGGroup, 0, 0 );

    svgPageLayout->addWidget( svgFrame, 0, 0 );
    optionsStack->addWidget( svgPage, 1 );

    pgmPage = new TQWidget( optionsStack, "pgmPage" );
    pgmPageLayout = new TQGridLayout( pgmPage, 1, 1, 11, 6, "pgmPageLayout"); 

    pgmFrame = new TQGroupBox( pgmPage, "pgmFrame" );
    pgmFrame->setColumnLayout(0, TQt::Vertical );
    pgmFrame->layout()->setSpacing( 6 );
    pgmFrame->layout()->setMargin( 11 );
    pgmFrameLayout = new TQGridLayout( pgmFrame->layout() );
    pgmFrameLayout->setAlignment( TQt::AlignTop );

    textLabel5_2 = new TQLabel( pgmFrame, "textLabel5_2" );

    pgmFrameLayout->addWidget( textLabel5_2, 0, 0 );

    antialiasGamma = new KDoubleNumInput( pgmFrame, "antialiasGamma" );
    antialiasGamma->setValue( 2.2 );

    pgmFrameLayout->addWidget( antialiasGamma, 0, 1 );

    buttonGroup1 = new TQButtonGroup( pgmFrame, "buttonGroup1" );
    buttonGroup1->setColumnLayout(0, TQt::Vertical );
    buttonGroup1->layout()->setSpacing( 6 );
    buttonGroup1->layout()->setMargin( 11 );
    buttonGroup1Layout = new TQGridLayout( buttonGroup1->layout() );
    buttonGroup1Layout->setAlignment( TQt::AlignTop );

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

    scaleAllBTN = new TQRadioButton( buttonGroup1, "scaleAllBTN" );
    scaleAllBTN->setChecked( true );
    layout3->addWidget( scaleAllBTN );

    scaleAll = new KDoubleNumInput( buttonGroup1, "scaleAll" );
    layout3->addWidget( scaleAll );

    buttonGroup1Layout->addLayout( layout3, 0, 0 );

    layout4 = new TQGridLayout( 0, 1, 1, 0, 6, "layout4"); 

    textLabel10_3 = new TQLabel( buttonGroup1, "textLabel10_3" );
    textLabel10_3->setEnabled( false );

    layout4->addWidget( textLabel10_3, 2, 0 );

    scaleY = new KDoubleNumInput( buttonGroup1, "scaleY" );
    scaleY->setEnabled( false );

    layout4->addWidget( scaleY, 2, 1 );

    textLabel9_3 = new TQLabel( buttonGroup1, "textLabel9_3" );
    textLabel9_3->setEnabled( false );

    layout4->addWidget( textLabel9_3, 1, 0 );

    scaleXYBTN = new TQRadioButton( buttonGroup1, "scaleXYBTN" );
    buttonGroup1->insert( scaleXYBTN, -1 );

    layout4->addMultiCellWidget( scaleXYBTN, 0, 0, 0, 1 );

    scaleX = new KDoubleNumInput( buttonGroup1, "scaleX" );
    scaleX->setEnabled( false );

    layout4->addWidget( scaleX, 1, 1 );

    buttonGroup1Layout->addLayout( layout4, 0, 1 );

    pgmFrameLayout->addMultiCellWidget( buttonGroup1, 1, 1, 0, 1 );

    pgmPageLayout->addWidget( pgmFrame, 0, 0 );
    optionsStack->addWidget( pgmPage, 2 );

    undefinedPage = new TQWidget( optionsStack, "undefinedPage" );
    undefinedPageLayout = new TQGridLayout( undefinedPage, 1, 1, 11, 6, "undefinedPageLayout"); 

    kActiveLabel1 = new KActiveLabel( undefinedPage, "kActiveLabel1" );
    kActiveLabel1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, kActiveLabel1->sizePolicy().hasHeightForWidth() ) );

    undefinedPageLayout->addMultiCellWidget( kActiveLabel1, 1, 1, 1, 2 );
    spacer8 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    undefinedPageLayout->addItem( spacer8, 0, 1 );
    spacer9 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    undefinedPageLayout->addItem( spacer9, 2, 2 );
    spacer10 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    undefinedPageLayout->addItem( spacer10, 1, 0 );
    spacer11 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    undefinedPageLayout->addItem( spacer11, 1, 3 );
    optionsStack->addWidget( undefinedPage, 3 );

    tabLayout_2->addMultiCellWidget( optionsStack, 2, 2, 0, 1 );
    spacer6 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_2->addItem( spacer6, 3, 0 );
    tabWidget3->insertTab( tab_2, TQString::fromLatin1("") );

    tab_3 = new TQWidget( tabWidget3, "tab_3" );
    tabLayout_3 = new TQGridLayout( tab_3, 1, 1, 11, 6, "tabLayout_3"); 
    spacer5_2 = new TQSpacerItem( 20, 297, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_3->addItem( spacer5_2, 6, 0 );

    curveOptimization = new TQCheckBox( tab_3, "curveOptimization" );
    curveOptimization->setChecked( true );

    tabLayout_3->addMultiCellWidget( curveOptimization, 5, 5, 0, 1 );

    optimizationTolerance = new KDoubleNumInput( tab_3, "optimizationTolerance" );
    optimizationTolerance->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, optimizationTolerance->sizePolicy().hasHeightForWidth() ) );
    optimizationTolerance->setValue( 0.2 );

    tabLayout_3->addWidget( optimizationTolerance, 3, 1 );

    cornerThreshold = new KDoubleNumInput( tab_3, "cornerThreshold" );
    cornerThreshold->setValue( 1 );
    cornerThreshold->setMinValue( -1 );
    cornerThreshold->setMaxValue( 1.34 );
    cornerThreshold->setPrecision( 2 );

    tabLayout_3->addWidget( cornerThreshold, 2, 1 );

    despeckle = new KIntNumInput( tab_3, "despeckle" );
    despeckle->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, despeckle->sizePolicy().hasHeightForWidth() ) );
    despeckle->setMinValue( 0 );

    tabLayout_3->addWidget( despeckle, 1, 1 );

    policy = new KComboBox( false, tab_3, "policy" );
    policy->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, policy->sizePolicy().hasHeightForWidth() ) );

    tabLayout_3->addWidget( policy, 0, 1 );

    outputQuantization = new KIntNumInput( tab_3, "outputQuantization" );
    outputQuantization->setValue( 10 );
    outputQuantization->setMinValue( 0 );

    tabLayout_3->addWidget( outputQuantization, 4, 1 );

    textLabel1_4 = new TQLabel( tab_3, "textLabel1_4" );

    tabLayout_3->addWidget( textLabel1_4, 4, 0 );

    textLabel4 = new TQLabel( tab_3, "textLabel4" );

    tabLayout_3->addWidget( textLabel4, 3, 0 );

    textLabel3 = new TQLabel( tab_3, "textLabel3" );

    tabLayout_3->addWidget( textLabel3, 2, 0 );

    textLabel2 = new TQLabel( tab_3, "textLabel2" );

    tabLayout_3->addWidget( textLabel2, 1, 0 );

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

    tabLayout_3->addWidget( textLabel1, 0, 0 );
    tabWidget3->insertTab( tab_3, TQString::fromLatin1("") );

    TabPage = new TQWidget( tabWidget3, "TabPage" );
    TabPageLayout = new TQGridLayout( TabPage, 1, 1, 11, 6, "TabPageLayout"); 

    groupBox7 = new TQGroupBox( TabPage, "groupBox7" );
    groupBox7->setColumnLayout(0, TQt::Vertical );
    groupBox7->layout()->setSpacing( 6 );
    groupBox7->layout()->setMargin( 11 );
    groupBox7Layout = new TQGridLayout( groupBox7->layout() );
    groupBox7Layout->setAlignment( TQt::AlignTop );
    spacer17 = new TQSpacerItem( 80, 31, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox7Layout->addItem( spacer17, 2, 1 );
    spacer17_2 = new TQSpacerItem( 80, 31, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox7Layout->addItem( spacer17_2, 3, 1 );

    rotation = new KDoubleNumInput( groupBox7, "rotation" );
    rotation->setMinValue( -360 );
    rotation->setMaxValue( 360 );

    groupBox7Layout->addWidget( rotation, 3, 2 );

    stretch = new KDoubleNumInput( groupBox7, "stretch" );
    stretch->setValue( 1 );
    stretch->setMaxValue( 2 );

    groupBox7Layout->addWidget( stretch, 2, 2 );
    spacer17_3 = new TQSpacerItem( 80, 31, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox7Layout->addItem( spacer17_3, 1, 1 );

    height = new KDoubleNumInput( groupBox7, "height" );

    groupBox7Layout->addWidget( height, 1, 2 );

    width = new KDoubleNumInput( groupBox7, "width" );
    width->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, width->sizePolicy().hasHeightForWidth() ) );

    groupBox7Layout->addWidget( width, 0, 2 );
    spacer17_4 = new TQSpacerItem( 80, 31, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox7Layout->addItem( spacer17_4, 0, 1 );

    textLabel1_3 = new TQLabel( groupBox7, "textLabel1_3" );
    textLabel1_3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, textLabel1_3->sizePolicy().hasHeightForWidth() ) );

    groupBox7Layout->addWidget( textLabel1_3, 0, 3 );

    textLabel1_3_2 = new TQLabel( groupBox7, "textLabel1_3_2" );
    textLabel1_3_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, textLabel1_3_2->sizePolicy().hasHeightForWidth() ) );

    groupBox7Layout->addWidget( textLabel1_3_2, 1, 3 );

    textLabel1_3_4 = new TQLabel( groupBox7, "textLabel1_3_4" );
    textLabel1_3_4->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, textLabel1_3_4->sizePolicy().hasHeightForWidth() ) );

    groupBox7Layout->addWidget( textLabel1_3_4, 3, 3 );

    textLabel3_2 = new TQLabel( groupBox7, "textLabel3_2" );

    groupBox7Layout->addWidget( textLabel3_2, 3, 0 );

    textLabel8 = new TQLabel( groupBox7, "textLabel8" );

    groupBox7Layout->addWidget( textLabel8, 2, 0 );

    textLabel6 = new TQLabel( groupBox7, "textLabel6" );

    groupBox7Layout->addWidget( textLabel6, 1, 0 );

    textLabel5 = new TQLabel( groupBox7, "textLabel5" );

    groupBox7Layout->addWidget( textLabel5, 0, 0 );

    TabPageLayout->addWidget( groupBox7, 0, 0 );

    buttonGroup3 = new TQButtonGroup( TabPage, "buttonGroup3" );
    buttonGroup3->setColumnLayout(0, TQt::Vertical );
    buttonGroup3->layout()->setSpacing( 6 );
    buttonGroup3->layout()->setMargin( 11 );
    buttonGroup3Layout = new TQGridLayout( buttonGroup3->layout() );
    buttonGroup3Layout->setAlignment( TQt::AlignTop );

    resolutionAllBTN = new TQRadioButton( buttonGroup3, "resolutionAllBTN" );
    resolutionAllBTN->setChecked( true );
    buttonGroup3->insert( resolutionAllBTN, 2 );

    buttonGroup3Layout->addMultiCellWidget( resolutionAllBTN, 0, 0, 0, 1 );

    textLabel1_2 = new TQLabel( buttonGroup3, "textLabel1_2" );
    textLabel1_2->setEnabled( false );

    buttonGroup3Layout->addWidget( textLabel1_2, 3, 0 );

    textLabel2_2 = new TQLabel( buttonGroup3, "textLabel2_2" );
    textLabel2_2->setEnabled( false );

    buttonGroup3Layout->addWidget( textLabel2_2, 4, 0 );

    resolutionXYBTN = new TQRadioButton( buttonGroup3, "resolutionXYBTN" );
    buttonGroup3->insert( resolutionXYBTN, 2 );

    buttonGroup3Layout->addMultiCellWidget( resolutionXYBTN, 2, 2, 0, 1 );

    resolutionX = new KDoubleNumInput( buttonGroup3, "resolutionX" );
    resolutionX->setEnabled( false );

    buttonGroup3Layout->addWidget( resolutionX, 3, 1 );

    resolutionY = new KDoubleNumInput( buttonGroup3, "resolutionY" );
    resolutionY->setEnabled( false );

    buttonGroup3Layout->addWidget( resolutionY, 4, 1 );

    resolutionAll = new KDoubleNumInput( buttonGroup3, "resolutionAll" );

    buttonGroup3Layout->addMultiCellWidget( resolutionAll, 1, 1, 0, 1 );

    TabPageLayout->addWidget( buttonGroup3, 1, 0 );
    spacer7 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    TabPageLayout->addItem( spacer7, 2, 0 );
    tabWidget3->insertTab( TabPage, TQString::fromLatin1("") );

    TabPage_2 = new TQWidget( tabWidget3, "TabPage_2" );
    TabPageLayout_2 = new TQGridLayout( TabPage_2, 1, 1, 11, 6, "TabPageLayout_2"); 
    spacer5 = new TQSpacerItem( 20, 270, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    TabPageLayout_2->addItem( spacer5, 1, 0 );

    buttonGroup2 = new TQButtonGroup( TabPage_2, "buttonGroup2" );
    buttonGroup2->setColumnLayout(0, TQt::Vertical );
    buttonGroup2->layout()->setSpacing( 6 );
    buttonGroup2->layout()->setMargin( 11 );
    buttonGroup2Layout = new TQGridLayout( buttonGroup2->layout() );
    buttonGroup2Layout->setAlignment( TQt::AlignTop );

    textLabel1_3_7 = new TQLabel( buttonGroup2, "textLabel1_3_7" );
    textLabel1_3_7->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, textLabel1_3_7->sizePolicy().hasHeightForWidth() ) );

    buttonGroup2Layout->addWidget( textLabel1_3_7, 3, 5 );

    marginsB = new KDoubleNumInput( buttonGroup2, "marginsB" );
    marginsB->setEnabled( true );

    buttonGroup2Layout->addWidget( marginsB, 3, 4 );

    marginsT = new KDoubleNumInput( buttonGroup2, "marginsT" );
    marginsT->setEnabled( true );

    buttonGroup2Layout->addWidget( marginsT, 2, 4 );

    marginsR = new KDoubleNumInput( buttonGroup2, "marginsR" );
    marginsR->setEnabled( true );

    buttonGroup2Layout->addWidget( marginsR, 1, 4 );

    textLabel1_3_3 = new TQLabel( buttonGroup2, "textLabel1_3_3" );
    textLabel1_3_3->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, textLabel1_3_3->sizePolicy().hasHeightForWidth() ) );

    buttonGroup2Layout->addWidget( textLabel1_3_3, 0, 5 );

    textLabel1_3_5 = new TQLabel( buttonGroup2, "textLabel1_3_5" );
    textLabel1_3_5->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, textLabel1_3_5->sizePolicy().hasHeightForWidth() ) );

    buttonGroup2Layout->addWidget( textLabel1_3_5, 1, 5 );

    textLabel1_3_6 = new TQLabel( buttonGroup2, "textLabel1_3_6" );
    textLabel1_3_6->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, textLabel1_3_6->sizePolicy().hasHeightForWidth() ) );

    buttonGroup2Layout->addWidget( textLabel1_3_6, 2, 5 );

    marginsL = new KDoubleNumInput( buttonGroup2, "marginsL" );
    marginsL->setEnabled( true );
    marginsL->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, marginsL->sizePolicy().hasHeightForWidth() ) );

    buttonGroup2Layout->addWidget( marginsL, 0, 4 );
    spacer22 = new TQSpacerItem( 71, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    buttonGroup2Layout->addMultiCell( spacer22, 0, 0, 1, 3 );
    spacer22_2 = new TQSpacerItem( 71, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    buttonGroup2Layout->addMultiCell( spacer22_2, 1, 1, 2, 3 );
    spacer22_3 = new TQSpacerItem( 71, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    buttonGroup2Layout->addMultiCell( spacer22_3, 2, 2, 2, 3 );
    spacer22_4 = new TQSpacerItem( 71, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    buttonGroup2Layout->addItem( spacer22_4, 3, 3 );

    textLabel13 = new TQLabel( buttonGroup2, "textLabel13" );
    textLabel13->setEnabled( true );
    textLabel13->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, textLabel13->sizePolicy().hasHeightForWidth() ) );

    buttonGroup2Layout->addWidget( textLabel13, 2, 0 );

    textLabel12 = new TQLabel( buttonGroup2, "textLabel12" );
    textLabel12->setEnabled( true );
    textLabel12->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, textLabel12->sizePolicy().hasHeightForWidth() ) );

    buttonGroup2Layout->addMultiCellWidget( textLabel12, 1, 1, 0, 1 );

    textLabel11 = new TQLabel( buttonGroup2, "textLabel11" );
    textLabel11->setEnabled( true );
    textLabel11->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, textLabel11->sizePolicy().hasHeightForWidth() ) );

    buttonGroup2Layout->addWidget( textLabel11, 0, 0 );

    textLabel14 = new TQLabel( buttonGroup2, "textLabel14" );
    textLabel14->setEnabled( true );
    textLabel14->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, textLabel14->sizePolicy().hasHeightForWidth() ) );

    buttonGroup2Layout->addMultiCellWidget( textLabel14, 3, 3, 0, 2 );

    checkBoxSyncronizeMargins = new TQCheckBox( buttonGroup2, "checkBoxSyncronizeMargins" );
    checkBoxSyncronizeMargins->setEnabled( true );
    checkBoxSyncronizeMargins->setChecked( true );

    buttonGroup2Layout->addMultiCellWidget( checkBoxSyncronizeMargins, 4, 4, 0, 5 );

    TabPageLayout_2->addWidget( buttonGroup2, 0, 0 );
    tabWidget3->insertTab( TabPage_2, TQString::fromLatin1("") );

    potracePageLayout->addWidget( tabWidget3, 0, 0 );
    backendStack->addWidget( potracePage, 0 );

    autotracePage = new TQWidget( backendStack, "autotracePage" );
    autotracePageLayout = new TQGridLayout( autotracePage, 1, 1, 11, 6, "autotracePageLayout"); 

    autotraceTabs = new TQTabWidget( autotracePage, "autotraceTabs" );

    tab_4 = new TQWidget( autotraceTabs, "tab_4" );
    tabLayout_4 = new TQVBoxLayout( tab_4, 11, 6, "tabLayout_4"); 

    groupBox11 = new TQGroupBox( tab_4, "groupBox11" );
    groupBox11->setColumnLayout(0, TQt::Vertical );
    groupBox11->layout()->setSpacing( 6 );
    groupBox11->layout()->setMargin( 11 );
    groupBox11Layout = new TQGridLayout( groupBox11->layout() );
    groupBox11Layout->setAlignment( TQt::AlignTop );

    autotraceOutputFormat = new KComboBox( false, groupBox11, "autotraceOutputFormat" );

    groupBox11Layout->addWidget( autotraceOutputFormat, 0, 0 );
    tabLayout_4->addWidget( groupBox11 );

    groupBox9 = new TQGroupBox( tab_4, "groupBox9" );
    groupBox9->setColumnLayout(0, TQt::Vertical );
    groupBox9->layout()->setSpacing( 6 );
    groupBox9->layout()->setMargin( 11 );
    groupBox9Layout = new TQGridLayout( groupBox9->layout() );
    groupBox9Layout->setAlignment( TQt::AlignTop );

    autotraceDpiCheckbox = new TQCheckBox( groupBox9, "autotraceDpiCheckbox" );

    groupBox9Layout->addWidget( autotraceDpiCheckbox, 0, 0 );

    autotraceCheckBoxReduceColors = new TQCheckBox( groupBox9, "autotraceCheckBoxReduceColors" );
    autotraceCheckBoxReduceColors->setChecked( true );

    groupBox9Layout->addWidget( autotraceCheckBoxReduceColors, 1, 0 );

    autotraceDpiInput = new KIntNumInput( groupBox9, "autotraceDpiInput" );
    autotraceDpiInput->setEnabled( false );
    autotraceDpiInput->setMinValue( 0 );

    groupBox9Layout->addWidget( autotraceDpiInput, 0, 1 );

    autotraceColorCount = new KIntNumInput( groupBox9, "autotraceColorCount" );
    autotraceColorCount->setValue( 2 );
    autotraceColorCount->setMinValue( 2 );
    autotraceColorCount->setMaxValue( 256 );

    groupBox9Layout->addWidget( autotraceColorCount, 1, 1 );
    tabLayout_4->addWidget( groupBox9 );

    groupBox8_2 = new TQGroupBox( tab_4, "groupBox8_2" );
    groupBox8_2->setColumnLayout(0, TQt::Vertical );
    groupBox8_2->layout()->setSpacing( 6 );
    groupBox8_2->layout()->setMargin( 11 );
    groupBox8_2Layout = new TQGridLayout( groupBox8_2->layout() );
    groupBox8_2Layout->setAlignment( TQt::AlignTop );

    autotraceUseBackground = new TQCheckBox( groupBox8_2, "autotraceUseBackground" );

    groupBox8_2Layout->addWidget( autotraceUseBackground, 0, 0 );

    autotraceBackground = new KColorButton( groupBox8_2, "autotraceBackground" );
    autotraceBackground->setEnabled( false );
    autotraceBackground->setColor( TQColor( 255, 255, 255 ) );

    groupBox8_2Layout->addWidget( autotraceBackground, 0, 1 );
    tabLayout_4->addWidget( groupBox8_2 );

    groupBox10 = new TQGroupBox( tab_4, "groupBox10" );
    groupBox10->setEnabled( false );
    groupBox10->setColumnLayout(0, TQt::Vertical );
    groupBox10->layout()->setSpacing( 6 );
    groupBox10->layout()->setMargin( 11 );
    groupBox10Layout = new TQGridLayout( groupBox10->layout() );
    groupBox10Layout->setAlignment( TQt::AlignTop );

    autotraceLog = new TQCheckBox( groupBox10, "autotraceLog" );
    autotraceLog->setEnabled( false );

    groupBox10Layout->addWidget( autotraceLog, 0, 0 );
    tabLayout_4->addWidget( groupBox10 );
    spacer14 = new TQSpacerItem( 20, 30, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_4->addItem( spacer14 );
    autotraceTabs->insertTab( tab_4, TQString::fromLatin1("") );

    tab_5 = new TQWidget( autotraceTabs, "tab_5" );
    tabLayout_5 = new TQGridLayout( tab_5, 1, 1, 11, 6, "tabLayout_5"); 

    groupBox12 = new TQGroupBox( tab_5, "groupBox12" );
    groupBox12->setColumnLayout(0, TQt::Vertical );
    groupBox12->layout()->setSpacing( 6 );
    groupBox12->layout()->setMargin( 11 );
    groupBox12Layout = new TQGridLayout( groupBox12->layout() );
    groupBox12Layout->setAlignment( TQt::AlignTop );

    textLabel3_4 = new TQLabel( groupBox12, "textLabel3_4" );

    groupBox12Layout->addWidget( textLabel3_4, 0, 0 );

    textLabel4_2 = new TQLabel( groupBox12, "textLabel4_2" );

    groupBox12Layout->addWidget( textLabel4_2, 1, 0 );

    textLabel5_3 = new TQLabel( groupBox12, "textLabel5_3" );
    textLabel5_3->setFocusPolicy( TQLabel::NoFocus );

    groupBox12Layout->addWidget( textLabel5_3, 2, 0 );

    autotraceSurround = new KIntNumInput( groupBox12, "autotraceSurround" );
    autotraceSurround->setValue( 4 );
    autotraceSurround->setMinValue( 0 );

    groupBox12Layout->addWidget( autotraceSurround, 2, 1 );

    autotraceAlwaysThreshold = new KIntNumInput( groupBox12, "autotraceAlwaysThreshold" );
    autotraceAlwaysThreshold->setValue( 60 );
    autotraceAlwaysThreshold->setMinValue( 0 );
    autotraceAlwaysThreshold->setMaxValue( 360 );

    groupBox12Layout->addWidget( autotraceAlwaysThreshold, 1, 1 );

    autotraceThreshold = new KIntNumInput( groupBox12, "autotraceThreshold" );
    autotraceThreshold->setValue( 100 );
    autotraceThreshold->setMinValue( 0 );
    autotraceThreshold->setMaxValue( 360 );

    groupBox12Layout->addWidget( autotraceThreshold, 0, 1 );

    autotraceAdjacentCorners = new TQCheckBox( groupBox12, "autotraceAdjacentCorners" );

    groupBox12Layout->addMultiCellWidget( autotraceAdjacentCorners, 3, 3, 0, 1 );

    tabLayout_5->addWidget( groupBox12, 0, 0 );
    spacer15 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_5->addItem( spacer15, 2, 0 );

    groupBox13 = new TQGroupBox( tab_5, "groupBox13" );
    groupBox13->setColumnLayout(0, TQt::Vertical );
    groupBox13->layout()->setSpacing( 6 );
    groupBox13->layout()->setMargin( 11 );
    groupBox13Layout = new TQGridLayout( groupBox13->layout() );
    groupBox13Layout->setAlignment( TQt::AlignTop );

    autotraceReversionThreshold = new KDoubleNumInput( groupBox13, "autotraceReversionThreshold" );
    autotraceReversionThreshold->setValue( 0.01 );

    groupBox13Layout->addWidget( autotraceReversionThreshold, 2, 1 );

    autotraceIterations = new KIntNumInput( groupBox13, "autotraceIterations" );
    autotraceIterations->setValue( 4 );
    autotraceIterations->setMinValue( 0 );

    groupBox13Layout->addWidget( autotraceIterations, 3, 1 );

    autotraceLineThreshold = new KDoubleNumInput( groupBox13, "autotraceLineThreshold" );
    autotraceLineThreshold->setValue( 1 );

    groupBox13Layout->addWidget( autotraceLineThreshold, 1, 1 );

    textLabel7 = new TQLabel( groupBox13, "textLabel7" );

    groupBox13Layout->addWidget( textLabel7, 2, 0 );

    textLabel8_2 = new TQLabel( groupBox13, "textLabel8_2" );

    groupBox13Layout->addWidget( textLabel8_2, 3, 0 );

    autotraceErrorThreshold = new KDoubleNumInput( groupBox13, "autotraceErrorThreshold" );
    autotraceErrorThreshold->setValue( 2 );

    groupBox13Layout->addWidget( autotraceErrorThreshold, 0, 1 );

    textLabel6_2 = new TQLabel( groupBox13, "textLabel6_2" );

    groupBox13Layout->addWidget( textLabel6_2, 0, 0 );

    textLabel1_5 = new TQLabel( groupBox13, "textLabel1_5" );

    groupBox13Layout->addWidget( textLabel1_5, 1, 0 );

    autotracePreserveWidth = new TQCheckBox( groupBox13, "autotracePreserveWidth" );

    groupBox13Layout->addMultiCellWidget( autotracePreserveWidth, 4, 4, 0, 1 );

    tabLayout_5->addWidget( groupBox13, 1, 0 );
    autotraceTabs->insertTab( tab_5, TQString::fromLatin1("") );

    TabPage_3 = new TQWidget( autotraceTabs, "TabPage_3" );
    TabPageLayout_3 = new TQGridLayout( TabPage_3, 1, 1, 11, 6, "TabPageLayout_3"); 

    buttonGroup5 = new TQButtonGroup( TabPage_3, "buttonGroup5" );
    buttonGroup5->setColumnLayout(0, TQt::Vertical );
    buttonGroup5->layout()->setSpacing( 6 );
    buttonGroup5->layout()->setMargin( 11 );
    buttonGroup5Layout = new TQGridLayout( buttonGroup5->layout() );
    buttonGroup5Layout->setAlignment( TQt::AlignTop );

    autotraceNoCenterline = new TQRadioButton( buttonGroup5, "autotraceNoCenterline" );
    autotraceNoCenterline->setChecked( true );

    buttonGroup5Layout->addWidget( autotraceNoCenterline, 0, 0 );

    autotraceCenterline = new TQRadioButton( buttonGroup5, "autotraceCenterline" );
    autotraceCenterline->setChecked( false );

    buttonGroup5Layout->addWidget( autotraceCenterline, 0, 1 );

    TabPageLayout_3->addWidget( buttonGroup5, 0, 0 );

    groupBox15 = new TQGroupBox( TabPage_3, "groupBox15" );
    groupBox15->setColumnLayout(0, TQt::Vertical );
    groupBox15->layout()->setSpacing( 6 );
    groupBox15->layout()->setMargin( 11 );
    groupBox15Layout = new TQHBoxLayout( groupBox15->layout() );
    groupBox15Layout->setAlignment( TQt::AlignTop );

    textLabel9 = new TQLabel( groupBox15, "textLabel9" );
    groupBox15Layout->addWidget( textLabel9 );

    autotraceTangentSurround = new KIntNumInput( groupBox15, "autotraceTangentSurround" );
    autotraceTangentSurround->setValue( 3 );
    autotraceTangentSurround->setMinValue( 0 );
    groupBox15Layout->addWidget( autotraceTangentSurround );

    TabPageLayout_3->addWidget( groupBox15, 1, 0 );
    spacer16 = new TQSpacerItem( 20, 110, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    TabPageLayout_3->addItem( spacer16, 3, 0 );

    groupBox16 = new TQGroupBox( TabPage_3, "groupBox16" );
    groupBox16->setColumnLayout(0, TQt::Vertical );
    groupBox16->layout()->setSpacing( 6 );
    groupBox16->layout()->setMargin( 11 );
    groupBox16Layout = new TQGridLayout( groupBox16->layout() );
    groupBox16Layout->setAlignment( TQt::AlignTop );

    autotraceDespeckleTightness = new KDoubleNumInput( groupBox16, "autotraceDespeckleTightness" );
    autotraceDespeckleTightness->setEnabled( false );
    autotraceDespeckleTightness->setValue( 2 );
    autotraceDespeckleTightness->setMaxValue( 8 );

    groupBox16Layout->addWidget( autotraceDespeckleTightness, 2, 1 );

    autotraceDespeckleLevel = new KIntNumInput( groupBox16, "autotraceDespeckleLevel" );
    autotraceDespeckleLevel->setEnabled( false );
    autotraceDespeckleLevel->setMinValue( 1 );
    autotraceDespeckleLevel->setMaxValue( 20 );

    groupBox16Layout->addWidget( autotraceDespeckleLevel, 1, 1 );

    textLabel10 = new TQLabel( groupBox16, "textLabel10" );

    groupBox16Layout->addWidget( textLabel10, 1, 0 );

    textLabel11_2 = new TQLabel( groupBox16, "textLabel11_2" );

    groupBox16Layout->addWidget( textLabel11_2, 2, 0 );

    autotraceDoDespeckle = new TQCheckBox( groupBox16, "autotraceDoDespeckle" );

    groupBox16Layout->addMultiCellWidget( autotraceDoDespeckle, 0, 0, 0, 1 );

    TabPageLayout_3->addWidget( groupBox16, 2, 0 );
    autotraceTabs->insertTab( TabPage_3, TQString::fromLatin1("") );

    autotracePageLayout->addWidget( autotraceTabs, 0, 0 );
    backendStack->addWidget( autotracePage, 1 );
    layout7->addWidget( backendStack );

    layout6 = new TQHBoxLayout( 0, 0, 6, "layout6"); 
    spacer12 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout6->addItem( spacer12 );

    kActiveLabel2 = new KActiveLabel( this, "kActiveLabel2" );
    kActiveLabel2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, kActiveLabel2->sizePolicy().hasHeightForWidth() ) );
    kActiveLabel2->setFocusPolicy( KActiveLabel::NoFocus );
    layout6->addWidget( kActiveLabel2 );

    backendCombo = new KComboBox( false, this, "backendCombo" );
    layout6->addWidget( backendCombo );
    spacer13 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout6->addItem( spacer13 );
    layout7->addLayout( layout6 );
    spacer7_2 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout7->addItem( spacer7_2 );

    layout3_2 = new TQHBoxLayout( 0, 0, 6, "layout3_2"); 
    spacer3 = new TQSpacerItem( 113, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout3_2->addItem( spacer3 );

    traceBtn = new KPushButton( this, "traceBtn" );
    layout3_2->addWidget( traceBtn );
    spacer4 = new TQSpacerItem( 60, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout3_2->addItem( spacer4 );

    defaultBtn = new KPushButton( this, "defaultBtn" );
    layout3_2->addWidget( defaultBtn );
    layout7->addLayout( layout3_2 );

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

    autoTraceCheck = new TQCheckBox( this, "autoTraceCheck" );
    autoTraceCheck->setChecked( true );
    layout2->addWidget( autoTraceCheck );

    preserveCheck = new TQCheckBox( this, "preserveCheck" );
    layout2->addWidget( preserveCheck );
    layout7->addLayout( layout2 );
    MainWidgetBaseLayout->addLayout( layout7 );
    languageChange();
    resize( TQSize(555, 642).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( opaque, TQ_SIGNAL( toggled(bool) ), backgroundBtn, TQ_SLOT( setEnabled(bool) ) );
    connect( scaleAllBTN, TQ_SIGNAL( toggled(bool) ), scaleAll, TQ_SLOT( setEnabled(bool) ) );
    connect( scaleXYBTN, TQ_SIGNAL( toggled(bool) ), textLabel9_3, TQ_SLOT( setEnabled(bool) ) );
    connect( scaleXYBTN, TQ_SIGNAL( toggled(bool) ), scaleX, TQ_SLOT( setEnabled(bool) ) );
    connect( scaleXYBTN, TQ_SIGNAL( toggled(bool) ), textLabel10_3, TQ_SLOT( setEnabled(bool) ) );
    connect( scaleXYBTN, TQ_SIGNAL( toggled(bool) ), scaleY, TQ_SLOT( setEnabled(bool) ) );
    connect( resolutionAllBTN, TQ_SIGNAL( toggled(bool) ), resolutionAll, TQ_SLOT( setEnabled(bool) ) );
    connect( resolutionXYBTN, TQ_SIGNAL( toggled(bool) ), textLabel1_2, TQ_SLOT( setEnabled(bool) ) );
    connect( resolutionXYBTN, TQ_SIGNAL( toggled(bool) ), resolutionX, TQ_SLOT( setEnabled(bool) ) );
    connect( resolutionXYBTN, TQ_SIGNAL( toggled(bool) ), textLabel2_2, TQ_SLOT( setEnabled(bool) ) );
    connect( resolutionXYBTN, TQ_SIGNAL( toggled(bool) ), resolutionY, TQ_SLOT( setEnabled(bool) ) );
    connect( outputFormat, TQ_SIGNAL( activated(const TQString&) ), this, TQ_SLOT( showOptions(const TQString&) ) );
    connect( backendCombo, TQ_SIGNAL( activated(const TQString&) ), this, TQ_SLOT( backendChoosen(const TQString&) ) );
    connect( autotraceDpiCheckbox, TQ_SIGNAL( toggled(bool) ), autotraceDpiInput, TQ_SLOT( setEnabled(bool) ) );
    connect( autotraceUseBackground, TQ_SIGNAL( toggled(bool) ), autotraceBackground, TQ_SLOT( setEnabled(bool) ) );
    connect( autotraceCheckBoxReduceColors, TQ_SIGNAL( toggled(bool) ), autotraceColorCount, TQ_SLOT( setEnabled(bool) ) );
    connect( marginsL, TQ_SIGNAL( valueChanged(double) ), this, TQ_SLOT( marginValueChanged(double) ) );
    connect( marginsR, TQ_SIGNAL( valueChanged(double) ), this, TQ_SLOT( marginValueChanged(double) ) );
    connect( marginsB, TQ_SIGNAL( valueChanged(double) ), this, TQ_SLOT( marginValueChanged(double) ) );
    connect( marginsT, TQ_SIGNAL( valueChanged(double) ), this, TQ_SLOT( marginValueChanged(double) ) );
    connect( checkBoxSyncronizeMargins, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( syncronizeMarginsChanged(bool) ) );
    connect( autotraceDoDespeckle, TQ_SIGNAL( toggled(bool) ), autotraceDespeckleLevel, TQ_SLOT( setEnabled(bool) ) );
    connect( autotraceDoDespeckle, TQ_SIGNAL( toggled(bool) ), autotraceDespeckleTightness, TQ_SLOT( setEnabled(bool) ) );

    // tab order
    setTabOrder( tabWidget3, blackLevel );
    setTabOrder( blackLevel, invertInput );
    setTabOrder( invertInput, foregroundBtn );
    setTabOrder( foregroundBtn, opaque );
    setTabOrder( opaque, backgroundBtn );
    setTabOrder( backgroundBtn, outputFormat );
    setTabOrder( outputFormat, kActiveLabel1 );
    setTabOrder( kActiveLabel1, pageSize );
    setTabOrder( pageSize, optimizedNumericalCode );
    setTabOrder( optimizedNumericalCode, level2 );
    setTabOrder( level2, SVGGroup );
    setTabOrder( SVGGroup, antialiasGamma );
    setTabOrder( antialiasGamma, scaleAllBTN );
    setTabOrder( scaleAllBTN, scaleAll );
    setTabOrder( scaleAll, scaleXYBTN );
    setTabOrder( scaleXYBTN, scaleX );
    setTabOrder( scaleX, scaleY );
    setTabOrder( scaleY, policy );
    setTabOrder( policy, despeckle );
    setTabOrder( despeckle, cornerThreshold );
    setTabOrder( cornerThreshold, optimizationTolerance );
    setTabOrder( optimizationTolerance, outputQuantization );
    setTabOrder( outputQuantization, curveOptimization );
    setTabOrder( curveOptimization, width );
    setTabOrder( width, height );
    setTabOrder( height, stretch );
    setTabOrder( stretch, rotation );
    setTabOrder( rotation, resolutionAllBTN );
    setTabOrder( resolutionAllBTN, resolutionAll );
    setTabOrder( resolutionAll, resolutionX );
    setTabOrder( resolutionX, resolutionY );
    setTabOrder( resolutionY, marginsL );
    setTabOrder( marginsL, marginsR );
    setTabOrder( marginsR, marginsT );
    setTabOrder( marginsT, marginsB );
    setTabOrder( marginsB, checkBoxSyncronizeMargins );
    setTabOrder( checkBoxSyncronizeMargins, autotraceTabs );
    setTabOrder( autotraceTabs, autotraceOutputFormat );
    setTabOrder( autotraceOutputFormat, autotraceDpiCheckbox );
    setTabOrder( autotraceDpiCheckbox, autotraceDpiInput );
    setTabOrder( autotraceDpiInput, autotraceCheckBoxReduceColors );
    setTabOrder( autotraceCheckBoxReduceColors, autotraceColorCount );
    setTabOrder( autotraceColorCount, autotraceUseBackground );
    setTabOrder( autotraceUseBackground, autotraceBackground );
    setTabOrder( autotraceBackground, autotraceLog );
    setTabOrder( autotraceLog, autotraceThreshold );
    setTabOrder( autotraceThreshold, autotraceAlwaysThreshold );
    setTabOrder( autotraceAlwaysThreshold, autotraceSurround );
    setTabOrder( autotraceSurround, autotraceAdjacentCorners );
    setTabOrder( autotraceAdjacentCorners, autotraceErrorThreshold );
    setTabOrder( autotraceErrorThreshold, autotraceReversionThreshold );
    setTabOrder( autotraceReversionThreshold, autotraceIterations );
    setTabOrder( autotraceIterations, autotracePreserveWidth );
    setTabOrder( autotracePreserveWidth, autotraceNoCenterline );
    setTabOrder( autotraceNoCenterline, autotraceTangentSurround );
    setTabOrder( autotraceTangentSurround, autotraceDespeckleLevel );
    setTabOrder( autotraceDespeckleLevel, autotraceDespeckleTightness );
    setTabOrder( autotraceDespeckleTightness, kActiveLabel2 );
    setTabOrder( kActiveLabel2, backendCombo );
    setTabOrder( backendCombo, traceBtn );
    setTabOrder( traceBtn, defaultBtn );
    setTabOrder( defaultBtn, autoTraceCheck );
    setTabOrder( autoTraceCheck, preserveCheck );
    setTabOrder( preserveCheck, imagesTabs );

    // buddies
    textLabel3_4->setBuddy( autotraceThreshold );
    textLabel4_2->setBuddy( autotraceAlwaysThreshold );
    textLabel5_3->setBuddy( autotraceSurround );
    textLabel7->setBuddy( autotraceReversionThreshold );
    textLabel8_2->setBuddy( autotraceIterations );
    textLabel6_2->setBuddy( autotraceErrorThreshold );
    textLabel1_5->setBuddy( autotraceLineThreshold );
    textLabel9->setBuddy( autotraceTangentSurround );
    textLabel10->setBuddy( autotraceDespeckleLevel );
    textLabel11_2->setBuddy( autotraceDespeckleTightness );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void MainWidgetBase::languageChange()
{
    setCaption( tr2i18n( "MainWidgetBase" ) );
    imagesTabs->changeTab( tab, tr2i18n( "&Original image" ) );
    groupBox2->setTitle( tr2i18n( "Input" ) );
    textLabel2_3->setText( tr2i18n( "Black level:" ) );
    TQToolTip::add( textLabel2_3, tr2i18n( "Pixel threshold for B&W conversion of the image" ) );
    TQToolTip::add( blackLevel, tr2i18n( "Pixel threshold for B&W conversion of the image" ) );
    invertInput->setText( tr2i18n( "In&vert" ) );
    TQToolTip::add( invertInput, tr2i18n( "Inverts the image before processing" ) );
    groupBox8->setTitle( tr2i18n( "Color" ) );
    foregroundBtn->setText( TQString::null );
    TQToolTip::add( foregroundBtn, tr2i18n( "Output foreground color" ) );
    textLabel4_2_2_3->setText( tr2i18n( "Foreground color:" ) );
    TQToolTip::add( textLabel4_2_2_3, tr2i18n( "Output foreground color" ) );
    opaque->setText( tr2i18n( "Opa&que:" ) );
    TQToolTip::add( opaque, tr2i18n( "Fill in the white parts of the image opaquely" ) );
    backgroundBtn->setText( TQString::null );
    TQToolTip::add( backgroundBtn, tr2i18n( "Fill color" ) );
    groupBox1->setTitle( tr2i18n( "Output" ) );
    kSqueezedTextLabel2->setText( tr2i18n( "Format:" ) );
    outputFormat->clear();
    outputFormat->insertItem( tr2i18n( "eps" ) );
    outputFormat->insertItem( tr2i18n( "postscript" ) );
    outputFormat->insertItem( tr2i18n( "SVG" ) );
    outputFormat->insertItem( tr2i18n( "pgm" ) );
    outputFormat->insertItem( tr2i18n( "Gimp path" ) );
    outputFormat->insertItem( tr2i18n( "Xfig" ) );
    TQToolTip::add( outputFormat, tr2i18n( "Output format" ) );
    psFrame->setTitle( tr2i18n( "PS-EPS output" ) );
    textLabel3_3->setText( tr2i18n( "Page size:" ) );
    TQToolTip::add( textLabel3_3, tr2i18n( "Output page size" ) );
    pageSize->clear();
    pageSize->insertItem( tr2i18n( "a4" ) );
    pageSize->insertItem( tr2i18n( "a3" ) );
    pageSize->insertItem( tr2i18n( "a5" ) );
    pageSize->insertItem( tr2i18n( "b5" ) );
    pageSize->insertItem( tr2i18n( "letter" ) );
    pageSize->insertItem( tr2i18n( "legal" ) );
    pageSize->insertItem( tr2i18n( "tabloid" ) );
    pageSize->insertItem( tr2i18n( "statement" ) );
    pageSize->insertItem( tr2i18n( "executive" ) );
    pageSize->insertItem( tr2i18n( "folio" ) );
    pageSize->insertItem( tr2i18n( "quarto" ) );
    pageSize->insertItem( tr2i18n( "10x14" ) );
    pageSize->setCurrentItem( 4 );
    TQToolTip::add( pageSize, tr2i18n( "Output page size" ) );
    optimizedNumericalCode->setText( tr2i18n( "Optimized numerical code" ) );
    TQToolTip::add( optimizedNumericalCode, tr2i18n( "Use a compact numerical format to represent Bezier curves in\n"
"PostScript" ) );
    compressionLevel->setTitle( tr2i18n( "Compression level" ) );
    level1->setText( tr2i18n( "None" ) );
    TQToolTip::add( level1, tr2i18n( "No compression" ) );
    level2->setText( tr2i18n( "Level 2" ) );
    TQToolTip::add( level2, tr2i18n( "Standard compression (needs LZW-enabled compress)" ) );
    level3->setText( tr2i18n( "Level 3" ) );
    TQToolTip::add( level3, tr2i18n( "Maximum compression" ) );
    svgFrame->setTitle( tr2i18n( "SVG" ) );
    SVGGroup->setText( tr2i18n( "Group" ) );
    TQToolTip::add( SVGGroup, tr2i18n( "Try to group related paths together in the SVG output" ) );
    pgmFrame->setTitle( tr2i18n( "PGM" ) );
    textLabel5_2->setText( tr2i18n( "Antialias gamma:" ) );
    TQToolTip::add( textLabel5_2, tr2i18n( "Gamma value for anti-aliasing" ) );
    TQToolTip::add( antialiasGamma, tr2i18n( "Gamma value for anti-aliasing" ) );
    buttonGroup1->setTitle( tr2i18n( "Scale" ) );
    scaleAllBTN->setText( tr2i18n( "All" ) );
    TQToolTip::add( scaleAllBTN, tr2i18n( "All dimesions at once" ) );
    TQToolTip::add( scaleAll, tr2i18n( "Scale factor (>1 enlarges, <1 shrinks)" ) );
    textLabel10_3->setText( tr2i18n( "Y" ) );
    TQToolTip::add( textLabel10_3, tr2i18n( "Scale factor (>1 enlarges, <1 shrinks)" ) );
    TQToolTip::add( scaleY, tr2i18n( "Scale factor (>1 enlarges, <1 shrinks)" ) );
    textLabel9_3->setText( tr2i18n( "X" ) );
    TQToolTip::add( textLabel9_3, tr2i18n( "Scale factor (>1 enlarges, <1 shrinks)" ) );
    scaleXYBTN->setText( tr2i18n( "Each" ) );
    TQToolTip::add( scaleXYBTN, tr2i18n( "Each dimension separately" ) );
    TQToolTip::add( scaleX, tr2i18n( "Scale factor (>1 enlarges, <1 shrinks)" ) );
    kActiveLabel1->setText( tr2i18n( "Sorry, no options for this format." ) );
    tabWidget3->changeTab( tab_2, tr2i18n( "&Input-Output" ) );
    curveOptimization->setText( tr2i18n( "Cur&ve optimization" ) );
    TQToolTip::add( curveOptimization, tr2i18n( "Join adiacent bezier curves (off=larger file)" ) );
    TQToolTip::add( optimizationTolerance, tr2i18n( "Curve optimization tolerance (default = 0.2)" ) );
    TQWhatsThis::add( optimizationTolerance, tr2i18n( "Set the curve optimization tolerance. The default value is 0.2. Larger values allow more consecutive Bezier curve segments to be joined together in a single segment, at the expense of accuracy." ) );
    TQToolTip::add( cornerThreshold, tr2i18n( "Corner Threshold parameter (<1 hard corners, >1 soft corners)" ) );
    TQWhatsThis::add( cornerThreshold, tr2i18n( "Set the corner threshold parameter. The default value is 1. The smaller this value, the more sharp corners will be produced. If this parameter is negative, then no smoothing will be performed and the output is a polygon. The largest useful value is 4/3 or 1.334, which suppresses all corners and leads to completely smooth output." ) );
    TQToolTip::add( despeckle, tr2i18n( "Suppress speckles of up to this many pixels" ) );
    policy->clear();
    policy->insertItem( tr2i18n( "black" ) );
    policy->insertItem( tr2i18n( "white" ) );
    policy->insertItem( tr2i18n( "right" ) );
    policy->insertItem( tr2i18n( "left" ) );
    policy->insertItem( tr2i18n( "minority" ) );
    policy->insertItem( tr2i18n( "majority" ) );
    policy->insertItem( tr2i18n( "random" ) );
    policy->setCurrentItem( 4 );
    TQToolTip::add( policy, tr2i18n( "How to resolve ambiguities in path\n"
"decomposition" ) );
    TQToolTip::add( outputQuantization, tr2i18n( "To how many points/pixel the output is rounded" ) );
    TQWhatsThis::add( outputQuantization, tr2i18n( "Set output quantization. Coordinates in the output are rounded to 1/value pixels. The default value of 10 usually gives good results. In the case of the gimppath backend, this option is used to set the desired magnification. This option has no effect for the XFig backend, which always rasterizes to 1/1200 inch." ) );
    textLabel1_4->setText( tr2i18n( "Output quantization:" ) );
    TQToolTip::add( textLabel1_4, tr2i18n( "How exactly the output is rounded" ) );
    TQWhatsThis::add( textLabel1_4, tr2i18n( "Set output quantization. Coordinates in the output are rounded to 1/value pixels. The default value of 10 usually gives good results. In the case of the gimppath backend, this option is used to set the desired magnification. This option has no effect for the XFig backend, which always rasterizes to 1/1200 inch." ) );
    textLabel4->setText( tr2i18n( "Optimization tolerance:" ) );
    TQToolTip::add( textLabel4, tr2i18n( "Curve optimization tolerance (default = 0.2)" ) );
    TQWhatsThis::add( textLabel4, tr2i18n( "Set the curve optimization tolerance. The default value is 0.2. Larger values allow more consecutive Bezier curve segments to be joined together in a single segment, at the expense of accuracy." ) );
    textLabel3->setText( tr2i18n( "Corner Threshold:" ) );
    TQToolTip::add( textLabel3, tr2i18n( "Corner Threshold parameter (<1 hard corners, >1 soft corners)" ) );
    TQWhatsThis::add( textLabel3, tr2i18n( "Set the corner threshold parameter. The default value is 1. The smaller this value, the more sharp corners will be produced. If this parameter is negative, then no smoothing will be performed and the output is a polygon. The largest useful value is 4/3 or 1.334, which suppresses all corners and leads to completely smooth output." ) );
    textLabel2->setText( tr2i18n( "Despeckle:" ) );
    TQToolTip::add( textLabel2, tr2i18n( "Suppress speckles of up to this many pixels" ) );
    textLabel1->setText( tr2i18n( "Policy:" ) );
    TQToolTip::add( textLabel1, tr2i18n( "How to resolve ambiguities in path\n"
"decomposition" ) );
    tabWidget3->changeTab( tab_3, tr2i18n( "A&lgorithm" ) );
    groupBox7->setTitle( tr2i18n( "Transformation" ) );
    TQToolTip::add( rotation, tr2i18n( "Rotate output by x degrees" ) );
    TQToolTip::add( stretch, tr2i18n( "Aspect ratio (<1 stretched in the x direction, >1 stretched in the y direction)" ) );
    TQToolTip::add( height, tr2i18n( "Output image height" ) );
    TQToolTip::add( width, tr2i18n( "Output image width" ) );
    textLabel1_3->setText( tr2i18n( "cm" ) );
    textLabel1_3_2->setText( tr2i18n( "cm" ) );
    textLabel1_3_4->setText( tr2i18n( "degree" ) );
    textLabel3_2->setText( tr2i18n( "Rotation:" ) );
    TQToolTip::add( textLabel3_2, tr2i18n( "Rotate output by x degrees" ) );
    textLabel8->setText( tr2i18n( "Stretch:" ) );
    TQToolTip::add( textLabel8, tr2i18n( "Aspect ratio (<1 stretched in the x direction, >1 stretched in the y direction)" ) );
    textLabel6->setText( tr2i18n( "Height:" ) );
    TQToolTip::add( textLabel6, tr2i18n( "Output image height" ) );
    textLabel5->setText( tr2i18n( "Width:" ) );
    TQToolTip::add( textLabel5, tr2i18n( "Output image width" ) );
    buttonGroup3->setTitle( tr2i18n( "Resolution (dpi)" ) );
    resolutionAllBTN->setText( tr2i18n( "All" ) );
    TQToolTip::add( resolutionAllBTN, tr2i18n( "All dimensions" ) );
    textLabel1_2->setText( tr2i18n( "X" ) );
    textLabel2_2->setText( tr2i18n( "Y" ) );
    resolutionXYBTN->setText( tr2i18n( "Each" ) );
    TQToolTip::add( resolutionXYBTN, tr2i18n( "Each dimension separately" ) );
    TQToolTip::add( resolutionX, tr2i18n( "set the resolution (in dpi). One inch in the output image corresponds to this many\n"
"pixels in the input" ) );
    TQToolTip::add( resolutionY, tr2i18n( "set the resolution (in dpi). One inch in the output image corresponds to this many\n"
"pixels in the input" ) );
    TQToolTip::add( resolutionAll, tr2i18n( "set the resolution (in dpi). One inch in the output image corresponds to this many\n"
"pixels in the input" ) );
    tabWidget3->changeTab( TabPage, tr2i18n( "&Scaling and transformations" ) );
    buttonGroup2->setTitle( tr2i18n( "Margins" ) );
    textLabel1_3_7->setText( tr2i18n( "cm" ) );
    TQToolTip::add( marginsB, tr2i18n( "Set output margins" ) );
    TQToolTip::add( marginsT, tr2i18n( "Set output margins" ) );
    TQToolTip::add( marginsR, tr2i18n( "Set output margins" ) );
    textLabel1_3_3->setText( tr2i18n( "cm" ) );
    textLabel1_3_5->setText( tr2i18n( "cm" ) );
    textLabel1_3_6->setText( tr2i18n( "cm" ) );
    TQToolTip::add( marginsL, tr2i18n( "Set output margins" ) );
    textLabel13->setText( tr2i18n( "Top:" ) );
    textLabel12->setText( tr2i18n( "Right:" ) );
    textLabel11->setText( tr2i18n( "Left:" ) );
    textLabel14->setText( tr2i18n( "Bottom:" ) );
    checkBoxSyncronizeMargins->setText( tr2i18n( "syncronize" ) );
    tabWidget3->changeTab( TabPage_2, tr2i18n( "&Margins" ) );
    TQToolTip::add( autotraceTabs, TQString::null );
    groupBox11->setTitle( tr2i18n( "&Output format" ) );
    TQToolTip::add( autotraceOutputFormat, tr2i18n( "Select wanted output format" ) );
    groupBox9->setTitle( tr2i18n( "Input image" ) );
    autotraceDpiCheckbox->setText( tr2i18n( "&DPI:" ) );
    TQToolTip::add( autotraceDpiCheckbox, tr2i18n( "<p>Dot per inch of input image</p><p>(affects scaling in mif output)</p>" ) );
    autotraceCheckBoxReduceColors->setText( tr2i18n( "&reduce color count to:" ) );
    TQToolTip::add( autotraceCheckBoxReduceColors, tr2i18n( "<p>Reduce input image to this number of colors (range: 2 - 256)</p>" ) );
    TQToolTip::add( autotraceDpiInput, tr2i18n( "<p>Dot per inch of input image</p><p>(affects scaling in mif output)</p>" ) );
    TQToolTip::add( autotraceColorCount, tr2i18n( "<p>Reduce input image to this number of colors (range: 2 - 256)</p>" ) );
    groupBox8_2->setTitle( tr2i18n( "Transparent color" ) );
    autotraceUseBackground->setText( tr2i18n( "&Use:" ) );
    TQToolTip::add( autotraceUseBackground, tr2i18n( "<p>Toggle transparent color</p>" ) );
    autotraceBackground->setText( TQString::null );
    TQToolTip::add( autotraceBackground, tr2i18n( "<p>Ignore this color in input file</p><p>(The color will be rendered as transparent in the output image)</p>" ) );
    groupBox10->setTitle( tr2i18n( "Log" ) );
    autotraceLog->setText( tr2i18n( "Create &logfile" ) );
    TQToolTip::add( autotraceLog, tr2i18n( "Not working at the moment" ) );
    autotraceTabs->changeTab( tab_4, tr2i18n( "&Input - output" ) );
    groupBox12->setTitle( tr2i18n( "Corners" ) );
    textLabel3_4->setText( tr2i18n( "Thre&shold:" ) );
    TQToolTip::add( textLabel3_4, tr2i18n( "<p>Consider any pixel which forms an angle with its predecessor(s) and successor(s) that is smaller than the specified angle (in degrees) as a corner.</p>" ) );
    textLabel4_2->setText( tr2i18n( "Alwa&ys threshold:" ) );
    TQToolTip::add( textLabel4_2, tr2i18n( "<p>Consider any angle at a pixel which falls below the specified angle (in degrees) as a corner, even if it is bordered by other corner pixels.</p>" ) );
    textLabel5_3->setText( tr2i18n( "&Surround:" ) );
    TQToolTip::add( textLabel5_3, tr2i18n( "<p>Consider the specified number of pixels on either side of a point when determining if that point is a corner.</p>" ) );
    TQToolTip::add( autotraceSurround, tr2i18n( "<p>Consider the specified number of pixels on either side of a point when determining if that point is a corner.</p>" ) );
    TQToolTip::add( autotraceAlwaysThreshold, tr2i18n( "<p>Consider any angle at a pixel which falls below the specified angle (in degrees) as a corner, even if it is bordered by other corner pixels.</p>" ) );
    TQToolTip::add( autotraceThreshold, tr2i18n( "<p>Consider any pixel which forms an angle with its predecessor(s) and successor(s) that is smaller than the specified angle (in degrees) as a corner.</p>" ) );
    autotraceAdjacentCorners->setText( tr2i18n( "&Remove adjacent corners" ) );
    TQToolTip::add( autotraceAdjacentCorners, TQString::null );
    groupBox13->setTitle( tr2i18n( "Curves" ) );
    TQToolTip::add( autotraceReversionThreshold, tr2i18n( "<p>When a spline is closer to a straight line than the specified real number weighted by the square of the curve length, maintain it as a straight line, even if it is a list with curves.</p>" ) );
    TQToolTip::add( autotraceIterations, tr2i18n( "<p>Smooth the curve the specified number of times prior to fitting</p>" ) );
    TQToolTip::add( autotraceLineThreshold, tr2i18n( "<p>If a spline does not deviate from the straight line defined by its endpoints by more than the specified number of pixels, then treat it as a straight line.</p>" ) );
    textLabel7->setText( tr2i18n( "Re&version threshold:" ) );
    TQToolTip::add( textLabel7, tr2i18n( "<p>When a spline is closer to a straight line than the specified real number weighted by the square of the curve length, maintain it as a straight line, even if it is a list with curves.</p>" ) );
    textLabel8_2->setText( tr2i18n( "&Filter iterations:" ) );
    TQToolTip::add( textLabel8_2, tr2i18n( "<p>Smooth the curve the specified number of times prior to fitting</p>" ) );
    TQToolTip::add( autotraceErrorThreshold, tr2i18n( "<p>Subdivide fitted curves that are offset by a number of pixels exceeding the specified real number</p>" ) );
    textLabel6_2->setText( tr2i18n( "&Error threshold:" ) );
    TQToolTip::add( textLabel6_2, tr2i18n( "<p>Subdivide fitted curves that are offset by a number of pixels exceeding the specified real number</p>" ) );
    textLabel1_5->setText( tr2i18n( "&Line threshold:" ) );
    TQToolTip::add( textLabel1_5, tr2i18n( "<p>If a spline does not deviate from the straight line defined by its endpoints by more than the specified number of pixels, then treat it as a straight line.</p>" ) );
    autotracePreserveWidth->setText( tr2i18n( "&Preserve width" ) );
    TQToolTip::add( autotracePreserveWidth, tr2i18n( "<p>Preserve line width prior to thinning</p>" ) );
    autotraceTabs->changeTab( tab_5, tr2i18n( "&Corners and curves" ) );
    buttonGroup5->setTitle( tr2i18n( "Object recognition" ) );
    autotraceNoCenterline->setText( tr2i18n( "&Outline" ) );
    autotraceCenterline->setText( tr2i18n( "C&enterline" ) );
    groupBox15->setTitle( tr2i18n( "Tangent" ) );
    textLabel9->setText( tr2i18n( "&Surround:" ) );
    TQToolTip::add( textLabel9, tr2i18n( "<p>Consider the specified number of points to either side of a point when computing the tangent at that point</p>" ) );
    TQToolTip::add( autotraceTangentSurround, tr2i18n( "<p>Consider the specified number of points to either side of a point when computing the tangent at that point</p>" ) );
    groupBox16->setTitle( tr2i18n( "Despeckle" ) );
    TQToolTip::add( autotraceDespeckleTightness, tr2i18n( "<p>Employ the specified real number as the value for despeckle tightness (range: 0-8)</p>" ) );
    TQToolTip::add( autotraceDespeckleLevel, tr2i18n( "<p>Employ the specified integer as the value for despeckling(range: 1-20)</p>" ) );
    textLabel10->setText( tr2i18n( "&Level:" ) );
    TQToolTip::add( textLabel10, tr2i18n( "<p>Employ the specified integer as the value for despeckling(range: 1-20)</p>" ) );
    textLabel11_2->setText( tr2i18n( "T&ightness:" ) );
    TQToolTip::add( textLabel11_2, tr2i18n( "<p>Employ the specified real number as the value for despeckle tightness (range: 0-8)</p>" ) );
    autotraceDoDespeckle->setText( tr2i18n( "despec&kle" ) );
    TQToolTip::add( autotraceDoDespeckle, TQString::null );
    autotraceTabs->changeTab( TabPage_3, tr2i18n( "&Various" ) );
    kActiveLabel2->setText( tr2i18n( "Backend:" ) );
    backendCombo->clear();
    backendCombo->insertItem( tr2i18n( "potrace" ) );
    backendCombo->insertItem( tr2i18n( "autotrace" ) );
    traceBtn->setText( tr2i18n( "&Trace" ) );
    defaultBtn->setText( tr2i18n( "D&efault options" ) );
    autoTraceCheck->setText( tr2i18n( "Automatic Preview" ) );
    preserveCheck->setText( tr2i18n( "Preserve options" ) );
}

void MainWidgetBase::showOptions(const TQString&)
{
    tqWarning( "MainWidgetBase::showOptions(const TQString&): Not implemented yet" );
}

void MainWidgetBase::backendChoosen(const TQString&)
{
    tqWarning( "MainWidgetBase::backendChoosen(const TQString&): Not implemented yet" );
}

void MainWidgetBase::valueChanged()
{
    tqWarning( "MainWidgetBase::valueChanged(): Not implemented yet" );
}

void MainWidgetBase::marginValueChanged(double)
{
    tqWarning( "MainWidgetBase::marginValueChanged(double): Not implemented yet" );
}

void MainWidgetBase::syncronizeMarginsChanged(bool)
{
    tqWarning( "MainWidgetBase::syncronizeMarginsChanged(bool): Not implemented yet" );
}

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

TQMetaObject *MainWidgetBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_MainWidgetBase( "MainWidgetBase", &MainWidgetBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* MainWidgetBase::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 = {"valueChanged", 0, 0 };
    static const TQUParameter param_slot_1[] = {
	{ 0, &static_QUType_double, 0, TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"marginValueChanged", 1, param_slot_1 };
    static const TQUParameter param_slot_2[] = {
	{ "isChecked", &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"syncronizeMarginsChanged", 1, param_slot_2 };
    static const TQUMethod slot_3 = {"languageChange", 0, 0 };
    static const TQUParameter param_slot_4[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"showOptions", 1, param_slot_4 };
    static const TQUParameter param_slot_5[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"backendChoosen", 1, param_slot_5 };
    static const TQMetaData slot_tbl[] = {
	{ "valueChanged()", &slot_0, TQMetaData::Public },
	{ "marginValueChanged(double)", &slot_1, TQMetaData::Public },
	{ "syncronizeMarginsChanged(bool)", &slot_2, TQMetaData::Public },
	{ "languageChange()", &slot_3, TQMetaData::Protected },
	{ "showOptions(const TQString&)", &slot_4, TQMetaData::Protected },
	{ "backendChoosen(const TQString&)", &slot_5, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"MainWidgetBase", parentObject,
	slot_tbl, 6,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_MainWidgetBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool MainWidgetBase::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: valueChanged(); break;
    case 1: marginValueChanged((double)static_QUType_double.get(_o+1)); break;
    case 2: syncronizeMarginsChanged((bool)static_QUType_bool.get(_o+1)); break;
    case 3: languageChange(); break;
    case 4: showOptions((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 5: backendChoosen((const TQString&)static_QUType_TQString.get(_o+1)); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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