/****************************************************************************
** Form implementation generated from reading ui file 'FilterDialog.ui'
**
** Created: Wed Oct 2 11:15:57 2002
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "FilterDialogData.h"

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

/* 
 *  Constructs a FilterDialogData 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.
 */
FilterDialogData::FilterDialogData( QWidget* parent,  const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "FilterDialogData" );
    resize( 338, 176 ); 
    setCaption( trUtf8( "Filter adjustment" ) );
    FilterDialogDataLayout = new QGridLayout( this, 1, 1, 6, 6, "FilterDialogDataLayout"); 

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

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

    para1Sld = new QSlider( this, "para1Sld" );
    para1Sld->setOrientation( QSlider::Horizontal );
    para1Sld->setTickmarks( QSlider::Right );
    Layout5->addWidget( para1Sld );

    TextLabel1 = new QLabel( this, "TextLabel1" );
    TextLabel1->setText( trUtf8( "Parameter 1" ) );
    Layout5->addWidget( TextLabel1 );
    Layout8->addLayout( Layout5 );

    Line1 = new QFrame( this, "Line1" );
    Line1->setFrameShape( QFrame::HLine );
    Line1->setFrameShadow( QFrame::Sunken );
    Line1->setFrameShape( QFrame::HLine );
    Layout8->addWidget( Line1 );

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

    para2Sld = new QSlider( this, "para2Sld" );
    para2Sld->setOrientation( QSlider::Horizontal );
    para2Sld->setTickmarks( QSlider::Right );
    Layout6->addWidget( para2Sld );

    TextLabel2 = new QLabel( this, "TextLabel2" );
    TextLabel2->setText( trUtf8( "Parameter 2" ) );
    Layout6->addWidget( TextLabel2 );
    Layout8->addLayout( Layout6 );

    Line2 = new QFrame( this, "Line2" );
    Line2->setFrameShape( QFrame::HLine );
    Line2->setFrameShadow( QFrame::Sunken );
    Line2->setFrameShape( QFrame::HLine );
    Layout8->addWidget( Line2 );

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

    para3Sld = new QSlider( this, "para3Sld" );
    para3Sld->setOrientation( QSlider::Horizontal );
    para3Sld->setTickmarks( QSlider::Right );
    Layout7->addWidget( para3Sld );

    TextLabel3 = new QLabel( this, "TextLabel3" );
    TextLabel3->setText( trUtf8( "Parameter 3" ) );
    Layout7->addWidget( TextLabel3 );
    Layout8->addLayout( Layout7 );

    Line3 = new QFrame( this, "Line3" );
    Line3->setFrameShape( QFrame::HLine );
    Line3->setFrameShadow( QFrame::Sunken );
    Line3->setFrameShape( QFrame::HLine );
    Layout8->addWidget( Line3 );

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

    defaultBtn = new QPushButton( this, "defaultBtn" );
    defaultBtn->setText( trUtf8( "Default" ) );
    Layout3->addWidget( defaultBtn );

    isEnabled = new QCheckBox( this, "isEnabled" );
    isEnabled->setText( trUtf8( "Filter enabled" ) );
    Layout3->addWidget( isEnabled );
    Layout8->addLayout( Layout3 );

    FilterDialogDataLayout->addLayout( Layout8, 0, 0 );

    FiltPicFrame = new QFrame( this, "FiltPicFrame" );
    FiltPicFrame->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, FiltPicFrame->sizePolicy().hasHeightForWidth() ) );
    FiltPicFrame->setMinimumSize( QSize( 130, 102 ) );
    FiltPicFrame->setFrameShape( QFrame::NoFrame );
    FiltPicFrame->setFrameShadow( QFrame::Raised );

    FilterDialogDataLayout->addWidget( FiltPicFrame, 0, 1 );

    // signals and slots connections
    connect( para1Sld, SIGNAL( valueChanged(int) ), this, SLOT( updatePara1(int) ) );
    connect( para2Sld, SIGNAL( valueChanged(int) ), this, SLOT( updatePara2(int) ) );
    connect( para3Sld, SIGNAL( valueChanged(int) ), this, SLOT( updatePara3(int) ) );
    connect( defaultBtn, SIGNAL( clicked() ), this, SLOT( setDefaults() ) );
    connect( isEnabled, SIGNAL( toggled(bool) ), this, SLOT( setFilterFlag(bool) ) );

    // tab order
    setTabOrder( para1Sld, para2Sld );
    setTabOrder( para2Sld, para3Sld );
    setTabOrder( para3Sld, defaultBtn );
    setTabOrder( defaultBtn, isEnabled );
}

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

void FilterDialogData::setBitsPerSample( int )
{
    qWarning( "FilterDialogData::setBitsPerSample( int ): Not implemented yet!" );
}

void FilterDialogData::setChannels( int )
{
    qWarning( "FilterDialogData::setChannels( int ): Not implemented yet!" );
}

void FilterDialogData::setFrequency( int )
{
    qWarning( "FilterDialogData::setFrequency( int ): Not implemented yet!" );
}

void FilterDialogData::setDefaults()
{
    qWarning( "FilterDialogData::setDefaults(): Not implemented yet!" );
}

void FilterDialogData::setFilterFlag( bool )
{
    qWarning( "FilterDialogData::setFilterFlag( bool ): Not implemented yet!" );
}

void FilterDialogData::updatePara1( int )
{
    qWarning( "FilterDialogData::updatePara1( int ): Not implemented yet!" );
}

void FilterDialogData::updatePara2( int )
{
    qWarning( "FilterDialogData::updatePara2( int ): Not implemented yet!" );
}

void FilterDialogData::updatePara3( int )
{
    qWarning( "FilterDialogData::updatePara3( int ): Not implemented yet!" );
}

