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

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

#include "kxeprintsettingspage.h"

#include <ntqvariant.h>
#include <tdefontcombo.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqspinbox.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    m_pLblFontFamily = new TQLabel( this, "m_pLblFontFamily" );
    m_pLblFontFamily->setFrameShape( TQLabel::NoFrame );
    m_pLblFontFamily->setFrameShadow( TQLabel::Plain );
    KXEPrintSettingsPageLayout->addWidget( m_pLblFontFamily );

    m_pFontFamily = new TDEFontCombo( this, "m_pFontFamily" );
    KXEPrintSettingsPageLayout->addWidget( m_pFontFamily );

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

    m_pLblFontSize = new TQLabel( this, "m_pLblFontSize" );
    layout3->addWidget( m_pLblFontSize );

    m_pFontSize = new TQSpinBox( this, "m_pFontSize" );
    m_pFontSize->setMinValue( 6 );
    m_pFontSize->setValue( 10 );
    layout3->addWidget( m_pFontSize );
    spacer3 = new TQSpacerItem( 31, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout3->addItem( spacer3 );
    KXEPrintSettingsPageLayout->addLayout( layout3 );

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

    m_pLblIndentSteps = new TQLabel( this, "m_pLblIndentSteps" );
    layout4->addWidget( m_pLblIndentSteps );

    m_pIndentSteps = new TQSpinBox( this, "m_pIndentSteps" );
    layout4->addWidget( m_pIndentSteps );
    spacer2 = new TQSpacerItem( 41, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout4->addItem( spacer2 );
    KXEPrintSettingsPageLayout->addLayout( layout4 );

    m_pWithHeader = new TQCheckBox( this, "m_pWithHeader" );
    KXEPrintSettingsPageLayout->addWidget( m_pWithHeader );

    m_pWithFooter = new TQCheckBox( this, "m_pWithFooter" );
    KXEPrintSettingsPageLayout->addWidget( m_pWithFooter );
    spacer10 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    KXEPrintSettingsPageLayout->addItem( spacer10 );
    languageChange();
    resize( TQSize(292, 187).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // buddies
    m_pLblFontFamily->setBuddy( m_pFontFamily );
    m_pLblFontSize->setBuddy( m_pFontSize );
    m_pLblIndentSteps->setBuddy( m_pIndentSteps );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KXEPrintSettingsPage::languageChange()
{
    setCaption( tr2i18n( "Print Settings Page" ) );
    m_pLblFontFamily->setText( tr2i18n( "Font &family:" ) );
    TQWhatsThis::add( m_pLblFontFamily, tr2i18n( "<b>Font family</b>\n"
"<br>\n"
"Choose the font family you want to be used on printing your XML documents." ) );
    TQWhatsThis::add( m_pFontFamily, tr2i18n( "<b>Font family</b>\n"
"<br>\n"
"Choose the font family you want to be used on printing your XML documents." ) );
    m_pLblFontSize->setText( tr2i18n( "Font &size:" ) );
    TQWhatsThis::add( m_pLblFontSize, tr2i18n( "<b>Font size</b>\n"
"<br>\n"
"Choose the font size you want to be used on printing your XML documents." ) );
    m_pFontSize->setSuffix( tr2i18n( "pt" ) );
    m_pFontSize->setSpecialValueText( TQString::null );
    TQWhatsThis::add( m_pFontSize, tr2i18n( "<b>Font size</b>\n"
"<br>\n"
"Choose the font size you want to be used on printing your XML documents." ) );
    m_pLblIndentSteps->setText( tr2i18n( "Element &indentation:" ) );
    TQWhatsThis::add( m_pLblIndentSteps, tr2i18n( "<b>Element indentation</b>\n"
"<br>\n"
"Choose the number of characters you want to be used for indenting childnodes on printing you XML documents." ) );
    TQWhatsThis::add( m_pIndentSteps, tr2i18n( "<b>Element indentation</b>\n"
"<br>\n"
"Choose the number of characters you want to be used for indenting childnodes on printing you XML documents." ) );
    m_pWithHeader->setText( tr2i18n( "&Print header" ) );
    TQWhatsThis::add( m_pWithHeader, tr2i18n( "<b>Print header</b>\n"
"<br>\n"
"You can determine wether you want a header to be printed on every page when printing you XML documents or not." ) );
    m_pWithFooter->setText( tr2i18n( "P&rint footer" ) );
    TQWhatsThis::add( m_pWithFooter, tr2i18n( "<b>Print footer</b>\n"
"<br>\n"
"You can determine wether you want a footline to be printed on every page when printing you XML documents or not." ) );
}

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

TQMetaObject *KXEPrintSettingsPage::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_KXEPrintSettingsPage( "KXEPrintSettingsPage", &KXEPrintSettingsPage::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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