diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-04-23 20:43:59 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-04-23 20:43:59 +0200 |
commit | eafdef4a5e7bb6cbed75b17a38a9b0e30c6e51a6 (patch) | |
tree | 61e74113c3b38df8aff60a764d36a884da1a597a /dgedit/mainwindow.cc | |
parent | 75ca97372cdcf9b42ada94bfdd13589d677cba91 (diff) |
Add some sliders to control internal parameters of the editor.
Diffstat (limited to 'dgedit/mainwindow.cc')
-rw-r--r-- | dgedit/mainwindow.cc | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/dgedit/mainwindow.cc b/dgedit/mainwindow.cc index afa8a16..ada7f95 100644 --- a/dgedit/mainwindow.cc +++ b/dgedit/mainwindow.cc @@ -151,11 +151,35 @@ MainWindow::MainWindow() configs->addWidget(new QLabel("Attack length:")); QSlider *slider = new QSlider(Qt::Horizontal); - slider->setRange(10, 10000); + slider->setRange(10, 1000); slider->setValue(666); connect(slider, SIGNAL(sliderMoved(int)), sorter, SLOT(setAttackLength(int))); configs->addWidget(slider); + configs->addWidget(new QLabel("Falloff:")); + QSlider *slider2 = new QSlider(Qt::Horizontal); + slider2->setRange(1, 10000); + slider2->setValue(666); + connect(slider2, SIGNAL(sliderMoved(int)), + selections, SLOT(noiseFloorChanged(int))); + configs->addWidget(slider2); + + configs->addWidget(new QLabel("Fadelength:")); + QSlider *slider3 = new QSlider(Qt::Horizontal); + slider3->setRange(1, 2000); + slider3->setValue(666); + connect(slider3, SIGNAL(sliderMoved(int)), + selections, SLOT(fadeoutChanged(int))); + configs->addWidget(slider3); + + configs->addWidget(new QLabel("Player volume:")); + QSlider *slider4 = new QSlider(Qt::Horizontal); + slider4->setRange(0, 1000000); + slider4->setValue(100000); + connect(slider4, SIGNAL(sliderMoved(int)), + listen, SLOT(setVolume(int))); + configs->addWidget(slider4); + configs->addWidget(new QLabel("Prefix:")); QLineEdit *prefix = new QLineEdit(); connect(prefix, SIGNAL(textChanged(const QString &)), |