summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2014-04-15 15:57:20 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2014-04-15 15:57:20 +0200
commitea89897c315a03a29d6e3121128dd3af3713a7dd (patch)
treedba740546cdaaa8b4c362068f08e7bf98a454ce1
parent1cabb60b318fd831458f937b240b207c21a28ceb (diff)
Added volume fader stub.
-rw-r--r--dgedit/volumefader.cc56
-rw-r--r--dgedit/volumefader.h49
2 files changed, 105 insertions, 0 deletions
diff --git a/dgedit/volumefader.cc b/dgedit/volumefader.cc
new file mode 100644
index 0000000..231feba
--- /dev/null
+++ b/dgedit/volumefader.cc
@@ -0,0 +1,56 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/***************************************************************************
+ * volumefader.cc
+ *
+ * Tue Apr 15 15:46:00 CEST 2014
+ * Copyright 2014 Jonas Suhr Christensen
+ * jsc@umbraculum.org
+ ****************************************************************************/
+
+/*
+ * This file is part of DrumGizmo.
+ *
+ * DrumGizmo is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * DrumGizmo is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with DrumGizmo; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ */
+#include "volumefader.h"
+
+VolumeFader::VolumeFader()
+{
+
+}
+
+VolumeFader::~VolumeFader()
+{
+
+}
+
+void VolumeFader::updatePeakDb(double)
+{
+}
+
+void VolumeFader::updatePeakPower(double)
+{
+
+}
+
+void VolumeFader::setVolumeDb(double)
+{
+
+}
+
+void VolumeFader::setVolumePower(double vol)
+{
+
+}
diff --git a/dgedit/volumefader.h b/dgedit/volumefader.h
new file mode 100644
index 0000000..51ff953
--- /dev/null
+++ b/dgedit/volumefader.h
@@ -0,0 +1,49 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/***************************************************************************
+ * volumefader.h
+ *
+ * Tue Apr 15 15:46:00 CEST 2014
+ * Copyright 2014 Jonas Suhr Christensen
+ * jsc@umbraculum.org
+ ****************************************************************************/
+
+/*
+ * This file is part of DrumGizmo.
+ *
+ * DrumGizmo is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * DrumGizmo is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with DrumGizmo; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ */
+#ifndef __DRUMGIZMO_VOLUMEFADER_H__
+#define __DRUMGIZMO_VOLUMEFADER_H__
+
+#include <QWidget>
+
+class VolumeFader : public QWidget {
+Q_OBJECT
+public:
+ VolumeFader();
+ ~VolumeFader();
+
+public slots:
+ void updatePeakDb(double vol);
+ void updatePeakPower(double vol);
+ void setVolumeDb(double vol);
+ void setVolumePower(double vol);
+
+signals:
+ void volumeChangedDb(double vol);
+ void volumeChangedPower(double vol);
+};
+
+#endif/*__DRUMGIZMO_VOLUMEFADER_H__*/