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

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

#include "svn_logviewoptiondlgbase.h"

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

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

    pushButton1 = new TQPushButton( this, "pushButton1" );

    SvnLogViewOptionDlgBaseLayout->addWidget( pushButton1, 3, 0 );

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

    SvnLogViewOptionDlgBaseLayout->addMultiCellWidget( checkBox1, 2, 2, 0, 1 );

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

    radio5 = new TQRadioButton( buttonGroup2_2, "radio5" );

    buttonGroup2_2Layout->addWidget( radio5, 0, 0 );

    radio6 = new TQRadioButton( buttonGroup2_2, "radio6" );

    buttonGroup2_2Layout->addWidget( radio6, 1, 0 );

    comboBox2 = new TQComboBox( false, buttonGroup2_2, "comboBox2" );

    buttonGroup2_2Layout->addWidget( comboBox2, 1, 1 );

    intInput2 = new KIntNumInput( buttonGroup2_2, "intInput2" );
    intInput2->setMinValue( 0 );

    buttonGroup2_2Layout->addWidget( intInput2, 0, 1 );

    SvnLogViewOptionDlgBaseLayout->addMultiCellWidget( buttonGroup2_2, 1, 1, 0, 1 );

    pushButton2 = new TQPushButton( this, "pushButton2" );

    SvnLogViewOptionDlgBaseLayout->addWidget( pushButton2, 3, 1 );

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

    comboBox1 = new TQComboBox( false, buttonGroup2, "comboBox1" );

    buttonGroup2Layout->addWidget( comboBox1, 1, 1 );

    intInput1 = new KIntNumInput( buttonGroup2, "intInput1" );
    intInput1->setMinValue( 0 );

    buttonGroup2Layout->addWidget( intInput1, 0, 1 );

    radio3 = new TQRadioButton( buttonGroup2, "radio3" );

    buttonGroup2Layout->addWidget( radio3, 0, 0 );

    radio4 = new TQRadioButton( buttonGroup2, "radio4" );

    buttonGroup2Layout->addWidget( radio4, 1, 0 );

    SvnLogViewOptionDlgBaseLayout->addMultiCellWidget( buttonGroup2, 0, 0, 0, 1 );
    languageChange();
    resize( TQSize(449, 288).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

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

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void SvnLogViewOptionDlgBase::languageChange()
{
    setCaption( tr2i18n( "Subversion Log View" ) );
    pushButton1->setText( tr2i18n( "&OK" ) );
    checkBox1->setText( tr2i18n( "Do not show logs before branching point" ) );
    buttonGroup2_2->setTitle( tr2i18n( "End Revision" ) );
    radio5->setText( tr2i18n( "&By Revision Number" ) );
    radio6->setText( tr2i18n( "B&y Revision Specifier" ) );
    pushButton2->setText( tr2i18n( "C&ancel" ) );
    buttonGroup2->setTitle( tr2i18n( "Start Revision" ) );
    radio3->setText( tr2i18n( "&By Revision Number" ) );
    radio4->setText( tr2i18n( "B&y Revision Specifier" ) );
}

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

TQMetaObject *SvnLogViewOptionDlgBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_SvnLogViewOptionDlgBase( "SvnLogViewOptionDlgBase", &SvnLogViewOptionDlgBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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