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

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

#include "base_k3bmovixoptionswidget.h"

#include <ntqvariant.h>
#include <kcombobox.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqcheckbox.h>
#include <ntqlineedit.h>
#include <ntqspinbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    groupBox2 = new TQGroupBox( this, "groupBox2" );
    groupBox2->setFrameShape( TQGroupBox::GroupBoxPanel );
    groupBox2->setFrameShadow( TQGroupBox::Sunken );
    groupBox2->setColumnLayout(0, TQt::Vertical );
    groupBox2->layout()->setSpacing( 6 );
    groupBox2->layout()->setMargin( 11 );
    groupBox2Layout = new TQGridLayout( groupBox2->layout() );
    groupBox2Layout->setAlignment( TQt::AlignTop );

    textLabel2 = new TQLabel( groupBox2, "textLabel2" );

    groupBox2Layout->addWidget( textLabel2, 0, 0 );

    m_comboSubtitleFontset = new KComboBox( false, groupBox2, "m_comboSubtitleFontset" );

    groupBox2Layout->addWidget( m_comboSubtitleFontset, 0, 1 );

    textLabel7 = new TQLabel( groupBox2, "textLabel7" );

    groupBox2Layout->addWidget( textLabel7, 5, 0 );

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

    m_checkRandomPlay = new TQCheckBox( groupBox2, "m_checkRandomPlay" );
    layout1->addWidget( m_checkRandomPlay );

    m_checkNoDma = new TQCheckBox( groupBox2, "m_checkNoDma" );
    layout1->addWidget( m_checkNoDma );

    groupBox2Layout->addMultiCellLayout( layout1, 3, 3, 0, 1 );

    m_editUnwantedMplayerOptions = new TQLineEdit( groupBox2, "m_editUnwantedMplayerOptions" );

    groupBox2Layout->addWidget( m_editUnwantedMplayerOptions, 5, 1 );

    m_editAdditionalMplayerOptions = new TQLineEdit( groupBox2, "m_editAdditionalMplayerOptions" );

    groupBox2Layout->addWidget( m_editAdditionalMplayerOptions, 4, 1 );

    textLabel6 = new TQLabel( groupBox2, "textLabel6" );

    groupBox2Layout->addWidget( textLabel6, 4, 0 );

    textLabel3 = new TQLabel( groupBox2, "textLabel3" );

    groupBox2Layout->addWidget( textLabel3, 2, 0 );

    m_spinLoop = new TQSpinBox( groupBox2, "m_spinLoop" );
    m_spinLoop->setValue( 1 );

    groupBox2Layout->addWidget( m_spinLoop, 2, 1 );

    m_labelAudioBackground = new TQLabel( groupBox2, "m_labelAudioBackground" );

    groupBox2Layout->addWidget( m_labelAudioBackground, 1, 0 );

    m_comboAudioBackground = new KComboBox( false, groupBox2, "m_comboAudioBackground" );

    groupBox2Layout->addWidget( m_comboAudioBackground, 1, 1 );
    Form1Layout->addWidget( groupBox2 );

    groupBox3 = new TQGroupBox( this, "groupBox3" );
    groupBox3->setColumnLayout(0, TQt::Vertical );
    groupBox3->layout()->setSpacing( 6 );
    groupBox3->layout()->setMargin( 11 );
    groupBox3Layout = new TQGridLayout( groupBox3->layout() );
    groupBox3Layout->setAlignment( TQt::AlignTop );

    m_labelKeyboardLayout = new TQLabel( groupBox3, "m_labelKeyboardLayout" );

    groupBox3Layout->addWidget( m_labelKeyboardLayout, 1, 0 );

    textLabel1 = new TQLabel( groupBox3, "textLabel1" );

    groupBox3Layout->addWidget( textLabel1, 0, 0 );

    m_comboBootMessageLanguage = new KComboBox( false, groupBox3, "m_comboBootMessageLanguage" );

    groupBox3Layout->addWidget( m_comboBootMessageLanguage, 0, 1 );

    textLabel5 = new TQLabel( groupBox3, "textLabel5" );

    groupBox3Layout->addWidget( textLabel5, 2, 0 );

    m_comboDefaultBootLabel = new KComboBox( false, groupBox3, "m_comboDefaultBootLabel" );

    groupBox3Layout->addWidget( m_comboDefaultBootLabel, 2, 1 );

    m_comboKeyboardLayout = new KComboBox( false, groupBox3, "m_comboKeyboardLayout" );

    groupBox3Layout->addWidget( m_comboKeyboardLayout, 1, 1 );
    Form1Layout->addWidget( groupBox3 );

    groupBox1 = new TQGroupBox( this, "groupBox1" );
    groupBox1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 1, groupBox1->sizePolicy().hasHeightForWidth() ) );
    groupBox1->setColumnLayout(0, TQt::Vertical );
    groupBox1->layout()->setSpacing( 6 );
    groupBox1->layout()->setMargin( 11 );
    groupBox1Layout = new TQHBoxLayout( groupBox1->layout() );
    groupBox1Layout->setAlignment( TQt::AlignTop );

    m_checkEject = new TQCheckBox( groupBox1, "m_checkEject" );
    groupBox1Layout->addWidget( m_checkEject );

    m_checkShutdown = new TQCheckBox( groupBox1, "m_checkShutdown" );
    groupBox1Layout->addWidget( m_checkShutdown );

    m_checkReboot = new TQCheckBox( groupBox1, "m_checkReboot" );
    groupBox1Layout->addWidget( m_checkReboot );
    Form1Layout->addWidget( groupBox1 );
    languageChange();

    // signals and slots connections
    connect( m_checkShutdown, TQ_SIGNAL( toggled(bool) ), m_checkReboot, TQ_SLOT( setDisabled(bool) ) );
    connect( m_checkReboot, TQ_SIGNAL( toggled(bool) ), m_checkShutdown, TQ_SLOT( setDisabled(bool) ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void base_K3bMovixOptionsWidget::languageChange()
{
    groupBox2->setTitle( tr2i18n( "Playback Settings" ) );
    textLabel2->setText( tr2i18n( "MPlayer subtitle fontset:" ) );
    TQToolTip::add( m_comboSubtitleFontset, tr2i18n( "Select the font to be used to render subtitles" ) );
    textLabel7->setText( tr2i18n( "Unwanted MPlayer options:" ) );
    TQWhatsThis::add( textLabel7, TQString::null );
    m_checkRandomPlay->setText( tr2i18n( "Pla&y files randomly" ) );
    TQToolTip::add( m_checkRandomPlay, tr2i18n( "The files are played in random order" ) );
    TQWhatsThis::add( m_checkRandomPlay, tr2i18n( "<p>If this option is checked the order in which the files are played is determined randomly every time it is played." ) );
    m_checkNoDma->setText( tr2i18n( "&Do not use DMA" ) );
    TQToolTip::add( m_checkNoDma, tr2i18n( "Do not use DMA for media access" ) );
    TQWhatsThis::add( m_checkNoDma, tr2i18n( "<p>If this option is checked the resulting eMovix CD/DVD will not use DMA for accessing the drive. This will slow down reading from the CD/DVD but may be necessary on some systems that do not support DMA.</p>" ) );
    TQToolTip::add( m_editUnwantedMplayerOptions, tr2i18n( "MPlayer options you want to be sure MPlayer will not use" ) );
    TQWhatsThis::add( m_editUnwantedMplayerOptions, tr2i18n( "<p>Here one can specify MPlayer options that should never be used.\n"
"<p>They have to be separated by spaces:\n"
"<pre>opt1 opt2 opt3</pre>" ) );
    TQToolTip::add( m_editAdditionalMplayerOptions, tr2i18n( "Additional MPlayer options" ) );
    TQWhatsThis::add( m_editAdditionalMplayerOptions, tr2i18n( "<p>MPlayer options that should be used in any case.\n"
"<p>They have to be separated by spaces:\n"
"<pre>opt1 opt2 opt3</pre>" ) );
    textLabel6->setText( tr2i18n( "Additional MPlayer options:" ) );
    textLabel3->setText( tr2i18n( "Loop playlist:" ) );
    m_spinLoop->setSuffix( tr2i18n( " time(s)" ) );
    m_spinLoop->setSpecialValueText( tr2i18n( "infinity" ) );
    TQToolTip::add( m_spinLoop, tr2i18n( "How many times should the playlist be looped" ) );
    m_labelAudioBackground->setText( tr2i18n( "Audio Player Background:" ) );
    TQToolTip::add( m_comboAudioBackground, tr2i18n( "Background video to show during audio playback" ) );
    TQWhatsThis::add( m_comboAudioBackground, tr2i18n( "<p><b>Audio Player Background</b>\n"
"<p>During audio playback normally the screen would be black. However, if a background movie has been selected, eMovix will display it during playback.\n"
"<p>Additional background movies can be installed. However, this is not as simple as a few mouse clicks. The background movies are stored in the emovix shared data folder (mostly <i>/usr/share/emovix</i> or <i>/usr/local/share/emovix</i>) under <em>backgrounds</em>. So to add a background one has to copy the file to that folder." ) );
    groupBox3->setTitle( tr2i18n( "Startup Behavior" ) );
    m_labelKeyboardLayout->setText( tr2i18n( "Keyboard Layout:" ) );
    textLabel1->setText( tr2i18n( "eMovix boot messages language:" ) );
    TQToolTip::add( m_comboBootMessageLanguage, tr2i18n( "Select the language of the eMovix help screens" ) );
    textLabel5->setText( tr2i18n( "Default boot label:" ) );
    TQToolTip::add( m_comboDefaultBootLabel, tr2i18n( "Select the default Linux kernel configuration" ) );
    TQWhatsThis::add( m_comboDefaultBootLabel, tr2i18n( "<p><b>eMovix Boot Labels</b>\n"
"<p>eMovix provides are variety or different boot configurations which can be selected at boot time via a boot label (compare Lilo or Grub). The many different boot configurations mainly influence the Video output.\n"
"<p>The <b>default</b>, <b>movix</b>, or <b>MoviX</b> labels start a general Vesa video driver.\n"
"<p>The <b>TV</b> labels can be used to direct video to the TV output of the graphic board. eMovix provides TVout drivers for different brands of graphic boards.\n"
"<p>The <b>FB</b> labels refer to configurations that start a Frame Buffer driver in different screen resolutions.\n"
"<p>The <b>AA</b> labels make eMovix output the video through the Ascii-Art library which displays the picture in text mode through the usage of simple Acsii characters.\n"
"<p>The <b>hd</b> label makes eMovix boot from the local harddisk instead of the medium. This can be used to prevent accidental starting of an eMovix medium.\n"
"<p>The <b>floppy</b> label makes eMovix boot from the local floppy drive instead of the medium." ) );
    TQToolTip::add( m_comboKeyboardLayout, tr2i18n( "Select the layout of the keyboard" ) );
    TQWhatsThis::add( m_comboKeyboardLayout, tr2i18n( "<p>The keyboard layout selected here will be used for the eMovix commands like controlling the media player." ) );
    groupBox1->setTitle( tr2i18n( "Behavior After Playing" ) );
    m_checkEject->setText( tr2i18n( "E&ject disk" ) );
    TQToolTip::add( m_checkEject, tr2i18n( "Eject the disk after playing has finished" ) );
    TQWhatsThis::add( m_checkEject, tr2i18n( "<p>If this option is checked the disk will be ejected after MPlayer has finished." ) );
    m_checkShutdown->setText( tr2i18n( "Sh&utdown" ) );
    TQToolTip::add( m_checkShutdown, tr2i18n( "Shutdown after playing has finished" ) );
    TQWhatsThis::add( m_checkShutdown, tr2i18n( "<p>If this option is checked the PC will be shut down after MPlayer has finished playing." ) );
    m_checkReboot->setText( tr2i18n( "Re&boot" ) );
    TQToolTip::add( m_checkReboot, tr2i18n( "Reboot after playing has finished" ) );
    TQWhatsThis::add( m_checkReboot, tr2i18n( "<p>If this option is checked the PC will be rebooted after MPlayer has finished playing." ) );
}

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

TQMetaObject *base_K3bMovixOptionsWidget::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_base_K3bMovixOptionsWidget( "base_K3bMovixOptionsWidget", &base_K3bMovixOptionsWidget::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

bool base_K3bMovixOptionsWidget::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_K3bMovixOptionsWidget::tqt_emit( int _id, TQUObject* _o )
{
    return TQWidget::tqt_emit(_id,_o);
}
#ifndef TQT_NO_PROPERTIES

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

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