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

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

#include "base_k3bmiscoptiontab.h"

#include <ntqvariant.h>
#include <k3bintmapcombobox.h>
#include <kcombobox.h>
#include <kurlrequester.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqcheckbox.h>
#include <ntqlabel.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    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 );

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

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

    textLabel1_2 = new TQLabel( groupBox1, "textLabel1_2" );
    layout2->addWidget( textLabel1_2 );

    m_editTempDir = new KURLRequester( groupBox1, "m_editTempDir" );
    layout2->addWidget( m_editTempDir );
    groupBox1Layout->addLayout( layout2 );
    base_K3bMiscOptionTabLayout->addWidget( groupBox1 );

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

    m_checkSystemConfig = new TQCheckBox( groupBox3, "m_checkSystemConfig" );
    groupBox3Layout->addWidget( m_checkSystemConfig );

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

    textLabel1 = new TQLabel( groupBox3, "textLabel1" );
    layout1->addWidget( textLabel1 );

    m_comboAudioOutputSystem = new KComboBox( false, groupBox3, "m_comboAudioOutputSystem" );
    layout1->addWidget( m_comboAudioOutputSystem );

    m_buttonConfigureAudioOutput = new TQPushButton( groupBox3, "m_buttonConfigureAudioOutput" );
    layout1->addWidget( m_buttonConfigureAudioOutput );
    groupBox3Layout->addLayout( layout1 );
    base_K3bMiscOptionTabLayout->addWidget( groupBox3 );

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

    m_checkShowProgressOSD = new TQCheckBox( groupBox2, "m_checkShowProgressOSD" );
    groupBox2Layout->addWidget( m_checkShowProgressOSD );

    m_checkHideMainWindowWhileWriting = new TQCheckBox( groupBox2, "m_checkHideMainWindowWhileWriting" );
    groupBox2Layout->addWidget( m_checkHideMainWindowWhileWriting );

    m_checkShowSplash = new TQCheckBox( groupBox2, "m_checkShowSplash" );
    groupBox2Layout->addWidget( m_checkShowSplash );

    m_checkKonqiIntegration = new TQCheckBox( groupBox2, "m_checkKonqiIntegration" );
    groupBox2Layout->addWidget( m_checkKonqiIntegration );

    m_checkKeepDialogsOpen = new TQCheckBox( groupBox2, "m_checkKeepDialogsOpen" );
    groupBox2Layout->addWidget( m_checkKeepDialogsOpen );

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

    textLabel1_3 = new TQLabel( groupBox2, "textLabel1_3" );
    layout4->addWidget( textLabel1_3 );

    m_comboActionDialogSettings = new K3bIntMapComboBox( groupBox2, "m_comboActionDialogSettings" );
    layout4->addWidget( m_comboActionDialogSettings );
    groupBox2Layout->addLayout( layout4 );
    base_K3bMiscOptionTabLayout->addWidget( groupBox2 );
    spacer1 = new TQSpacerItem( 31, 0, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    base_K3bMiscOptionTabLayout->addItem( spacer1 );
    languageChange();

    // buddies
    textLabel1_3->setBuddy( m_comboActionDialogSettings );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void base_K3bMiscOptionTab::languageChange()
{
    groupBox1->setTitle( tr2i18n( "Misc" ) );
    m_checkSaveOnExit->setText( tr2i18n( "&Ask to save projects on exit" ) );
    TQToolTip::add( m_checkSaveOnExit, tr2i18n( "Ask to save modified projects on exit" ) );
    textLabel1_2->setText( tr2i18n( "Default Temporary Directory:" ) );
    TQToolTip::add( m_editTempDir, tr2i18n( "The directory where K3b stores temporary files" ) );
    TQWhatsThis::add( m_editTempDir, tr2i18n( "<p>This is the default temporary directory. This is where K3b will store temporary files like iso images or decoded audio files.\n"
"<p>Be aware that the temporary directory may also be changed in every project burn dialog." ) );
    groupBox3->setTitle( tr2i18n( "System" ) );
    m_checkSystemConfig->setText( tr2i18n( "&Check system configuration" ) );
    TQToolTip::add( m_checkSystemConfig, tr2i18n( "Check system Configuration" ) );
    TQWhatsThis::add( m_checkSystemConfig, tr2i18n( "<p>If this option is checked K3b will check the system configuration for any problems on startup and when the the user changes the settings." ) );
    textLabel1->setText( tr2i18n( "Used audio output system:" ) );
    m_buttonConfigureAudioOutput->setText( tr2i18n( "Confi&gure..." ) );
    groupBox2->setTitle( tr2i18n( "GUI Settings" ) );
    m_checkShowProgressOSD->setText( tr2i18n( "Show progress &OSD" ) );
    TQWhatsThis::add( m_checkShowProgressOSD, tr2i18n( "<p>If this option is checked K3b will display the progress in an OSD which always stays on top of all other windows." ) );
    m_checkHideMainWindowWhileWriting->setText( tr2i18n( "Hide &main window while writing" ) );
    TQToolTip::add( m_checkHideMainWindowWhileWriting, tr2i18n( "Hide the main window while displaying the progress window" ) );
    TQWhatsThis::add( m_checkHideMainWindowWhileWriting, tr2i18n( "<p>If this option is checked K3b will hide the main window while displaying the progress dialog." ) );
    m_checkShowSplash->setText( tr2i18n( "Show splash screen" ) );
    TQToolTip::add( m_checkShowSplash, tr2i18n( "Show the splash screen when K3b starts" ) );
    m_checkKonqiIntegration->setText( tr2i18n( "E&nable Konqueror integration" ) );
    TQToolTip::add( m_checkKonqiIntegration, tr2i18n( "Enable integration of K3b actions into Konqueror menus" ) );
    TQWhatsThis::add( m_checkKonqiIntegration, tr2i18n( "<p>K3b can integrate itself into Konqueror. This integration allows to start K3b from the context menu in the file manager.\n"
"<p>A typical example is: in order to burn a folder to a data CD one clicks on the folder using the right mouse button. In the appearing context menu one selects \"Create Data CD with K3b...\" and a new K3b project containing the folder is created.\n"
"<p><em>Konqueror integration is not enabled by default to prevent unwanted cluttering of the Konqueror menus.</em>" ) );
    m_checkKeepDialogsOpen->setText( tr2i18n( "&Keep action dialogs open" ) );
    TQToolTip::add( m_checkKeepDialogsOpen, tr2i18n( "Do not close action dialogs after finishing the process" ) );
    TQWhatsThis::add( m_checkKeepDialogsOpen, tr2i18n( "<p>If this option is checked K3b will not close action dialogs such as the CD Copy dialog after the process has been finished. It will be kept open to start a new process like copying another CD." ) );
    textLabel1_3->setText( tr2i18n( "&Default action dialog settings:" ) );
    TQToolTip::add( m_comboActionDialogSettings, tr2i18n( "Settings to load when opening an action dialog" ) );
}

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

TQMetaObject *base_K3bMiscOptionTab::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_base_K3bMiscOptionTab( "base_K3bMiscOptionTab", &base_K3bMiscOptionTab::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

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

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

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

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

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