/****************************************************************************
** Form implementation generated from reading ui file 'FilterDialog.ui'
**
** Created: Fri Sep 15 16:56:03 2000
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "FilterDialogData.h"

#include <qcheckbox.h>
#include <qframe.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qslider.h>
#include <qlayout.h>
#include <qvariant.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( 350, 147 ); 
    setCaption( tr( "Filter adjustment"  ) );

    TextLabel1 = new QLabel( this, "TextLabel1" );
    TextLabel1->setGeometry( QRect( 130, 9, 75, 15 ) ); 
    TextLabel1->setText( tr( "Parameter 1"  ) );

    TextLabel3 = new QLabel( this, "TextLabel3" );
    TextLabel3->setGeometry( QRect( 130, 78, 80, 15 ) ); 
    TextLabel3->setText( tr( "Parameter 3"  ) );

    Line1 = new QFrame( this, "Line1" );
    Line1->setGeometry( QRect( 0, 29, 219, 10 ) ); 
    Line1->setFrameStyle( QFrame::HLine | QFrame::Sunken );

    Line2 = new QFrame( this, "Line2" );
    Line2->setGeometry( QRect( 0, 63, 219, 10 ) ); 
    Line2->setFrameStyle( QFrame::HLine | QFrame::Sunken );

    Line3 = new QFrame( this, "Line3" );
    Line3->setGeometry( QRect( 0, 98, 219, 10 ) ); 
    Line3->setFrameStyle( QFrame::HLine | QFrame::Sunken );

    TextLabel2 = new QLabel( this, "TextLabel2" );
    TextLabel2->setGeometry( QRect( 130, 44, 75, 15 ) ); 
    TextLabel2->setText( tr( "Parameter 2"  ) );

    isEnabled = new QCheckBox( this, "isEnabled" );
    isEnabled->setGeometry( QRect( 110, 115, 104, 13 ) ); 
    isEnabled->setText( tr( "Filter enabled"  ) );

    defaultBtn = new QPushButton( this, "defaultBtn" );
    defaultBtn->setGeometry( QRect( 10, 110, 80, 25 ) ); 
    defaultBtn->setText( tr( "Default"  ) );

    para2Sld = new QSlider( this, "para2Sld" );
    para2Sld->setGeometry( QRect( 10, 44, 110, 20 ) ); 
    para2Sld->setOrientation( QSlider::Horizontal );
    para2Sld->setTickmarks( QSlider::Right );

    para3Sld = new QSlider( this, "para3Sld" );
    para3Sld->setGeometry( QRect( 10, 78, 110, 20 ) ); 
    para3Sld->setOrientation( QSlider::Horizontal );
    para3Sld->setTickmarks( QSlider::Right );

    para1Sld = new QSlider( this, "para1Sld" );
    para1Sld->setGeometry( QRect( 10, 9, 110, 20 ) ); 
    para1Sld->setOrientation( QSlider::Horizontal );
    para1Sld->setTickmarks( QSlider::Right );

    // 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!" );
}

