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

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

#include "Options1.h"

#include <ntqvariant.h>
#include <kcombobox.h>
#include <klineedit.h>
#include <kactivelabel.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqcheckbox.h>
#include <ntqlabel.h>
#include <ntqspinbox.h>
#include <ntqframe.h>
#include <ntqcombobox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include "Options1.ui.h"

/*
 *  Constructs a Options1 as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
Options1::Options1( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "General" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, sizePolicy().hasHeightForWidth() ) );
    GeneralLayout = new TQVBoxLayout( this, 0, 6, "GeneralLayout"); 

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

    kcfg_ShowSplashscreen = new TQCheckBox( generalBox, "kcfg_ShowSplashscreen" );
    generalBoxLayout->addWidget( kcfg_ShowSplashscreen );

    kcfg_ShowTrayIcon = new TQCheckBox( generalBox, "kcfg_ShowTrayIcon" );
    generalBoxLayout->addWidget( kcfg_ShowTrayIcon );

    layout5 = new TQHBoxLayout( 0, 0, 6, "layout5"); 
    spacer3_2 = new TQSpacerItem( 16, 21, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout5->addItem( spacer3_2 );

    kcfg_AnimateTrayIcon = new TQCheckBox( generalBox, "kcfg_AnimateTrayIcon" );
    kcfg_AnimateTrayIcon->setEnabled( false );
    layout5->addWidget( kcfg_AnimateTrayIcon );
    generalBoxLayout->addLayout( layout5 );

    kcfg_ShowPlayerWindow = new TQCheckBox( generalBox, "kcfg_ShowPlayerWindow" );
    generalBoxLayout->addWidget( kcfg_ShowPlayerWindow );

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

    textLabel1 = new TQLabel( generalBox, "textLabel1" );
    layout4->addWidget( textLabel1 );

    kcfg_CoverPreviewSize = new TQSpinBox( generalBox, "kcfg_CoverPreviewSize" );
    kcfg_CoverPreviewSize->setMaxValue( 300 );
    kcfg_CoverPreviewSize->setMinValue( 50 );
    kcfg_CoverPreviewSize->setValue( 100 );
    layout4->addWidget( kcfg_CoverPreviewSize );
    spacer7 = new TQSpacerItem( 30, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout4->addItem( spacer7 );
    generalBoxLayout->addLayout( layout4 );

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

    textLabel1_2 = new TQLabel( generalBox, "textLabel1_2" );
    textLabel1_2->setMinimumSize( TQSize( 150, 0 ) );
    layout7->addWidget( textLabel1_2 );

    kComboBox_browser = new KComboBox( false, generalBox, "kComboBox_browser" );
    kComboBox_browser->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, kComboBox_browser->sizePolicy().hasHeightForWidth() ) );
    kComboBox_browser->setMinimumSize( TQSize( 150, 0 ) );
    layout7->addWidget( kComboBox_browser );
    spacer7_2 = new TQSpacerItem( 50, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout7->addItem( spacer7_2 );
    generalBoxLayout->addLayout( layout7 );

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

    checkBox_customBrowser = new TQCheckBox( generalBox, "checkBox_customBrowser" );
    checkBox_customBrowser->setEnabled( true );
    checkBox_customBrowser->setMinimumSize( TQSize( 150, 0 ) );
    layout8->addWidget( checkBox_customBrowser );

    kLineEdit_customBrowser = new KLineEdit( generalBox, "kLineEdit_customBrowser" );
    kLineEdit_customBrowser->setEnabled( false );
    kLineEdit_customBrowser->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, kLineEdit_customBrowser->sizePolicy().hasHeightForWidth() ) );
    kLineEdit_customBrowser->setMinimumSize( TQSize( 150, 0 ) );
    layout8->addWidget( kLineEdit_customBrowser );
    spacer7_2_3 = new TQSpacerItem( 50, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout8->addItem( spacer7_2_3 );
    generalBoxLayout->addLayout( layout8 );
    GeneralLayout->addWidget( generalBox );

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

    kcfg_UseScores = new TQCheckBox( componentsBox, "kcfg_UseScores" );
    kcfg_UseScores->setChecked( false );
    componentsBoxLayout->addWidget( kcfg_UseScores );

    kcfg_UseRatings = new TQCheckBox( componentsBox, "kcfg_UseRatings" );
    componentsBoxLayout->addWidget( kcfg_UseRatings );

    line1 = new TQFrame( componentsBox, "line1" );
    line1->setFrameShape( TQFrame::HLine );
    line1->setFrameShadow( TQFrame::Sunken );
    line1->setFrameShape( TQFrame::HLine );
    componentsBoxLayout->addWidget( line1 );

    moodbarHelpLabel = new KActiveLabel( componentsBox, "moodbarHelpLabel" );
    componentsBoxLayout->addWidget( moodbarHelpLabel );

    moodFrame = new TQFrame( componentsBox, "moodFrame" );
    moodFrame->setFrameShape( TQFrame::NoFrame );
    moodFrame->setFrameShadow( TQFrame::Raised );
    moodFrame->setLineWidth( 0 );
    moodFrame->setMargin( 0 );
    moodFrameLayout = new TQVBoxLayout( moodFrame, 0, 0, "moodFrameLayout"); 

    kcfg_ShowMoodbar = new TQCheckBox( moodFrame, "kcfg_ShowMoodbar" );
    kcfg_ShowMoodbar->setEnabled( true );
    kcfg_ShowMoodbar->setChecked( true );
    moodFrameLayout->addWidget( kcfg_ShowMoodbar );

    layout8_2_2 = new TQHBoxLayout( 0, 0, 6, "layout8_2_2"); 
    spacerMoodier = new TQSpacerItem( 16, 21, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout8_2_2->addItem( spacerMoodier );

    kcfg_MakeMoodier = new TQCheckBox( moodFrame, "kcfg_MakeMoodier" );
    kcfg_MakeMoodier->setEnabled( true );
    layout8_2_2->addWidget( kcfg_MakeMoodier );

    kcfg_AlterMood = new TQComboBox( false, moodFrame, "kcfg_AlterMood" );
    kcfg_AlterMood->setEnabled( false );
    layout8_2_2->addWidget( kcfg_AlterMood );
    spacer7_2_2_2 = new TQSpacerItem( 130, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout8_2_2->addItem( spacer7_2_2_2 );
    moodFrameLayout->addLayout( layout8_2_2 );

    layout7_2_2 = new TQHBoxLayout( 0, 0, 6, "layout7_2_2"); 
    spacerWithMusic = new TQSpacerItem( 16, 21, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout7_2_2->addItem( spacerWithMusic );

    kcfg_MoodsWithMusic = new TQCheckBox( moodFrame, "kcfg_MoodsWithMusic" );
    kcfg_MoodsWithMusic->setEnabled( true );
    layout7_2_2->addWidget( kcfg_MoodsWithMusic );
    moodFrameLayout->addLayout( layout7_2_2 );
    componentsBoxLayout->addWidget( moodFrame );
    GeneralLayout->addWidget( componentsBox );

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

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

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

    kcfg_AutoShowContextBrowser = new TQCheckBox( groupBox2, "kcfg_AutoShowContextBrowser" );
    groupBox2Layout->addWidget( kcfg_AutoShowContextBrowser );
    GeneralLayout->addWidget( groupBox2 );
    spacer5 = new TQSpacerItem( 20, 30, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    GeneralLayout->addItem( spacer5 );
    languageChange();
    resize( TQSize(431, 556).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( kcfg_ShowTrayIcon, TQ_SIGNAL( toggled(bool) ), kcfg_AnimateTrayIcon, TQ_SLOT( setEnabled(bool) ) );
    connect( checkBox_customBrowser, TQ_SIGNAL( toggled(bool) ), kComboBox_browser, TQ_SLOT( setDisabled(bool) ) );
    connect( checkBox_customBrowser, TQ_SIGNAL( toggled(bool) ), kLineEdit_customBrowser, TQ_SLOT( setEnabled(bool) ) );
    connect( kcfg_ShowMoodbar, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotUpdateMoodFrame() ) );
    connect( kcfg_MakeMoodier, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotUpdateMoodFrame() ) );

    // buddies
    textLabel1->setBuddy( kcfg_CoverPreviewSize );
    textLabel1_2->setBuddy( kComboBox_browser );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void Options1::languageChange()
{
    setCaption( tr2i18n( "General" ) );
    generalBox->setTitle( tr2i18n( "General Options" ) );
    kcfg_ShowSplashscreen->setText( tr2i18n( "Sho&w splash-screen on startup" ) );
    TQToolTip::add( kcfg_ShowSplashscreen, tr2i18n( "Check to enable the splashscreen during Amarok startup." ) );
    TQWhatsThis::add( kcfg_ShowSplashscreen, tr2i18n( "Check to enable the splashscreen during Amarok startup." ) );
    kcfg_ShowTrayIcon->setText( tr2i18n( "Show tray &icon" ) );
    TQToolTip::add( kcfg_ShowTrayIcon, tr2i18n( "Check to enable the Amarok system tray icon." ) );
    TQWhatsThis::add( kcfg_ShowTrayIcon, tr2i18n( "Check to enable the Amarok system tray icon." ) );
    kcfg_AnimateTrayIcon->setText( tr2i18n( "&Flash tray icon when playing" ) );
    TQToolTip::add( kcfg_AnimateTrayIcon, tr2i18n( "Check to animate the Amarok system tray icon." ) );
    TQWhatsThis::add( kcfg_AnimateTrayIcon, tr2i18n( "Check to animate the Amarok system tray icon." ) );
    kcfg_ShowPlayerWindow->setText( tr2i18n( "Show player window" ) );
    TQToolTip::add( kcfg_ShowPlayerWindow, tr2i18n( "Check to enable an extra player window." ) );
    TQWhatsThis::add( kcfg_ShowPlayerWindow, tr2i18n( "Check to enable an extra player window." ) );
    textLabel1->setText( tr2i18n( "Default si&ze for cover previews:" ) );
    TQToolTip::add( textLabel1, tr2i18n( "Size of the cover image in the context viewer in pixels." ) );
    TQWhatsThis::add( textLabel1, tr2i18n( "Size of the cover image in the context viewer in pixels." ) );
    kcfg_CoverPreviewSize->setSuffix( tr2i18n( "px" ) );
    TQToolTip::add( kcfg_CoverPreviewSize, tr2i18n( "Size of the cover images in the context viewer in pixels." ) );
    TQWhatsThis::add( kcfg_CoverPreviewSize, tr2i18n( "Size of the cover images in the context viewer in pixels." ) );
    textLabel1_2->setText( tr2i18n( "External web &browser:" ) );
    TQToolTip::add( kComboBox_browser, tr2i18n( "Choose the external web browser to be used by Amarok." ) );
    checkBox_customBrowser->setText( tr2i18n( "Use &another browser:" ) );
    TQToolTip::add( kLineEdit_customBrowser, tr2i18n( "Enter filename of external web browser." ) );
    componentsBox->setTitle( tr2i18n( "Components" ) );
    kcfg_UseScores->setText( tr2i18n( "Use &scores" ) );
    TQToolTip::add( kcfg_UseScores, tr2i18n( "Scores for tracks are calculated automatically, based on your listening habits." ) );
    kcfg_UseRatings->setText( tr2i18n( "Use ratings" ) );
    TQToolTip::add( kcfg_UseRatings, tr2i18n( "You can assign ratings to tracks manually, from 1 to 5 stars." ) );
    moodbarHelpLabel->setText( tr2i18n( "You need the moodbar package installed from your distro repositories to enable the moodbar feature." ) );
    kcfg_ShowMoodbar->setText( tr2i18n( "Use &moods" ) );
    TQToolTip::add( kcfg_ShowMoodbar, tr2i18n( "Displays a visual representation of the current track in the slider bar of the player window and a column in the playlist window." ) );
    TQWhatsThis::add( kcfg_ShowMoodbar, tr2i18n( "Displays a visual representation of the current track in the slider bar of the player window and a column in the playlist window." ) );
    kcfg_MakeMoodier->setText( tr2i18n( "Make m&oodier:" ) );
    TQToolTip::add( kcfg_MakeMoodier, tr2i18n( "When enabled, the hue distribution is quantised and respread evenly, giving a prettier but less meaningful output." ) );
    TQWhatsThis::add( kcfg_MakeMoodier, tr2i18n( "When enabled, the hue distribution is quantised and respread evenly, giving a prettier but less meaningful output." ) );
    kcfg_AlterMood->clear();
    kcfg_AlterMood->insertItem( tr2i18n( "Happy Like a Rainbow" ) );
    kcfg_AlterMood->insertItem( tr2i18n( "Angry as Hell" ) );
    kcfg_AlterMood->insertItem( tr2i18n( "Frozen in the Arctic" ) );
    kcfg_MoodsWithMusic->setText( tr2i18n( "Stor&e mood data files with music" ) );
    TQToolTip::add( kcfg_MoodsWithMusic, tr2i18n( "Enabling this option stores Mood data files with the music files. Disabling stores them in your home folder." ) );
    TQWhatsThis::add( kcfg_MoodsWithMusic, tr2i18n( "Enabling this option stores Mood data files with the music files. Namely, the mood file for /music/file.mp3 will be /music/file.mood.  Disabling stores them in your home folder." ) );
    groupBox2->setTitle( tr2i18n( "Playlist-Window Options" ) );
    kcfg_SavePlaylist->setText( tr2i18n( "&Remember current playlist on exit" ) );
    TQToolTip::add( kcfg_SavePlaylist, tr2i18n( "If checked, Amarok saves the current playlist on quit and restores it when restarted.<br>" ) );
    TQWhatsThis::add( kcfg_SavePlaylist, tr2i18n( "If checked, Amarok saves the current playlist on quit and restores it when restarted." ) );
    kcfg_RelativePlaylist->setText( tr2i18n( "Manually sa&ved playlists use relative path" ) );
    TQToolTip::add( kcfg_RelativePlaylist, tr2i18n( "If checked, Amarok uses a relative path for the tracks of manually saved playlists" ) );
    TQWhatsThis::add( kcfg_RelativePlaylist, tr2i18n( "If checked, Amarok uses a relative path for the tracks of manually saved playlists" ) );
    kcfg_AutoShowContextBrowser->setText( tr2i18n( "Switch to Context &Browser on track change" ) );
    TQToolTip::add( kcfg_AutoShowContextBrowser, tr2i18n( "Switch to the context browser, when playing a track.<br>" ) );
    TQWhatsThis::add( kcfg_AutoShowContextBrowser, tr2i18n( "Switch to the context browser, when playing a track." ) );
}

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

TQMetaObject *Options1::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_Options1( "Options1", &Options1::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* Options1::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 = {"slotUpdateMoodFrame", 0, 0 };
    static const TQUMethod slot_1 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "slotUpdateMoodFrame()", &slot_0, TQMetaData::Public },
	{ "languageChange()", &slot_1, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"Options1", parentObject,
	slot_tbl, 2,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_Options1.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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