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

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

#include "kbackupdlgdecl.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqframe.h>
#include <ntqgroupbox.h>
#include <ntqlineedit.h>
#include <kpushbutton.h>
#include <ntqcheckbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

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

    TextLabel1 = new TQLabel( this, "TextLabel1" );
    TextLabel1->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignTop ) );
    Layout4->addWidget( TextLabel1 );
    kbackupdlgdeclLayout->addLayout( Layout4 );

    Line1 = new TQFrame( this, "Line1" );
    Line1->setFrameShape( TQFrame::HLine );
    Line1->setFrameShadow( TQFrame::Raised );
    Line1->setFrameShape( TQFrame::HLine );
    kbackupdlgdeclLayout->addWidget( Line1 );

    GroupBox1 = new TQGroupBox( this, "GroupBox1" );
    GroupBox1->setColumnLayout(0, TQt::Vertical );
    GroupBox1->layout()->setSpacing( 6 );
    GroupBox1->layout()->setMargin( 11 );
    GroupBox1Layout = new TQVBoxLayout( GroupBox1->layout() );
    GroupBox1Layout->setAlignment( TQt::AlignTop );

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

    lblMountPoint = new TQLabel( GroupBox1, "lblMountPoint" );
    Layout42->addWidget( lblMountPoint );

    txtMountPoint = new TQLineEdit( GroupBox1, "txtMountPoint" );
    Layout42->addWidget( txtMountPoint );

    chooseButton = new KPushButton( GroupBox1, "chooseButton" );
    Layout42->addWidget( chooseButton );
    GroupBox1Layout->addLayout( Layout42 );

    mountCheckBox = new TQCheckBox( GroupBox1, "mountCheckBox" );
    GroupBox1Layout->addWidget( mountCheckBox );
    Spacer17 = new TQSpacerItem( 0, 24, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    GroupBox1Layout->addItem( Spacer17 );
    kbackupdlgdeclLayout->addWidget( GroupBox1 );

    Layout44 = new TQHBoxLayout( 0, 0, 6, "Layout44"); 
    Spacer1 = new TQSpacerItem( 455, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout44->addItem( Spacer1 );

    btnOK = new KPushButton( this, "btnOK" );
    btnOK->setAutoDefault( true );
    btnOK->setDefault( true );
    Layout44->addWidget( btnOK );

    btnCancel = new KPushButton( this, "btnCancel" );
    btnCancel->setAutoDefault( true );
    Layout44->addWidget( btnCancel );
    kbackupdlgdeclLayout->addLayout( Layout44 );
    languageChange();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void kbackupdlgdecl::languageChange()
{
    setCaption( tr2i18n( "Backup" ) );
    TextLabel1->setText( tr2i18n( "Use this dialog to backup your data. \n"
"\n"
"Please make sure you have a disk inserted and that the drive is ready. Then choose the mount point from either the Choose button or by entering the path in the available box.\n"
"\n"
"Click OK to perform the backup. If your system does not use an automounter, make sure you mark the checkbox below to \"mount this directory before backing up.\"" ) );
    GroupBox1->setTitle( tr2i18n( "Device options" ) );
    lblMountPoint->setText( tr2i18n( "Mount Point:" ) );
    chooseButton->setText( tr2i18n( "Choose..." ) );
    mountCheckBox->setText( tr2i18n( "Mount this directory before backing up." ) );
    btnOK->setText( tr2i18n( "OK" ) );
    btnCancel->setText( tr2i18n( "Cancel" ) );
}

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

TQMetaObject *kbackupdlgdecl::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_kbackupdlgdecl( "kbackupdlgdecl", &kbackupdlgdecl::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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