Program Listing for File waveanimationcontrolwidget.cpp¶
↰ Return to documentation for file (src/widget/animation/waveanimationcontrolwidget.cpp
)
#include "waveanimationcontrolwidget.h"
#include "ui_waveanimationcontrolwidget.h"
namespace PixelMaestroStudio {
WaveAnimationControlWidget::WaveAnimationControlWidget(WaveAnimation& animation, MaestroControlWidget& maestro_control_widget, QWidget *parent) :
QWidget(parent),
ui(new Ui::WaveAnimationControlWidget),
animation_(animation),
maestro_control_widget_(maestro_control_widget) {
ui->setupUi(this);
ui->skewSpinBox->blockSignals(true);
ui->skewSpinBox->setValue(animation.get_skew());
ui->skewSpinBox->blockSignals(false);
}
void WaveAnimationControlWidget::on_skewSpinBox_editingFinished() {
maestro_control_widget_.run_cue(
maestro_control_widget_.animation_handler->set_wave_options(
maestro_control_widget_.section_control_widget_->get_section_index(),
maestro_control_widget_.section_control_widget_->get_layer_index(),
ui->skewSpinBox->value())
);
}
WaveAnimationControlWidget::~WaveAnimationControlWidget() {
delete ui;
}
}