bool RundownBlendWidget::executeCommand(enum Playout::PlayoutType::Type type) { if (type == Playout::PlayoutType::Stop) QTimer::singleShot(0, this, SLOT(executeStop())); else if (type == Playout::PlayoutType::Play) QTimer::singleShot(this->command.getDelay(), this, SLOT(executePlay())); else if (type == Playout::PlayoutType::Clear) QTimer::singleShot(0, this, SLOT(executeClear())); else if (type == Playout::PlayoutType::ClearVideolayer) QTimer::singleShot(0, this, SLOT(executeClearVideolayer())); else if (type == Playout::PlayoutType::ClearChannel) QTimer::singleShot(0, this, SLOT(executeClearChannel())); return true; }
bool RundownSaturationWidget::executeCommand(enum Playout::PlayoutType::Type type) { if (type == Playout::PlayoutType::Stop) QTimer::singleShot(0, this, SLOT(executeStop())); else if (type == Playout::PlayoutType::Play || type == Playout::PlayoutType::Update) { this->executeTimer.setInterval(this->command.getDelay()); this->executeTimer.start(); } else if (type == Playout::PlayoutType::Clear) QTimer::singleShot(0, this, SLOT(executeStop())); else if (type == Playout::PlayoutType::ClearVideolayer) QTimer::singleShot(0, this, SLOT(executeClearVideolayer())); else if (type == Playout::PlayoutType::ClearChannel) QTimer::singleShot(0, this, SLOT(executeClearChannel())); if (this->active) this->animation->start(1); return true; }