summaryrefslogtreecommitdiff
path: root/muse_qt4_evolution/midiplugins/metronom/metronomgui.cpp
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2009-12-27 11:30:35 +0000
committerRobert Jonsson <spamatica@gmail.com>2009-12-27 11:30:35 +0000
commitb703eab295330e6f81564fbb39a10a1a2fdd2f54 (patch)
treee46b5c9a6bc22fd661c15d1d2123f5bf631cef80 /muse_qt4_evolution/midiplugins/metronom/metronomgui.cpp
parent5d5fa0fdf913907edbc3d2d29a7548f0cb658c94 (diff)
moved old qt4 branch
Diffstat (limited to 'muse_qt4_evolution/midiplugins/metronom/metronomgui.cpp')
-rw-r--r--muse_qt4_evolution/midiplugins/metronom/metronomgui.cpp75
1 files changed, 75 insertions, 0 deletions
diff --git a/muse_qt4_evolution/midiplugins/metronom/metronomgui.cpp b/muse_qt4_evolution/midiplugins/metronom/metronomgui.cpp
new file mode 100644
index 00000000..e6705f7c
--- /dev/null
+++ b/muse_qt4_evolution/midiplugins/metronom/metronomgui.cpp
@@ -0,0 +1,75 @@
+//=========================================================
+// MusE
+// Linux Music Editor
+// $Id: metronomgui.cpp,v 1.2 2005/10/05 17:02:03 lunar_shuttle Exp $
+//
+// (C) Copyright 2005 Werner Schweer (ws@seh.de)
+//=========================================================
+
+#include "metronomgui.h"
+#include "metronom.h"
+
+//---------------------------------------------------------
+// MidiMetronomConfig
+//---------------------------------------------------------
+
+MetronomGui::MetronomGui(Metronom* f, QWidget* parent)
+ : QDialog(parent)
+ {
+ setupUi(this);
+ metronom = f;
+ init();
+ connect(beatNote, SIGNAL(valueChanged(int)), SLOT(beatNoteChanged(int)));
+ connect(measureVelocity, SIGNAL(valueChanged(int)), SLOT(measureVelocityChanged(int)));
+ connect(measureNote, SIGNAL(valueChanged(int)), SLOT(measureNoteChanged(int)));
+ connect(beatVelocity, SIGNAL(valueChanged(int)), SLOT(beatVelocityChanged(int)));
+ }
+
+//---------------------------------------------------------
+// init
+//---------------------------------------------------------
+
+void MetronomGui::init()
+ {
+ beatNote->setValue(metronom->data.beatNote);
+ measureNote->setValue(metronom->data.measureNote);
+ beatVelocity->setValue(metronom->data.beatVelo);
+ measureVelocity->setValue(metronom->data.measureVelo);
+ }
+
+//---------------------------------------------------------
+// beatNoteChanged
+//---------------------------------------------------------
+
+void MetronomGui::beatNoteChanged(int val)
+ {
+ metronom->data.beatNote = val;
+ }
+
+//---------------------------------------------------------
+// measureVelocityChanged
+//---------------------------------------------------------
+
+void MetronomGui::measureVelocityChanged(int val)
+ {
+ metronom->data.measureVelo = val;
+ }
+
+//---------------------------------------------------------
+// measureNoteChanged
+//---------------------------------------------------------
+
+void MetronomGui::measureNoteChanged(int val)
+ {
+ metronom->data.measureNote = val;
+ }
+
+//---------------------------------------------------------
+// beatVelocityChanged
+//---------------------------------------------------------
+
+void MetronomGui::beatVelocityChanged(int val)
+ {
+ metronom->data.beatVelo = val;
+ }
+