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

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

#include "kcmprinterdlg.h"

#include <ntqvariant.h>
#include <kcombobox.h>
#include <kiconloader.h>
#include <klineedit.h>
#include <knuminput.h>
#include <kpushbutton.h>
#include <kurlrequester.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqwidget.h>
#include <ntqframe.h>
#include <ntqlabel.h>
#include <ntqgroupbox.h>
#include <ntqcheckbox.h>
#include <ntqlineedit.h>
#include <ntqcombobox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include "kcmprinterdlg.ui.h"

/*
 *  Constructs a KcmPrinterDlg as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qdialog will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qdialog.
 */
KcmPrinterDlg::KcmPrinterDlg( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "KcmPrinterDlg" );
    KcmPrinterDlgLayout = new TQVBoxLayout( this, 11, 6, "KcmPrinterDlgLayout"); 

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

    tab = new TQWidget( _tabs, "tab" );
    tabLayout = new TQVBoxLayout( tab, 11, 6, "tabLayout"); 

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

    pixFrame = new TQFrame( tab, "pixFrame" );
    pixFrame->setFrameShape( TQFrame::Box );
    pixFrame->setFrameShadow( TQFrame::Sunken );
    pixFrameLayout = new TQVBoxLayout( pixFrame, 11, 6, "pixFrameLayout"); 

    printerPixLbl = new TQLabel( pixFrame, "printerPixLbl" );
    printerPixLbl->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, printerPixLbl->sizePolicy().hasHeightForWidth() ) );
    printerPixLbl->setScaledContents( true );
    pixFrameLayout->addWidget( printerPixLbl );
    Layout51->addWidget( pixFrame );

    printerGrp = new TQGroupBox( tab, "printerGrp" );
    printerGrp->setEnabled( true );
    printerGrp->setColumnLayout(0, TQt::Vertical );
    printerGrp->layout()->setSpacing( 6 );
    printerGrp->layout()->setMargin( 11 );
    printerGrpLayout = new TQHBoxLayout( printerGrp->layout() );
    printerGrpLayout->setAlignment( TQt::AlignTop );

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

    pathUrlRq = new KURLRequester( printerGrp, "pathUrlRq" );

    Layout49->addWidget( pathUrlRq, 1, 1 );

    TextLabel7 = new TQLabel( printerGrp, "TextLabel7" );

    Layout49->addWidget( TextLabel7, 1, 0 );

    TextLabel4_2 = new TQLabel( printerGrp, "TextLabel4_2" );

    Layout49->addWidget( TextLabel4_2, 0, 0 );

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

    queueCombo = new KComboBox( false, printerGrp, "queueCombo" );
    Layout48->addWidget( queueCombo );

    printersChk = new TQCheckBox( printerGrp, "printersChk" );
    printersChk->setEnabled( true );
    Layout48->addWidget( printersChk );

    Layout49->addLayout( Layout48, 0, 1 );
    printerGrpLayout->addLayout( Layout49 );
    Layout51->addWidget( printerGrp );
    tabLayout->addLayout( Layout51 );

    identifierGrp = new TQGroupBox( tab, "identifierGrp" );
    identifierGrp->setColumnLayout(0, TQt::Vertical );
    identifierGrp->layout()->setSpacing( 6 );
    identifierGrp->layout()->setMargin( 11 );
    identifierGrpLayout = new TQGridLayout( identifierGrp->layout() );
    identifierGrpLayout->setAlignment( TQt::AlignTop );

    Lbl_shareName = new TQLabel( identifierGrp, "Lbl_shareName" );

    identifierGrpLayout->addWidget( Lbl_shareName, 0, 0 );

    TextLabel3 = new TQLabel( identifierGrp, "TextLabel3" );

    identifierGrpLayout->addWidget( TextLabel3, 1, 0 );

    commentEdit = new KLineEdit( identifierGrp, "commentEdit" );

    identifierGrpLayout->addWidget( commentEdit, 1, 1 );

    shareNameEdit = new KLineEdit( identifierGrp, "shareNameEdit" );

    identifierGrpLayout->addWidget( shareNameEdit, 0, 1 );
    tabLayout->addWidget( identifierGrp );

    GroupBox4 = new TQGroupBox( tab, "GroupBox4" );
    GroupBox4->setColumnLayout(0, TQt::Vertical );
    GroupBox4->layout()->setSpacing( 6 );
    GroupBox4->layout()->setMargin( 11 );
    GroupBox4Layout = new TQHBoxLayout( GroupBox4->layout() );
    GroupBox4Layout->setAlignment( TQt::AlignTop );

    availableBaseChk = new TQCheckBox( GroupBox4, "availableBaseChk" );
    GroupBox4Layout->addWidget( availableBaseChk );

    browseableBaseChk = new TQCheckBox( GroupBox4, "browseableBaseChk" );
    GroupBox4Layout->addWidget( browseableBaseChk );

    publicBaseChk = new TQCheckBox( GroupBox4, "publicBaseChk" );
    GroupBox4Layout->addWidget( publicBaseChk );
    tabLayout->addWidget( GroupBox4 );
    Spacer18 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout->addItem( Spacer18 );
    _tabs->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( _tabs, "tab_2" );
    tabLayout_2 = new TQGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); 
    Spacer24 = new TQSpacerItem( 20, 50, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_2->addItem( Spacer24, 8, 1 );

    TextLabel5_2_8 = new TQLabel( tab_2, "TextLabel5_2_8" );
    TQFont TextLabel5_2_8_font(  TextLabel5_2_8->font() );
    TextLabel5_2_8_font.setItalic( true );
    TextLabel5_2_8->setFont( TextLabel5_2_8_font ); 

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

    printerDriverEdit = new TQLineEdit( tab_2, "printerDriverEdit" );

    tabLayout_2->addMultiCellWidget( printerDriverEdit, 3, 3, 2, 3 );

    TextLabel5_2_2_2 = new TQLabel( tab_2, "TextLabel5_2_2_2" );
    TQFont TextLabel5_2_2_2_font(  TextLabel5_2_2_2->font() );
    TextLabel5_2_2_2_font.setItalic( true );
    TextLabel5_2_2_2->setFont( TextLabel5_2_2_2_font ); 

    tabLayout_2->addMultiCellWidget( TextLabel5_2_2_2, 4, 4, 0, 1 );

    printerDriverLocationEdit = new TQLineEdit( tab_2, "printerDriverLocationEdit" );

    tabLayout_2->addMultiCellWidget( printerDriverLocationEdit, 4, 4, 2, 3 );

    postscriptChk = new TQCheckBox( tab_2, "postscriptChk" );

    tabLayout_2->addMultiCellWidget( postscriptChk, 5, 5, 0, 1 );

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

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

    printingCombo = new TQComboBox( false, tab_2, "printingCombo" );

    tabLayout_2->addWidget( printingCombo, 0, 2 );

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

    tabLayout_2->addMultiCellWidget( TextLabel3_2_2, 2, 2, 0, 1 );

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

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

    maxReportedPrintJobsSpin = new KIntSpinBox( tab_2, "maxReportedPrintJobsSpin" );
    TQFont maxReportedPrintJobsSpin_font(  maxReportedPrintJobsSpin->font() );
    maxReportedPrintJobsSpin_font.setBold( true );
    maxReportedPrintJobsSpin->setFont( maxReportedPrintJobsSpin_font ); 
    maxReportedPrintJobsSpin->setMaxValue( 2147483647 );

    tabLayout_2->addWidget( maxReportedPrintJobsSpin, 2, 2 );

    maxPrintJobsSpin = new KIntSpinBox( tab_2, "maxPrintJobsSpin" );
    TQFont maxPrintJobsSpin_font(  maxPrintJobsSpin->font() );
    maxPrintJobsSpin_font.setBold( true );
    maxPrintJobsSpin->setFont( maxPrintJobsSpin_font ); 
    maxPrintJobsSpin->setMaxValue( 2147483647 );

    tabLayout_2->addWidget( maxPrintJobsSpin, 1, 2 );
    Spacer26 = new TQSpacerItem( 200, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabLayout_2->addItem( Spacer26, 1, 3 );

    useClientDriverChk = new TQCheckBox( tab_2, "useClientDriverChk" );

    tabLayout_2->addMultiCellWidget( useClientDriverChk, 6, 6, 0, 1 );

    defaultDevmodeChk = new TQCheckBox( tab_2, "defaultDevmodeChk" );

    tabLayout_2->addMultiCellWidget( defaultDevmodeChk, 7, 7, 0, 1 );
    _tabs->insertTab( tab_2, TQString::fromLatin1("") );

    tab_3 = new TQWidget( _tabs, "tab_3" );
    tabLayout_3 = new TQGridLayout( tab_3, 1, 1, 11, 6, "tabLayout_3"); 

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

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

    hostsDenyEdit = new TQLineEdit( tab_3, "hostsDenyEdit" );

    tabLayout_3->addMultiCellWidget( hostsDenyEdit, 3, 3, 1, 2 );

    hostsAllowEdit = new TQLineEdit( tab_3, "hostsAllowEdit" );

    tabLayout_3->addMultiCellWidget( hostsAllowEdit, 2, 2, 1, 2 );

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

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

    printerAdminEdit = new TQLineEdit( tab_3, "printerAdminEdit" );

    tabLayout_3->addMultiCellWidget( printerAdminEdit, 1, 1, 1, 2 );
    Spacer21 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_3->addItem( Spacer21, 4, 0 );

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

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

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

    tabLayout_3->addWidget( TextLabel1_2, 0, 0 );

    guestAccountCombo = new TQComboBox( false, tab_3, "guestAccountCombo" );

    tabLayout_3->addWidget( guestAccountCombo, 0, 1 );
    Spacer27 = new TQSpacerItem( 263, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabLayout_3->addItem( Spacer27, 0, 2 );
    _tabs->insertTab( tab_3, TQString::fromLatin1("") );

    tab_4 = new TQWidget( _tabs, "tab_4" );
    tabLayout_4 = new TQGridLayout( tab_4, 1, 1, 11, 6, "tabLayout_4"); 

    TextLabel5_2 = new TQLabel( tab_4, "TextLabel5_2" );

    tabLayout_4->addWidget( TextLabel5_2, 0, 0 );

    printCommandEdit = new TQLineEdit( tab_4, "printCommandEdit" );

    tabLayout_4->addWidget( printCommandEdit, 0, 1 );

    TextLabel5_2_2 = new TQLabel( tab_4, "TextLabel5_2_2" );

    tabLayout_4->addWidget( TextLabel5_2_2, 1, 0 );

    lpqCommandEdit = new TQLineEdit( tab_4, "lpqCommandEdit" );

    tabLayout_4->addWidget( lpqCommandEdit, 1, 1 );

    lprmCommandEdit = new TQLineEdit( tab_4, "lprmCommandEdit" );

    tabLayout_4->addWidget( lprmCommandEdit, 2, 1 );

    TextLabel5_2_3 = new TQLabel( tab_4, "TextLabel5_2_3" );

    tabLayout_4->addWidget( TextLabel5_2_3, 2, 0 );

    lpresumeEdit = new TQLineEdit( tab_4, "lpresumeEdit" );

    tabLayout_4->addWidget( lpresumeEdit, 4, 1 );

    lppauseEdit = new TQLineEdit( tab_4, "lppauseEdit" );

    tabLayout_4->addWidget( lppauseEdit, 3, 1 );

    TextLabel5_2_5 = new TQLabel( tab_4, "TextLabel5_2_5" );

    tabLayout_4->addWidget( TextLabel5_2_5, 4, 0 );

    TextLabel5_2_6 = new TQLabel( tab_4, "TextLabel5_2_6" );

    tabLayout_4->addWidget( TextLabel5_2_6, 5, 0 );

    TextLabel5_2_4 = new TQLabel( tab_4, "TextLabel5_2_4" );

    tabLayout_4->addWidget( TextLabel5_2_4, 3, 0 );

    queuepauseEdit = new TQLineEdit( tab_4, "queuepauseEdit" );

    tabLayout_4->addWidget( queuepauseEdit, 5, 1 );

    queueresumeEdit = new TQLineEdit( tab_4, "queueresumeEdit" );

    tabLayout_4->addWidget( queueresumeEdit, 6, 1 );

    TextLabel5_2_7 = new TQLabel( tab_4, "TextLabel5_2_7" );

    tabLayout_4->addWidget( TextLabel5_2_7, 6, 0 );
    Spacer23 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_4->addItem( Spacer23, 7, 0 );
    _tabs->insertTab( tab_4, TQString::fromLatin1("") );

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

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

    postExecEdit = new TQLineEdit( GroupBox31, "postExecEdit" );

    GroupBox31Layout->addWidget( postExecEdit, 1, 1 );

    preExecEdit = new TQLineEdit( GroupBox31, "preExecEdit" );

    GroupBox31Layout->addWidget( preExecEdit, 0, 1 );

    TextLabel6_3 = new TQLabel( GroupBox31, "TextLabel6_3" );

    GroupBox31Layout->addWidget( TextLabel6_3, 0, 0 );

    TextLabel6_3_3 = new TQLabel( GroupBox31, "TextLabel6_3_3" );

    GroupBox31Layout->addWidget( TextLabel6_3_3, 2, 0 );

    rootPreExecEdit = new TQLineEdit( GroupBox31, "rootPreExecEdit" );

    GroupBox31Layout->addWidget( rootPreExecEdit, 2, 1 );

    rootPostExecEdit = new TQLineEdit( GroupBox31, "rootPostExecEdit" );

    GroupBox31Layout->addWidget( rootPostExecEdit, 3, 1 );

    TextLabel6_3_4 = new TQLabel( GroupBox31, "TextLabel6_3_4" );

    GroupBox31Layout->addWidget( TextLabel6_3_4, 3, 0 );

    TextLabel6_3_2 = new TQLabel( GroupBox31, "TextLabel6_3_2" );

    GroupBox31Layout->addWidget( TextLabel6_3_2, 1, 0 );

    tabLayout_5->addMultiCellWidget( GroupBox31, 1, 1, 0, 1 );
    Spacer22 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_5->addItem( Spacer22, 2, 0 );

    GroupBox27 = new TQGroupBox( tab_5, "GroupBox27" );
    GroupBox27->setColumnLayout(0, TQt::Vertical );
    GroupBox27->layout()->setSpacing( 6 );
    GroupBox27->layout()->setMargin( 11 );
    GroupBox27Layout = new TQHBoxLayout( GroupBox27->layout() );
    GroupBox27Layout->setAlignment( TQt::AlignTop );

    TextLabel1 = new TQLabel( GroupBox27, "TextLabel1" );
    TextLabel1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
    GroupBox27Layout->addWidget( TextLabel1 );

    minPrintSpaceSpin = new KIntSpinBox( GroupBox27, "minPrintSpaceSpin" );
    TQFont minPrintSpaceSpin_font(  minPrintSpaceSpin->font() );
    minPrintSpaceSpin_font.setBold( true );
    minPrintSpaceSpin->setFont( minPrintSpaceSpin_font ); 
    minPrintSpaceSpin->setMaxValue( 2147483647 );
    GroupBox27Layout->addWidget( minPrintSpaceSpin );

    textLabel2 = new TQLabel( GroupBox27, "textLabel2" );
    GroupBox27Layout->addWidget( textLabel2 );

    tabLayout_5->addWidget( GroupBox27, 0, 0 );

    GroupBox17 = new TQGroupBox( tab_5, "GroupBox17" );
    GroupBox17->setColumnLayout(0, TQt::Vertical );
    GroupBox17->layout()->setSpacing( 6 );
    GroupBox17->layout()->setMargin( 11 );
    GroupBox17Layout = new TQVBoxLayout( GroupBox17->layout() );
    GroupBox17Layout->setAlignment( TQt::AlignTop );

    statusChk = new TQCheckBox( GroupBox17, "statusChk" );
    GroupBox17Layout->addWidget( statusChk );

    tabLayout_5->addWidget( GroupBox17, 0, 1 );
    _tabs->insertTab( tab_5, TQString::fromLatin1("") );
    KcmPrinterDlgLayout->addWidget( _tabs );

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

    buttonHelp = new TQPushButton( this, "buttonHelp" );
    buttonHelp->setAutoDefault( true );
    Layout1->addWidget( buttonHelp );
    Horizontal_Spacing2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout1->addItem( Horizontal_Spacing2 );

    buttonOk = new TQPushButton( this, "buttonOk" );
    buttonOk->setAutoDefault( true );
    buttonOk->setDefault( true );
    Layout1->addWidget( buttonOk );

    buttonCancel = new TQPushButton( this, "buttonCancel" );
    buttonCancel->setAutoDefault( true );
    Layout1->addWidget( buttonCancel );
    KcmPrinterDlgLayout->addLayout( Layout1 );
    languageChange();
    resize( TQSize(533, 381).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( printersChk, TQ_SIGNAL( toggled(bool) ), queueCombo, TQ_SLOT( setDisabled(bool) ) );
    connect( printersChk, TQ_SIGNAL( toggled(bool) ), shareNameEdit, TQ_SLOT( setDisabled(bool) ) );
    connect( buttonCancel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );
    connect( buttonOk, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) );
    connect( printersChk, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( printersChkToggled(bool) ) );

    // tab order
    setTabOrder( queueCombo, printersChk );
    setTabOrder( printersChk, pathUrlRq );
    setTabOrder( pathUrlRq, shareNameEdit );
    setTabOrder( shareNameEdit, commentEdit );
    setTabOrder( commentEdit, availableBaseChk );
    setTabOrder( availableBaseChk, browseableBaseChk );
    setTabOrder( browseableBaseChk, publicBaseChk );
    setTabOrder( publicBaseChk, minPrintSpaceSpin );
    setTabOrder( minPrintSpaceSpin, statusChk );
    setTabOrder( statusChk, preExecEdit );
    setTabOrder( preExecEdit, postExecEdit );
    setTabOrder( postExecEdit, rootPreExecEdit );
    setTabOrder( rootPreExecEdit, rootPostExecEdit );
    setTabOrder( rootPostExecEdit, printCommandEdit );
    setTabOrder( printCommandEdit, lpqCommandEdit );
    setTabOrder( lpqCommandEdit, lprmCommandEdit );
    setTabOrder( lprmCommandEdit, lppauseEdit );
    setTabOrder( lppauseEdit, lpresumeEdit );
    setTabOrder( lpresumeEdit, queuepauseEdit );
    setTabOrder( queuepauseEdit, queueresumeEdit );
    setTabOrder( queueresumeEdit, guestAccountCombo );
    setTabOrder( guestAccountCombo, printerAdminEdit );
    setTabOrder( printerAdminEdit, hostsAllowEdit );
    setTabOrder( hostsAllowEdit, hostsDenyEdit );
    setTabOrder( hostsDenyEdit, printingCombo );
    setTabOrder( printingCombo, maxPrintJobsSpin );
    setTabOrder( maxPrintJobsSpin, maxReportedPrintJobsSpin );
    setTabOrder( maxReportedPrintJobsSpin, printerDriverEdit );
    setTabOrder( printerDriverEdit, printerDriverLocationEdit );
    setTabOrder( printerDriverLocationEdit, postscriptChk );
    setTabOrder( postscriptChk, useClientDriverChk );
    setTabOrder( useClientDriverChk, defaultDevmodeChk );
    setTabOrder( defaultDevmodeChk, buttonOk );
    setTabOrder( buttonOk, buttonCancel );
    setTabOrder( buttonCancel, buttonHelp );
    setTabOrder( buttonHelp, _tabs );

    // buddies
    TextLabel7->setBuddy( pathUrlRq );
    TextLabel4_2->setBuddy( queueCombo );
    Lbl_shareName->setBuddy( shareNameEdit );
    TextLabel3->setBuddy( commentEdit );
    TextLabel5_2_8->setBuddy( printerDriverEdit );
    TextLabel5_2_2_2->setBuddy( printerDriverLocationEdit );
    PrintingLbl->setBuddy( printingCombo );
    TextLabel3_2_2->setBuddy( maxReportedPrintJobsSpin );
    TextLabel3_2->setBuddy( maxPrintJobsSpin );
    TextLabel6->setBuddy( hostsDenyEdit );
    TextLabel5->setBuddy( hostsAllowEdit );
    TextLabel6_2->setBuddy( printerAdminEdit );
    TextLabel1_2->setBuddy( guestAccountCombo );
    TextLabel5_2->setBuddy( printCommandEdit );
    TextLabel5_2_2->setBuddy( lpqCommandEdit );
    TextLabel5_2_3->setBuddy( lprmCommandEdit );
    TextLabel5_2_5->setBuddy( lpresumeEdit );
    TextLabel5_2_6->setBuddy( queuepauseEdit );
    TextLabel5_2_4->setBuddy( lppauseEdit );
    TextLabel5_2_7->setBuddy( queueresumeEdit );
    TextLabel6_3->setBuddy( preExecEdit );
    TextLabel6_3_3->setBuddy( rootPreExecEdit );
    TextLabel6_3_4->setBuddy( rootPostExecEdit );
    TextLabel6_3_2->setBuddy( postExecEdit );
    TextLabel1->setBuddy( minPrintSpaceSpin );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KcmPrinterDlg::languageChange()
{
    setCaption( tr2i18n( "Printer Settings" ) );
    printerPixLbl->setText( tr2i18n( "Pixmap" ) );
    printerGrp->setTitle( tr2i18n( "Pr&inter" ) );
    TextLabel7->setText( tr2i18n( "Pa&th:" ) );
    TextLabel4_2->setText( tr2i18n( "&Queue:" ) );
    printersChk->setText( tr2i18n( "Sha&re all printers" ) );
    identifierGrp->setTitle( tr2i18n( "I&dentifier" ) );
    Lbl_shareName->setText( tr2i18n( "&Name:" ) );
    TextLabel3->setText( tr2i18n( "Comm&ent:" ) );
    GroupBox4->setTitle( tr2i18n( "Main Properties" ) );
    availableBaseChk->setText( tr2i18n( "A&vailable" ) );
    browseableBaseChk->setText( tr2i18n( "Bro&wseable" ) );
    publicBaseChk->setText( tr2i18n( "Pub&lic" ) );
    _tabs->changeTab( tab, tr2i18n( "&Base Settings" ) );
    TextLabel5_2_8->setText( tr2i18n( "Printer dri&ver:" ) );
    TextLabel5_2_2_2->setText( tr2i18n( "Print&er driver location:" ) );
    postscriptChk->setText( tr2i18n( "PostScr&ipt" ) );
    PrintingLbl->setText( tr2i18n( "Printin&g:" ) );
    printingCombo->clear();
    printingCombo->insertItem( tr2i18n( "sysv" ) );
    printingCombo->insertItem( tr2i18n( "aix" ) );
    printingCombo->insertItem( tr2i18n( "bsd" ) );
    printingCombo->insertItem( tr2i18n( "qnx" ) );
    printingCombo->insertItem( tr2i18n( "plp" ) );
    printingCombo->insertItem( tr2i18n( "lprng" ) );
    printingCombo->insertItem( tr2i18n( "softq" ) );
    printingCombo->insertItem( tr2i18n( "cups" ) );
    printingCombo->insertItem( tr2i18n( "nt" ) );
    printingCombo->insertItem( tr2i18n( "os2" ) );
    TextLabel3_2_2->setText( tr2i18n( "Max reported print &jobs:" ) );
    TextLabel3_2->setText( tr2i18n( "Ma&x print jobs:" ) );
    useClientDriverChk->setText( tr2i18n( "Use c&lient driver" ) );
    defaultDevmodeChk->setText( tr2i18n( "De&fault devmode" ) );
    _tabs->changeTab( tab_2, tr2i18n( "&Printing" ) );
    TextLabel6->setText( tr2i18n( "Hosts &deny:" ) );
    TQWhatsThis::add( TextLabel6, tr2i18n( "The opposite of hosts allow - hosts listed here are NOT permitted access to services unless the specific services have their own lists to override this one. Where the lists conflict, the allow list takes precedence." ) );
    TQWhatsThis::add( hostsDenyEdit, tr2i18n( "The opposite of hosts allow - hosts listed here are NOT permitted access to services unless the specific services have their own lists to override this one. Where the lists conflict, the allow list takes precedence." ) );
    TQWhatsThis::add( hostsAllowEdit, tr2i18n( "This parameter is a comma, space, or tab delimited set of hosts which are permitted to access a service." ) );
    TextLabel5->setText( tr2i18n( "Hosts a&llow:" ) );
    TQWhatsThis::add( TextLabel5, tr2i18n( "This parameter is a comma, space, or tab delimited set of hosts which are permitted to access a service." ) );
    TQWhatsThis::add( printerAdminEdit, tr2i18n( "The opposite of hosts allow - hosts listed here are NOT permitted access to services unless the specific services have their own lists to override this one. Where the lists conflict, the allow list takes precedence." ) );
    TextLabel6_2->setText( tr2i18n( "P&rinter admin:" ) );
    TQWhatsThis::add( TextLabel6_2, tr2i18n( "The opposite of hosts allow - hosts listed here are NOT permitted access to services unless the specific services have their own lists to override this one. Where the lists conflict, the allow list takes precedence." ) );
    TextLabel1_2->setText( tr2i18n( "&Guest account:" ) );
    TQWhatsThis::add( TextLabel1_2, tr2i18n( "This is a username which will be used for access to services which are specified as guest ok. Whatever privileges this user has will be available to any client connecting to the guest service. Typically this user will exist in the password file, but will not have a valid login. The user account \\\"ftp\\\" is often a good choice for this parameter. If a username is specified in a given service, the specified username overrides this one." ) );
    _tabs->changeTab( tab_3, tr2i18n( "&Security" ) );
    TextLabel5_2->setText( tr2i18n( "Pr&int command:" ) );
    TextLabel5_2_2->setText( tr2i18n( "lpq comma&nd:" ) );
    TextLabel5_2_3->setText( tr2i18n( "lprm comman&d:" ) );
    TextLabel5_2_5->setText( tr2i18n( "lp&resume:" ) );
    TextLabel5_2_6->setText( tr2i18n( "&queuepause:" ) );
    TextLabel5_2_4->setText( tr2i18n( "&lppause:" ) );
    TextLabel5_2_7->setText( tr2i18n( "qu&eueresume:" ) );
    _tabs->changeTab( tab_4, tr2i18n( "Co&mmands" ) );
    GroupBox31->setTitle( tr2i18n( "Miscella&neous" ) );
    TextLabel6_3->setText( tr2i18n( "p&reexec:" ) );
    TextLabel6_3_3->setText( tr2i18n( "root pr&eexec:" ) );
    TextLabel6_3_4->setText( tr2i18n( "root postexec:" ) );
    TextLabel6_3_2->setText( tr2i18n( "poste&xec:" ) );
    GroupBox27->setTitle( tr2i18n( "Tunin&g" ) );
    TextLabel1->setText( tr2i18n( "M&in print space:" ) );
    textLabel2->setText( tr2i18n( "kB", "kilo Byte" ) );
    GroupBox17->setTitle( tr2i18n( "&Logging" ) );
    statusChk->setText( tr2i18n( "S&tatus" ) );
    _tabs->changeTab( tab_5, tr2i18n( "&Advanced" ) );
    buttonHelp->setText( tr2i18n( "&Help" ) );
    buttonHelp->setAccel( TQKeySequence( tr2i18n( "F1" ) ) );
    buttonOk->setText( tr2i18n( "&OK" ) );
    buttonCancel->setText( tr2i18n( "&Cancel" ) );
}

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

TQMetaObject *KcmPrinterDlg::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KcmPrinterDlg( "KcmPrinterDlg", &KcmPrinterDlg::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* KcmPrinterDlg::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 = TQDialog::staticMetaObject();
    static const TQUMethod slot_0 = {"init", 0, 0 };
    static const TQUMethod slot_1 = {"accept", 0, 0 };
    static const TQUMethod slot_2 = {"reject", 0, 0 };
    static const TQUParameter param_slot_3[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"printersChkToggled", 1, param_slot_3 };
    static const TQUMethod slot_4 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "init()", &slot_0, TQMetaData::Public },
	{ "accept()", &slot_1, TQMetaData::Public },
	{ "reject()", &slot_2, TQMetaData::Public },
	{ "printersChkToggled(bool)", &slot_3, TQMetaData::Public },
	{ "languageChange()", &slot_4, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"KcmPrinterDlg", parentObject,
	slot_tbl, 5,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_KcmPrinterDlg.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool KcmPrinterDlg::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: init(); break;
    case 1: accept(); break;
    case 2: reject(); break;
    case 3: printersChkToggled((bool)static_QUType_bool.get(_o+1)); break;
    case 4: languageChange(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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