VCSlider::VCSlider(Doc *doc, QObject *parent) : VCWidget(doc, parent) , m_channelsTree(nullptr) , m_widgetMode(WSlider) , m_valueDisplayStyle(DMXValue) , m_invertedAppearance(false) , m_sliderMode(Adjust) , m_value(0) , m_rangeLowLimit(0) , m_rangeHighLimit(UCHAR_MAX) , m_levelValueChanged(false) , m_monitorEnabled(false) , m_monitorValue(0) , m_isOverriding(false) , m_fixtureTree(nullptr) , m_searchFilter(QString()) , m_clickAndGoType(CnGNone) , m_cngPrimaryColor(QColor()) , m_cngSecondaryColor(QColor()) , m_controlledFunctionId(Function::invalidId()) , m_adjustChangeCounter(0) , m_controlledAttributeIndex(Function::invalidAttributeId()) , m_controlledAttributeId(Function::invalidAttributeId()) , m_attributeMinValue(0) , m_attributeMaxValue(UCHAR_MAX) , m_priorityRequest(-1) { setType(VCWidget::SliderWidget); registerExternalControl(INPUT_SLIDER_CONTROL_ID, tr("Slider Control"), false); registerExternalControl(INPUT_SLIDER_RESET_ID, tr("Reset Control"), false); }
VCButton::VCButton(Doc *doc, QObject *parent) : VCWidget(doc, parent) , m_functionID(Function::invalidId()) , m_isOn(false) , m_actionType(Toggle) { setType(VCWidget::ButtonWidget); setBackgroundColor(QColor("#444")); registerExternalControl(INPUT_PRESSURE_ID, tr("Pressure"), true); }
VCCueList::VCCueList(Doc *doc, QObject *parent) : VCWidget(doc, parent) , m_nextPrevBehavior(DefaultRunFirst) , m_playbackLayout(PlayPauseStop) , m_chaserID(Function::invalidId()) , m_playbackIndex(-1) { setType(VCWidget::CueListWidget); registerExternalControl(INPUT_NEXT_STEP_ID, tr("Next Cue"), true); registerExternalControl(INPUT_PREVIOUS_STEP_ID, tr("Previous Cue"), true); registerExternalControl(INPUT_PLAY_PAUSE_ID, tr("Play/Stop/Pause"), true); registerExternalControl(INPUT_CROSSFADE_L_ID, tr("Left Crossfade"), false); registerExternalControl(INPUT_CROSSFADE_R_ID, tr("Right Crossfade"), false); registerExternalControl(INPUT_STOP_PAUSE_ID, tr("Stop/Pause"), true); m_stepsList = new ListModel(this); QStringList listRoles; listRoles << "funcID" << "isSelected" << "fadeIn" << "hold" << "fadeOut" << "duration" << "note"; m_stepsList->setRoleNames(listRoles); }