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

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

/* 
 *  Constructs a PlaylistDialogData 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.
 */
PlaylistDialogData::PlaylistDialogData( QWidget* parent,  const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "PlaylistDialogData" );
    resize( 331, 156 ); 
    setMinimumSize( QSize( 0, 150 ) );
    setCaption( trUtf8( "Playlist" ) );
    PlaylistDialogDataLayout = new QHBoxLayout( this, 6, 6, "PlaylistDialogDataLayout"); 

    Layout12 = new QVBoxLayout( 0, 0, 6, "Layout12"); 

    playListBox = new QListBox( this, "playListBox" );
    Layout12->addWidget( playListBox );

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

    startButton = new QPushButton( this, "startButton" );
    startButton->setText( trUtf8( "Start" ) );
    Layout11->addWidget( startButton );

    prevButton = new QPushButton( this, "prevButton" );
    prevButton->setText( trUtf8( "Prev" ) );
    Layout11->addWidget( prevButton );

    nextButton = new QPushButton( this, "nextButton" );
    nextButton->setText( trUtf8( "Next" ) );
    Layout11->addWidget( nextButton );
    Layout12->addLayout( Layout11 );
    PlaylistDialogDataLayout->addLayout( Layout12 );

    Layout16 = new QVBoxLayout( 0, 0, 6, "Layout16"); 

    listPosLabel = new QLabel( this, "listPosLabel" );
    listPosLabel->setText( trUtf8( "#" ) );
    Layout16->addWidget( listPosLabel );
    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    Layout16->addItem( spacer );

    subtuneLabel = new QLabel( this, "subtuneLabel" );
    subtuneLabel->setText( trUtf8( "Subtune:" ) );
    Layout16->addWidget( subtuneLabel );

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

    fadeoutLabel = new QLabel( this, "fadeoutLabel" );
    fadeoutLabel->setText( trUtf8( "Fadeout:" ) );
    Layout16->addWidget( fadeoutLabel );
    QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    Layout16->addItem( spacer_2 );
    QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    Layout16->addItem( spacer_3 );
    PlaylistDialogDataLayout->addLayout( Layout16 );

    // signals and slots connections
    connect( prevButton, SIGNAL( clicked() ), this, SLOT( prevButtonClicked() ) );
    connect( nextButton, SIGNAL( clicked() ), this, SLOT( nextButtonClicked() ) );
    connect( playListBox, SIGNAL( highlighted(int) ), this, SLOT( playlistItemHighlighted(int) ) );
    connect( playListBox, SIGNAL( selected(int) ), this, SLOT( playlistItemSelected(int) ) );
    connect( startButton, SIGNAL( clicked() ), this, SLOT( startButtonClicked() ) );

    // tab order
    setTabOrder( playListBox, startButton );
    setTabOrder( startButton, prevButton );
    setTabOrder( prevButton, nextButton );
}

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

void PlaylistDialogData::deleteButtonClicked()
{
    qWarning( "PlaylistDialogData::deleteButtonClicked(): Not implemented yet!" );
}

void PlaylistDialogData::nextButtonClicked()
{
    qWarning( "PlaylistDialogData::nextButtonClicked(): Not implemented yet!" );
}

void PlaylistDialogData::startButtonClicked()
{
    qWarning( "PlaylistDialogData::startButtonClicked(): Not implemented yet!" );
}

void PlaylistDialogData::playlistItemHighlighted(int)
{
    qWarning( "PlaylistDialogData::playlistItemHighlighted(int): Not implemented yet!" );
}

void PlaylistDialogData::playlistItemSelected(int)
{
    qWarning( "PlaylistDialogData::playlistItemSelected(int): Not implemented yet!" );
}

void PlaylistDialogData::prevButtonClicked()
{
    qWarning( "PlaylistDialogData::prevButtonClicked(): Not implemented yet!" );
}

