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

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

#include "makeoptionswidgetbase.h"

#include <ntqvariant.h>
#include <kdialog.h>
#include <klineedit.h>
#include <ntqcheckbox.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqspinbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a MakeOptionsWidgetBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
MakeOptionsWidgetBase::MakeOptionsWidgetBase( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "make_options_widget" );
    make_options_widgetLayout = new TQGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "make_options_widgetLayout"); 

    abort_box = new TQCheckBox( this, "abort_box" );

    make_options_widgetLayout->addMultiCellWidget( abort_box, 0, 0, 0, 5 );

    dontact_box = new TQCheckBox( this, "dontact_box" );

    make_options_widgetLayout->addMultiCellWidget( dontact_box, 1, 1, 0, 5 );

    env_var_group = new TQGroupBox( this, "env_var_group" );

    make_options_widgetLayout->addMultiCellWidget( env_var_group, 6, 6, 0, 5 );

    makebin_label = new TQLabel( this, "makebin_label" );

    make_options_widgetLayout->addMultiCellWidget( makebin_label, 5, 5, 0, 2 );

    makebin_edit = new KLineEdit( this, "makebin_edit" );

    make_options_widgetLayout->addMultiCellWidget( makebin_edit, 5, 5, 3, 5 );

    jobs_box = new TQSpinBox( this, "jobs_box" );
    jobs_box->setEnabled( false );
    jobs_box->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, jobs_box->sizePolicy().hasHeightForWidth() ) );
    jobs_box->setMaxValue( 30 );
    jobs_box->setMinValue( 1 );

    make_options_widgetLayout->addWidget( jobs_box, 4, 4 );

    textLabel1 = new TQLabel( this, "textLabel1" );
    textLabel1->setEnabled( false );

    make_options_widgetLayout->addMultiCellWidget( textLabel1, 4, 4, 1, 3 );
    spacer33 = new TQSpacerItem( 121, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    make_options_widgetLayout->addItem( spacer33, 4, 5 );
    spacer2 = new TQSpacerItem( 20, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    make_options_widgetLayout->addItem( spacer2, 4, 0 );

    runMultiJobs = new TQCheckBox( this, "runMultiJobs" );

    make_options_widgetLayout->addMultiCellWidget( runMultiJobs, 3, 3, 0, 5 );

    prio_label = new TQLabel( this, "prio_label" );

    make_options_widgetLayout->addMultiCellWidget( prio_label, 2, 2, 0, 1 );

    prio_box = new TQSpinBox( this, "prio_box" );
    prio_box->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, prio_box->sizePolicy().hasHeightForWidth() ) );
    prio_box->setMaxValue( 19 );
    prio_box->setMinValue( -20 );

    make_options_widgetLayout->addWidget( prio_box, 2, 2 );
    languageChange();
    resize( TQSize(507, 366).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( runMultiJobs, TQ_SIGNAL( toggled(bool) ), textLabel1, TQ_SLOT( setEnabled(bool) ) );
    connect( runMultiJobs, TQ_SIGNAL( toggled(bool) ), jobs_box, TQ_SLOT( setEnabled(bool) ) );

    // tab order
    setTabOrder( abort_box, dontact_box );
    setTabOrder( dontact_box, makebin_edit );
    setTabOrder( makebin_edit, jobs_box );

    // buddies
    makebin_label->setBuddy( makebin_edit );
    textLabel1->setBuddy( jobs_box );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void MakeOptionsWidgetBase::languageChange()
{
    setCaption( tr2i18n( "Make Options" ) );
    abort_box->setText( tr2i18n( "&Abort on first error" ) );
    dontact_box->setText( tr2i18n( "Onl&y display commands without actually executing them" ) );
    env_var_group->setTitle( tr2i18n( "Environment &Variables" ) );
    makebin_label->setText( tr2i18n( "&Name of make executable:" ) );
    textLabel1->setText( tr2i18n( "Num&ber of jobs to run simultaneously:" ) );
    runMultiJobs->setText( tr2i18n( "Run more than one &job at a time" ) );
    prio_label->setText( tr2i18n( "Make priority:" ) );
}

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

TQMetaObject *MakeOptionsWidgetBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_MakeOptionsWidgetBase( "MakeOptionsWidgetBase", &MakeOptionsWidgetBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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