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

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

#include "kcmlayoutwidget.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqcheckbox.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqcombobox.h>
#include <ntqheader.h>
#include <ntqlistview.h>
#include <ntqlineedit.h>
#include <kseparator.h>
#include <ntqframe.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqspinbox.h>
#include <kcolorbutton.h>
#include <tdefontrequester.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include "kiconloader.h"
#include "kdialogbase.h"
#include "kcolorbutton.h"
#include "kseparator.h"
#include "tdefontrequester.h"
/*
 *  Constructs a LayoutConfigWidget as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
LayoutConfigWidget::LayoutConfigWidget( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "LayoutConfigWidget" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
    setMinimumSize( TQSize( 700, 600 ) );
    LayoutConfigWidgetLayout = new TQGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "LayoutConfigWidgetLayout"); 

    tabWidget = new TQTabWidget( this, "tabWidget" );
    tabWidget->setMinimumSize( TQSize( 600, 500 ) );

    tabLayout = new TQWidget( tabWidget, "tabLayout" );
    tabLayoutLayout = new TQGridLayout( tabLayout, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "tabLayoutLayout"); 

    chkEnable = new TQCheckBox( tabLayout, "chkEnable" );
    chkEnable->setChecked( true );

    tabLayoutLayout->addWidget( chkEnable, 0, 0 );

    grpLayouts = new TQGroupBox( tabLayout, "grpLayouts" );
    grpLayouts->setColumnLayout(0, TQt::Vertical );
    grpLayouts->layout()->setSpacing( KDialog::spacingHint() );
    grpLayouts->layout()->setMargin( KDialog::marginHint() );
    grpLayoutsLayout = new TQGridLayout( grpLayouts->layout() );
    grpLayoutsLayout->setAlignment( TQt::AlignTop );

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

    grpLayoutsLayout->addMultiCellWidget( textLabel1_4, 0, 0, 0, 1 );

    labelLayouts = new TQLabel( grpLayouts, "labelLayouts" );

    grpLayoutsLayout->addMultiCellWidget( labelLayouts, 2, 2, 2, 4 );

    labelModel = new TQLabel( grpLayouts, "labelModel" );

    grpLayoutsLayout->addMultiCellWidget( labelModel, 0, 0, 2, 4 );

    comboModel = new TQComboBox( false, grpLayouts, "comboModel" );
    comboModel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, comboModel->sizePolicy().hasHeightForWidth() ) );

    grpLayoutsLayout->addMultiCellWidget( comboModel, 1, 1, 2, 4 );

    listLayoutsDst = new TQListView( grpLayouts, "listLayoutsDst" );
    listLayoutsDst->addColumn( tr2i18n( "1" ) );
    listLayoutsDst->header()->setClickEnabled( false, listLayoutsDst->header()->count() - 1 );
    listLayoutsDst->header()->setResizeEnabled( false, listLayoutsDst->header()->count() - 1 );
    listLayoutsDst->addColumn( tr2i18n( "Layout" ) );
    listLayoutsDst->header()->setClickEnabled( false, listLayoutsDst->header()->count() - 1 );
    listLayoutsDst->addColumn( tr2i18n( "Keymap" ) );
    listLayoutsDst->header()->setClickEnabled( false, listLayoutsDst->header()->count() - 1 );
    listLayoutsDst->addColumn( tr2i18n( "Variant" ) );
    listLayoutsDst->header()->setClickEnabled( false, listLayoutsDst->header()->count() - 1 );
    listLayoutsDst->addColumn( tr2i18n( "Label" ) );
    listLayoutsDst->header()->setClickEnabled( false, listLayoutsDst->header()->count() - 1 );
    listLayoutsDst->header()->setResizeEnabled( false, listLayoutsDst->header()->count() - 1 );
    listLayoutsDst->setAllColumnsShowFocus( true );

    grpLayoutsLayout->addMultiCellWidget( listLayoutsDst, 3, 3, 2, 4 );

    layout10 = new TQHBoxLayout( 0, 0, KDialog::spacingHint(), "layout10"); 

    btnAdd = new TQPushButton( grpLayouts, "btnAdd" );
    layout10->addWidget( btnAdd );

    btnRemove = new TQPushButton( grpLayouts, "btnRemove" );
    layout10->addWidget( btnRemove );

    btnUp = new TQPushButton( grpLayouts, "btnUp" );
    btnUp->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, btnUp->sizePolicy().hasHeightForWidth() ) );
    layout10->addWidget( btnUp );

    btnDown = new TQPushButton( grpLayouts, "btnDown" );
    btnDown->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, btnDown->sizePolicy().hasHeightForWidth() ) );
    layout10->addWidget( btnDown );

    grpLayoutsLayout->addMultiCellLayout( layout10, 4, 4, 2, 4 );

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

    grpLayoutsLayout->addWidget( textLabel1_3, 8, 0 );

    listLayoutsSrc = new TQListView( grpLayouts, "listLayoutsSrc" );
    listLayoutsSrc->addColumn( TQString::null );
    listLayoutsSrc->header()->setClickEnabled( false, listLayoutsSrc->header()->count() - 1 );
    listLayoutsSrc->header()->setResizeEnabled( false, listLayoutsSrc->header()->count() - 1 );
    listLayoutsSrc->addColumn( tr2i18n( "Layout" ) );
    listLayoutsSrc->header()->setClickEnabled( false, listLayoutsSrc->header()->count() - 1 );
    listLayoutsSrc->addColumn( tr2i18n( "Keymap" ) );
    listLayoutsSrc->header()->setClickEnabled( false, listLayoutsSrc->header()->count() - 1 );
    listLayoutsSrc->setMinimumSize( TQSize( 260, 0 ) );
    listLayoutsSrc->setAllColumnsShowFocus( true );

    grpLayoutsLayout->addMultiCellWidget( listLayoutsSrc, 1, 6, 0, 1 );

    editCmdLine = new TQLineEdit( grpLayouts, "editCmdLine" );
    editCmdLine->setReadOnly( true );

    grpLayoutsLayout->addMultiCellWidget( editCmdLine, 8, 8, 1, 4 );

    textLabel1_6 = new TQLabel( grpLayouts, "textLabel1_6" );

    grpLayoutsLayout->addWidget( textLabel1_6, 6, 2 );

    editDisplayName = new TQLineEdit( grpLayouts, "editDisplayName" );
    editDisplayName->setEnabled( false );
    editDisplayName->setMaxLength( 3 );

    grpLayoutsLayout->addWidget( editDisplayName, 6, 3 );

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

    grpLayoutsLayout->addWidget( textLabel1, 5, 2 );

    comboVariant = new TQComboBox( false, grpLayouts, "comboVariant" );

    grpLayoutsLayout->addWidget( comboVariant, 5, 3 );
    spacer3 = new TQSpacerItem( 210, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    grpLayoutsLayout->addItem( spacer3, 5, 4 );
    spacer2 = new TQSpacerItem( 210, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    grpLayoutsLayout->addItem( spacer2, 6, 4 );

    tabLayoutLayout->addWidget( grpLayouts, 1, 0 );
    tabWidget->insertTab( tabLayout, TQString::fromLatin1("") );

    tabShortcuts = new TQWidget( tabWidget, "tabShortcuts" );
    tabShortcutsLayout = new TQVBoxLayout( tabShortcuts, KDialog::marginHint(), KDialog::spacingHint(), "tabShortcutsLayout"); 

    labelHotkey = new TQLabel( tabShortcuts, "labelHotkey" );
    tabShortcutsLayout->addWidget( labelHotkey );

    comboHotkey = new TQComboBox( false, tabShortcuts, "comboHotkey" );
    comboHotkey->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, comboHotkey->sizePolicy().hasHeightForWidth() ) );
    tabShortcutsLayout->addWidget( comboHotkey );

    switchingGrpSeparator = new KSeparator( tabShortcuts, "switchingGrpSeparator" );
    tabShortcutsLayout->addWidget( switchingGrpSeparator );

    labelHotkey_2 = new TQLabel( tabShortcuts, "labelHotkey_2" );
    tabShortcutsLayout->addWidget( labelHotkey_2 );
    tabWidget->insertTab( tabShortcuts, TQString::fromLatin1("") );

    tab = new TQWidget( tabWidget, "tab" );
    tabLayout_2 = new TQVBoxLayout( tab, KDialog::marginHint(), KDialog::spacingHint(), "tabLayout_2"); 

    swOptsFrame = new TQFrame( tab, "swOptsFrame" );
    swOptsFrame->setFrameShape( TQFrame::StyledPanel );
    swOptsFrame->setFrameShadow( TQFrame::Raised );
    swOptsFrame->setLineWidth( 0 );
    swOptsFrameLayout = new TQVBoxLayout( swOptsFrame, KDialog::marginHint(), KDialog::spacingHint(), "swOptsFrameLayout"); 

    grpSwitching = new TQButtonGroup( swOptsFrame, "grpSwitching" );
    grpSwitching->setExclusive( true );
    grpSwitching->setColumnLayout(0, TQt::Vertical );
    grpSwitching->layout()->setSpacing( KDialog::spacingHint() );
    grpSwitching->layout()->setMargin( KDialog::marginHint() );
    grpSwitchingLayout = new TQVBoxLayout( grpSwitching->layout() );
    grpSwitchingLayout->setAlignment( TQt::AlignTop );

    radioButton1 = new TQRadioButton( grpSwitching, "radioButton1" );
    radioButton1->setChecked( true );
    grpSwitchingLayout->addWidget( radioButton1 );

    radioButton1_3 = new TQRadioButton( grpSwitching, "radioButton1_3" );
    grpSwitchingLayout->addWidget( radioButton1_3 );

    radioButton1_2 = new TQRadioButton( grpSwitching, "radioButton1_2" );
    grpSwitchingLayout->addWidget( radioButton1_2 );
    swOptsFrameLayout->addWidget( grpSwitching );

    grpBoxStickySwitching = new TQGroupBox( swOptsFrame, "grpBoxStickySwitching" );
    grpBoxStickySwitching->setColumnLayout(0, TQt::Vertical );
    grpBoxStickySwitching->layout()->setSpacing( KDialog::spacingHint() );
    grpBoxStickySwitching->layout()->setMargin( KDialog::marginHint() );
    grpBoxStickySwitchingLayout = new TQGridLayout( grpBoxStickySwitching->layout() );
    grpBoxStickySwitchingLayout->setAlignment( TQt::AlignTop );

    chkEnableSticky = new TQCheckBox( grpBoxStickySwitching, "chkEnableSticky" );

    grpBoxStickySwitchingLayout->addMultiCellWidget( chkEnableSticky, 0, 0, 0, 2 );
    spacer2_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    grpBoxStickySwitchingLayout->addItem( spacer2_2, 1, 0 );
    spacer2_3 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    grpBoxStickySwitchingLayout->addItem( spacer2_3, 1, 3 );

    textLabel1_5 = new TQLabel( grpBoxStickySwitching, "textLabel1_5" );
    textLabel1_5->setEnabled( false );

    grpBoxStickySwitchingLayout->addWidget( textLabel1_5, 1, 1 );

    spinStickyDepth = new TQSpinBox( grpBoxStickySwitching, "spinStickyDepth" );
    spinStickyDepth->setEnabled( false );
    spinStickyDepth->setMaxValue( 10 );
    spinStickyDepth->setMinValue( 2 );
    spinStickyDepth->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, spinStickyDepth->sizePolicy().hasHeightForWidth() ) );

    grpBoxStickySwitchingLayout->addWidget( spinStickyDepth, 1, 2 );
    swOptsFrameLayout->addWidget( grpBoxStickySwitching );

    grpBoxNotifications = new TQGroupBox( swOptsFrame, "grpBoxNotifications" );
    grpBoxNotifications->setColumnLayout(0, TQt::Vertical );
    grpBoxNotifications->layout()->setSpacing( KDialog::spacingHint() );
    grpBoxNotifications->layout()->setMargin( KDialog::marginHint() );
    grpBoxNotificationsLayout = new TQVBoxLayout( grpBoxNotifications->layout() );
    grpBoxNotificationsLayout->setAlignment( TQt::AlignTop );

    chkEnableNotify = new TQCheckBox( grpBoxNotifications, "chkEnableNotify" );
    grpBoxNotificationsLayout->addWidget( chkEnableNotify );

    chkNotifyUseKMilo = new TQCheckBox( grpBoxNotifications, "chkNotifyUseKMilo" );
    grpBoxNotificationsLayout->addWidget( chkNotifyUseKMilo );
    swOptsFrameLayout->addWidget( grpBoxNotifications );
    tabLayout_2->addWidget( swOptsFrame );
    spacer2_4 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_2->addItem( spacer2_4 );
    tabWidget->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( tabWidget, "tab_2" );
    tabLayout_3 = new TQVBoxLayout( tab_2, KDialog::marginHint(), KDialog::spacingHint(), "tabLayout_3"); 

    indOptsFrame = new TQFrame( tab_2, "indOptsFrame" );
    indOptsFrame->setFrameShape( TQFrame::StyledPanel );
    indOptsFrame->setFrameShadow( TQFrame::Raised );
    indOptsFrame->setLineWidth( 0 );
    indOptsFrameLayout = new TQGridLayout( indOptsFrame, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "indOptsFrameLayout"); 

    grpStyle = new TQButtonGroup( indOptsFrame, "grpStyle" );
    grpStyle->setExclusive( true );
    grpStyle->setColumnLayout(0, TQt::Vertical );
    grpStyle->layout()->setSpacing( KDialog::spacingHint() );
    grpStyle->layout()->setMargin( KDialog::marginHint() );
    grpStyleLayout = new TQVBoxLayout( grpStyle->layout() );
    grpStyleLayout->setAlignment( TQt::AlignTop );

    radFlagLabel = new TQRadioButton( grpStyle, "radFlagLabel" );
    radFlagLabel->setChecked( true );
    grpStyleLayout->addWidget( radFlagLabel );

    radFlagOnly = new TQRadioButton( grpStyle, "radFlagOnly" );
    grpStyleLayout->addWidget( radFlagOnly );

    radLabelOnly = new TQRadioButton( grpStyle, "radLabelOnly" );
    grpStyleLayout->addWidget( radLabelOnly );

    indOptsFrameLayout->addWidget( grpStyle, 0, 0 );

    grpLabel = new TQButtonGroup( indOptsFrame, "grpLabel" );
    grpLabel->setColumnLayout(0, TQt::Vertical );
    grpLabel->layout()->setSpacing( KDialog::spacingHint() );
    grpLabel->layout()->setMargin( KDialog::marginHint() );
    grpLabelLayout = new TQGridLayout( grpLabel->layout() );
    grpLabelLayout->setAlignment( TQt::AlignTop );

    radLabelUseTheme = new TQRadioButton( grpLabel, "radLabelUseTheme" );
    radLabelUseTheme->setChecked( false );

    grpLabelLayout->addMultiCellWidget( radLabelUseTheme, 0, 0, 0, 2 );

    radLabelUseCustom = new TQRadioButton( grpLabel, "radLabelUseCustom" );
    radLabelUseCustom->setChecked( false );

    grpLabelLayout->addMultiCellWidget( radLabelUseCustom, 1, 1, 0, 2 );

    grpLabelColors = new TQFrame( grpLabel, "grpLabelColors" );
    grpLabelColors->setFrameShape( TQFrame::NoFrame );
    grpLabelColors->setFrameShadow( TQFrame::Plain );
    grpLabelColorsLayout = new TQGridLayout( grpLabelColors, 1, 1, 0, KDialog::spacingHint(), "grpLabelColorsLayout"); 
    spacer2_5 = new TQSpacerItem( 20, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    grpLabelColorsLayout->addItem( spacer2_5, 0, 0 );

    labelBgColor = new TQLabel( grpLabelColors, "labelBgColor" );

    grpLabelColorsLayout->addWidget( labelBgColor, 0, 1 );

    bgColor = new KColorButton( grpLabelColors, "bgColor" );
    bgColor->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)0, 0, 0, bgColor->sizePolicy().hasHeightForWidth() ) );

    grpLabelColorsLayout->addWidget( bgColor, 0, 2 );
    spacer23 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    grpLabelColorsLayout->addItem( spacer23, 0, 3 );
    spacer2_6 = new TQSpacerItem( 20, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    grpLabelColorsLayout->addItem( spacer2_6, 1, 0 );

    labelFgColor = new TQLabel( grpLabelColors, "labelFgColor" );

    grpLabelColorsLayout->addWidget( labelFgColor, 1, 1 );

    fgColor = new KColorButton( grpLabelColors, "fgColor" );
    fgColor->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)0, 0, 0, fgColor->sizePolicy().hasHeightForWidth() ) );

    grpLabelColorsLayout->addWidget( fgColor, 1, 2 );
    spacer23_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    grpLabelColorsLayout->addItem( spacer23_2, 1, 3 );

    grpLabelLayout->addMultiCellWidget( grpLabelColors, 2, 2, 0, 2 );

    chkBgTransparent = new TQCheckBox( grpLabel, "chkBgTransparent" );

    grpLabelLayout->addMultiCellWidget( chkBgTransparent, 4, 4, 0, 3 );

    separator1 = new KSeparator( grpLabel, "separator1" );

    grpLabelLayout->addMultiCellWidget( separator1, 5, 5, 0, 2 );

    labelFontRequester = new TQLabel( grpLabel, "labelFontRequester" );

    grpLabelLayout->addWidget( labelFontRequester, 6, 0 );

    labelFont = new TDEFontRequester( grpLabel, "labelFont" );

    grpLabelLayout->addMultiCellWidget( labelFont, 6, 6, 1, 2 );

    chkLabelShadow = new TQCheckBox( grpLabel, "chkLabelShadow" );
    chkLabelShadow->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)0, 0, 0, chkLabelShadow->sizePolicy().hasHeightForWidth() ) );

    grpLabelLayout->addWidget( chkLabelShadow, 7, 0 );

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

    grpLabelLayout->addWidget( shColor, 7, 1 );
    spacer23_3 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    grpLabelLayout->addItem( spacer23_3, 7, 2 );

    indOptsFrameLayout->addMultiCellWidget( grpLabel, 1, 1, 0, 1 );

    grpFlag = new TQButtonGroup( indOptsFrame, "grpFlag" );
    grpFlag->setColumnLayout(0, TQt::Vertical );
    grpFlag->layout()->setSpacing( KDialog::spacingHint() );
    grpFlag->layout()->setMargin( KDialog::marginHint() );
    grpFlagLayout = new TQVBoxLayout( grpFlag->layout() );
    grpFlagLayout->setAlignment( TQt::AlignTop );

    chkFitToBox = new TQCheckBox( grpFlag, "chkFitToBox" );
    grpFlagLayout->addWidget( chkFitToBox );

    chkDimFlag = new TQCheckBox( grpFlag, "chkDimFlag" );
    grpFlagLayout->addWidget( chkDimFlag );

    indOptsFrameLayout->addMultiCellWidget( grpFlag, 2, 2, 0, 1 );

    grpMisc = new TQButtonGroup( indOptsFrame, "grpMisc" );
    grpMisc->setColumnLayout(0, TQt::Vertical );
    grpMisc->layout()->setSpacing( KDialog::spacingHint() );
    grpMisc->layout()->setMargin( KDialog::marginHint() );
    grpMiscLayout = new TQVBoxLayout( grpMisc->layout() );
    grpMiscLayout->setAlignment( TQt::AlignTop );

    chkShowSingle = new TQCheckBox( grpMisc, "chkShowSingle" );
    grpMiscLayout->addWidget( chkShowSingle );

    chkBevel = new TQCheckBox( grpMisc, "chkBevel" );
    grpMiscLayout->addWidget( chkBevel );

    indOptsFrameLayout->addWidget( grpMisc, 0, 1 );
    tabLayout_3->addWidget( indOptsFrame );
    spacer1 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_3->addItem( spacer1 );
    tabWidget->insertTab( tab_2, TQString::fromLatin1("") );

    tabOptions = new TQWidget( tabWidget, "tabOptions" );
    tabOptionsLayout = new TQVBoxLayout( tabOptions, KDialog::marginHint(), KDialog::spacingHint(), "tabOptionsLayout"); 

    groupBox3_2 = new TQGroupBox( tabOptions, "groupBox3_2" );
    groupBox3_2->setColumnLayout(0, TQt::Vertical );
    groupBox3_2->layout()->setSpacing( KDialog::spacingHint() );
    groupBox3_2->layout()->setMargin( KDialog::marginHint() );
    groupBox3_2Layout = new TQGridLayout( groupBox3_2->layout() );
    groupBox3_2Layout->setAlignment( TQt::AlignTop );

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

    groupBox3_2Layout->addWidget( textLabel1_3_2, 1, 0 );

    editCmdLineOpt = new TQLineEdit( groupBox3_2, "editCmdLineOpt" );
    editCmdLineOpt->setReadOnly( true );

    groupBox3_2Layout->addWidget( editCmdLineOpt, 1, 1 );

    listOptions = new TQListView( groupBox3_2, "listOptions" );
    listOptions->addColumn( tr2i18n( "Options" ) );
    listOptions->header()->setClickEnabled( false, listOptions->header()->count() - 1 );

    groupBox3_2Layout->addMultiCellWidget( listOptions, 0, 0, 0, 1 );
    tabOptionsLayout->addWidget( groupBox3_2 );

    xkbOptsMode = new TQButtonGroup( tabOptions, "xkbOptsMode" );
    xkbOptsMode->setColumnLayout(0, TQt::Vertical );
    xkbOptsMode->layout()->setSpacing( KDialog::spacingHint() );
    xkbOptsMode->layout()->setMargin( KDialog::marginHint() );
    xkbOptsModeLayout = new TQVBoxLayout( xkbOptsMode->layout() );
    xkbOptsModeLayout->setAlignment( TQt::AlignTop );

    radXkbOverwrite = new TQRadioButton( xkbOptsMode, "radXkbOverwrite" );
    xkbOptsModeLayout->addWidget( radXkbOverwrite );

    radXkbAppend = new TQRadioButton( xkbOptsMode, "radXkbAppend" );
    xkbOptsModeLayout->addWidget( radXkbAppend );
    tabOptionsLayout->addWidget( xkbOptsMode );
    tabWidget->insertTab( tabOptions, TQString::fromLatin1("") );

    LayoutConfigWidgetLayout->addWidget( tabWidget, 0, 0 );
    languageChange();
    resize( TQSize(700, 600).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( chkEnable, TQ_SIGNAL( toggled(bool) ), grpLayouts, TQ_SLOT( setEnabled(bool) ) );
    connect( chkEnable, TQ_SIGNAL( toggled(bool) ), swOptsFrame, TQ_SLOT( setEnabled(bool) ) );
    connect( chkEnable, TQ_SIGNAL( toggled(bool) ), indOptsFrame, TQ_SLOT( setEnabled(bool) ) );
    connect( chkEnableSticky, TQ_SIGNAL( toggled(bool) ), spinStickyDepth, TQ_SLOT( setEnabled(bool) ) );
    connect( chkEnableSticky, TQ_SIGNAL( toggled(bool) ), textLabel1_5, TQ_SLOT( setEnabled(bool) ) );
    connect( radLabelUseCustom, TQ_SIGNAL( toggled(bool) ), grpLabelColors, TQ_SLOT( setEnabled(bool) ) );
    connect( chkLabelShadow, TQ_SIGNAL( toggled(bool) ), shColor, TQ_SLOT( setEnabled(bool) ) );
    connect( radFlagOnly, TQ_SIGNAL( toggled(bool) ), grpLabel, TQ_SLOT( setDisabled(bool) ) );
    connect( radLabelOnly, TQ_SIGNAL( toggled(bool) ), chkBgTransparent, TQ_SLOT( setEnabled(bool) ) );
    connect( radLabelOnly, TQ_SIGNAL( toggled(bool) ), bgColor, TQ_SLOT( setEnabled(bool) ) );
    connect( radLabelOnly, TQ_SIGNAL( toggled(bool) ), labelBgColor, TQ_SLOT( setEnabled(bool) ) );
    connect( radFlagLabel, TQ_SIGNAL( toggled(bool) ), bgColor, TQ_SLOT( setDisabled(bool) ) );
    connect( radFlagLabel, TQ_SIGNAL( toggled(bool) ), labelBgColor, TQ_SLOT( setDisabled(bool) ) );
    connect( chkEnableNotify, TQ_SIGNAL( toggled(bool) ), chkNotifyUseKMilo, TQ_SLOT( setEnabled(bool) ) );
    connect( radFlagOnly, TQ_SIGNAL( toggled(bool) ), grpFlag, TQ_SLOT( setEnabled(bool) ) );
    connect( radFlagLabel, TQ_SIGNAL( toggled(bool) ), grpFlag, TQ_SLOT( setEnabled(bool) ) );
    connect( radLabelOnly, TQ_SIGNAL( toggled(bool) ), grpFlag, TQ_SLOT( setDisabled(bool) ) );
    connect( radFlagLabel, TQ_SIGNAL( toggled(bool) ), chkDimFlag, TQ_SLOT( setEnabled(bool) ) );

    // buddies
    labelModel->setBuddy( comboModel );
    textLabel1_3->setBuddy( editCmdLine );
    textLabel1_6->setBuddy( editDisplayName );
    textLabel1->setBuddy( comboVariant );
    labelHotkey->setBuddy( comboHotkey );
    labelHotkey_2->setBuddy( comboHotkey );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void LayoutConfigWidget::languageChange()
{
    chkEnable->setText( tr2i18n( "&Enable keyboard layouts" ) );
    grpLayouts->setTitle( TQString::null );
    TQWhatsThis::add( grpLayouts, tr2i18n( "<h1>Keyboard Layout</h1> Here you can choose your keyboard layout and model. The 'model' refers to the type of keyboard that is connected to your computer, while the keyboard layout defines \"which key does what\" and may be different for different countries." ) );
    textLabel1_4->setText( tr2i18n( "Available layouts:" ) );
    labelLayouts->setText( tr2i18n( "Active layouts:" ) );
    labelModel->setText( tr2i18n( "Keyboard &model:" ) );
    TQWhatsThis::add( comboModel, tr2i18n( "Here you can choose a keyboard model. This setting is independent of your keyboard layout and refers to the \"hardware\" model, i.e. the way your keyboard is manufactured. Modern keyboards that come with your computer usually have two extra keys and are referred to as \"104-key\" models, which is probably what you want if you do not know what kind of keyboard you have.\n"
"" ) );
    listLayoutsDst->header()->setLabel( 0, tr2i18n( "1" ) );
    listLayoutsDst->header()->setLabel( 1, tr2i18n( "Layout" ) );
    listLayoutsDst->header()->setLabel( 2, tr2i18n( "Keymap" ) );
    listLayoutsDst->header()->setLabel( 3, tr2i18n( "Variant" ) );
    listLayoutsDst->header()->setLabel( 4, tr2i18n( "Label" ) );
    TQWhatsThis::add( listLayoutsDst, tr2i18n( "If more than one layout is present in this list, the TDE panel will offer a docked flag. By clicking on this flag you can easily switch between layouts. The first layout will be default one." ) );
    btnAdd->setText( tr2i18n( "Add >>" ) );
    btnRemove->setText( tr2i18n( "<< Remove" ) );
    btnUp->setText( TQString::null );
    btnDown->setText( TQString::null );
    textLabel1_3->setText( tr2i18n( "Command:" ) );
    listLayoutsSrc->header()->setLabel( 0, TQString::null );
    listLayoutsSrc->header()->setLabel( 1, tr2i18n( "Layout" ) );
    listLayoutsSrc->header()->setLabel( 2, tr2i18n( "Keymap" ) );
    TQWhatsThis::add( listLayoutsSrc, tr2i18n( "This is the list of available keyboard layouts in your system. You can add layout to the active list by selecting it and pressing \"Add\" button." ) );
    TQWhatsThis::add( editCmdLine, tr2i18n( "This is the command which is executed when switching to the selected layout. It may help you if you want to debug layout switching, or if you want to switch layouts without the help of TDE." ) );
    textLabel1_6->setText( tr2i18n( "Label:" ) );
    textLabel1->setText( tr2i18n( "Layout variant:" ) );
    TQWhatsThis::add( comboVariant, tr2i18n( "Here you can choose a variant of selected keyboard layout. Layout variants usually represent different key maps for the same language. For example, Ukrainian layout might have four variants: basic, winkeys (as in Windows), typewriter (as in typewriters) and phonetic (each Ukrainian letter is placed on a transliterated latin one).\n"
"" ) );
    tabWidget->changeTab( tabLayout, tr2i18n( "Layout" ) );
    labelHotkey->setText( tr2i18n( "<qt><b>Key combination to switch layout (X11):</b></qt>" ) );
    TQWhatsThis::add( comboHotkey, tr2i18n( "Here you can choose the key combination you want to use to switch to the next layout. This list includes only the most common variants. If you choose \"Other...\", then you will be redirected to the \"Options\" tab where you can pick from all the available variants. Note that if you have selected Append Mode in the Xkb Options tab this option is not available; you have to use the Xkb Options tab instead." ) );
    labelHotkey_2->setText( tr2i18n( "<qt><b>TDE shortcuts to switch layout:</b></qt>" ) );
    tabWidget->changeTab( tabShortcuts, tr2i18n( "Keyboard Shortcuts" ) );
    grpSwitching->setTitle( tr2i18n( "Switching Policy" ) );
    TQWhatsThis::add( grpSwitching, tr2i18n( "If you select \"Application\" or \"Window\" switching policy, changing the keyboard layout will only affect the current application or window." ) );
    radioButton1->setText( tr2i18n( "&Global" ) );
    radioButton1_3->setText( tr2i18n( "Application" ) );
    radioButton1_2->setText( tr2i18n( "&Window" ) );
    grpBoxStickySwitching->setTitle( tr2i18n( "Sticky Switching" ) );
    chkEnableSticky->setText( tr2i18n( "Enable sticky switching" ) );
    TQWhatsThis::add( chkEnableSticky, tr2i18n( "If you have more than two layouts and turn this option on, switching with the keyboard shortcut or clicking on the kxkb indicator will only cycle through the last few layouts. You can specify the number of layouts to rotate below. You can still access all layouts by right-clicking on the kxkb indicator." ) );
    textLabel1_5->setText( tr2i18n( "Number of layouts to rotate:" ) );
    grpBoxNotifications->setTitle( tr2i18n( "Notifications" ) );
    chkEnableNotify->setText( tr2i18n( "Enable keyboard layout notification" ) );
    TQWhatsThis::add( chkEnableNotify, tr2i18n( "If this option is enabled, a little notification will pop up on the screen displaying the name of the currently selected layout whenever it changes." ) );
    chkNotifyUseKMilo->setText( tr2i18n( "Use KMilo for notifications, if available" ) );
    TQWhatsThis::add( chkNotifyUseKMilo, tr2i18n( "If this option is enabled and KMilo is available, it will be used to display the notifications instead of the standard notification system. If KMilo is not available, notifications will be showed via the standard TDE notification system." ) );
    tabWidget->changeTab( tab, tr2i18n( "Switching Options" ) );
    grpStyle->setTitle( tr2i18n( "Indicator Style" ) );
    TQWhatsThis::add( grpStyle, tr2i18n( "Here you can choose the way your keyboard layout indicator will look." ) );
    radFlagLabel->setText( tr2i18n( "&Both Flag and Label" ) );
    radFlagOnly->setText( tr2i18n( "&Flag Only" ) );
    radLabelOnly->setText( tr2i18n( "&Label Only" ) );
    grpLabel->setTitle( tr2i18n( "Label Style" ) );
    TQWhatsThis::add( grpLabel, tr2i18n( "Here you can choose the way the label of your keyboard layout indicator will be displayed. These options are relevant even when labels are disabled, for locales where the flag is missing." ) );
    radLabelUseTheme->setText( tr2i18n( "Use &theme colors" ) );
    radLabelUseCustom->setText( tr2i18n( "Use c&ustom colors" ) );
    labelBgColor->setText( tr2i18n( "Background color:" ) );
    TQWhatsThis::add( labelBgColor, tr2i18n( "This color will be used as the indicator's background unless the indicator was set to display a flag." ) );
    TQWhatsThis::add( bgColor, tr2i18n( "This color will be used as the indicator's background unless the indicator was set to display a flag." ) );
    labelFgColor->setText( tr2i18n( "Text color:" ) );
    TQWhatsThis::add( labelFgColor, tr2i18n( "This color will be used to draw the language label on the indicator." ) );
    TQWhatsThis::add( fgColor, tr2i18n( "This color will be used to draw the language label on the indicator." ) );
    chkBgTransparent->setText( tr2i18n( "Transparent background" ) );
    TQWhatsThis::add( chkBgTransparent, tr2i18n( "Check this to remove the indicator's background. Only applicable in \"Label only\" mode." ) );
    labelFontRequester->setText( tr2i18n( "Label font:" ) );
    TQWhatsThis::add( labelFontRequester, tr2i18n( "This is the font which will be used by the layout indicator to draw the label." ) );
    chkLabelShadow->setText( tr2i18n( "Enable shadow" ) );
    TQWhatsThis::add( chkLabelShadow, tr2i18n( "Draw a drop shadow behind the language label. In some cases this option can improve readability." ) );
    TQWhatsThis::add( shColor, tr2i18n( "The drop shadow behind the language label will be of this color." ) );
    grpFlag->setTitle( tr2i18n( "Flag Style" ) );
    chkFitToBox->setText( tr2i18n( "Stretc&h flag" ) );
    TQWhatsThis::add( chkFitToBox, tr2i18n( "If this option is enabled, the flag will be stretched to fit the tray indicator size." ) );
    chkDimFlag->setText( tr2i18n( "Dim flag to make the label more visible" ) );
    grpMisc->setTitle( tr2i18n( "Miscellaneous" ) );
    chkShowSingle->setText( tr2i18n( "Show indicator for single layout" ) );
    chkBevel->setText( tr2i18n( "Show indicator bevel" ) );
    TQWhatsThis::add( chkBevel, tr2i18n( "If this option is enabled, the layout indicator will be drawn with a thin 3D bevel around it." ) );
    tabWidget->changeTab( tab_2, tr2i18n( "Indicator Options" ) );
    groupBox3_2->setTitle( tr2i18n( "Xkb Options" ) );
    TQWhatsThis::add( groupBox3_2, tr2i18n( "Here you can set xkb extension options instead of, or in addition to, specifying them in the X11 configuration file." ) );
    textLabel1_3_2->setText( tr2i18n( "Command:" ) );
    listOptions->header()->setLabel( 0, tr2i18n( "Options" ) );
    xkbOptsMode->setTitle( tr2i18n( "Options Mode" ) );
    TQWhatsThis::add( xkbOptsMode, tr2i18n( "Here you can choose how the options you select here will be applied: in addition to, or instead of existing options." ) );
    radXkbOverwrite->setText( tr2i18n( "&Overwrite existing options (recommended)" ) );
    TQWhatsThis::add( radXkbOverwrite, tr2i18n( "Overwrite any existing Xkb options that might have been previously set by another program or from a script (e.g. via setxkbmap). This is the recommended option." ) );
    radXkbAppend->setText( tr2i18n( "&Append to existing options" ) );
    TQWhatsThis::add( radXkbAppend, tr2i18n( "Append the selected options to any existing Xkb options that might have been previously set by another program or from a script (e.g. via setxkbmap). Only use this if you really need to." ) );
    tabWidget->changeTab( tabOptions, tr2i18n( "Xkb Options" ) );
}

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

TQMetaObject *LayoutConfigWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_LayoutConfigWidget( "LayoutConfigWidget", &LayoutConfigWidget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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