/****************************************************************************
** Form implementation generated from reading ui file 'PlaylistOptDialog.ui'
**
** Created: Fri Aug 9 09:45:57 2002
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "PlaylistOptDialog.h"

#include <qvariant.h>
#include <qcheckbox.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qspinbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a PlaylistOptDialog which is a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f'.
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
PlaylistOptDialog::PlaylistOptDialog( QWidget* parent,  const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "PlaylistOptDialog" );
    resize( 211, 142 ); 
    setCaption( trUtf8( "Playlist defaults" ) );
    PlaylistOptDialogLayout = new QVBoxLayout( this, 6, 6, "PlaylistOptDialogLayout"); 

    Layout4 = new QHBoxLayout( 0, 0, 6, "Layout4"); 
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout4->addItem( spacer );

    Layout3 = new QGridLayout( 0, 1, 1, 0, 6, "Layout3"); 

    fadeoutSpinBox = new QSpinBox( this, "fadeoutSpinBox" );
    fadeoutSpinBox->setButtonSymbols( QSpinBox::PlusMinus );

    Layout3->addWidget( fadeoutSpinBox, 1, 1 );

    playtimeLabel = new QLabel( this, "playtimeLabel" );
    playtimeLabel->setText( trUtf8( "Playtime:" ) );

    Layout3->addWidget( playtimeLabel, 0, 0 );

    fadeoutLabel = new QLabel( this, "fadeoutLabel" );
    fadeoutLabel->setText( trUtf8( "Fadeout:" ) );

    Layout3->addWidget( fadeoutLabel, 1, 0 );

    playtimeSpinBox = new QSpinBox( this, "playtimeSpinBox" );
    playtimeSpinBox->setButtonSymbols( QSpinBox::PlusMinus );
    playtimeSpinBox->setMaxValue( 86400 );
    playtimeSpinBox->setLineStep( 5 );

    Layout3->addWidget( playtimeSpinBox, 0, 1 );
    Layout4->addLayout( Layout3 );
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout4->addItem( spacer_2 );
    PlaylistOptDialogLayout->addLayout( Layout4 );

    Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); 
    QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout2->addItem( spacer_3 );

    songlenDBcheckbox = new QCheckBox( this, "songlenDBcheckbox" );
    songlenDBcheckbox->setText( trUtf8( "Use songlength DB" ) );
    Layout2->addWidget( songlenDBcheckbox );
    QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Layout2->addItem( spacer_4 );
    PlaylistOptDialogLayout->addLayout( Layout2 );

    Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); 

    okButton = new QPushButton( this, "okButton" );
    okButton->setText( trUtf8( "OK" ) );
    okButton->setDefault( TRUE );
    Layout1->addWidget( okButton );

    cancelButton = new QPushButton( this, "cancelButton" );
    cancelButton->setText( trUtf8( "Cancel" ) );
    Layout1->addWidget( cancelButton );
    PlaylistOptDialogLayout->addLayout( Layout1 );

    // signals and slots connections
    connect( cancelButton, SIGNAL( released() ), this, SLOT( reject() ) );
    connect( okButton, SIGNAL( released() ), this, SLOT( accept() ) );
}

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

