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

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

#include "ftnchekconfigwidgetbase.h"

#include <ntqvariant.h>
#include <kdialog.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqcheckbox.h>
#include <ntqlabel.h>
#include <ntqradiobutton.h>
#include <ntqheader.h>
#include <ntqlistview.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

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

    tab = new TQWidget( TabWidget4, "tab" );
    tabLayout = new TQGridLayout( tab, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "tabLayout"); 

    extern_box = new TQCheckBox( tab, "extern_box" );

    tabLayout->addWidget( extern_box, 0, 2 );

    division_box = new TQCheckBox( tab, "division_box" );

    tabLayout->addWidget( division_box, 1, 2 );

    declare_box = new TQCheckBox( tab, "declare_box" );

    tabLayout->addWidget( declare_box, 0, 0 );

    pure_box = new TQCheckBox( tab, "pure_box" );

    tabLayout->addWidget( pure_box, 1, 0 );
    Spacer2_3 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Preferred );
    tabLayout->addItem( Spacer2_3, 2, 0 );

    TextLabel1 = new TQLabel( tab, "TextLabel1" );

    tabLayout->addWidget( TextLabel1, 3, 0 );

    argumentsall_button = new TQRadioButton( tab, "argumentsall_button" );
    argumentsall_button->setChecked( false );

    tabLayout->addWidget( argumentsall_button, 4, 0 );

    argumentsonly_button = new TQRadioButton( tab, "argumentsonly_button" );
    argumentsonly_button->setChecked( true );

    tabLayout->addWidget( argumentsonly_button, 5, 0 );
    Spacer4 = new TQSpacerItem( 20, 20, TQSizePolicy::Preferred, TQSizePolicy::Minimum );
    tabLayout->addItem( Spacer4, 6, 1 );
    Spacer3 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Preferred );
    tabLayout->addItem( Spacer3, 2, 2 );

    commonall_button = new TQRadioButton( tab, "commonall_button" );

    tabLayout->addWidget( commonall_button, 4, 2 );

    commononly_button = new TQRadioButton( tab, "commononly_button" );
    commononly_button->setChecked( true );

    tabLayout->addWidget( commononly_button, 5, 2 );

    arguments_listview = new TQListView( tab, "arguments_listview" );
    arguments_listview->addColumn( TQString::null );
    arguments_listview->addColumn( TQString::null );
    arguments_listview->setResizeMode( TQListView::NoColumn );

    tabLayout->addWidget( arguments_listview, 6, 0 );

    common_listview = new TQListView( tab, "common_listview" );
    common_listview->addColumn( TQString::null );
    common_listview->addColumn( TQString::null );
    common_listview->setResizeMode( TQListView::NoColumn );

    tabLayout->addWidget( common_listview, 6, 2 );

    TextLabel2 = new TQLabel( tab, "TextLabel2" );

    tabLayout->addWidget( TextLabel2, 3, 2 );
    TabWidget4->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( TabWidget4, "tab_2" );
    tabLayout_2 = new TQGridLayout( tab_2, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "tabLayout_2"); 

    truncationonly_button = new TQRadioButton( tab_2, "truncationonly_button" );
    truncationonly_button->setChecked( true );

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

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

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

    truncationall_button = new TQRadioButton( tab_2, "truncationall_button" );

    tabLayout_2->addWidget( truncationall_button, 1, 0 );

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

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

    usageall_button = new TQRadioButton( tab_2, "usageall_button" );

    tabLayout_2->addWidget( usageall_button, 1, 2 );

    truncation_listview = new TQListView( tab_2, "truncation_listview" );
    truncation_listview->addColumn( TQString::null );
    truncation_listview->addColumn( TQString::null );
    truncation_listview->setResizeMode( TQListView::NoColumn );

    tabLayout_2->addWidget( truncation_listview, 3, 0 );

    usageonly_button = new TQRadioButton( tab_2, "usageonly_button" );
    usageonly_button->setChecked( true );

    tabLayout_2->addWidget( usageonly_button, 2, 2 );
    Spacer1_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Preferred, TQSizePolicy::Minimum );
    tabLayout_2->addItem( Spacer1_2, 3, 1 );

    usage_listview = new TQListView( tab_2, "usage_listview" );
    usage_listview->addColumn( TQString::null );
    usage_listview->addColumn( TQString::null );
    usage_listview->setResizeMode( TQListView::NoColumn );

    tabLayout_2->addWidget( usage_listview, 3, 2 );
    TabWidget4->insertTab( tab_2, TQString::fromLatin1("") );

    tab_3 = new TQWidget( TabWidget4, "tab_3" );
    tabLayout_3 = new TQGridLayout( tab_3, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "tabLayout_3"); 

    f77all_button = new TQRadioButton( tab_3, "f77all_button" );

    tabLayout_3->addMultiCellWidget( f77all_button, 1, 1, 0, 1 );

    f77only_button = new TQRadioButton( tab_3, "f77only_button" );
    f77only_button->setChecked( true );

    tabLayout_3->addMultiCellWidget( f77only_button, 2, 2, 0, 1 );

    f77_listview = new TQListView( tab_3, "f77_listview" );
    f77_listview->addColumn( TQString::null );
    f77_listview->addColumn( TQString::null );
    f77_listview->setResizeMode( TQListView::NoColumn );

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

    portability_listview = new TQListView( tab_3, "portability_listview" );
    portability_listview->addColumn( TQString::null );
    portability_listview->addColumn( TQString::null );
    portability_listview->setResizeMode( TQListView::NoColumn );

    tabLayout_3->addWidget( portability_listview, 3, 2 );
    Spacer2 = new TQSpacerItem( 20, 20, TQSizePolicy::Preferred, TQSizePolicy::Minimum );
    tabLayout_3->addItem( Spacer2, 3, 1 );

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

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

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

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

    portabilityall_button = new TQRadioButton( tab_3, "portabilityall_button" );

    tabLayout_3->addWidget( portabilityall_button, 1, 2 );

    portabilityonly_button = new TQRadioButton( tab_3, "portabilityonly_button" );
    portabilityonly_button->setChecked( true );

    tabLayout_3->addWidget( portabilityonly_button, 2, 2 );
    TabWidget4->insertTab( tab_3, TQString::fromLatin1("") );
    ftcheck_config_widgetLayout->addWidget( TabWidget4 );
    languageChange();
    resize( TQSize(798, 507).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // tab order
    setTabOrder( declare_box, pure_box );
    setTabOrder( pure_box, extern_box );
    setTabOrder( extern_box, division_box );
    setTabOrder( division_box, argumentsall_button );
    setTabOrder( argumentsall_button, argumentsonly_button );
    setTabOrder( argumentsonly_button, arguments_listview );
    setTabOrder( arguments_listview, commonall_button );
    setTabOrder( commonall_button, commononly_button );
    setTabOrder( commononly_button, common_listview );
    setTabOrder( common_listview, TabWidget4 );
    setTabOrder( TabWidget4, truncationall_button );
    setTabOrder( truncationall_button, truncationonly_button );
    setTabOrder( truncationonly_button, truncation_listview );
    setTabOrder( truncation_listview, usageall_button );
    setTabOrder( usageall_button, usageonly_button );
    setTabOrder( usageonly_button, usage_listview );
    setTabOrder( usage_listview, f77all_button );
    setTabOrder( f77all_button, f77only_button );
    setTabOrder( f77only_button, f77_listview );
    setTabOrder( f77_listview, portabilityall_button );
    setTabOrder( portabilityall_button, portabilityonly_button );
    setTabOrder( portabilityonly_button, portability_listview );

    // buddies
    TextLabel1->setBuddy( argumentsall_button );
    TextLabel2->setBuddy( commonall_button );
    TextLabel4->setBuddy( truncationall_button );
    TextLabel3->setBuddy( usageall_button );
    TextLabel4_2->setBuddy( f77all_button );
    TextLabel3_2->setBuddy( portabilityall_button );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void FtnchekConfigWidgetBase::languageChange()
{
    setCaption( tr2i18n( "Ftnchek Options" ) );
    extern_box->setText( tr2i18n( "&External subprograms without definition" ) );
    division_box->setText( tr2i18n( "&Divisions" ) );
    declare_box->setText( tr2i18n( "&Identifiers without explicit type" ) );
    pure_box->setText( tr2i18n( "&Assume functions have no side effects" ) );
    TextLabel1->setText( tr2i18n( "Ar&guments:" ) );
    argumentsall_button->setText( tr2i18n( "All" ) );
    argumentsonly_button->setText( tr2i18n( "Only the following:" ) );
    commonall_button->setText( tr2i18n( "All" ) );
    commononly_button->setText( tr2i18n( "Only the following:" ) );
    arguments_listview->header()->setLabel( 0, TQString::null );
    arguments_listview->header()->setLabel( 1, TQString::null );
    common_listview->header()->setLabel( 0, TQString::null );
    common_listview->header()->setLabel( 1, TQString::null );
    TextLabel2->setText( tr2i18n( "Common &blocks:" ) );
    TabWidget4->changeTab( tab, tr2i18n( "&1" ) );
    truncationonly_button->setText( tr2i18n( "Only the following:" ) );
    TextLabel4->setText( tr2i18n( "&Truncation and roundoff errors:" ) );
    truncationall_button->setText( tr2i18n( "All" ) );
    TextLabel3->setText( tr2i18n( "&Use of variables:" ) );
    usageall_button->setText( tr2i18n( "All" ) );
    truncation_listview->header()->setLabel( 0, TQString::null );
    truncation_listview->header()->setLabel( 1, TQString::null );
    usageonly_button->setText( tr2i18n( "Only the following:" ) );
    usage_listview->header()->setLabel( 0, TQString::null );
    usage_listview->header()->setLabel( 1, TQString::null );
    TabWidget4->changeTab( tab_2, tr2i18n( "&2" ) );
    f77all_button->setText( tr2i18n( "All" ) );
    f77only_button->setText( tr2i18n( "Only the following:" ) );
    f77_listview->header()->setLabel( 0, TQString::null );
    f77_listview->header()->setLabel( 1, TQString::null );
    portability_listview->header()->setLabel( 0, TQString::null );
    portability_listview->header()->setLabel( 1, TQString::null );
    TextLabel4_2->setText( tr2i18n( "Fortran 77 language &extensions:" ) );
    TextLabel3_2->setText( tr2i18n( "Other &portability warnings:" ) );
    portabilityall_button->setText( tr2i18n( "All" ) );
    portabilityonly_button->setText( tr2i18n( "Only the following:" ) );
    TabWidget4->changeTab( tab_3, tr2i18n( "&3" ) );
}

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

TQMetaObject *FtnchekConfigWidgetBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_FtnchekConfigWidgetBase( "FtnchekConfigWidgetBase", &FtnchekConfigWidgetBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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