.. _program_listing_file_src_widget_animation_waveanimationcontrolwidget.cpp: Program Listing for File waveanimationcontrolwidget.cpp ======================================================= |exhale_lsh| :ref:`Return to documentation for file ` (``src/widget/animation/waveanimationcontrolwidget.cpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: 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; } }