summaryrefslogtreecommitdiff
path: root/muse2/muse/widgets/gatetime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/muse/widgets/gatetime.cpp')
-rw-r--r--muse2/muse/widgets/gatetime.cpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/muse2/muse/widgets/gatetime.cpp b/muse2/muse/widgets/gatetime.cpp
new file mode 100644
index 00000000..412d4d4c
--- /dev/null
+++ b/muse2/muse/widgets/gatetime.cpp
@@ -0,0 +1,46 @@
+//=========================================================
+// MusE
+// Linux Music Editor
+// $Id: gatetime.cpp,v 1.1.1.1 2003/10/27 18:54:37 wschweer Exp $
+// (C) Copyright 2001 Werner Schweer (ws@seh.de)
+//=========================================================
+
+#include <q3buttongroup.h>
+#include <qspinbox.h>
+//#include <qbutton.h>
+#include <QtGui>
+
+#include "gatetime.h"
+
+#include "song.h"
+
+//---------------------------------------------------------
+// GateTime
+//---------------------------------------------------------
+
+GateTime::GateTime(QWidget* parent, const char* name)
+ : GateTimeBase(parent, name, true)
+ {
+ }
+
+//---------------------------------------------------------
+// accept
+//---------------------------------------------------------
+
+void GateTime::accept()
+ {
+ _range = rangeGroup->id(rangeGroup->selected());
+ _rateVal = rate->value();
+ _offsetVal = offset->value();
+ GateTimeBase::accept();
+ }
+
+//---------------------------------------------------------
+// setRange
+//---------------------------------------------------------
+
+void GateTime::setRange(int id)
+ {
+ rangeGroup->setButton(id);
+ }
+