summaryrefslogtreecommitdiff
path: root/muse/midiplugins/trigg/trigggui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'muse/midiplugins/trigg/trigggui.cpp')
-rw-r--r--muse/midiplugins/trigg/trigggui.cpp56
1 files changed, 56 insertions, 0 deletions
diff --git a/muse/midiplugins/trigg/trigggui.cpp b/muse/midiplugins/trigg/trigggui.cpp
new file mode 100644
index 00000000..0fd3c4c6
--- /dev/null
+++ b/muse/midiplugins/trigg/trigggui.cpp
@@ -0,0 +1,56 @@
+//=========================================================
+// 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 "trigggui.h"
+#include "trigg.h"
+
+//---------------------------------------------------------
+// MidiTriggConfig
+//---------------------------------------------------------
+
+TriggGui::TriggGui(Trigg* f, QWidget* parent)
+ : QDialog(parent)
+ {
+ setupUi(this);
+ filter = f;
+
+ connect(noteEntry, SIGNAL(valueChanged(int)), SLOT(setNote(int)));
+ connect(velocityEntry, SIGNAL(valueChanged(int)), SLOT(setVelocity(int)));
+ }
+
+//---------------------------------------------------------
+// init
+//---------------------------------------------------------
+void TriggGui::init()
+ {
+ Trigg::initData *data;
+ int n;
+ filter->getInitData(&n,(const unsigned char **)&data);
+ printf("::init note=%d vel=%d\n",data->note,data->velocity);
+ noteEntry->setValue(data->note);
+ velocityEntry->setValue(data->velocity);
+ }
+
+//---------------------------------------------------------
+// setNote
+//---------------------------------------------------------
+void TriggGui::setNote(int value)
+ {
+ printf("TriggGui::setNote %d\n",value);
+ filter->setNote(value);
+ }
+
+//---------------------------------------------------------
+// setVelocity
+//---------------------------------------------------------
+void TriggGui::setVelocity(int value)
+ {
+ printf("TriggGui::setVelocity %d\n",value);
+ filter->setVelocity(value);
+ }
+