Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function Wizard: create Effects #1649

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

8-Lambda-8
Copy link
Contributor

Hi,
I added the possibility to create Effects with the Function Wizard
What types of effects arc creates is determined by the fixture capabilities (Dimmer, RGB, Position).
for each type a normal and a staggered version (start offset spread equally) will be created.

image
image
image

@mcallegari
Copy link
Owner

Hi, this doesn't build.
Can you please fix it?

{
EFX *efx = new EFX(m_doc);

QString modeString = (new QString[]{KXMLQLCEFXFixtureModePanTilt, KXMLQLCEFXFixtureModeDimmer, KXMLQLCEFXFixtureModeRGB})[mode];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the line that fails to build. Can you just use a QStringList?

@coveralls
Copy link

coveralls commented Jan 4, 2025

Coverage Status

coverage: 31.468% (-0.03%) from 31.502%
when pulling 1324743 on 8-Lambda-8:effectsInWizard
into 3ed321c on mcallegari:master.

@8-Lambda-8
Copy link
Contributor Author

i fixed it

i did not see that EFXFixture has a modeToString function

i removed the line and used this function instead

@@ -561,6 +630,15 @@ void PaletteGenerator::createFunctions(PaletteGenerator::PaletteType type,
if (m_redList.size() > 1 && m_greenList.size() == m_redList.size() && m_blueList.size() == m_redList.size())
createRGBMatrices(m_redList);
}
break;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation please

@@ -102,6 +104,7 @@ QString PaletteGenerator::typetoString(PaletteGenerator::PaletteType type)
case Gobos: return tr("Gobo macros");
case ColourMacro: return tr("Colour macros");
case Animation: return tr("Animations");
case Effect: return tr("Effects");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not "EFX"? Users are used to that term

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i will rename it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants