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

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

#include "base_k3bdataimagesettings.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqlineedit.h>
#include <ntqcombobox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a base_K3bDataImageSettings as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
base_K3bDataImageSettings::base_K3bDataImageSettings( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "base_K3bDataImageSetings" );
    base_K3bDataImageSetingsLayout = new TQVBoxLayout( this, 0, 6, "base_K3bDataImageSetingsLayout"); 

    m_groupVolumeName = new TQGroupBox( this, "m_groupVolumeName" );
    m_groupVolumeName->setColumnLayout(0, TQt::Vertical );
    m_groupVolumeName->layout()->setSpacing( 6 );
    m_groupVolumeName->layout()->setMargin( 11 );
    m_groupVolumeNameLayout = new TQHBoxLayout( m_groupVolumeName->layout() );
    m_groupVolumeNameLayout->setAlignment( TQt::AlignTop );

    m_editVolumeName = new TQLineEdit( m_groupVolumeName, "m_editVolumeName" );
    m_editVolumeName->setMaxLength( 32 );
    m_groupVolumeNameLayout->addWidget( m_editVolumeName );

    m_buttonMoreVolDescFields = new TQPushButton( m_groupVolumeName, "m_buttonMoreVolDescFields" );
    m_groupVolumeNameLayout->addWidget( m_buttonMoreVolDescFields );
    base_K3bDataImageSetingsLayout->addWidget( m_groupVolumeName );

    m_groupFileSystem = new TQGroupBox( this, "m_groupFileSystem" );
    m_groupFileSystem->setColumnLayout(0, TQt::Vertical );
    m_groupFileSystem->layout()->setSpacing( 6 );
    m_groupFileSystem->layout()->setMargin( 11 );
    m_groupFileSystemLayout = new TQHBoxLayout( m_groupFileSystem->layout() );
    m_groupFileSystemLayout->setAlignment( TQt::AlignTop );

    m_comboFilesystems = new TQComboBox( false, m_groupFileSystem, "m_comboFilesystems" );
    m_comboFilesystems->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 1, 0, m_comboFilesystems->sizePolicy().hasHeightForWidth() ) );
    m_groupFileSystemLayout->addWidget( m_comboFilesystems );

    m_buttonCustomFilesystems = new TQPushButton( m_groupFileSystem, "m_buttonCustomFilesystems" );
    m_groupFileSystemLayout->addWidget( m_buttonCustomFilesystems );
    base_K3bDataImageSetingsLayout->addWidget( m_groupFileSystem );

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

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

    m_comboSymlinkHandling = new TQComboBox( false, m_groupSymlinks, "m_comboSymlinkHandling" );
    m_comboSymlinkHandling->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 1, 0, m_comboSymlinkHandling->sizePolicy().hasHeightForWidth() ) );
    m_groupSymlinksLayout->addWidget( m_comboSymlinkHandling );
    layout4->addWidget( m_groupSymlinks );

    m_groupWhitespace = new TQGroupBox( this, "m_groupWhitespace" );
    m_groupWhitespace->setColumnLayout(0, TQt::Vertical );
    m_groupWhitespace->layout()->setSpacing( 6 );
    m_groupWhitespace->layout()->setMargin( 11 );
    m_groupWhitespaceLayout = new TQHBoxLayout( m_groupWhitespace->layout() );
    m_groupWhitespaceLayout->setAlignment( TQt::AlignTop );

    m_comboSpaceHandling = new TQComboBox( false, m_groupWhitespace, "m_comboSpaceHandling" );
    m_comboSpaceHandling->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 1, 0, m_comboSpaceHandling->sizePolicy().hasHeightForWidth() ) );
    m_groupWhitespaceLayout->addWidget( m_comboSpaceHandling );

    m_editReplace = new TQLineEdit( m_groupWhitespace, "m_editReplace" );
    m_editReplace->setEnabled( false );
    m_editReplace->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, m_editReplace->sizePolicy().hasHeightForWidth() ) );
    m_groupWhitespaceLayout->addWidget( m_editReplace );
    layout4->addWidget( m_groupWhitespace );
    base_K3bDataImageSetingsLayout->addLayout( layout4 );
    spacer1 = new TQSpacerItem( 21, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    base_K3bDataImageSetingsLayout->addItem( spacer1 );
    languageChange();

    // tab order
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void base_K3bDataImageSettings::languageChange()
{
    setCaption( tr2i18n( "Data Image Settings" ) );
    m_groupVolumeName->setTitle( tr2i18n( "Volume Name" ) );
    m_buttonMoreVolDescFields->setText( tr2i18n( "&More fields..." ) );
    m_groupFileSystem->setTitle( tr2i18n( "File System" ) );
    TQToolTip::add( m_comboFilesystems, tr2i18n( "File system presets" ) );
    m_buttonCustomFilesystems->setText( tr2i18n( "&Custom..." ) );
    m_groupSymlinks->setTitle( tr2i18n( "Symbolic Links" ) );
    m_comboSymlinkHandling->clear();
    m_comboSymlinkHandling->insertItem( tr2i18n( "No Change" ) );
    m_comboSymlinkHandling->insertItem( tr2i18n( "Discard broken symlinks" ) );
    m_comboSymlinkHandling->insertItem( tr2i18n( "Discard all symlinks" ) );
    m_comboSymlinkHandling->insertItem( tr2i18n( "Follow symlinks" ) );
    TQToolTip::add( m_comboSymlinkHandling, tr2i18n( "Symbolic link handling in the project" ) );
    TQWhatsThis::add( m_comboSymlinkHandling, tr2i18n( "<p>K3b can create ISO9660 filesystems that contain symlinks if the Rock Ridge extensions are enabled (they are by default). You can change the way symlinks are handled in a K3b project.\n"
"\n"
"<p><b>No Change</b><br>\n"
"Symlinks are used as they have been added to the project. \n"
"\n"
"<p><b>Discard broken symlinks</b><br>\n"
"K3b will discard all symbolic links that do not point to a file inside the project. That includes all links to absolute paths like '/home/myhome/testfile'.\n"
"\n"
"<p><b>Discard all symlinks</b><br>\n"
"K3b will discard all symbolic links that have been added to the project; meaning that the resulting file system will have no links at all.\n"
"\n"
"<p><b>Follow symlinks</b><br>\n"
"Each symbolic link in the project will be replaced with the contents of the file it is pointing to. Thus, the resulting filesystem will not contain any symbolic links.<br>\n"
"Be aware that in case Rock Ridge extensions are disabled (which is not recommended) symbolic links are always followed because ISO9660 does not support symbolic links.\n"
"\n"
"<p><b>Caution:</b> Symbolic links require Rock Ridge extensions." ) );
    m_groupWhitespace->setTitle( tr2i18n( "White space handling" ) );
    m_comboSpaceHandling->clear();
    m_comboSpaceHandling->insertItem( tr2i18n( "No Change" ) );
    m_comboSpaceHandling->insertItem( tr2i18n( "Strip" ) );
    m_comboSpaceHandling->insertItem( tr2i18n( "Extended Strip" ) );
    m_comboSpaceHandling->insertItem( tr2i18n( "Replace" ) );
    TQToolTip::add( m_comboSpaceHandling, tr2i18n( "Handling of spaces in filenames" ) );
    TQWhatsThis::add( m_comboSpaceHandling, tr2i18n( "<p><b>No Change</b><br>\n"
"If this option is checked, K3b will leave all spaces in filenames as they are.\n"
"<p><b>Strip</b><br>\n"
"If this option is checked, K3b will remove all spaces from all filenames.<br>\n"
"Example: 'my good file.ext' becomes 'mygoodfile.ext'\n"
"<p><b>Extended Strip</b><br>\n"
"If this option is checked K3b will remove all spaces in all filenames and capitalize all letters following a space.<br>\n"
"Example: 'my good file.ext' becomes 'myGoodFile.ext'\n"
"<p><b>Replace</b><br>\n"
"If this option is checked, K3b will replace all spaces in all filenames with the specified characters.<br>\n"
"Example: 'my good file.ext' becomes 'my_good_file.ext'" ) );
    m_editReplace->setText( tr2i18n( "_" ) );
    TQToolTip::add( m_editReplace, tr2i18n( "The string to replace spaces with" ) );
}

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

TQMetaObject *base_K3bDataImageSettings::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_base_K3bDataImageSettings( "base_K3bDataImageSettings", &base_K3bDataImageSettings::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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

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