|
|
@ -37,7 +37,7 @@
|
|
|
|
#include "postfilter.h"
|
|
|
|
#include "postfilter.h"
|
|
|
|
|
|
|
|
|
|
|
|
PostFilter::PostFilter(const TQString& name, xine_t* engine, xine_audio_port_t* audioDriver,
|
|
|
|
PostFilter::PostFilter(const TQString& name, xine_t* engine, xine_audio_port_t* audioDriver,
|
|
|
|
xine_video_port_t* videoDriver, TQWidget *tqparent) : TQObject(tqparent), m_data(NULL), m_groupBox(NULL)
|
|
|
|
xine_video_port_t* videoDriver, TQWidget *parent) : TQObject(parent), m_data(NULL), m_groupBox(NULL)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_filterName = name;
|
|
|
|
m_filterName = name;
|
|
|
|
kdDebug() << "PostFilter: Create Postprocessing Filter: " << m_filterName << endl;
|
|
|
|
kdDebug() << "PostFilter: Create Postprocessing Filter: " << m_filterName << endl;
|
|
|
@ -49,7 +49,7 @@ PostFilter::PostFilter(const TQString& name, xine_t* engine, xine_audio_port_t*
|
|
|
|
{
|
|
|
|
{
|
|
|
|
xine_post_in_t* inputAPI = NULL;
|
|
|
|
xine_post_in_t* inputAPI = NULL;
|
|
|
|
|
|
|
|
|
|
|
|
m_groupBox = new TQGroupBox(name, tqparent);
|
|
|
|
m_groupBox = new TQGroupBox(name, parent);
|
|
|
|
m_groupBox->tqsetSizePolicy(TQSizePolicy (TQSizePolicy::Minimum, TQSizePolicy::Fixed));
|
|
|
|
m_groupBox->tqsetSizePolicy(TQSizePolicy (TQSizePolicy::Minimum, TQSizePolicy::Fixed));
|
|
|
|
TQGridLayout* grid = new TQGridLayout(m_groupBox, 2, 2);
|
|
|
|
TQGridLayout* grid = new TQGridLayout(m_groupBox, 2, 2);
|
|
|
|
grid->setMargin( 20 );
|
|
|
|
grid->setMargin( 20 );
|
|
|
@ -169,7 +169,7 @@ PostFilter::PostFilter(const TQString& name, xine_t* engine, xine_audio_port_t*
|
|
|
|
grid->addWidget(helpButton, row, 1);
|
|
|
|
grid->addWidget(helpButton, row, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (tqparent)
|
|
|
|
if (parent)
|
|
|
|
m_groupBox->show();
|
|
|
|
m_groupBox->show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -329,35 +329,35 @@ void PostFilter::setConfig(const TQString &configString)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
PostFilterParameterInt::PostFilterParameterInt(const TQString& name, int offset, int value, int min, int max, TQWidget* tqparent)
|
|
|
|
PostFilterParameterInt::PostFilterParameterInt(const TQString& name, int offset, int value, int min, int max, TQWidget* parent)
|
|
|
|
: PostFilterParameter (name, offset, tqparent )
|
|
|
|
: PostFilterParameter (name, offset, parent )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_numInput = new KIntNumInput(value, tqparent);
|
|
|
|
m_numInput = new KIntNumInput(value, parent);
|
|
|
|
m_numInput->setRange( min, max, 1, false);
|
|
|
|
m_numInput->setRange( min, max, 1, false);
|
|
|
|
connect(m_numInput, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotIntValue(int)));
|
|
|
|
connect(m_numInput, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotIntValue(int)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
PostFilterParameterDouble::PostFilterParameterDouble(const TQString& name, int offset, double value, double min, double max, TQWidget* tqparent)
|
|
|
|
PostFilterParameterDouble::PostFilterParameterDouble(const TQString& name, int offset, double value, double min, double max, TQWidget* parent)
|
|
|
|
: PostFilterParameter (name, offset, tqparent )
|
|
|
|
: PostFilterParameter (name, offset, parent )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_numInput = new KDoubleNumInput(tqparent);
|
|
|
|
m_numInput = new KDoubleNumInput(parent);
|
|
|
|
m_numInput->setValue(value);
|
|
|
|
m_numInput->setValue(value);
|
|
|
|
m_numInput->setRange(min, max, 0.01, false);
|
|
|
|
m_numInput->setRange(min, max, 0.01, false);
|
|
|
|
connect(m_numInput, TQT_SIGNAL(valueChanged( double)), this, TQT_SLOT(slotDoubleValue( double)));
|
|
|
|
connect(m_numInput, TQT_SIGNAL(valueChanged( double)), this, TQT_SLOT(slotDoubleValue( double)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
PostFilterParameterChar::PostFilterParameterChar(const TQString& name, int offset, char *value, int size, TQWidget* tqparent)
|
|
|
|
PostFilterParameterChar::PostFilterParameterChar(const TQString& name, int offset, char *value, int size, TQWidget* parent)
|
|
|
|
: PostFilterParameter (name, offset, tqparent )
|
|
|
|
: PostFilterParameter (name, offset, parent )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_charInput = new KLineEdit(value, tqparent);
|
|
|
|
m_charInput = new KLineEdit(value, parent);
|
|
|
|
m_charInput->setMaxLength(size);
|
|
|
|
m_charInput->setMaxLength(size);
|
|
|
|
connect(m_charInput, TQT_SIGNAL(returnPressed(const TQString&)), this, TQT_SLOT(slotCharValue(const TQString&)));
|
|
|
|
connect(m_charInput, TQT_SIGNAL(returnPressed(const TQString&)), this, TQT_SLOT(slotCharValue(const TQString&)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
PostFilterParameterCombo::PostFilterParameterCombo(const TQString& name, int offset, int value, char **enums, TQWidget* tqparent)
|
|
|
|
PostFilterParameterCombo::PostFilterParameterCombo(const TQString& name, int offset, int value, char **enums, TQWidget* parent)
|
|
|
|
: PostFilterParameter (name, offset, tqparent)
|
|
|
|
: PostFilterParameter (name, offset, parent)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_comboBox = new KComboBox(tqparent);
|
|
|
|
m_comboBox = new KComboBox(parent);
|
|
|
|
for (int i = 0; enums[i]; i++)
|
|
|
|
for (int i = 0; enums[i]; i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_comboBox->insertItem(enums[i]);
|
|
|
|
m_comboBox->insertItem(enums[i]);
|
|
|
@ -366,16 +366,16 @@ PostFilterParameterCombo::PostFilterParameterCombo(const TQString& name, int off
|
|
|
|
connect(m_comboBox, TQT_SIGNAL( activated(int)), this, TQT_SLOT( slotIntValue(int)));
|
|
|
|
connect(m_comboBox, TQT_SIGNAL( activated(int)), this, TQT_SLOT( slotIntValue(int)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
PostFilterParameterBool::PostFilterParameterBool(const TQString& name, int offset, bool value, TQWidget* tqparent)
|
|
|
|
PostFilterParameterBool::PostFilterParameterBool(const TQString& name, int offset, bool value, TQWidget* parent)
|
|
|
|
: PostFilterParameter (name, offset, tqparent )
|
|
|
|
: PostFilterParameter (name, offset, parent )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_checkBox = new TQCheckBox(tqparent);
|
|
|
|
m_checkBox = new TQCheckBox(parent);
|
|
|
|
m_checkBox->setChecked(value);
|
|
|
|
m_checkBox->setChecked(value);
|
|
|
|
connect(m_checkBox, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotBoolValue( bool)));
|
|
|
|
connect(m_checkBox, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotBoolValue( bool)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
PostFilterHelp::PostFilterHelp(TQWidget *tqparent, const char *name, const TQString& text)
|
|
|
|
PostFilterHelp::PostFilterHelp(TQWidget *parent, const char *name, const TQString& text)
|
|
|
|
: KDialogBase( tqparent, name, true, TQString(name) + " - " + i18n("Help"), KDialogBase::Close )
|
|
|
|
: KDialogBase( parent, name, true, TQString(name) + " - " + i18n("Help"), KDialogBase::Close )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
setInitialSize( TQSize(500,500) );
|
|
|
|
setInitialSize( TQSize(500,500) );
|
|
|
|
|
|
|
|
|
|
|
|