RundownGroupWidget::RundownGroupWidget(const LibraryModel& model, QWidget* parent, const QString& color, bool active, bool autoStep, bool compactView) : QWidget(parent), active(active), autoStep(autoStep), compactView(compactView), color(color), model(model) { setupUi(this); this->animation = new ActiveAnimation(this->labelActiveColor); setColor(color); setActive(active); setCompactView(compactView); this->labelAutoStep->setVisible(this->autoStep); this->labelGroupColor->setStyleSheet(QString("background-color: %1;").arg(Color::DEFAULT_GROUP_COLOR)); this->labelColor->setStyleSheet(QString("background-color: %1;").arg(Color::DEFAULT_GROUP_COLOR)); this->labelLabel->setText(this->model.getLabel()); QObject::connect(&this->command, SIGNAL(notesChanged(const QString&)), this, SLOT(notesChanged(const QString&))); QObject::connect(&this->command, SIGNAL(allowGpiChanged(bool)), this, SLOT(allowGpiChanged(bool))); QObject::connect(&this->command, SIGNAL(autoStepChanged(bool)), this, SLOT(autoStepChanged(bool))); QObject::connect(GpiManager::getInstance().getGpiDevice().data(), SIGNAL(connectionStateChanged(bool, GpiDevice*)), this, SLOT(gpiDeviceConnected(bool, GpiDevice*))); checkGpiTriggerable(); qApp->installEventFilter(this); }
RundownBlendWidget::RundownBlendWidget(const LibraryModel& model, QWidget* parent, const QString& color, bool active, bool inGroup, bool disconnected) : QWidget(parent), active(active), inGroup(inGroup), disconnected(disconnected), color(color), model(model) { setupUi(this); setActive(active); this->labelDisconnected->setVisible(this->disconnected); this->labelGroupColor->setVisible(this->inGroup); this->labelGroupColor->setStyleSheet(QString("background-color: %1;").arg(Color::DEFAULT_GROUP_COLOR)); this->labelColor->setStyleSheet(QString("background-color: %1;").arg(color)); this->labelName->setText(this->model.getName()); this->labelChannel->setText(QString("Channel: %1").arg(this->command.getChannel())); this->labelVideolayer->setText(QString("Videolayer: %1").arg(this->command.getVideolayer())); this->labelDelay->setText(QString("Delay: %1").arg(this->command.getDelay())); this->labelDevice->setText(QString("Device: %1").arg(this->model.getDeviceName())); QObject::connect(&this->command, SIGNAL(channelChanged(int)), this, SLOT(channelChanged(int))); QObject::connect(&this->command, SIGNAL(videolayerChanged(int)), this, SLOT(videolayerChanged(int))); QObject::connect(&this->command, SIGNAL(delayChanged(int)), this, SLOT(delayChanged(int))); QObject::connect(&this->command, SIGNAL(allowGpiChanged(bool)), this, SLOT(allowGpiChanged(bool))); QObject::connect(GpiManager::getInstance().getGpiDevice().data(), SIGNAL(connectionStateChanged(bool, GpiDevice*)), this, SLOT(gpiDeviceConnected(bool, GpiDevice*))); checkEmptyDevice(); checkGpiTriggerable(); qApp->installEventFilter(this); }
RundownMediaWidget::RundownMediaWidget(const LibraryModel& model, QWidget* parent, const QString& color, bool active, bool loaded, bool paused, bool playing, bool inGroup, bool disconnected) : QWidget(parent), active(active), loaded(loaded), paused(paused), playing(playing), inGroup(inGroup), disconnected(disconnected), color(color), model(model) { setupUi(this); setActive(active); this->command.setMediaName(this->model.getName()); this->labelDisconnected->setVisible(this->disconnected); this->labelGroupColor->setVisible(inGroup); this->labelGroupColor->setStyleSheet(QString("background-color: %1;").arg(Color::DEFAULT_GROUP_COLOR)); this->labelColor->setStyleSheet(QString("background-color: %1;").arg(color)); this->labelName->setText(this->model.getName()); this->labelChannel->setText(QString("Channel: %1").arg(this->command.getChannel())); this->labelVideolayer->setText(QString("Videolayer: %1").arg(this->command.getVideolayer())); this->labelDelay->setText(QString("Delay: %1").arg(this->command.getDelay())); this->labelDevice->setText(QString("Device: %1").arg(this->model.getDeviceName())); if (this->model.getType() == "AUDIO") this->labelThumbnail->setPixmap(QPixmap(":/Graphics/Images/Audio.png")); else if (this->model.getType() == "STILL") this->labelThumbnail->setPixmap(QPixmap(":/Graphics/Images/Still.png")); else if (this->model.getType() == "MOVIE") this->labelThumbnail->setPixmap(QPixmap(":/Graphics/Images/Movie.png")); QObject::connect(&this->command, SIGNAL(channelChanged(int)), this, SLOT(channelChanged(int))); QObject::connect(&this->command, SIGNAL(videolayerChanged(int)), this, SLOT(videolayerChanged(int))); QObject::connect(&this->command, SIGNAL(delayChanged(int)), this, SLOT(delayChanged(int))); QObject::connect(&this->command, SIGNAL(allowGpiChanged(bool)), this, SLOT(allowGpiChanged(bool))); QObject::connect(GpiManager::getInstance().getGpiDevice().data(), SIGNAL(connectionStateChanged(bool, GpiDevice*)), this, SLOT(gpiDeviceConnected(bool, GpiDevice*))); checkEmptyDevice(); checkGpiTriggerable(); qApp->installEventFilter(this); }
RundownGroupWidget::RundownGroupWidget(const LibraryModel& model, QWidget* parent, bool active) : QWidget(parent), active(active), model(model) { setupUi(this); setActive(active); this->labelGroupColor->setStyleSheet(QString("background-color: %1;").arg(Color::DEFAULT_GROUP_COLOR)); this->labelColor->setStyleSheet(QString("background-color: %1;").arg(Color::DEFAULT_GROUP_COLOR)); this->labelName->setText(this->model.getName()); QObject::connect(&this->command, SIGNAL(allowGpiChanged(bool)), this, SLOT(allowGpiChanged(bool))); QObject::connect(GpiManager::getInstance().getGpiDevice().data(), SIGNAL(connectionStateChanged(bool, GpiDevice*)), this, SLOT(gpiDeviceConnected(bool, GpiDevice*))); checkGpiTriggerable(); qApp->installEventFilter(this); }
void RundownSaturationWidget::gpiDeviceConnected(bool connected, GpiDevice* device) { checkGpiTriggerable(); }
void RundownSaturationWidget::allowGpiChanged(bool allowGpi) { checkGpiTriggerable(); }
void RundownBlendWidget::gpiDeviceConnected(bool connected, GpiDevice* device) { checkGpiTriggerable(); }
void RundownBlendWidget::allowGpiChanged(bool allowGpi) { checkGpiTriggerable(); }
void RundownGeometryWidget::allowGpiChanged(bool allowGpi) { checkGpiTriggerable(); }
void RundownDeckLinkInputWidget::gpiDeviceConnected(bool connected, GpiDevice* device) { checkGpiTriggerable(); }
void RundownDeckLinkInputWidget::allowGpiChanged(bool allowGpi) { checkGpiTriggerable(); }