本文整理汇总了C++中FixtureGroup::name方法的典型用法代码示例。如果您正苦于以下问题:C++ FixtureGroup::name方法的具体用法?C++ FixtureGroup::name怎么用?C++ FixtureGroup::name使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FixtureGroup
的用法示例。
在下文中一共展示了FixtureGroup::name方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: slotFixtureGroupChanged
void RGBMatrixEditor::slotFixtureGroupChanged(quint32 id)
{
if (id == m_matrix->fixtureGroup())
{
// Update the whole chain -> maybe the fixture layout has changed
fillFixtureGroupCombo();
slotFixtureGroupActivated(m_fixtureGroupCombo->currentIndex());
}
else
{
// Just change the name of the group, nothing else is interesting at this point
int index = m_fixtureGroupCombo->findData(id);
if (index != -1)
{
FixtureGroup* grp = m_doc->fixtureGroup(id);
m_fixtureGroupCombo->setItemText(index, grp->name());
}
}
}
示例2: slotSaveToSequenceClicked
void RGBMatrixEditor::slotSaveToSequenceClicked()
{
if (m_matrix == NULL || m_matrix->fixtureGroup() == FixtureGroup::invalidId())
return;
FixtureGroup* grp = m_doc->fixtureGroup(m_matrix->fixtureGroup());
if (grp != NULL && m_matrix->algorithm() != NULL)
{
bool testRunning = false;
if (m_testButton->isChecked() == true)
{
m_testButton->click();
testRunning = true;
}
else
m_previewTimer->stop();
Scene *grpScene = new Scene(m_doc);
grpScene->setName(grp->name());
QList<GroupHead> headList = grp->headList();
foreach (GroupHead head, headList)
{
Fixture *fxi = m_doc->fixture(head.fxi);
if (fxi == NULL)
continue;
QList<quint32> rgbCh = fxi->rgbChannels(head.head);
if (rgbCh.count() == 3)
{
grpScene->setValue(head.fxi, rgbCh.at(0), 0);
grpScene->setValue(head.fxi, rgbCh.at(1), 0);
grpScene->setValue(head.fxi, rgbCh.at(2), 0);
}
quint32 master = fxi->masterIntensityChannel(head.head);
if (master != QLCChannel::invalid())
grpScene->setValue(head.fxi, master, 0);
}