wip cue list básica en una capa.
This commit is contained in:
parent
647b75f168
commit
52b44a4d7c
7 changed files with 250 additions and 217 deletions
|
|
@ -1,92 +1,113 @@
|
|||
#include "cuetrackwidget.h"
|
||||
#include <QSplitter>
|
||||
|
||||
CueTrackWidget::CueTrackWidget(QWidget *parent) : QWidget(parent) {
|
||||
setupUi();
|
||||
}
|
||||
|
||||
void CueTrackWidget::setupUi() {
|
||||
auto layout = new QHBoxLayout(this);
|
||||
QVBoxLayout *layout = new QVBoxLayout(this);
|
||||
|
||||
QSplitter *row = new QSplitter(Qt::Horizontal);
|
||||
active = new QCheckBox(this);
|
||||
row->addWidget(active);
|
||||
|
||||
userNumberSpin = new QSpinBox(this);
|
||||
userNumberSpin->setRange(0, 1000);
|
||||
userNumberSpin->setToolTip("Cue user number");
|
||||
layout->addWidget(userNumberSpin);
|
||||
row->addWidget(userNumberSpin);
|
||||
|
||||
nameEdit = new QLineEdit(this);
|
||||
nameEdit->setToolTip("Cue Name");
|
||||
row->addWidget(nameEdit);
|
||||
|
||||
descriptionEdit = new QLineEdit(this);
|
||||
descriptionEdit->setToolTip("Cue Notes");
|
||||
row->addWidget(descriptionEdit);
|
||||
|
||||
filePathEdit = new QLineEdit(this);
|
||||
filePathEdit->setToolTip("File name");
|
||||
layout->addWidget(filePathEdit);
|
||||
row->addWidget(filePathEdit);
|
||||
|
||||
volumeSpin = new QSpinBox(this);
|
||||
layout->addWidget(row);
|
||||
|
||||
row = new QSplitter(Qt::Horizontal);
|
||||
volumeSpin = new QSpinBox(this);
|
||||
volumeSpin->setRange(0, 65535);
|
||||
volumeSpin->setToolTip("Volume");
|
||||
layout->addWidget(volumeSpin);
|
||||
volumeSpin->setValue(100);
|
||||
row->addWidget(volumeSpin);
|
||||
|
||||
bus1Spin = new QSpinBox(this);
|
||||
bus1Spin->setRange(0, 255);
|
||||
bus1Spin->setToolTip("Bus 1");
|
||||
layout->addWidget(bus1Spin);
|
||||
bus1Spin->setValue(255);
|
||||
row->addWidget(bus1Spin);
|
||||
|
||||
bus2Spin = new QSpinBox(this);
|
||||
bus2Spin->setRange(0, 255);
|
||||
bus2Spin->setToolTip("Bus 2");
|
||||
layout->addWidget(bus2Spin);
|
||||
bus2Spin->setValue(255);
|
||||
row->addWidget(bus2Spin);
|
||||
|
||||
panSpin = new QSpinBox(this);
|
||||
panSpin->setRange(0, 255);
|
||||
panSpin->setToolTip("Pan");
|
||||
layout->addWidget(panSpin);
|
||||
panSpin->setValue(128);
|
||||
row->addWidget(panSpin);
|
||||
|
||||
pitchSpin = new QSpinBox(this);
|
||||
pitchSpin->setRange(0, 255);
|
||||
pitchSpin->setToolTip("Pitch");
|
||||
layout->addWidget(pitchSpin);
|
||||
pitchSpin->setValue(128);
|
||||
row->addWidget(pitchSpin);
|
||||
|
||||
statusCombo = new QComboBox(this);
|
||||
entryPointSpin = new QSpinBox(this);
|
||||
entryPointSpin->setRange(0, 255);
|
||||
entryPointSpin->setToolTip("Entry Point");
|
||||
row->addWidget(entryPointSpin);
|
||||
|
||||
exitPointSpin = new QSpinBox(this);
|
||||
exitPointSpin->setRange(0, 255);
|
||||
exitPointSpin->setToolTip("Exit Point");
|
||||
exitPointSpin->setValue(255);
|
||||
row->addWidget(exitPointSpin);
|
||||
|
||||
layout->addWidget(row);
|
||||
|
||||
row = new QSplitter(Qt::Horizontal);
|
||||
setupStatusCombo();
|
||||
statusCombo->setToolTip("Playback Status");
|
||||
layout->addWidget(statusCombo);
|
||||
row->addWidget(statusCombo);
|
||||
|
||||
fadeInSpin = new QSpinBox(this);
|
||||
fadeInSpin->setRange(0, 10000);
|
||||
fadeInSpin->setToolTip("Fade In Time");
|
||||
layout->addWidget(fadeInSpin);
|
||||
fadeInSpin->setValue(3);
|
||||
row->addWidget(fadeInSpin);
|
||||
|
||||
fadeOutSpin = new QSpinBox(this);
|
||||
fadeOutSpin->setRange(0, 10000);
|
||||
fadeOutSpin->setToolTip("Fade Out Time");
|
||||
layout->addWidget(fadeOutSpin);
|
||||
fadeOutSpin->setValue(3);
|
||||
row->addWidget(fadeOutSpin);
|
||||
|
||||
waitInSpin = new QSpinBox(this);
|
||||
waitInSpin->setRange(0, 10000);
|
||||
waitInSpin->setToolTip("Wait In Time");
|
||||
layout->addWidget(waitInSpin);
|
||||
row->addWidget(waitInSpin);
|
||||
|
||||
waitOutSpin = new QSpinBox(this);
|
||||
waitOutSpin->setRange(0, 10000);
|
||||
waitOutSpin->setToolTip("Wait Out Time");
|
||||
layout->addWidget(waitOutSpin);
|
||||
row->addWidget(waitOutSpin);
|
||||
|
||||
stopAtEndCheck = new QCheckBox(this);
|
||||
stopAtEndCheck->setToolTip("Halt");
|
||||
layout->addWidget(stopAtEndCheck);
|
||||
stopAtEndCheck->setChecked("True");
|
||||
row->addWidget(stopAtEndCheck);
|
||||
|
||||
nameEdit = new QLineEdit(this);
|
||||
nameEdit->setToolTip("Cue Name");
|
||||
layout->addWidget(nameEdit);
|
||||
|
||||
descriptionEdit = new QLineEdit(this);
|
||||
descriptionEdit->setToolTip("Cue Notes");
|
||||
layout->addWidget(descriptionEdit);
|
||||
|
||||
entryPointSpin = new QSpinBox(this);
|
||||
entryPointSpin->setRange(0, 255);
|
||||
entryPointSpin->setToolTip("Entry Point");
|
||||
layout->addWidget(entryPointSpin);
|
||||
|
||||
exitPointSpin = new QSpinBox(this);
|
||||
exitPointSpin->setRange(0, 255);
|
||||
exitPointSpin->setToolTip("Exit Point");
|
||||
layout->addWidget(exitPointSpin);
|
||||
layout->addWidget(row);
|
||||
|
||||
setLayout(layout);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue