funcionando controles ui
This commit is contained in:
parent
abf5d3340f
commit
b59cc92c5f
10 changed files with 50 additions and 125 deletions
|
|
@ -13,23 +13,14 @@ AudioLayerWidget::AudioLayerWidget(QWidget *parent, QString name, int layer):
|
|||
QVBoxLayout *layout = new QVBoxLayout;
|
||||
|
||||
QGridLayout *status = new QGridLayout;
|
||||
m_statusLabel = new QLabel;
|
||||
m_statusLabel->setText(STATUS_LABEL);
|
||||
m_statusValue = new QLabel;
|
||||
status->addWidget(m_statusLabel, 0, 0);
|
||||
status->addWidget(m_statusValue, 0, 2);
|
||||
m_folderLabel = new QLabel;
|
||||
m_folderLabel->setText(FOLDER_LABEL);
|
||||
status->addWidget(m_statusValue, 1, 1);
|
||||
m_folderValue = new QLabel;
|
||||
m_folderValue->setMaximumWidth(200);
|
||||
status->addWidget(m_folderLabel, 1, 0);
|
||||
status->addWidget(m_folderValue, 1, 1);
|
||||
m_fileLabel = new QLabel;
|
||||
m_fileLabel->setText(FILE_LABEL);
|
||||
m_folderValue->setMaximumWidth(100);
|
||||
status->addWidget(m_folderValue, 0, 0);
|
||||
m_fileValue = new QLabel;
|
||||
m_fileValue->setMaximumWidth(200);
|
||||
status->addWidget(m_fileLabel, 1, 2);
|
||||
status->addWidget(m_fileValue, 1, 3);
|
||||
m_fileValue->setMaximumWidth(100);
|
||||
status->addWidget(m_fileValue, 0, 2);
|
||||
layout->addLayout(status);
|
||||
|
||||
QGridLayout *volumeBox = new QGridLayout;
|
||||
|
|
@ -126,26 +117,17 @@ AudioLayerWidget::~AudioLayerWidget()
|
|||
// From UI.
|
||||
void AudioLayerWidget::volumeChanged(int value)
|
||||
{
|
||||
(void)value;
|
||||
// ToDo: call the audio engine
|
||||
emit(uiSliderChanged(m_layer, Slider::Volume, value));
|
||||
}
|
||||
|
||||
void AudioLayerWidget::panChanged(int value)
|
||||
{
|
||||
(void)value;
|
||||
// ToDo: call the audio engine
|
||||
emit(uiSliderChanged(m_layer, Slider::Pan, value));
|
||||
}
|
||||
|
||||
void AudioLayerWidget::pitchChanged(int value)
|
||||
{
|
||||
(void)value;
|
||||
// ToDo: call the audio engine
|
||||
}
|
||||
|
||||
void AudioLayerWidget::loopChanged(int value)
|
||||
{
|
||||
(void)value;
|
||||
// ToDo: call the audio engine
|
||||
emit(uiSliderChanged(m_layer, Slider::Pitch, value));
|
||||
}
|
||||
|
||||
void AudioLayerWidget::toggleSuspendResume()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue