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

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

#include "settingspagescaling.h"

#include <ntqvariant.h>
#include <kcombobox.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqframe.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

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

    groupBox1 = new TQGroupBox( this, "groupBox1" );
    groupBox1->setColumnLayout(0, TQt::Vertical );
    groupBox1->layout()->setSpacing( 6 );
    groupBox1->layout()->setMargin( 11 );
    groupBox1Layout = new TQGridLayout( groupBox1->layout() );
    groupBox1Layout->setAlignment( TQt::AlignTop );

    textLabel13 = new TQLabel( groupBox1, "textLabel13" );

    groupBox1Layout->addMultiCellWidget( textLabel13, 0, 0, 0, 2 );

    line1 = new TQFrame( groupBox1, "line1" );
    line1->setFrameShape( TQFrame::HLine );
    line1->setFrameShadow( TQFrame::Sunken );
    line1->setFrameShape( TQFrame::HLine );

    groupBox1Layout->addMultiCellWidget( line1, 2, 2, 0, 2 );

    textLabel13_2 = new TQLabel( groupBox1, "textLabel13_2" );

    groupBox1Layout->addMultiCellWidget( textLabel13_2, 3, 3, 0, 2 );

    textLabel12 = new TQLabel( groupBox1, "textLabel12" );

    groupBox1Layout->addWidget( textLabel12, 1, 0 );

    textLabel12_2 = new TQLabel( groupBox1, "textLabel12_2" );

    groupBox1Layout->addWidget( textLabel12_2, 4, 0 );

    kcfg_XPrinting = new KComboBox( false, groupBox1, "kcfg_XPrinting" );

    groupBox1Layout->addWidget( kcfg_XPrinting, 4, 1 );

    textLabel14 = new TQLabel( groupBox1, "textLabel14" );

    groupBox1Layout->addWidget( textLabel14, 4, 2 );

    kcfg_XScaling = new KComboBox( false, groupBox1, "kcfg_XScaling" );

    groupBox1Layout->addWidget( kcfg_XScaling, 1, 1 );
    layout35->addWidget( groupBox1 );

    groupBox1_2 = new TQGroupBox( this, "groupBox1_2" );
    groupBox1_2->setColumnLayout(0, TQt::Vertical );
    groupBox1_2->layout()->setSpacing( 6 );
    groupBox1_2->layout()->setMargin( 11 );
    groupBox1_2Layout = new TQGridLayout( groupBox1_2->layout() );
    groupBox1_2Layout->setAlignment( TQt::AlignTop );

    textLabel13_3 = new TQLabel( groupBox1_2, "textLabel13_3" );

    groupBox1_2Layout->addMultiCellWidget( textLabel13_3, 0, 0, 0, 2 );

    line1_2 = new TQFrame( groupBox1_2, "line1_2" );
    line1_2->setFrameShape( TQFrame::HLine );
    line1_2->setFrameShadow( TQFrame::Sunken );
    line1_2->setFrameShape( TQFrame::HLine );

    groupBox1_2Layout->addMultiCellWidget( line1_2, 3, 3, 0, 2 );

    textLabel13_2_2 = new TQLabel( groupBox1_2, "textLabel13_2_2" );

    groupBox1_2Layout->addMultiCellWidget( textLabel13_2_2, 4, 4, 0, 2 );

    textLabel12_3 = new TQLabel( groupBox1_2, "textLabel12_3" );

    groupBox1_2Layout->addMultiCellWidget( textLabel12_3, 1, 2, 0, 1 );

    textLabel12_2_2 = new TQLabel( groupBox1_2, "textLabel12_2_2" );

    groupBox1_2Layout->addWidget( textLabel12_2_2, 5, 0 );

    kcfg_YPrinting = new KComboBox( false, groupBox1_2, "kcfg_YPrinting" );

    groupBox1_2Layout->addWidget( kcfg_YPrinting, 5, 1 );

    textLabel14_2 = new TQLabel( groupBox1_2, "textLabel14_2" );

    groupBox1_2Layout->addWidget( textLabel14_2, 5, 2 );

    kcfg_YScaling = new KComboBox( false, groupBox1_2, "kcfg_YScaling" );

    groupBox1_2Layout->addWidget( kcfg_YScaling, 2, 1 );
    layout35->addWidget( groupBox1_2 );
    SettingsPageScalingLayout->addLayout( layout35 );
    spacer1 = new TQSpacerItem( 21, 91, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    SettingsPageScalingLayout->addItem( spacer1 );
    languageChange();
    resize( TQSize(450, 345).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( kcfg_XScaling, kcfg_XPrinting );
    setTabOrder( kcfg_XPrinting, kcfg_YScaling );
    setTabOrder( kcfg_YScaling, kcfg_YPrinting );

    // buddies
    textLabel12->setBuddy( kcfg_XScaling );
    textLabel12_2->setBuddy( kcfg_XPrinting );
    textLabel12_3->setBuddy( kcfg_YScaling );
    textLabel12_2_2->setBuddy( kcfg_YPrinting );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void SettingsPageScaling::languageChange()
{
    groupBox1->setTitle( tr2i18n( "X-Axis" ) );
    textLabel13->setText( tr2i18n( "Scaling:" ) );
    textLabel13_2->setText( tr2i18n( "Printing:" ) );
    textLabel12->setText( tr2i18n( "1 tic =" ) );
    textLabel12_2->setText( tr2i18n( "1 tic =" ) );
    kcfg_XPrinting->clear();
    kcfg_XPrinting->insertItem( tr2i18n( "10" ) );
    kcfg_XPrinting->insertItem( tr2i18n( "5" ) );
    kcfg_XPrinting->insertItem( tr2i18n( "2" ) );
    kcfg_XPrinting->insertItem( tr2i18n( "1" ) );
    kcfg_XPrinting->insertItem( tr2i18n( "0.5" ) );
    kcfg_XPrinting->insertItem( tr2i18n( "pi/2" ) );
    kcfg_XPrinting->insertItem( tr2i18n( "pi/3" ) );
    kcfg_XPrinting->insertItem( tr2i18n( "pi/4" ) );
    TQToolTip::add( kcfg_XPrinting, tr2i18n( "set the x-axis' printing scaling" ) );
    TQWhatsThis::add( kcfg_XPrinting, tr2i18n( "This is similar to the setting above, but this sets the distance between two x-axis-grids when printing or drawing on the screen." ) );
    textLabel14->setText( tr2i18n( "cm" ) );
    kcfg_XScaling->clear();
    kcfg_XScaling->insertItem( tr2i18n( "10" ) );
    kcfg_XScaling->insertItem( tr2i18n( "5" ) );
    kcfg_XScaling->insertItem( tr2i18n( "2" ) );
    kcfg_XScaling->insertItem( tr2i18n( "1" ) );
    kcfg_XScaling->insertItem( tr2i18n( "0.5" ) );
    kcfg_XScaling->insertItem( tr2i18n( "pi/2" ) );
    kcfg_XScaling->insertItem( tr2i18n( "pi/3" ) );
    kcfg_XScaling->insertItem( tr2i18n( "pi/4" ) );
    kcfg_XScaling->insertItem( tr2i18n( "automatic" ) );
    TQToolTip::add( kcfg_XScaling, tr2i18n( "set the x-axis' scaling" ) );
    TQWhatsThis::add( kcfg_XScaling, tr2i18n( "Choose how many units apart the x-axis tics will be, and therefore, how far apart grid lines will be drawn." ) );
    groupBox1_2->setTitle( tr2i18n( "Y-Axis" ) );
    textLabel13_3->setText( tr2i18n( "Scaling:" ) );
    textLabel13_2_2->setText( tr2i18n( "Printing:" ) );
    textLabel12_3->setText( tr2i18n( "1 tic =" ) );
    textLabel12_2_2->setText( tr2i18n( "1 tic =" ) );
    kcfg_YPrinting->clear();
    kcfg_YPrinting->insertItem( tr2i18n( "10" ) );
    kcfg_YPrinting->insertItem( tr2i18n( "5" ) );
    kcfg_YPrinting->insertItem( tr2i18n( "2" ) );
    kcfg_YPrinting->insertItem( tr2i18n( "1" ) );
    kcfg_YPrinting->insertItem( tr2i18n( "0.5" ) );
    kcfg_YPrinting->insertItem( tr2i18n( "pi/2" ) );
    kcfg_YPrinting->insertItem( tr2i18n( "pi/3" ) );
    kcfg_YPrinting->insertItem( tr2i18n( "pi/4" ) );
    TQToolTip::add( kcfg_YPrinting, tr2i18n( "set the y-axis' scaling" ) );
    TQWhatsThis::add( kcfg_YPrinting, tr2i18n( "This is similar to the setting above, but this sets the distance between two y-axis-grids when printing or drawing on the screen." ) );
    textLabel14_2->setText( tr2i18n( "cm" ) );
    kcfg_YScaling->clear();
    kcfg_YScaling->insertItem( tr2i18n( "10" ) );
    kcfg_YScaling->insertItem( tr2i18n( "5" ) );
    kcfg_YScaling->insertItem( tr2i18n( "2" ) );
    kcfg_YScaling->insertItem( tr2i18n( "1" ) );
    kcfg_YScaling->insertItem( tr2i18n( "0.5" ) );
    kcfg_YScaling->insertItem( tr2i18n( "pi/2" ) );
    kcfg_YScaling->insertItem( tr2i18n( "pi/3" ) );
    kcfg_YScaling->insertItem( tr2i18n( "pi/4" ) );
    kcfg_YScaling->insertItem( tr2i18n( "automatic" ) );
    TQToolTip::add( kcfg_YScaling, tr2i18n( "set the y-axis' scaling" ) );
    TQWhatsThis::add( kcfg_YScaling, tr2i18n( "Choose how many units apart the y-axis tics will be, and therefore, how far apart grid lines will be drawn." ) );
}

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

TQMetaObject *SettingsPageScaling::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_SettingsPageScaling( "SettingsPageScaling", &SettingsPageScaling::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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