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

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

#include "dlgsortbase.h"

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

/*
 *  Constructs a DlgSortBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
DlgSortBase::DlgSortBase( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "DlgSortBase" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
    setMinimumSize( TQSize( 200, 170 ) );
    DlgSortBaseLayout = new TQGridLayout( this, 1, 1, 0, 6, "DlgSortBaseLayout"); 

    layout6 = new TQVBoxLayout( 0, 0, 6, "layout6"); 

    grpBase = new TQButtonGroup( this, "grpBase" );
    grpBase->setColumnLayout(0, TQt::Vertical );
    grpBase->layout()->setSpacing( 6 );
    grpBase->layout()->setMargin( 11 );
    grpBaseLayout = new TQGridLayout( grpBase->layout() );
    grpBaseLayout->setAlignment( TQt::AlignTop );

    optLang1 = new TQRadioButton( grpBase, "optLang1" );

    grpBaseLayout->addWidget( optLang1, 0, 0 );

    optLang2 = new TQRadioButton( grpBase, "optLang2" );

    grpBaseLayout->addWidget( optLang2, 1, 0 );
    layout6->addWidget( grpBase );

    grpDirection = new TQButtonGroup( this, "grpDirection" );
    grpDirection->setColumnLayout(0, TQt::Vertical );
    grpDirection->layout()->setSpacing( 6 );
    grpDirection->layout()->setMargin( 11 );
    grpDirectionLayout = new TQGridLayout( grpDirection->layout() );
    grpDirectionLayout->setAlignment( TQt::AlignTop );

    optAscending = new TQRadioButton( grpDirection, "optAscending" );

    grpDirectionLayout->addWidget( optAscending, 0, 0 );

    optDescending = new TQRadioButton( grpDirection, "optDescending" );

    grpDirectionLayout->addWidget( optDescending, 1, 0 );
    layout6->addWidget( grpDirection );

    DlgSortBaseLayout->addLayout( layout6, 0, 0 );
    languageChange();
    resize( TQSize(200, 176).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void DlgSortBase::languageChange()
{
    grpBase->setTitle( tr2i18n( "Based On" ) );
    TQToolTip::add( grpBase, tr2i18n( "Sort based on this column" ) );
    TQWhatsThis::add( grpBase, tr2i18n( "Select the column on which you want to base the sort" ) );
    optLang1->setText( tr2i18n( "&1 Language 1" ) );
    TQToolTip::add( optLang1, tr2i18n( "Sort based on this column" ) );
    TQWhatsThis::add( optLang1, tr2i18n( "Select to sort based on the left column" ) );
    optLang2->setText( tr2i18n( "&2 Language 2" ) );
    TQToolTip::add( optLang2, tr2i18n( "Sort based on this column" ) );
    TQWhatsThis::add( optLang2, tr2i18n( "Select to sort based on the right column" ) );
    grpDirection->setTitle( tr2i18n( "Direction" ) );
    TQToolTip::add( grpDirection, tr2i18n( "Sort in this direction" ) );
    TQWhatsThis::add( grpDirection, tr2i18n( "Select direction for the sort" ) );
    optAscending->setText( tr2i18n( "&Ascending" ) );
    TQToolTip::add( optAscending, tr2i18n( "Sort in this direction" ) );
    TQWhatsThis::add( optAscending, tr2i18n( "Select to sort in ascending order" ) );
    optDescending->setText( tr2i18n( "&Descending" ) );
    TQToolTip::add( optDescending, tr2i18n( "Sort in this direction" ) );
    TQWhatsThis::add( optDescending, tr2i18n( "Select to sort in descending order" ) );
}

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

TQMetaObject *DlgSortBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_DlgSortBase( "DlgSortBase", &DlgSortBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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