diff options
author | Robert Jonsson <spamatica@gmail.com> | 2011-03-07 19:01:11 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2011-03-07 19:01:11 +0000 |
commit | e40fc849149dd97c248866a4a1d026dda5e57b62 (patch) | |
tree | b12b358f3b3a0608001d30403358f8443118ec5f /muse_qt4_evolution/midiplugins/drumglue/outputinstrumentview.cpp | |
parent | 1bd4f2e8d9745cabb667b043171cad22c8577768 (diff) |
clean3
Diffstat (limited to 'muse_qt4_evolution/midiplugins/drumglue/outputinstrumentview.cpp')
-rw-r--r-- | muse_qt4_evolution/midiplugins/drumglue/outputinstrumentview.cpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/muse_qt4_evolution/midiplugins/drumglue/outputinstrumentview.cpp b/muse_qt4_evolution/midiplugins/drumglue/outputinstrumentview.cpp deleted file mode 100644 index 2e4c97ce..00000000 --- a/muse_qt4_evolution/midiplugins/drumglue/outputinstrumentview.cpp +++ /dev/null @@ -1,45 +0,0 @@ -//========================================================= -// MusE -// Linux Music Editor -// $Id: filtergui.cpp,v 1.4 2005/11/06 17:49:34 wschweer Exp $ -// -// (C) Copyright 2005 Werner Schweer (ws@seh.de) -//========================================================= - -#include "outputinstrumentview.h" -#include "drumglue.h" -#include <QtGui> -//--------------------------------------------------------- -// OutputInstrumentView -//--------------------------------------------------------- - -OutputInstrumentView::OutputInstrumentView(DrumOutputInstrument* doi, QWidget* parent) - : QDialog(parent) - { - outputInstrument= doi; - setupUi(this); - - midiOutputSpinBox->setValue(outputInstrument->outKey); - highRangeSlider->setValue(outputInstrument->highestVelocity); - lowRangeSlider->setValue(outputInstrument->lowestVelocity); - preferWhenFastCheckBox->setChecked(outputInstrument->preferFast); - highProbabiltyCheckBox->setChecked(outputInstrument->prefer); - - - connect(midiOutputSpinBox,SIGNAL(valueChanged(int)),this, SLOT(update())); - connect(highRangeSlider,SIGNAL(valueChanged(int)),this, SLOT(update())); - connect(lowRangeSlider,SIGNAL(valueChanged(int)),this, SLOT(update())); - connect(preferWhenFastCheckBox,SIGNAL(stateChanged(int)),this, SLOT(update())); - connect(highProbabiltyCheckBox,SIGNAL(stateChanged(int)),this, SLOT(update())); - } - - -void OutputInstrumentView::update() -{ - outputInstrument->outKey = midiOutputSpinBox->value(); - outputInstrument->highestVelocity = highRangeSlider->value(); - outputInstrument->lowestVelocity = lowRangeSlider->value(); - outputInstrument->preferFast = preferWhenFastCheckBox->isChecked(); - outputInstrument->prefer = highProbabiltyCheckBox->isChecked(); - -} |