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

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

#include "cvsupdatetodlgs.h"

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

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

    buttonGroup1 = new TQButtonGroup( this, "buttonGroup1" );
    buttonGroup1->setFrameShape( TQButtonGroup::NoFrame );
    buttonGroup1->setFrameShadow( TQButtonGroup::Plain );
    buttonGroup1->setColumnLayout(0, TQt::Vertical );
    buttonGroup1->layout()->setSpacing( 6 );
    buttonGroup1->layout()->setMargin( 11 );
    buttonGroup1Layout = new TQGridLayout( buttonGroup1->layout() );
    buttonGroup1Layout->setAlignment( TQt::AlignTop );

    dateRadioButton = new TQRadioButton( buttonGroup1, "dateRadioButton" );

    buttonGroup1Layout->addMultiCellWidget( dateRadioButton, 2, 2, 0, 1 );

    tagRadioButton = new TQRadioButton( buttonGroup1, "tagRadioButton" );
    tagRadioButton->setChecked( true );

    buttonGroup1Layout->addMultiCellWidget( tagRadioButton, 0, 0, 0, 1 );

    tagCombo = new KComboBox( false, buttonGroup1, "tagCombo" );
    tagCombo->setEditable( true );

    buttonGroup1Layout->addWidget( tagCombo, 1, 1 );
    spacer2 = new TQSpacerItem( 40, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    buttonGroup1Layout->addItem( spacer2, 1, 0 );

    dateLineEdit = new KLineEdit( buttonGroup1, "dateLineEdit" );

    buttonGroup1Layout->addWidget( dateLineEdit, 3, 1 );
    spacer2_2 = new TQSpacerItem( 40, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    buttonGroup1Layout->addItem( spacer2_2, 3, 0 );

    CVSUpdateToDlgSLayout->addWidget( buttonGroup1, 0, 0 );

    layout5 = new TQGridLayout( 0, 1, 1, 0, 6, "layout5"); 

    cancelButton = new KPushButton( this, "cancelButton" );
    cancelButton->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, cancelButton->sizePolicy().hasHeightForWidth() ) );

    layout5->addWidget( cancelButton, 0, 2 );
    spacer1 = new TQSpacerItem( 295, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout5->addItem( spacer1, 0, 0 );

    okButton = new KPushButton( this, "okButton" );
    okButton->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, okButton->sizePolicy().hasHeightForWidth() ) );
    okButton->setAutoDefault( true );
    okButton->setDefault( true );

    layout5->addWidget( okButton, 0, 1 );

    CVSUpdateToDlgSLayout->addLayout( layout5, 1, 0 );
    languageChange();
    resize( TQSize(499, 213).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

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

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void CVSUpdateToDlgS::languageChange()
{
    setCaption( tr2i18n( "CVS Update" ) );
    buttonGroup1->setTitle( TQString::null );
    dateRadioButton->setText( tr2i18n( "Update to &date ('yyyy-mm-dd'):" ) );
    tagRadioButton->setText( tr2i18n( "Update to &tag/branch:" ) );
    cancelButton->setText( tr2i18n( "&Cancel" ) );
    okButton->setText( tr2i18n( "&OK" ) );
}

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

TQMetaObject *CVSUpdateToDlgS::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_CVSUpdateToDlgS( "CVSUpdateToDlgS", &CVSUpdateToDlgS::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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