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

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

#include "imagereductionui.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqheader.h>
#include <ntqlistview.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a imageReductionUI 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.
 */
imageReductionUI::imageReductionUI( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "imageReductionUI" );
    imageReductionUILayout = new TQVBoxLayout( this, 11, 6, "imageReductionUILayout"); 

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

    darkFrameGroup = new TQGroupBox( this, "darkFrameGroup" );
    darkFrameGroup->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, darkFrameGroup->sizePolicy().hasHeightForWidth() ) );
    darkFrameGroup->setColumnLayout(0, TQt::Vertical );
    darkFrameGroup->layout()->setSpacing( 6 );
    darkFrameGroup->layout()->setMargin( 11 );
    darkFrameGroupLayout = new TQVBoxLayout( darkFrameGroup->layout() );
    darkFrameGroupLayout->setAlignment( TQt::AlignTop );

    darkListView = new TQListView( darkFrameGroup, "darkListView" );
    darkListView->addColumn( tr2i18n( "File Name" ) );
    darkListView->header()->setResizeEnabled( false, darkListView->header()->count() - 1 );
    darkListView->setResizePolicy( TQListView::AutoOneFit );
    darkListView->setSelectionMode( TQListView::Single );
    darkListView->setAllColumnsShowFocus( false );
    darkListView->setRootIsDecorated( false );
    darkListView->setResizeMode( TQListView::LastColumn );
    darkFrameGroupLayout->addWidget( darkListView );

    layout8 = new TQHBoxLayout( 0, 0, 6, "layout8"); 
    spacer1 = new TQSpacerItem( 71, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout8->addItem( spacer1 );

    darkAddB = new TQPushButton( darkFrameGroup, "darkAddB" );
    layout8->addWidget( darkAddB );

    darkRemoveB = new TQPushButton( darkFrameGroup, "darkRemoveB" );
    darkRemoveB->setEnabled( false );
    layout8->addWidget( darkRemoveB );

    darkDetailsB = new TQPushButton( darkFrameGroup, "darkDetailsB" );
    darkDetailsB->setEnabled( false );
    layout8->addWidget( darkDetailsB );
    darkFrameGroupLayout->addLayout( layout8 );
    layout13->addWidget( darkFrameGroup );

    darkbg = new TQButtonGroup( this, "darkbg" );
    darkbg->setColumnLayout(0, TQt::Vertical );
    darkbg->layout()->setSpacing( 6 );
    darkbg->layout()->setMargin( 11 );
    darkbgLayout = new TQVBoxLayout( darkbg->layout() );
    darkbgLayout->setAlignment( TQt::AlignTop );

    darkAverageB = new TQRadioButton( darkbg, "darkAverageB" );
    darkAverageB->setChecked( true );
    darkbgLayout->addWidget( darkAverageB );

    darkMedianB = new TQRadioButton( darkbg, "darkMedianB" );
    darkbgLayout->addWidget( darkMedianB );
    spacer3 = new TQSpacerItem( 20, 31, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    darkbgLayout->addItem( spacer3 );
    layout13->addWidget( darkbg );
    imageReductionUILayout->addLayout( layout13 );

    layout1 = new TQHBoxLayout( 0, 0, 6, "layout1"); 
    imageReductionUILayout->addLayout( layout1 );

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

    FlatFieldFrameGroup = new TQGroupBox( this, "FlatFieldFrameGroup" );
    FlatFieldFrameGroup->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, FlatFieldFrameGroup->sizePolicy().hasHeightForWidth() ) );
    FlatFieldFrameGroup->setColumnLayout(0, TQt::Vertical );
    FlatFieldFrameGroup->layout()->setSpacing( 6 );
    FlatFieldFrameGroup->layout()->setMargin( 11 );
    FlatFieldFrameGroupLayout = new TQVBoxLayout( FlatFieldFrameGroup->layout() );
    FlatFieldFrameGroupLayout->setAlignment( TQt::AlignTop );

    flatListView = new TQListView( FlatFieldFrameGroup, "flatListView" );
    flatListView->addColumn( tr2i18n( "File Name" ) );
    flatListView->header()->setResizeEnabled( false, flatListView->header()->count() - 1 );
    flatListView->setResizePolicy( TQListView::AutoOneFit );
    flatListView->setSelectionMode( TQListView::Single );
    flatListView->setAllColumnsShowFocus( false );
    flatListView->setRootIsDecorated( false );
    flatListView->setResizeMode( TQListView::LastColumn );
    FlatFieldFrameGroupLayout->addWidget( flatListView );

    layout7 = new TQHBoxLayout( 0, 0, 6, "layout7"); 
    spacer1_2 = new TQSpacerItem( 71, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout7->addItem( spacer1_2 );

    flatAddB = new TQPushButton( FlatFieldFrameGroup, "flatAddB" );
    layout7->addWidget( flatAddB );

    flatRemoveB = new TQPushButton( FlatFieldFrameGroup, "flatRemoveB" );
    flatRemoveB->setEnabled( false );
    layout7->addWidget( flatRemoveB );

    flatDetailsB = new TQPushButton( FlatFieldFrameGroup, "flatDetailsB" );
    flatDetailsB->setEnabled( false );
    layout7->addWidget( flatDetailsB );
    FlatFieldFrameGroupLayout->addLayout( layout7 );
    layout14->addWidget( FlatFieldFrameGroup );

    flatFieldbg = new TQButtonGroup( this, "flatFieldbg" );
    flatFieldbg->setColumnLayout(0, TQt::Vertical );
    flatFieldbg->layout()->setSpacing( 6 );
    flatFieldbg->layout()->setMargin( 11 );
    flatFieldbgLayout = new TQVBoxLayout( flatFieldbg->layout() );
    flatFieldbgLayout->setAlignment( TQt::AlignTop );

    flatAverageB = new TQRadioButton( flatFieldbg, "flatAverageB" );
    flatAverageB->setChecked( true );
    flatFieldbgLayout->addWidget( flatAverageB );

    flatMedianB = new TQRadioButton( flatFieldbg, "flatMedianB" );
    flatFieldbgLayout->addWidget( flatMedianB );
    spacer3_3 = new TQSpacerItem( 20, 31, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    flatFieldbgLayout->addItem( spacer3_3 );
    layout14->addWidget( flatFieldbg );
    imageReductionUILayout->addLayout( layout14 );

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

    FlatFieldDarkFrameG = new TQGroupBox( this, "FlatFieldDarkFrameG" );
    FlatFieldDarkFrameG->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, FlatFieldDarkFrameG->sizePolicy().hasHeightForWidth() ) );
    FlatFieldDarkFrameG->setColumnLayout(0, TQt::Vertical );
    FlatFieldDarkFrameG->layout()->setSpacing( 6 );
    FlatFieldDarkFrameG->layout()->setMargin( 11 );
    FlatFieldDarkFrameGLayout = new TQVBoxLayout( FlatFieldDarkFrameG->layout() );
    FlatFieldDarkFrameGLayout->setAlignment( TQt::AlignTop );

    darkflatListView = new TQListView( FlatFieldDarkFrameG, "darkflatListView" );
    darkflatListView->addColumn( tr2i18n( "File Name" ) );
    darkflatListView->header()->setResizeEnabled( false, darkflatListView->header()->count() - 1 );
    darkflatListView->setResizePolicy( TQListView::AutoOneFit );
    darkflatListView->setSelectionMode( TQListView::Single );
    darkflatListView->setAllColumnsShowFocus( false );
    darkflatListView->setRootIsDecorated( false );
    darkflatListView->setResizeMode( TQListView::LastColumn );
    FlatFieldDarkFrameGLayout->addWidget( darkflatListView );

    layout7_2 = new TQHBoxLayout( 0, 0, 6, "layout7_2"); 
    spacer1_2_2 = new TQSpacerItem( 71, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout7_2->addItem( spacer1_2_2 );

    darkflatAddB = new TQPushButton( FlatFieldDarkFrameG, "darkflatAddB" );
    layout7_2->addWidget( darkflatAddB );

    darkflatRemoveB = new TQPushButton( FlatFieldDarkFrameG, "darkflatRemoveB" );
    darkflatRemoveB->setEnabled( false );
    layout7_2->addWidget( darkflatRemoveB );

    darkflatDetailsB = new TQPushButton( FlatFieldDarkFrameG, "darkflatDetailsB" );
    darkflatDetailsB->setEnabled( false );
    layout7_2->addWidget( darkflatDetailsB );
    FlatFieldDarkFrameGLayout->addLayout( layout7_2 );
    layout14_2->addWidget( FlatFieldDarkFrameG );

    darkflatFieldbg = new TQButtonGroup( this, "darkflatFieldbg" );
    darkflatFieldbg->setColumnLayout(0, TQt::Vertical );
    darkflatFieldbg->layout()->setSpacing( 6 );
    darkflatFieldbg->layout()->setMargin( 11 );
    darkflatFieldbgLayout = new TQVBoxLayout( darkflatFieldbg->layout() );
    darkflatFieldbgLayout->setAlignment( TQt::AlignTop );

    darkflatAverageB = new TQRadioButton( darkflatFieldbg, "darkflatAverageB" );
    darkflatAverageB->setChecked( true );
    darkflatFieldbgLayout->addWidget( darkflatAverageB );

    darkflatMedian = new TQRadioButton( darkflatFieldbg, "darkflatMedian" );
    darkflatFieldbgLayout->addWidget( darkflatMedian );
    spacer3_3_2 = new TQSpacerItem( 20, 31, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    darkflatFieldbgLayout->addItem( spacer3_3_2 );
    layout14_2->addWidget( darkflatFieldbg );
    imageReductionUILayout->addLayout( layout14_2 );

    layout12 = new TQHBoxLayout( 0, 0, 6, "layout12"); 
    Horizontal_Spacing2 = new TQSpacerItem( 210, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout12->addItem( Horizontal_Spacing2 );

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

    buttonCancel = new TQPushButton( this, "buttonCancel" );
    buttonCancel->setAutoDefault( true );
    layout12->addWidget( buttonCancel );
    imageReductionUILayout->addLayout( layout12 );
    languageChange();
    resize( TQSize(526, 529).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( buttonOk, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) );
    connect( buttonCancel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void imageReductionUI::languageChange()
{
    setCaption( tr2i18n( "Image Reduction" ) );
    darkFrameGroup->setTitle( tr2i18n( "Dark Frames" ) );
    darkListView->header()->setLabel( 0, tr2i18n( "File Name" ) );
    darkAddB->setText( tr2i18n( "Add..." ) );
    darkRemoveB->setText( tr2i18n( "Remove" ) );
    darkDetailsB->setText( tr2i18n( "Details" ) );
    darkbg->setTitle( tr2i18n( "Combination" ) );
    darkAverageB->setText( tr2i18n( "Average" ) );
    darkMedianB->setText( tr2i18n( "Median" ) );
    FlatFieldFrameGroup->setTitle( tr2i18n( "Flat Field Frames" ) );
    flatListView->header()->setLabel( 0, tr2i18n( "File Name" ) );
    flatAddB->setText( tr2i18n( "Add..." ) );
    flatRemoveB->setText( tr2i18n( "Remove" ) );
    flatDetailsB->setText( tr2i18n( "Details" ) );
    flatFieldbg->setTitle( tr2i18n( "Combination" ) );
    flatAverageB->setText( tr2i18n( "Average" ) );
    flatMedianB->setText( tr2i18n( "Median" ) );
    FlatFieldDarkFrameG->setTitle( tr2i18n( "Flat Field Dark Frames" ) );
    darkflatListView->header()->setLabel( 0, tr2i18n( "File Name" ) );
    darkflatAddB->setText( tr2i18n( "Add..." ) );
    darkflatRemoveB->setText( tr2i18n( "Remove" ) );
    darkflatDetailsB->setText( tr2i18n( "Details" ) );
    darkflatFieldbg->setTitle( tr2i18n( "Combination" ) );
    darkflatAverageB->setText( tr2i18n( "Average" ) );
    darkflatMedian->setText( tr2i18n( "Median" ) );
    buttonOk->setText( tr2i18n( "&OK" ) );
    buttonCancel->setText( tr2i18n( "&Cancel" ) );
}

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

TQMetaObject *imageReductionUI::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_imageReductionUI( "imageReductionUI", &imageReductionUI::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* imageReductionUI::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 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"imageReductionUI", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_imageReductionUI.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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