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

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

#include "menutab.h"

#include <ntqvariant.h>
#include <kdialog.h>
#include <knuminput.h>
#include <kpushbutton.h>
#include <tdefontrequester.h>
#include <tdelistview.h>
#include <kkeybutton.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqcombobox.h>
#include <ntqgroupbox.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqcheckbox.h>
#include <ntqlineedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

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

    textLabel1 = new TQLabel( this, "textLabel1" );
    layout5->addWidget( textLabel1 );

    m_comboMenuStyle = new TQComboBox( false, this, "m_comboMenuStyle" );
    layout5->addWidget( m_comboMenuStyle );
    spacer4 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout5->addItem( spacer4 );
    MenuTabBaseLayout->addLayout( layout5 );

    m_kmenuGroup = new TQGroupBox( this, "m_kmenuGroup" );
    m_kmenuGroup->setColumnLayout(0, TQt::Vertical );
    m_kmenuGroup->layout()->setSpacing( KDialog::spacingHint() );
    m_kmenuGroup->layout()->setMargin( KDialog::marginHint() );
    m_kmenuGroupLayout = new TQHBoxLayout( m_kmenuGroup->layout() );
    m_kmenuGroupLayout->setAlignment( TQt::AlignTop );

    layout7 = new TQVBoxLayout( 0, 0, KDialog::spacingHint(), "layout7"); 

    kcfg_MenuEntryFormat = new TQButtonGroup( m_kmenuGroup, "kcfg_MenuEntryFormat" );
    kcfg_MenuEntryFormat->setLineWidth( 0 );
    kcfg_MenuEntryFormat->setFlat( true );
    kcfg_MenuEntryFormat->setColumnLayout(0, TQt::Vertical );
    kcfg_MenuEntryFormat->layout()->setSpacing( KDialog::spacingHint() );
    kcfg_MenuEntryFormat->layout()->setMargin( KDialog::marginHint() );
    kcfg_MenuEntryFormatLayout = new TQGridLayout( kcfg_MenuEntryFormat->layout() );
    kcfg_MenuEntryFormatLayout->setAlignment( TQt::AlignTop );

    m_formatSimple = new TQRadioButton( kcfg_MenuEntryFormat, "m_formatSimple" );

    kcfg_MenuEntryFormatLayout->addWidget( m_formatSimple, 1, 1 );

    m_formatNameDesc = new TQRadioButton( kcfg_MenuEntryFormat, "m_formatNameDesc" );
    m_formatNameDesc->setChecked( true );

    kcfg_MenuEntryFormatLayout->addWidget( m_formatNameDesc, 2, 1 );

    m_formatDescOnly = new TQRadioButton( kcfg_MenuEntryFormat, "m_formatDescOnly" );

    kcfg_MenuEntryFormatLayout->addWidget( m_formatDescOnly, 3, 1 );

    m_formDescName = new TQRadioButton( kcfg_MenuEntryFormat, "m_formDescName" );
    m_formDescName->setFocusPolicy( TQRadioButton::NoFocus );

    kcfg_MenuEntryFormatLayout->addWidget( m_formDescName, 4, 1 );
    layout7->addWidget( kcfg_MenuEntryFormat );

    m_editKMenuButton = new TQPushButton( m_kmenuGroup, "m_editKMenuButton" );
    layout7->addWidget( m_editKMenuButton );

    btnCustomKMenuIcon = new KPushButton( m_kmenuGroup, "btnCustomKMenuIcon" );
    btnCustomKMenuIcon->setAcceptDrops( false );
    layout7->addWidget( btnCustomKMenuIcon );
    Spacer10 = new TQSpacerItem( 20, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout7->addItem( Spacer10 );
    m_kmenuGroupLayout->addLayout( layout7 );

    m_subMenus = new TDEListView( m_kmenuGroup, "m_subMenus" );
    m_subMenus->addColumn( tr2i18n( "Optional Menus" ) );
    m_subMenus->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 1, m_subMenus->sizePolicy().hasHeightForWidth() ) );
    m_subMenus->setMinimumSize( TQSize( 0, 0 ) );
    m_subMenus->setFullWidth( true );
    m_kmenuGroupLayout->addWidget( m_subMenus );

    Layout5 = new TQVBoxLayout( 0, 0, KDialog::spacingHint(), "Layout5"); 

    m_openOnHover = new TQCheckBox( m_kmenuGroup, "m_openOnHover" );
    Layout5->addWidget( m_openOnHover );

    kcfg_UseTooltip = new TQCheckBox( m_kmenuGroup, "kcfg_UseTooltip" );
    kcfg_UseTooltip->setChecked( false );
    Layout5->addWidget( kcfg_UseTooltip );

    kcfg_UseSidePixmap = new TQCheckBox( m_kmenuGroup, "kcfg_UseSidePixmap" );
    kcfg_UseSidePixmap->setChecked( true );
    Layout5->addWidget( kcfg_UseSidePixmap );

    kcfg_UseTopPixmap = new TQCheckBox( m_kmenuGroup, "kcfg_UseTopPixmap" );
    kcfg_UseTopPixmap->setChecked( true );
    Layout5->addWidget( kcfg_UseTopPixmap );

    kcfg_ShowKMenuText = new TQCheckBox( m_kmenuGroup, "kcfg_ShowKMenuText" );
    kcfg_ShowKMenuText->setChecked( true );
    Layout5->addWidget( kcfg_ShowKMenuText );
    grid = new TQGridLayout( 0, 1, 1, 0, KDialog::spacingHint(), "grid"); 

    TextLabel1_3_3_1 = new TQLabel( m_kmenuGroup, "TextLabel1_3_3_1" );
    TextLabel1_3_3_1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)1, 0, 0, TextLabel1_3_3_1->sizePolicy().hasHeightForWidth() ) );

    grid->addWidget( TextLabel1_3_3_1, 0, 0 );

    kcfg_KMenuText = new TQLineEdit( m_kmenuGroup, "kcfg_KMenuText" );
    kcfg_KMenuText->setMaxLength( 35 );

    grid->addMultiCellWidget( kcfg_KMenuText, 0, 0, 1, 3 );

    TextLabel1_3_3_2 = new TQLabel( m_kmenuGroup, "TextLabel1_3_3_2" );
    TextLabel1_3_3_2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)1, 0, 0, TextLabel1_3_3_2->sizePolicy().hasHeightForWidth() ) );

    grid->addWidget( TextLabel1_3_3_2, 1, 0 );

    kcfg_ButtonFont = new TDEFontRequester( m_kmenuGroup, "kcfg_ButtonFont" );

    grid->addMultiCellWidget( kcfg_ButtonFont, 1, 1, 1, 3 );
    spacer6 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    grid->addItem( spacer6, 2, 3 );
    Layout5->addLayout( grid );
    spacer8 = new TQSpacerItem( 20, 0, TQSizePolicy::Minimum, TQSizePolicy::MinimumExpanding );
    Layout5->addItem( spacer8 );
    m_kmenuGroupLayout->addLayout( Layout5 );
    MenuTabBaseLayout->addWidget( m_kmenuGroup );
    unnamedLayout = new TQGridLayout( 0, 1, 1, 0, KDialog::spacingHint(), "unnamedLayout"); 

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

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

    m_maxQuickBrowserItemsLabel = new TQLabel( m_browserGroup, "m_maxQuickBrowserItemsLabel" );
    Layout3->addWidget( m_maxQuickBrowserItemsLabel );

    kcfg_MaxEntries2 = new KIntNumInput( m_browserGroup, "kcfg_MaxEntries2" );
    kcfg_MaxEntries2->setValue( 30 );
    kcfg_MaxEntries2->setMinValue( 10 );
    kcfg_MaxEntries2->setMaxValue( 100 );
    Layout3->addWidget( kcfg_MaxEntries2 );

    m_browserGroupLayout->addLayout( Layout3, 2, 0 );

    kcfg_ShowHiddenFiles = new TQCheckBox( m_browserGroup, "kcfg_ShowHiddenFiles" );
    kcfg_ShowHiddenFiles->setChecked( true );

    m_browserGroupLayout->addWidget( kcfg_ShowHiddenFiles, 0, 0 );

    kcfg_ShowOpenInTerminal = new TQCheckBox( m_browserGroup, "kcfg_ShowOpenInTerminal" );
    kcfg_ShowOpenInTerminal->setChecked( true );

    m_browserGroupLayout->addWidget( kcfg_ShowOpenInTerminal, 1, 0 );
    Spacer7 = new TQSpacerItem( 20, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    m_browserGroupLayout->addMultiCell( Spacer7, 0, 2, 1, 1 );

    unnamedLayout->addWidget( m_browserGroup, 0, 0 );

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

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

    m_maxRecentDocumentsItemsLabel = new TQLabel( m_recentGroup, "m_maxRecentDocumentsItemsLabel" );
    Layout3_2->addWidget( m_maxRecentDocumentsItemsLabel );

    maxrecentdocs = new KIntNumInput( m_recentGroup, "maxrecentdocs" );
    maxrecentdocs->setValue( 10 );
    maxrecentdocs->setMinValue( 0 );
    maxrecentdocs->setMaxValue( 100 );
    Layout3_2->addWidget( maxrecentdocs );

    m_recentGroupLayout->addLayout( Layout3_2, 1, 0 );
    Spacer7_2 = new TQSpacerItem( 20, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    m_recentGroupLayout->addMultiCell( Spacer7_2, 0, 1, 1, 1 );

    unnamedLayout->addWidget( m_recentGroup, 1, 0 );

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

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

    TextLabel2 = new TQLabel( m_pRecentOrderGroup, "TextLabel2" );
    Layout4->addWidget( TextLabel2 );

    kcfg_NumVisibleEntries = new KIntNumInput( m_pRecentOrderGroup, "kcfg_NumVisibleEntries" );
    kcfg_NumVisibleEntries->setValue( 5 );
    kcfg_NumVisibleEntries->setMinValue( 0 );
    kcfg_NumVisibleEntries->setMaxValue( 20 );
    Layout4->addWidget( kcfg_NumVisibleEntries );

    m_pRecentOrderGroupLayout->addLayout( Layout4, 2, 0 );

    kcfg_RecentVsOften = new TQRadioButton( m_pRecentOrderGroup, "kcfg_RecentVsOften" );
    kcfg_RecentVsOften->setChecked( true );

    m_pRecentOrderGroupLayout->addWidget( kcfg_RecentVsOften, 0, 0 );

    m_showFrequent = new TQRadioButton( m_pRecentOrderGroup, "m_showFrequent" );

    m_pRecentOrderGroupLayout->addWidget( m_showFrequent, 1, 0 );
    Spacer8 = new TQSpacerItem( 20, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    m_pRecentOrderGroupLayout->addMultiCell( Spacer8, 0, 2, 1, 1 );

    unnamedLayout->addWidget( m_pRecentOrderGroup, 0, 1 );

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

    kcfg_UseSearchBar = new TQCheckBox( m_pSearchGroup, "kcfg_UseSearchBar" );
    kcfg_UseSearchBar->setChecked( true );

    m_pSearchGroupLayout->addWidget( kcfg_UseSearchBar, 0, 0 );

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

    searchShortcutLabel = new TQLabel( m_pSearchGroup, "searchShortcutLabel" );
    m_searchShortcutLayout->addWidget( searchShortcutLabel );

    m_searchShortcut = new KKeyButton( m_pSearchGroup, "m_searchShortcut" );
    m_searchShortcutLayout->addWidget( m_searchShortcut );

    m_pSearchGroupLayout->addLayout( m_searchShortcutLayout, 2, 0 );
    Spacer8_2 = new TQSpacerItem( 20, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    m_pSearchGroupLayout->addMultiCell( Spacer8_2, 0, 2, 1, 2 );

    unnamedLayout->addWidget( m_pSearchGroup, 1, 1 );
    MenuTabBaseLayout->addLayout( unnamedLayout );
    languageChange();
    resize( TQSize(923, 649).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( m_formatSimple, m_formatNameDesc );
    setTabOrder( m_formatNameDesc, m_formDescName );
    setTabOrder( m_formDescName, kcfg_UseSidePixmap );
    setTabOrder( kcfg_UseSidePixmap, m_editKMenuButton );
    setTabOrder( m_editKMenuButton, m_subMenus );
    setTabOrder( m_subMenus, kcfg_ShowHiddenFiles );
    setTabOrder( kcfg_ShowHiddenFiles, kcfg_ShowOpenInTerminal );
    setTabOrder( kcfg_ShowOpenInTerminal, kcfg_MaxEntries2 );
    setTabOrder( kcfg_MaxEntries2, kcfg_RecentVsOften );
    setTabOrder( kcfg_RecentVsOften, m_showFrequent );
    setTabOrder( m_showFrequent, kcfg_NumVisibleEntries );

    // signals and slots connections
    connect( kcfg_ShowKMenuText, TQ_SIGNAL( toggled(bool) ), TextLabel1_3_3_1, TQ_SLOT( setEnabled(bool) ) );
    connect( kcfg_ShowKMenuText, TQ_SIGNAL( toggled(bool) ), kcfg_KMenuText, TQ_SLOT( setEnabled(bool) ) );
    connect( kcfg_ShowKMenuText, TQ_SIGNAL( toggled(bool) ), TextLabel1_3_3_2, TQ_SLOT( setEnabled(bool) ) );
    connect( kcfg_ShowKMenuText, TQ_SIGNAL( toggled(bool) ), kcfg_ButtonFont, TQ_SLOT( setEnabled(bool) ) );
    connect( kcfg_UseSearchBar, TQ_SIGNAL( toggled(bool) ), searchShortcutLabel, TQ_SLOT( setEnabled(bool) ) );
    connect( kcfg_UseSearchBar, TQ_SIGNAL( toggled(bool) ), m_searchShortcut, TQ_SLOT( setEnabled(bool) ) );

    // buddies
    m_maxQuickBrowserItemsLabel->setBuddy( kcfg_MaxEntries2 );
    m_maxRecentDocumentsItemsLabel->setBuddy( maxrecentdocs );
    TextLabel2->setBuddy( kcfg_NumVisibleEntries );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void MenuTabBase::languageChange()
{
    textLabel1->setText( tr2i18n( "TDE menu style:" ) );
    m_comboMenuStyle->clear();
    m_comboMenuStyle->insertItem( tr2i18n( "Kickoff" ) );
    m_comboMenuStyle->insertItem( tr2i18n( "Trinity Classic" ) );
    m_kmenuGroup->setTitle( tr2i18n( "TDE Menu" ) );
    kcfg_MenuEntryFormat->setTitle( tr2i18n( "Menu item format:" ) );
    TQWhatsThis::add( kcfg_MenuEntryFormat, tr2i18n( "Here you can choose how menu entries are shown." ) );
    m_formatSimple->setText( tr2i18n( "&Name only" ) );
    TQWhatsThis::add( m_formatSimple, tr2i18n( "When this option is selected, items in the TDE Menu will appear with the application's name next to the icon." ) );
    m_formatNameDesc->setText( tr2i18n( "Name - &Description" ) );
    TQWhatsThis::add( m_formatNameDesc, tr2i18n( "When this option is selected, items in the TDE Menu will appear with the application's name and a brief description next to the icon." ) );
    m_formatDescOnly->setText( tr2i18n( "D&escription only" ) );
    TQWhatsThis::add( m_formatDescOnly, tr2i18n( "When this option is selected, items in the TDE Menu will appear with the application's brief description next to the icon." ) );
    m_formDescName->setText( tr2i18n( "Des&cription (Name)" ) );
    TQWhatsThis::add( m_formDescName, tr2i18n( "When this option is selected, items in the TDE Menu will appear with a brief description and the application's name in brackets next to the icon." ) );
    m_editKMenuButton->setText( tr2i18n( "Edit &TDE Menu" ) );
    TQWhatsThis::add( m_editKMenuButton, tr2i18n( "Start the editor for the TDE Menu. Here you can add, edit, remove and hide applications." ) );
    btnCustomKMenuIcon->setText( tr2i18n( "Change menu icon" ) );
    TQWhatsThis::add( btnCustomKMenuIcon, tr2i18n( "Allows you to choose a different icon for the TDE menu." ) );
    m_subMenus->header()->setLabel( 0, tr2i18n( "Optional Menus" ) );
    TQWhatsThis::add( m_subMenus, tr2i18n( "This is a list of the dynamic menus that can be displayed in the TDE menu in addition to the normal applications. Use the checkboxes to add or remove menus." ) );
    m_openOnHover->setText( tr2i18n( "Open menu on mouse hover" ) );
    kcfg_UseTooltip->setText( tr2i18n( "Show T&ooltip" ) );
    TQWhatsThis::add( kcfg_UseTooltip, tr2i18n( "<qt>When this option is selected, a tooltip appears when hovering the mouse pointer over Application Launcher Menu items. Enabling this option also requires that tooltips are enabled in the Panels->Appearance configuration dialog." ) );
    kcfg_UseSidePixmap->setText( tr2i18n( "Show side ima&ge" ) );
    TQWhatsThis::add( kcfg_UseSidePixmap, tr2i18n( "<qt>When this option is selected an image will appear down the left-hand side of the TDE Menu. The image will be tinted according to your color settings.\n"
"								\n"
"								<p><b>Tip</b>: You can customize the image that appears in the TDE Menu by putting an image file called kside.png and a tileable image file called kside_tile.png in $TDEHOME/share/apps/kicker/pics.</qt>" ) );
    kcfg_UseTopPixmap->setText( tr2i18n( "Show top ima&ge" ) );
    TQWhatsThis::add( kcfg_UseTopPixmap, tr2i18n( "<qt>When this option is selected an image will appear on top of the TDE Menu. The image will be tinted according to your color settings.\n"
"								\n"
"								<p><b>Tip</b>: You can customize the image that appears in the TDE Menu by putting image files called kside_top_left.png and kside_top_right.png, and a tileable image file called kside_top_tile.png in $TDEHOME/share/apps/kicker/pics.</qt>" ) );
    kcfg_ShowKMenuText->setText( tr2i18n( "Display text in menu button" ) );
    TQWhatsThis::add( kcfg_ShowKMenuText, tr2i18n( "<qt>When this option is selected the text below will be shown in the TDE Menu button." ) );
    TextLabel1_3_3_1->setText( tr2i18n( "Text:" ) );
    TextLabel1_3_3_2->setText( tr2i18n( "Font:" ) );
    m_browserGroup->setTitle( tr2i18n( "QuickBrowser Menus" ) );
    m_maxQuickBrowserItemsLabel->setText( tr2i18n( "Ma&ximum number of entries:" ) );
    TQWhatsThis::add( m_maxQuickBrowserItemsLabel, tr2i18n( "When browsing directories that contain a lot of files, the QuickBrowser can sometimes hide your whole desktop. Here you can limit the number of entries shown at a time in the QuickBrowser. This is particularly useful for low screen resolutions." ) );
    TQWhatsThis::add( kcfg_MaxEntries2, tr2i18n( "When browsing directories that contain a lot of files, the QuickBrowser can sometimes hide your whole desktop. Here you can limit the number of entries shown at a time in the QuickBrowser. This is particularly useful for low screen resolutions." ) );
    kcfg_ShowHiddenFiles->setText( tr2i18n( "Show hidden fi&les" ) );
    TQWhatsThis::add( kcfg_ShowHiddenFiles, tr2i18n( "If this option is enabled, hidden files (i.e. files beginning with a dot) will be shown in the QuickBrowser menus." ) );
    kcfg_ShowOpenInTerminal->setText( tr2i18n( "Sho&w open in terminal fi&les" ) );
    TQWhatsThis::add( kcfg_ShowOpenInTerminal, tr2i18n( "If this option is enabled, an Open in Terminal entry will be shown in the QuickBrowser menus." ) );
    m_recentGroup->setTitle( tr2i18n( "Recent Documents Menu" ) );
    m_maxRecentDocumentsItemsLabel->setText( tr2i18n( "&Maximum number of entries:" ) );
    TQWhatsThis::add( m_maxRecentDocumentsItemsLabel, tr2i18n( "This sets the maximum number of recently accessed documents stored for fast retrieval." ) );
    TQWhatsThis::add( maxrecentdocs, tr2i18n( "This sets the maximum number of recently accessed documents stored for fast retrieval." ) );
    m_pRecentOrderGroup->setTitle( tr2i18n( "QuickStart Menu Items" ) );
    TextLabel2->setText( tr2i18n( "Maxim&um number of entries:" ) );
    TQWhatsThis::add( TextLabel2, tr2i18n( "This option allows you to define the maximum number of applications that should be displayed in the QuickStart menu area." ) );
    TQWhatsThis::add( kcfg_NumVisibleEntries, tr2i18n( "This option allows you to define how many applications should be displayed at most in the QuickStart menu area." ) );
    kcfg_RecentVsOften->setText( tr2i18n( "Show the &applications most recently used" ) );
    TQWhatsThis::add( kcfg_RecentVsOften, tr2i18n( "When this option is selected the QuickStart menu area will be filled with the applications you have used most recently." ) );
    m_showFrequent->setText( tr2i18n( "Show the applications most fre&quently used" ) );
    TQWhatsThis::add( m_showFrequent, tr2i18n( "When this option is selected the QuickStart menu area will be filled with the applications you use most frequently." ) );
    m_pSearchGroup->setTitle( tr2i18n( "TDE Menu Search" ) );
    kcfg_UseSearchBar->setText( tr2i18n( "Show search field in TDE Menu" ) );
    TQWhatsThis::add( kcfg_UseSearchBar, tr2i18n( "<qt>When this option is selected a text-based search field will appear in the TDE Menu.</qt>" ) );
    searchShortcutLabel->setText( tr2i18n( "Search shortcut:" ) );
    TQWhatsThis::add( searchShortcutLabel, tr2i18n( "From here you can change the keyboard shortcut which triggers the search line in the TDE Menu." ) );
    TQWhatsThis::add( m_searchShortcut, tr2i18n( "From here you can change the keyboard shortcut which triggers the search line in the TDE Menu." ) );
}

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

TQMetaObject *MenuTabBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_MenuTabBase( "MenuTabBase", &MenuTabBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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