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

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

#include "ruleswidgetbase.h"

#include <ntqvariant.h>
#include <kcombobox.h>
#include <klineedit.h>
#include <kpushbutton.h>
#include <krestrictedline.h>
#include <tdelistbox.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqlabel.h>
#include <ntqcheckbox.h>
#include <ntqgroupbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a KWinInternal::RulesWidgetBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
KWinInternal::RulesWidgetBase::RulesWidgetBase( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "Form2" );
    Form2Layout = new TQVBoxLayout( this, 0, KDialog::spacingHint(), "Form2Layout"); 

    tabs = new TQTabWidget( this, "tabs" );

    tab = new TQWidget( tabs, "tab" );
    tabLayout = new TQGridLayout( tab, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "tabLayout"); 

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

    tabLayout->addMultiCellWidget( textLabel1, 0, 0, 0, 4 );

    description = new KLineEdit( tab, "description" );

    tabLayout->addMultiCellWidget( description, 1, 1, 0, 4 );

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

    tabLayout->addMultiCellWidget( textLabel2, 2, 2, 0, 4 );

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

    tabLayout->addMultiCellWidget( textLabel3, 5, 5, 0, 4 );

    role = new KLineEdit( tab, "role" );

    tabLayout->addMultiCellWidget( role, 6, 6, 0, 4 );
    spacer29 = new TQSpacerItem( 20, 40, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout->addItem( spacer29, 9, 1 );

    role_match = new KComboBox( false, tab, "role_match" );

    tabLayout->addWidget( role_match, 7, 0 );
    spacer1 = new TQSpacerItem( 212, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabLayout->addItem( spacer1, 7, 1 );

    edit_reg_role = new KPushButton( tab, "edit_reg_role" );
    edit_reg_role->setEnabled( false );

    tabLayout->addWidget( edit_reg_role, 7, 2 );
    spacer4 = new TQSpacerItem( 211, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabLayout->addMultiCell( spacer4, 7, 7, 3, 4 );

    wmclass_match = new KComboBox( false, tab, "wmclass_match" );

    tabLayout->addWidget( wmclass_match, 4, 0 );
    spacer2 = new TQSpacerItem( 212, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabLayout->addItem( spacer2, 4, 1 );

    edit_reg_wmclass = new KPushButton( tab, "edit_reg_wmclass" );
    edit_reg_wmclass->setEnabled( false );

    tabLayout->addWidget( edit_reg_wmclass, 4, 2 );
    spacer5 = new TQSpacerItem( 211, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabLayout->addMultiCell( spacer5, 4, 4, 3, 4 );

    wmclass = new KLineEdit( tab, "wmclass" );

    tabLayout->addMultiCellWidget( wmclass, 3, 3, 0, 3 );

    whole_wmclass = new TQCheckBox( tab, "whole_wmclass" );

    tabLayout->addWidget( whole_wmclass, 3, 4 );

    groupBox1 = new TQGroupBox( tab, "groupBox1" );
    groupBox1->setColumnLayout(0, TQt::Vertical );
    groupBox1->layout()->setSpacing( KDialog::spacingHint() );
    groupBox1->layout()->setMargin( KDialog::marginHint() );
    groupBox1Layout = new TQHBoxLayout( groupBox1->layout() );
    groupBox1Layout->setAlignment( TQt::AlignTop );
    spacer27 = new TQSpacerItem( 270, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox1Layout->addItem( spacer27 );

    detect1 = new KPushButton( groupBox1, "detect1" );
    groupBox1Layout->addWidget( detect1 );
    spacer28 = new TQSpacerItem( 269, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox1Layout->addItem( spacer28 );

    tabLayout->addMultiCellWidget( groupBox1, 8, 8, 0, 4 );
    tabs->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( tabs, "tab_2" );
    tabLayout_2 = new TQGridLayout( tab_2, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "tabLayout_2"); 

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

    tabLayout_2->addMultiCellWidget( textLabel4, 0, 0, 0, 3 );

    types = new TDEListBox( tab_2, "types" );
    types->setSelectionMode( TDEListBox::Multi );

    tabLayout_2->addMultiCellWidget( types, 1, 1, 0, 3 );

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

    tabLayout_2->addMultiCellWidget( textLabel5, 2, 2, 0, 3 );

    title = new KLineEdit( tab_2, "title" );

    tabLayout_2->addMultiCellWidget( title, 3, 3, 0, 3 );

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

    tabLayout_2->addMultiCellWidget( textLabel6, 5, 5, 0, 3 );

    extra = new KLineEdit( tab_2, "extra" );

    tabLayout_2->addMultiCellWidget( extra, 6, 6, 0, 3 );

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

    tabLayout_2->addMultiCellWidget( textLabel7, 8, 8, 0, 3 );

    machine = new KLineEdit( tab_2, "machine" );

    tabLayout_2->addMultiCellWidget( machine, 9, 9, 0, 3 );

    title_match = new KComboBox( false, tab_2, "title_match" );

    tabLayout_2->addWidget( title_match, 4, 0 );
    spacer2_2 = new TQSpacerItem( 199, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabLayout_2->addItem( spacer2_2, 4, 1 );

    edit_reg_title = new KPushButton( tab_2, "edit_reg_title" );
    edit_reg_title->setEnabled( false );

    tabLayout_2->addWidget( edit_reg_title, 4, 2 );
    spacer5_2 = new TQSpacerItem( 199, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabLayout_2->addItem( spacer5_2, 4, 3 );

    extra_match = new KComboBox( false, tab_2, "extra_match" );

    tabLayout_2->addWidget( extra_match, 7, 0 );
    spacer2_2_2 = new TQSpacerItem( 199, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabLayout_2->addItem( spacer2_2_2, 7, 1 );

    edit_reg_extra = new KPushButton( tab_2, "edit_reg_extra" );
    edit_reg_extra->setEnabled( false );

    tabLayout_2->addWidget( edit_reg_extra, 7, 2 );
    spacer5_2_2 = new TQSpacerItem( 199, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabLayout_2->addItem( spacer5_2_2, 7, 3 );

    machine_match = new KComboBox( false, tab_2, "machine_match" );

    tabLayout_2->addWidget( machine_match, 10, 0 );
    spacer2_2_3 = new TQSpacerItem( 199, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabLayout_2->addItem( spacer2_2_3, 10, 1 );

    edit_reg_machine = new KPushButton( tab_2, "edit_reg_machine" );
    edit_reg_machine->setEnabled( false );

    tabLayout_2->addWidget( edit_reg_machine, 10, 2 );
    spacer5_2_3 = new TQSpacerItem( 199, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabLayout_2->addItem( spacer5_2_3, 10, 3 );
    tabs->insertTab( tab_2, TQString::fromLatin1("") );

    TabPage = new TQWidget( tabs, "TabPage" );
    TabPageLayout = new TQGridLayout( TabPage, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "TabPageLayout"); 

    rule_size = new KComboBox( false, TabPage, "rule_size" );
    rule_size->setEnabled( false );

    TabPageLayout->addWidget( rule_size, 1, 1 );

    size = new KRestrictedLine( TabPage, "size" );
    size->setEnabled( false );

    TabPageLayout->addWidget( size, 1, 2 );

    enable_size = new TQCheckBox( TabPage, "enable_size" );

    TabPageLayout->addWidget( enable_size, 1, 0 );

    enable_position = new TQCheckBox( TabPage, "enable_position" );

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

    position = new KRestrictedLine( TabPage, "position" );
    position->setEnabled( false );

    TabPageLayout->addWidget( position, 0, 2 );

    rule_position = new KComboBox( false, TabPage, "rule_position" );
    rule_position->setEnabled( false );

    TabPageLayout->addWidget( rule_position, 0, 1 );

    maximizevert = new TQCheckBox( TabPage, "maximizevert" );
    maximizevert->setEnabled( false );

    TabPageLayout->addWidget( maximizevert, 3, 2 );

    rule_maximizehoriz = new KComboBox( false, TabPage, "rule_maximizehoriz" );
    rule_maximizehoriz->setEnabled( false );

    TabPageLayout->addWidget( rule_maximizehoriz, 2, 1 );

    fullscreen = new TQCheckBox( TabPage, "fullscreen" );
    fullscreen->setEnabled( false );

    TabPageLayout->addWidget( fullscreen, 4, 2 );

    enable_maximizehoriz = new TQCheckBox( TabPage, "enable_maximizehoriz" );

    TabPageLayout->addWidget( enable_maximizehoriz, 2, 0 );

    maximizehoriz = new TQCheckBox( TabPage, "maximizehoriz" );
    maximizehoriz->setEnabled( false );

    TabPageLayout->addWidget( maximizehoriz, 2, 2 );

    rule_fullscreen = new KComboBox( false, TabPage, "rule_fullscreen" );
    rule_fullscreen->setEnabled( false );

    TabPageLayout->addWidget( rule_fullscreen, 4, 1 );

    enable_fullscreen = new TQCheckBox( TabPage, "enable_fullscreen" );

    TabPageLayout->addWidget( enable_fullscreen, 4, 0 );

    rule_maximizevert = new KComboBox( false, TabPage, "rule_maximizevert" );
    rule_maximizevert->setEnabled( false );

    TabPageLayout->addWidget( rule_maximizevert, 3, 1 );

    enable_maximizevert = new TQCheckBox( TabPage, "enable_maximizevert" );

    TabPageLayout->addWidget( enable_maximizevert, 3, 0 );

    rule_desktop = new KComboBox( false, TabPage, "rule_desktop" );
    rule_desktop->setEnabled( false );

    TabPageLayout->addWidget( rule_desktop, 5, 1 );

    desktop = new KComboBox( false, TabPage, "desktop" );
    desktop->setEnabled( false );

    TabPageLayout->addWidget( desktop, 5, 2 );

    enable_desktop = new TQCheckBox( TabPage, "enable_desktop" );

    TabPageLayout->addWidget( enable_desktop, 5, 0 );

    enable_shade = new TQCheckBox( TabPage, "enable_shade" );

    TabPageLayout->addWidget( enable_shade, 7, 0 );

    shade = new TQCheckBox( TabPage, "shade" );
    shade->setEnabled( false );

    TabPageLayout->addWidget( shade, 7, 2 );

    rule_minimize = new KComboBox( false, TabPage, "rule_minimize" );
    rule_minimize->setEnabled( false );

    TabPageLayout->addWidget( rule_minimize, 6, 1 );

    minimize = new TQCheckBox( TabPage, "minimize" );
    minimize->setEnabled( false );

    TabPageLayout->addWidget( minimize, 6, 2 );

    enable_minimize = new TQCheckBox( TabPage, "enable_minimize" );

    TabPageLayout->addWidget( enable_minimize, 6, 0 );

    rule_placement = new KComboBox( false, TabPage, "rule_placement" );
    rule_placement->setEnabled( false );

    TabPageLayout->addWidget( rule_placement, 8, 1 );

    placement = new KComboBox( false, TabPage, "placement" );
    placement->setEnabled( false );

    TabPageLayout->addWidget( placement, 8, 2 );

    enable_placement = new TQCheckBox( TabPage, "enable_placement" );

    TabPageLayout->addWidget( enable_placement, 8, 0 );
    spacer31 = new TQSpacerItem( 20, 16, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    TabPageLayout->addItem( spacer31, 9, 1 );

    rule_shade = new KComboBox( false, TabPage, "rule_shade" );
    rule_shade->setEnabled( false );

    TabPageLayout->addWidget( rule_shade, 7, 1 );
    tabs->insertTab( TabPage, TQString::fromLatin1("") );

    TabPage_2 = new TQWidget( tabs, "TabPage_2" );
    TabPageLayout_2 = new TQGridLayout( TabPage_2, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "TabPageLayout_2"); 

    enable_above = new TQCheckBox( TabPage_2, "enable_above" );

    TabPageLayout_2->addWidget( enable_above, 0, 0 );

    enable_below = new TQCheckBox( TabPage_2, "enable_below" );

    TabPageLayout_2->addWidget( enable_below, 1, 0 );

    enable_skippager = new TQCheckBox( TabPage_2, "enable_skippager" );

    TabPageLayout_2->addWidget( enable_skippager, 4, 0 );

    enable_skiptaskbar = new TQCheckBox( TabPage_2, "enable_skiptaskbar" );

    TabPageLayout_2->addWidget( enable_skiptaskbar, 3, 0 );

    enable_noborder = new TQCheckBox( TabPage_2, "enable_noborder" );

    TabPageLayout_2->addWidget( enable_noborder, 2, 0 );

    enable_acceptfocus = new TQCheckBox( TabPage_2, "enable_acceptfocus" );

    TabPageLayout_2->addWidget( enable_acceptfocus, 5, 0 );

    enable_closeable = new TQCheckBox( TabPage_2, "enable_closeable" );

    TabPageLayout_2->addWidget( enable_closeable, 6, 0 );

    enable_opacityactive = new TQCheckBox( TabPage_2, "enable_opacityactive" );

    TabPageLayout_2->addWidget( enable_opacityactive, 7, 0 );

    rule_opacityactive = new KComboBox( false, TabPage_2, "rule_opacityactive" );
    rule_opacityactive->setEnabled( false );

    TabPageLayout_2->addWidget( rule_opacityactive, 7, 1 );

    opacityactive = new KRestrictedLine( TabPage_2, "opacityactive" );
    opacityactive->setEnabled( false );

    TabPageLayout_2->addMultiCellWidget( opacityactive, 7, 7, 2, 3 );
    spacer24 = new TQSpacerItem( 171, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    TabPageLayout_2->addMultiCell( spacer24, 7, 7, 4, 5 );
    spacer36_7 = new TQSpacerItem( 290, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    TabPageLayout_2->addMultiCell( spacer36_7, 6, 6, 3, 5 );
    spacer36_6 = new TQSpacerItem( 290, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    TabPageLayout_2->addMultiCell( spacer36_6, 5, 5, 3, 5 );
    spacer36_5 = new TQSpacerItem( 290, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    TabPageLayout_2->addMultiCell( spacer36_5, 4, 4, 3, 5 );
    spacer36_4 = new TQSpacerItem( 290, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    TabPageLayout_2->addMultiCell( spacer36_4, 3, 3, 3, 5 );
    spacer36_3 = new TQSpacerItem( 290, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    TabPageLayout_2->addMultiCell( spacer36_3, 2, 2, 3, 5 );
    spacer36_2 = new TQSpacerItem( 290, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    TabPageLayout_2->addMultiCell( spacer36_2, 1, 1, 3, 5 );
    spacer36 = new TQSpacerItem( 290, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    TabPageLayout_2->addMultiCell( spacer36, 0, 0, 3, 5 );

    above = new TQCheckBox( TabPage_2, "above" );
    above->setEnabled( false );

    TabPageLayout_2->addWidget( above, 0, 2 );

    below = new TQCheckBox( TabPage_2, "below" );
    below->setEnabled( false );

    TabPageLayout_2->addWidget( below, 1, 2 );

    noborder = new TQCheckBox( TabPage_2, "noborder" );
    noborder->setEnabled( false );

    TabPageLayout_2->addWidget( noborder, 2, 2 );

    skiptaskbar = new TQCheckBox( TabPage_2, "skiptaskbar" );
    skiptaskbar->setEnabled( false );

    TabPageLayout_2->addWidget( skiptaskbar, 3, 2 );

    skippager = new TQCheckBox( TabPage_2, "skippager" );
    skippager->setEnabled( false );

    TabPageLayout_2->addWidget( skippager, 4, 2 );

    acceptfocus = new TQCheckBox( TabPage_2, "acceptfocus" );
    acceptfocus->setEnabled( false );

    TabPageLayout_2->addWidget( acceptfocus, 5, 2 );

    closeable = new TQCheckBox( TabPage_2, "closeable" );
    closeable->setEnabled( false );

    TabPageLayout_2->addWidget( closeable, 6, 2 );

    rule_closeable = new KComboBox( false, TabPage_2, "rule_closeable" );
    rule_closeable->setEnabled( false );

    TabPageLayout_2->addWidget( rule_closeable, 6, 1 );

    rule_acceptfocus = new KComboBox( false, TabPage_2, "rule_acceptfocus" );
    rule_acceptfocus->setEnabled( false );

    TabPageLayout_2->addWidget( rule_acceptfocus, 5, 1 );

    rule_skippager = new KComboBox( false, TabPage_2, "rule_skippager" );
    rule_skippager->setEnabled( false );

    TabPageLayout_2->addWidget( rule_skippager, 4, 1 );

    rule_skiptaskbar = new KComboBox( false, TabPage_2, "rule_skiptaskbar" );
    rule_skiptaskbar->setEnabled( false );

    TabPageLayout_2->addWidget( rule_skiptaskbar, 3, 1 );

    rule_noborder = new KComboBox( false, TabPage_2, "rule_noborder" );
    rule_noborder->setEnabled( false );

    TabPageLayout_2->addWidget( rule_noborder, 2, 1 );

    rule_below = new KComboBox( false, TabPage_2, "rule_below" );
    rule_below->setEnabled( false );

    TabPageLayout_2->addWidget( rule_below, 1, 1 );

    rule_above = new KComboBox( false, TabPage_2, "rule_above" );
    rule_above->setEnabled( false );

    TabPageLayout_2->addWidget( rule_above, 0, 1 );
    spacer33 = new TQSpacerItem( 20, 80, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    TabPageLayout_2->addItem( spacer33, 10, 1 );

    rule_opacityinactive = new KComboBox( false, TabPage_2, "rule_opacityinactive" );
    rule_opacityinactive->setEnabled( false );

    TabPageLayout_2->addWidget( rule_opacityinactive, 8, 1 );

    opacityinactive = new KRestrictedLine( TabPage_2, "opacityinactive" );
    opacityinactive->setEnabled( false );

    TabPageLayout_2->addMultiCellWidget( opacityinactive, 8, 8, 2, 3 );
    spacer25 = new TQSpacerItem( 181, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    TabPageLayout_2->addMultiCell( spacer25, 8, 8, 4, 5 );

    enable_opacityinactive = new TQCheckBox( TabPage_2, "enable_opacityinactive" );

    TabPageLayout_2->addWidget( enable_opacityinactive, 8, 0 );

    enable_shortcut = new TQCheckBox( TabPage_2, "enable_shortcut" );

    TabPageLayout_2->addWidget( enable_shortcut, 9, 0 );

    rule_shortcut = new KComboBox( false, TabPage_2, "rule_shortcut" );
    rule_shortcut->setEnabled( false );

    TabPageLayout_2->addWidget( rule_shortcut, 9, 1 );

    shortcut_edit = new TQPushButton( TabPage_2, "shortcut_edit" );

    TabPageLayout_2->addWidget( shortcut_edit, 9, 5 );

    shortcut = new KRestrictedLine( TabPage_2, "shortcut" );
    shortcut->setEnabled( false );

    TabPageLayout_2->addMultiCellWidget( shortcut, 9, 9, 2, 4 );
    tabs->insertTab( TabPage_2, TQString::fromLatin1("") );

    TabPage_3 = new TQWidget( tabs, "TabPage_3" );
    TabPageLayout_3 = new TQGridLayout( TabPage_3, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "TabPageLayout_3"); 

    enable_fsplevel = new TQCheckBox( TabPage_3, "enable_fsplevel" );

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

    rule_type = new KComboBox( false, TabPage_3, "rule_type" );
    rule_type->setEnabled( false );

    TabPageLayout_3->addWidget( rule_type, 2, 1 );

    type = new KComboBox( false, TabPage_3, "type" );
    type->setEnabled( false );

    TabPageLayout_3->addWidget( type, 2, 3 );

    moveresizemode = new KComboBox( false, TabPage_3, "moveresizemode" );
    moveresizemode->setEnabled( false );

    TabPageLayout_3->addWidget( moveresizemode, 1, 3 );

    enable_type = new TQCheckBox( TabPage_3, "enable_type" );

    TabPageLayout_3->addWidget( enable_type, 2, 0 );

    enable_moveresizemode = new TQCheckBox( TabPage_3, "enable_moveresizemode" );

    TabPageLayout_3->addWidget( enable_moveresizemode, 1, 0 );

    rule_fsplevel = new KComboBox( false, TabPage_3, "rule_fsplevel" );
    rule_fsplevel->setEnabled( false );

    TabPageLayout_3->addWidget( rule_fsplevel, 0, 1 );

    rule_moveresizemode = new KComboBox( false, TabPage_3, "rule_moveresizemode" );
    rule_moveresizemode->setEnabled( false );

    TabPageLayout_3->addWidget( rule_moveresizemode, 1, 1 );

    fsplevel = new KComboBox( false, TabPage_3, "fsplevel" );
    fsplevel->setEnabled( false );

    TabPageLayout_3->addWidget( fsplevel, 0, 3 );

    maxsize = new KRestrictedLine( TabPage_3, "maxsize" );
    maxsize->setEnabled( false );

    TabPageLayout_3->addWidget( maxsize, 5, 3 );

    enable_minsize = new TQCheckBox( TabPage_3, "enable_minsize" );

    TabPageLayout_3->addWidget( enable_minsize, 4, 0 );

    rule_minsize = new KComboBox( false, TabPage_3, "rule_minsize" );
    rule_minsize->setEnabled( false );

    TabPageLayout_3->addWidget( rule_minsize, 4, 1 );

    enable_maxsize = new TQCheckBox( TabPage_3, "enable_maxsize" );

    TabPageLayout_3->addWidget( enable_maxsize, 5, 0 );

    minsize = new KRestrictedLine( TabPage_3, "minsize" );
    minsize->setEnabled( false );

    TabPageLayout_3->addWidget( minsize, 4, 3 );

    rule_maxsize = new KComboBox( false, TabPage_3, "rule_maxsize" );
    rule_maxsize->setEnabled( false );

    TabPageLayout_3->addWidget( rule_maxsize, 5, 1 );

    enable_ignoreposition = new TQCheckBox( TabPage_3, "enable_ignoreposition" );

    TabPageLayout_3->addWidget( enable_ignoreposition, 3, 0 );

    rule_ignoreposition = new KComboBox( false, TabPage_3, "rule_ignoreposition" );
    rule_ignoreposition->setEnabled( false );

    TabPageLayout_3->addWidget( rule_ignoreposition, 3, 1 );

    ignoreposition = new TQCheckBox( TabPage_3, "ignoreposition" );
    ignoreposition->setEnabled( false );

    TabPageLayout_3->addWidget( ignoreposition, 3, 3 );
    spacer35 = new TQSpacerItem( 20, 160, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    TabPageLayout_3->addItem( spacer35, 8, 2 );

    enable_strictgeometry = new TQCheckBox( TabPage_3, "enable_strictgeometry" );

    TabPageLayout_3->addWidget( enable_strictgeometry, 6, 0 );

    rule_strictgeometry = new KComboBox( false, TabPage_3, "rule_strictgeometry" );
    rule_strictgeometry->setEnabled( false );

    TabPageLayout_3->addWidget( rule_strictgeometry, 6, 1 );

    strictgeometry = new TQCheckBox( TabPage_3, "strictgeometry" );
    strictgeometry->setEnabled( false );

    TabPageLayout_3->addWidget( strictgeometry, 6, 3 );

    disableglobalshortcuts = new TQCheckBox( TabPage_3, "disableglobalshortcuts" );
    disableglobalshortcuts->setEnabled( false );

    TabPageLayout_3->addWidget( disableglobalshortcuts, 7, 3 );

    enable_disableglobalshortcuts = new TQCheckBox( TabPage_3, "enable_disableglobalshortcuts" );

    TabPageLayout_3->addWidget( enable_disableglobalshortcuts, 7, 0 );

    rule_disableglobalshortcuts = new KComboBox( false, TabPage_3, "rule_disableglobalshortcuts" );
    rule_disableglobalshortcuts->setEnabled( false );

    TabPageLayout_3->addWidget( rule_disableglobalshortcuts, 7, 1 );
    tabs->insertTab( TabPage_3, TQString::fromLatin1("") );
    Form2Layout->addWidget( tabs );
    languageChange();
    resize( TQSize(630, 503).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( detect1, TQ_SIGNAL( clicked() ), this, TQ_SLOT( detectClicked() ) );
    connect( wmclass_match, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( wmclassMatchChanged() ) );
    connect( role_match, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( roleMatchChanged() ) );
    connect( title_match, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( titleMatchChanged() ) );
    connect( extra_match, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( extraMatchChanged() ) );
    connect( machine_match, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( machineMatchChanged() ) );
    connect( shortcut_edit, TQ_SIGNAL( clicked() ), this, TQ_SLOT( shortcutEditClicked() ) );

    // tab order
    setTabOrder( tabs, description );
    setTabOrder( description, wmclass );
    setTabOrder( wmclass, whole_wmclass );
    setTabOrder( whole_wmclass, wmclass_match );
    setTabOrder( wmclass_match, edit_reg_wmclass );
    setTabOrder( edit_reg_wmclass, role );
    setTabOrder( role, role_match );
    setTabOrder( role_match, edit_reg_role );
    setTabOrder( edit_reg_role, detect1 );
    setTabOrder( detect1, types );
    setTabOrder( types, title );
    setTabOrder( title, title_match );
    setTabOrder( title_match, edit_reg_title );
    setTabOrder( edit_reg_title, extra );
    setTabOrder( extra, extra_match );
    setTabOrder( extra_match, edit_reg_extra );
    setTabOrder( edit_reg_extra, machine );
    setTabOrder( machine, machine_match );
    setTabOrder( machine_match, edit_reg_machine );
    setTabOrder( edit_reg_machine, enable_position );
    setTabOrder( enable_position, rule_position );
    setTabOrder( rule_position, position );
    setTabOrder( position, enable_size );
    setTabOrder( enable_size, rule_size );
    setTabOrder( rule_size, size );
    setTabOrder( size, enable_maximizehoriz );
    setTabOrder( enable_maximizehoriz, rule_maximizehoriz );
    setTabOrder( rule_maximizehoriz, maximizehoriz );
    setTabOrder( maximizehoriz, enable_maximizevert );
    setTabOrder( enable_maximizevert, rule_maximizevert );
    setTabOrder( rule_maximizevert, maximizevert );
    setTabOrder( maximizevert, enable_fullscreen );
    setTabOrder( enable_fullscreen, rule_fullscreen );
    setTabOrder( rule_fullscreen, fullscreen );
    setTabOrder( fullscreen, enable_desktop );
    setTabOrder( enable_desktop, rule_desktop );
    setTabOrder( rule_desktop, desktop );
    setTabOrder( desktop, enable_minimize );
    setTabOrder( enable_minimize, rule_minimize );
    setTabOrder( rule_minimize, minimize );
    setTabOrder( minimize, enable_shade );
    setTabOrder( enable_shade, rule_shade );
    setTabOrder( rule_shade, shade );
    setTabOrder( shade, enable_placement );
    setTabOrder( enable_placement, rule_placement );
    setTabOrder( rule_placement, placement );
    setTabOrder( placement, enable_above );
    setTabOrder( enable_above, rule_above );
    setTabOrder( rule_above, above );
    setTabOrder( above, enable_below );
    setTabOrder( enable_below, rule_below );
    setTabOrder( rule_below, below );
    setTabOrder( below, enable_noborder );
    setTabOrder( enable_noborder, rule_noborder );
    setTabOrder( rule_noborder, noborder );
    setTabOrder( noborder, enable_skiptaskbar );
    setTabOrder( enable_skiptaskbar, rule_skiptaskbar );
    setTabOrder( rule_skiptaskbar, skiptaskbar );
    setTabOrder( skiptaskbar, enable_skippager );
    setTabOrder( enable_skippager, rule_skippager );
    setTabOrder( rule_skippager, skippager );
    setTabOrder( skippager, enable_acceptfocus );
    setTabOrder( enable_acceptfocus, rule_acceptfocus );
    setTabOrder( rule_acceptfocus, acceptfocus );
    setTabOrder( acceptfocus, enable_closeable );
    setTabOrder( enable_closeable, rule_closeable );
    setTabOrder( rule_closeable, closeable );
    setTabOrder( closeable, enable_opacityactive );
    setTabOrder( enable_opacityactive, rule_opacityactive );
    setTabOrder( rule_opacityactive, opacityactive );
    setTabOrder( opacityactive, enable_opacityinactive );
    setTabOrder( enable_opacityinactive, rule_opacityinactive );
    setTabOrder( rule_opacityinactive, opacityinactive );
    setTabOrder( opacityinactive, enable_shortcut );
    setTabOrder( enable_shortcut, rule_shortcut );
    setTabOrder( rule_shortcut, shortcut );
    setTabOrder( shortcut, shortcut_edit );
    setTabOrder( shortcut_edit, enable_fsplevel );
    setTabOrder( enable_fsplevel, rule_fsplevel );
    setTabOrder( rule_fsplevel, fsplevel );
    setTabOrder( fsplevel, enable_moveresizemode );
    setTabOrder( enable_moveresizemode, rule_moveresizemode );
    setTabOrder( rule_moveresizemode, moveresizemode );
    setTabOrder( moveresizemode, enable_type );
    setTabOrder( enable_type, rule_type );
    setTabOrder( rule_type, type );
    setTabOrder( type, enable_ignoreposition );
    setTabOrder( enable_ignoreposition, rule_ignoreposition );
    setTabOrder( rule_ignoreposition, ignoreposition );
    setTabOrder( ignoreposition, enable_minsize );
    setTabOrder( enable_minsize, rule_minsize );
    setTabOrder( rule_minsize, minsize );
    setTabOrder( minsize, enable_maxsize );
    setTabOrder( enable_maxsize, rule_maxsize );
    setTabOrder( rule_maxsize, maxsize );
    setTabOrder( maxsize, enable_strictgeometry );
    setTabOrder( enable_strictgeometry, rule_strictgeometry );
    setTabOrder( rule_strictgeometry, strictgeometry );
    setTabOrder( strictgeometry, enable_disableglobalshortcuts );
    setTabOrder( enable_disableglobalshortcuts, rule_disableglobalshortcuts );
    setTabOrder( rule_disableglobalshortcuts, disableglobalshortcuts );

    // buddies
    textLabel1->setBuddy( description );
    textLabel2->setBuddy( wmclass );
    textLabel3->setBuddy( role );
    textLabel4->setBuddy( types );
    textLabel5->setBuddy( title );
    textLabel6->setBuddy( extra );
    textLabel7->setBuddy( machine );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KWinInternal::RulesWidgetBase::languageChange()
{
    textLabel1->setText( tr2i18n( "De&scription:" ) );
    textLabel2->setText( tr2i18n( "Window &class (application type):" ) );
    textLabel3->setText( tr2i18n( "Window &role:" ) );
    role_match->clear();
    role_match->insertItem( tr2i18n( "Unimportant" ) );
    role_match->insertItem( tr2i18n( "Exact Match" ) );
    role_match->insertItem( tr2i18n( "Substring Match" ) );
    role_match->insertItem( tr2i18n( "Regular Expression" ) );
    edit_reg_role->setText( tr2i18n( "Edit" ) );
    wmclass_match->clear();
    wmclass_match->insertItem( tr2i18n( "Unimportant" ) );
    wmclass_match->insertItem( tr2i18n( "Exact Match" ) );
    wmclass_match->insertItem( tr2i18n( "Substring Match" ) );
    wmclass_match->insertItem( tr2i18n( "Regular Expression" ) );
    edit_reg_wmclass->setText( tr2i18n( "Edit" ) );
    whole_wmclass->setText( tr2i18n( "Match w&hole window class" ) );
    groupBox1->setTitle( tr2i18n( "Detect Window Properties" ) );
    detect1->setText( tr2i18n( "&Detect" ) );
    tabs->changeTab( tab, tr2i18n( "&Window" ) );
    textLabel4->setText( tr2i18n( "Window &types:" ) );
    types->clear();
    types->insertItem( tr2i18n( "Normal Window" ) );
    types->insertItem( tr2i18n( "Dialog Window" ) );
    types->insertItem( tr2i18n( "Utility Window" ) );
    types->insertItem( tr2i18n( "Dock (panel)" ) );
    types->insertItem( tr2i18n( "Toolbar" ) );
    types->insertItem( tr2i18n( "Torn-Off Menu" ) );
    types->insertItem( tr2i18n( "Splash Screen" ) );
    types->insertItem( tr2i18n( "Desktop" ) );
    types->insertItem( tr2i18n( "Override Type" ) );
    types->insertItem( tr2i18n( "Standalone Menubar" ) );
    textLabel5->setText( tr2i18n( "Window t&itle:" ) );
    textLabel6->setText( tr2i18n( "Extra role:" ) );
    textLabel7->setText( tr2i18n( "&Machine (hostname):" ) );
    title_match->clear();
    title_match->insertItem( tr2i18n( "Unimportant" ) );
    title_match->insertItem( tr2i18n( "Exact Match" ) );
    title_match->insertItem( tr2i18n( "Substring Match" ) );
    title_match->insertItem( tr2i18n( "Regular Expression" ) );
    edit_reg_title->setText( tr2i18n( "Edit" ) );
    extra_match->clear();
    extra_match->insertItem( tr2i18n( "Unimportant" ) );
    extra_match->insertItem( tr2i18n( "Exact Match" ) );
    extra_match->insertItem( tr2i18n( "Substring Match" ) );
    extra_match->insertItem( tr2i18n( "Regular Expression" ) );
    edit_reg_extra->setText( tr2i18n( "Edit" ) );
    machine_match->clear();
    machine_match->insertItem( tr2i18n( "Unimportant" ) );
    machine_match->insertItem( tr2i18n( "Exact Match" ) );
    machine_match->insertItem( tr2i18n( "Substring Match" ) );
    machine_match->insertItem( tr2i18n( "Regular Expression" ) );
    edit_reg_machine->setText( tr2i18n( "Edit" ) );
    tabs->changeTab( tab_2, tr2i18n( "Window &Extra" ) );
    rule_size->clear();
    rule_size->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_size->insertItem( tr2i18n( "Apply Initially" ) );
    rule_size->insertItem( tr2i18n( "Remember" ) );
    rule_size->insertItem( tr2i18n( "Force" ) );
    rule_size->insertItem( tr2i18n( "Apply Now" ) );
    rule_size->insertItem( tr2i18n( "Force Temporarily" ) );
    size->setValidChars( tr2i18n( "0123456789-+,xX:" ) );
    enable_size->setText( tr2i18n( "&Size" ) );
    enable_position->setText( tr2i18n( "&Position" ) );
    position->setValidChars( tr2i18n( "0123456789-+,xX:" ) );
    rule_position->clear();
    rule_position->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_position->insertItem( tr2i18n( "Apply Initially" ) );
    rule_position->insertItem( tr2i18n( "Remember" ) );
    rule_position->insertItem( tr2i18n( "Force" ) );
    rule_position->insertItem( tr2i18n( "Apply Now" ) );
    rule_position->insertItem( tr2i18n( "Force Temporarily" ) );
    maximizevert->setText( TQString::null );
    rule_maximizehoriz->clear();
    rule_maximizehoriz->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_maximizehoriz->insertItem( tr2i18n( "Apply Initially" ) );
    rule_maximizehoriz->insertItem( tr2i18n( "Remember" ) );
    rule_maximizehoriz->insertItem( tr2i18n( "Force" ) );
    rule_maximizehoriz->insertItem( tr2i18n( "Apply Now" ) );
    rule_maximizehoriz->insertItem( tr2i18n( "Force Temporarily" ) );
    fullscreen->setText( TQString::null );
    enable_maximizehoriz->setText( tr2i18n( "Maximized &horizontally" ) );
    maximizehoriz->setText( TQString::null );
    rule_fullscreen->clear();
    rule_fullscreen->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_fullscreen->insertItem( tr2i18n( "Apply Initially" ) );
    rule_fullscreen->insertItem( tr2i18n( "Remember" ) );
    rule_fullscreen->insertItem( tr2i18n( "Force" ) );
    rule_fullscreen->insertItem( tr2i18n( "Apply Now" ) );
    rule_fullscreen->insertItem( tr2i18n( "Force Temporarily" ) );
    enable_fullscreen->setText( tr2i18n( "&Fullscreen" ) );
    rule_maximizevert->clear();
    rule_maximizevert->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_maximizevert->insertItem( tr2i18n( "Apply Initially" ) );
    rule_maximizevert->insertItem( tr2i18n( "Remember" ) );
    rule_maximizevert->insertItem( tr2i18n( "Force" ) );
    rule_maximizevert->insertItem( tr2i18n( "Apply Now" ) );
    rule_maximizevert->insertItem( tr2i18n( "Force Temporarily" ) );
    enable_maximizevert->setText( tr2i18n( "Maximized &vertically" ) );
    rule_desktop->clear();
    rule_desktop->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_desktop->insertItem( tr2i18n( "Apply Initially" ) );
    rule_desktop->insertItem( tr2i18n( "Remember" ) );
    rule_desktop->insertItem( tr2i18n( "Force" ) );
    rule_desktop->insertItem( tr2i18n( "Apply Now" ) );
    rule_desktop->insertItem( tr2i18n( "Force Temporarily" ) );
    enable_desktop->setText( tr2i18n( "&Desktop" ) );
    enable_shade->setText( tr2i18n( "Sh&aded" ) );
    shade->setText( TQString::null );
    rule_minimize->clear();
    rule_minimize->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_minimize->insertItem( tr2i18n( "Apply Initially" ) );
    rule_minimize->insertItem( tr2i18n( "Remember" ) );
    rule_minimize->insertItem( tr2i18n( "Force" ) );
    rule_minimize->insertItem( tr2i18n( "Apply Now" ) );
    rule_minimize->insertItem( tr2i18n( "Force Temporarily" ) );
    minimize->setText( TQString::null );
    enable_minimize->setText( tr2i18n( "M&inimized" ) );
    rule_placement->clear();
    rule_placement->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_placement->insertItem( tr2i18n( "Force" ) );
    rule_placement->insertItem( tr2i18n( "Force Temporarily" ) );
    placement->clear();
    placement->insertItem( tr2i18n( "Default" ) );
    placement->insertItem( tr2i18n( "No Placement" ) );
    placement->insertItem( tr2i18n( "Smart" ) );
    placement->insertItem( tr2i18n( "Maximizing" ) );
    placement->insertItem( tr2i18n( "Cascade" ) );
    placement->insertItem( tr2i18n( "Centered" ) );
    placement->insertItem( tr2i18n( "Random" ) );
    placement->insertItem( tr2i18n( "Top-Left Corner" ) );
    placement->insertItem( tr2i18n( "Under Mouse" ) );
    placement->insertItem( tr2i18n( "On Main Window" ) );
    enable_placement->setText( tr2i18n( "P&lacement" ) );
    rule_shade->clear();
    rule_shade->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_shade->insertItem( tr2i18n( "Apply Initially" ) );
    rule_shade->insertItem( tr2i18n( "Remember" ) );
    rule_shade->insertItem( tr2i18n( "Force" ) );
    rule_shade->insertItem( tr2i18n( "Apply Now" ) );
    rule_shade->insertItem( tr2i18n( "Force Temporarily" ) );
    tabs->changeTab( TabPage, tr2i18n( "&Geometry" ) );
    enable_above->setText( tr2i18n( "Keep &above" ) );
    enable_below->setText( tr2i18n( "Keep &below" ) );
    enable_skippager->setText( tr2i18n( "Skip pa&ger" ) );
    enable_skiptaskbar->setText( tr2i18n( "Skip &taskbar" ) );
    enable_noborder->setText( tr2i18n( "&No border" ) );
    enable_acceptfocus->setText( tr2i18n( "Accept &focus" ) );
    enable_closeable->setText( tr2i18n( "&Closeable" ) );
    enable_opacityactive->setText( tr2i18n( "A&ctive opacity in %" ) );
    rule_opacityactive->clear();
    rule_opacityactive->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_opacityactive->insertItem( tr2i18n( "Force" ) );
    rule_opacityactive->insertItem( tr2i18n( "Force Temporarily" ) );
    opacityactive->setValidChars( tr2i18n( "0123456789" ) );
    above->setText( TQString::null );
    below->setText( TQString::null );
    noborder->setText( TQString::null );
    skiptaskbar->setText( TQString::null );
    skippager->setText( TQString::null );
    acceptfocus->setText( TQString::null );
    closeable->setText( TQString::null );
    rule_closeable->clear();
    rule_closeable->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_closeable->insertItem( tr2i18n( "Force" ) );
    rule_closeable->insertItem( tr2i18n( "Force Temporarily" ) );
    rule_acceptfocus->clear();
    rule_acceptfocus->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_acceptfocus->insertItem( tr2i18n( "Force" ) );
    rule_acceptfocus->insertItem( tr2i18n( "Force Temporarily" ) );
    rule_skippager->clear();
    rule_skippager->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_skippager->insertItem( tr2i18n( "Apply Initially" ) );
    rule_skippager->insertItem( tr2i18n( "Remember" ) );
    rule_skippager->insertItem( tr2i18n( "Force" ) );
    rule_skippager->insertItem( tr2i18n( "Apply Now" ) );
    rule_skippager->insertItem( tr2i18n( "Force Temporarily" ) );
    rule_skiptaskbar->clear();
    rule_skiptaskbar->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_skiptaskbar->insertItem( tr2i18n( "Apply Initially" ) );
    rule_skiptaskbar->insertItem( tr2i18n( "Remember" ) );
    rule_skiptaskbar->insertItem( tr2i18n( "Force" ) );
    rule_skiptaskbar->insertItem( tr2i18n( "Apply Now" ) );
    rule_skiptaskbar->insertItem( tr2i18n( "Force Temporarily" ) );
    rule_noborder->clear();
    rule_noborder->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_noborder->insertItem( tr2i18n( "Apply Initially" ) );
    rule_noborder->insertItem( tr2i18n( "Remember" ) );
    rule_noborder->insertItem( tr2i18n( "Force" ) );
    rule_noborder->insertItem( tr2i18n( "Apply Now" ) );
    rule_noborder->insertItem( tr2i18n( "Force Temporarily" ) );
    rule_below->clear();
    rule_below->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_below->insertItem( tr2i18n( "Apply Initially" ) );
    rule_below->insertItem( tr2i18n( "Remember" ) );
    rule_below->insertItem( tr2i18n( "Force" ) );
    rule_below->insertItem( tr2i18n( "Apply Now" ) );
    rule_below->insertItem( tr2i18n( "Force Temporarily" ) );
    rule_above->clear();
    rule_above->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_above->insertItem( tr2i18n( "Apply Initially" ) );
    rule_above->insertItem( tr2i18n( "Remember" ) );
    rule_above->insertItem( tr2i18n( "Force" ) );
    rule_above->insertItem( tr2i18n( "Apply Now" ) );
    rule_above->insertItem( tr2i18n( "Force Temporarily" ) );
    rule_opacityinactive->clear();
    rule_opacityinactive->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_opacityinactive->insertItem( tr2i18n( "Force" ) );
    rule_opacityinactive->insertItem( tr2i18n( "Force Temporarily" ) );
    opacityinactive->setValidChars( tr2i18n( "0123456789" ) );
    enable_opacityinactive->setText( tr2i18n( "I&nactive opacity in %" ) );
    enable_shortcut->setText( tr2i18n( "Shortcut" ) );
    rule_shortcut->clear();
    rule_shortcut->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_shortcut->insertItem( tr2i18n( "Apply Initially" ) );
    rule_shortcut->insertItem( tr2i18n( "Remember" ) );
    rule_shortcut->insertItem( tr2i18n( "Force" ) );
    rule_shortcut->insertItem( tr2i18n( "Apply Now" ) );
    rule_shortcut->insertItem( tr2i18n( "Force Temporarily" ) );
    shortcut_edit->setText( tr2i18n( "Edit…" ) );
    tabs->changeTab( TabPage_2, tr2i18n( "&Preferences" ) );
    enable_fsplevel->setText( tr2i18n( "&Focus stealing prevention" ) );
    rule_type->clear();
    rule_type->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_type->insertItem( tr2i18n( "Force" ) );
    rule_type->insertItem( tr2i18n( "Force Temporarily" ) );
    type->clear();
    type->insertItem( tr2i18n( "Normal Window" ) );
    type->insertItem( tr2i18n( "Dialog Window" ) );
    type->insertItem( tr2i18n( "Utility Window" ) );
    type->insertItem( tr2i18n( "Dock (panel)" ) );
    type->insertItem( tr2i18n( "Toolbar" ) );
    type->insertItem( tr2i18n( "Torn-Off Menu" ) );
    type->insertItem( tr2i18n( "Splash Screen" ) );
    type->insertItem( tr2i18n( "Desktop" ) );
    type->insertItem( tr2i18n( "Override Type" ) );
    type->insertItem( tr2i18n( "Standalone Menubar" ) );
    moveresizemode->clear();
    moveresizemode->insertItem( tr2i18n( "Opaque" ) );
    moveresizemode->insertItem( tr2i18n( "Transparent" ) );
    enable_type->setText( tr2i18n( "Window &type" ) );
    enable_moveresizemode->setText( tr2i18n( "&Moving/resizing" ) );
    rule_fsplevel->clear();
    rule_fsplevel->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_fsplevel->insertItem( tr2i18n( "Force" ) );
    rule_fsplevel->insertItem( tr2i18n( "Force Temporarily" ) );
    rule_moveresizemode->clear();
    rule_moveresizemode->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_moveresizemode->insertItem( tr2i18n( "Force" ) );
    rule_moveresizemode->insertItem( tr2i18n( "Force Temporarily" ) );
    fsplevel->clear();
    fsplevel->insertItem( tr2i18n( "None" ) );
    fsplevel->insertItem( tr2i18n( "Low" ) );
    fsplevel->insertItem( tr2i18n( "Normal" ) );
    fsplevel->insertItem( tr2i18n( "High" ) );
    fsplevel->insertItem( tr2i18n( "Extreme" ) );
    maxsize->setValidChars( tr2i18n( "0123456789-+,xX:" ) );
    enable_minsize->setText( tr2i18n( "M&inimum size" ) );
    rule_minsize->clear();
    rule_minsize->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_minsize->insertItem( tr2i18n( "Force" ) );
    rule_minsize->insertItem( tr2i18n( "Force Temporarily" ) );
    enable_maxsize->setText( tr2i18n( "M&aximum size" ) );
    minsize->setValidChars( tr2i18n( "0123456789-+,xX:" ) );
    rule_maxsize->clear();
    rule_maxsize->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_maxsize->insertItem( tr2i18n( "Force" ) );
    rule_maxsize->insertItem( tr2i18n( "Force Temporarily" ) );
    enable_ignoreposition->setText( tr2i18n( "Ignore requested &geometry" ) );
    rule_ignoreposition->clear();
    rule_ignoreposition->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_ignoreposition->insertItem( tr2i18n( "Force" ) );
    rule_ignoreposition->insertItem( tr2i18n( "Force Temporarily" ) );
    ignoreposition->setText( TQString::null );
    enable_strictgeometry->setText( tr2i18n( "Strictly obey geometry" ) );
    rule_strictgeometry->clear();
    rule_strictgeometry->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_strictgeometry->insertItem( tr2i18n( "Force" ) );
    rule_strictgeometry->insertItem( tr2i18n( "Force Temporarily" ) );
    strictgeometry->setText( TQString::null );
    disableglobalshortcuts->setText( TQString::null );
    enable_disableglobalshortcuts->setText( tr2i18n( "Block global shortcuts" ) );
    rule_disableglobalshortcuts->clear();
    rule_disableglobalshortcuts->insertItem( tr2i18n( "Do Not Affect" ) );
    rule_disableglobalshortcuts->insertItem( tr2i18n( "Force" ) );
    rule_disableglobalshortcuts->insertItem( tr2i18n( "Force Temporarily" ) );
    tabs->changeTab( TabPage_3, tr2i18n( "W&orkarounds" ) );
}

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

TQMetaObject *KWinInternal::RulesWidgetBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KWinInternal__RulesWidgetBase( "KWinInternal::RulesWidgetBase", &KWinInternal::RulesWidgetBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* KWinInternal::RulesWidgetBase::staticMetaObject()
{
    if ( metaObj ) {
	return metaObj;
}
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->lock();
    if ( metaObj ) {
	if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
	return metaObj;
    }
#endif // TQT_THREAD_SUPPORT
    TQMetaObject* parentObject = TQWidget::staticMetaObject();
    static const TQUMethod slot_0 = {"languageChange", 0, 0 };
    static const TQUMethod slot_1 = {"detectClicked", 0, 0 };
    static const TQUMethod slot_2 = {"wmclassMatchChanged", 0, 0 };
    static const TQUMethod slot_3 = {"roleMatchChanged", 0, 0 };
    static const TQUMethod slot_4 = {"titleMatchChanged", 0, 0 };
    static const TQUMethod slot_5 = {"extraMatchChanged", 0, 0 };
    static const TQUMethod slot_6 = {"machineMatchChanged", 0, 0 };
    static const TQUMethod slot_7 = {"shortcutEditClicked", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected },
	{ "detectClicked()", &slot_1, TQMetaData::Protected },
	{ "wmclassMatchChanged()", &slot_2, TQMetaData::Protected },
	{ "roleMatchChanged()", &slot_3, TQMetaData::Protected },
	{ "titleMatchChanged()", &slot_4, TQMetaData::Protected },
	{ "extraMatchChanged()", &slot_5, TQMetaData::Protected },
	{ "machineMatchChanged()", &slot_6, TQMetaData::Protected },
	{ "shortcutEditClicked()", &slot_7, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"KWinInternal::RulesWidgetBase", parentObject,
	slot_tbl, 8,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_KWinInternal__RulesWidgetBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool KWinInternal::RulesWidgetBase::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: languageChange(); break;
    case 1: detectClicked(); break;
    case 2: wmclassMatchChanged(); break;
    case 3: roleMatchChanged(); break;
    case 4: titleMatchChanged(); break;
    case 5: extraMatchChanged(); break;
    case 6: machineMatchChanged(); break;
    case 7: shortcutEditClicked(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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