Ejemplo n.º 1
0
void VCSpeedDial::slotModeChanged(Doc::Mode mode)
{
    if (mode == Doc::Operate)
    {
        m_dial->setEnabled(true);
        updateFeedback();
    }
    else
    {
        m_dial->setEnabled(false);
    }
}
Ejemplo n.º 2
0
void VCSlider::slotMonitorDMXValueChanged(int value)
{
    if (value != sliderValue())
    {
        if (invertedAppearance())
            m_monitorValue = 255 - value;
        else
            m_monitorValue = value;
        m_levelValueMutex.lock();
        m_levelValue = m_monitorValue;
        m_levelValueMutex.unlock();
        if (m_slider)
            m_slider->blockSignals(true);
        setSliderValue(m_monitorValue, true);
        setTopLabelText(sliderValue());
        if (m_slider)
            m_slider->blockSignals(false);
        updateFeedback();
    }
}
Ejemplo n.º 3
0
void BaselinePattern::update(double elapsed)
{
    player->totalElapsed += elapsed;
    
    if (isFinished() && !stage->ground->isBlinking()) {
        updateLevel();
        saveData.push_back(getFinishedStageData());
        setPattern();
    }
    
    for (int i = 0; i < stage->poppies.size(); ++i)
        for (int j = 0; j < stage->pots.size(); ++j)
            updatePlayerChoice(stage->poppies[i], stage->pots[j]);
    
    updateFeedback();
    
    updatePoppyBlinks(elapsed);
    
    stage->update(elapsed);
    stage->handlePoppyCollisions(elapsed);
    
    stage->label1->setCaption("Time: " + toStringInt(player->totalElapsed));
}