|
|
@@ -7,7 +7,8 @@
|
|
|
// Checks: the version gate (live::missesInsertItems, with keepsOwnSettings); this build's snapshot song (the same
|
|
|
// ProjectFile::toJson the host sends) carries its version near the head and reads back silent; a 0.1.32 / 0.1.31.2
|
|
|
// stamp reads back and gets the notice, an unstamped song none; the three notices in every language (translated,
|
|
|
- // their name and version filled in), in English as shown.
|
|
|
+ // their name and version filled in), in English as shown; and issue #396 (same round): Helix's channel window opened
|
|
|
+ // off-screen, its Helix+ strip's macro handles (part 4).
|
|
|
// Included in the app class of Main.cpp; --round190uytest <report> and --selftest "round190uy". No window, no network.
|
|
|
juce::String round190uyCheck (juce::String& log)
|
|
|
{
|
|
|
@@ -73,5 +74,53 @@
|
|
|
check ("guest notice in English", shown == "The host uses LYNX SHARE 0.1.32: ask the host to update it so the Mixer's effects switches, pinned tracks and notes stay in sync", shown);
|
|
|
check ("host notice in English", tr (hostItems, { "Ana", "0.1.32" }).startsWith ("Ana uses LYNX SHARE 0.1.32: update it so the Mixer's"));
|
|
|
i18n::apply (languageWas);
|
|
|
+
|
|
|
+ // 4. issue #396 (ycollet): Helix's channel window, LYNX's look, opened off-screen (as the LV2 manifest helper opens
|
|
|
+ // Wavecoil's editor). Helix+'s strip filled and laid out macros 1…8 into arrays of 4 (since 190ml), writing past
|
|
|
+ // them (libstdc++ assertions abort there; without them memory is overwritten) and making 4 more handles "M5"…"M8"
|
|
|
+ // on top of Helix+ 2's own. Now: 8 macro handles and 2 chaos handles in the strip, each laid out inside it once.
|
|
|
+ // (A build with -D_GLIBCXX_ASSERTIONS on src/ui/HelixEditor.cpp aborts here before the fix.)
|
|
|
+ {
|
|
|
+ juce::LookAndFeel::setDefaultLookAndFeel (&lookAndFeel);
|
|
|
+ AudioEngine offline (false);
|
|
|
+ offline.editSong ([] (Song& s) {
|
|
|
+ if (s.channels.empty())
|
|
|
+ s.channels.resize (1);
|
|
|
+ ChannelDef c;
|
|
|
+ c.instrument = InstrumentKind::helix;
|
|
|
+ c.name = "Helix";
|
|
|
+ c.mixerTrack = s.channels[0].mixerTrack;
|
|
|
+ s.channels[0] = c;
|
|
|
+ }, false);
|
|
|
+ offline.dispatchPendingMessages();
|
|
|
+ auto page = makeHelixEditor (offline, [] (Song& s) -> ChannelDef* { return s.channels.empty() ? nullptr : &s.channels[0]; }, 0);
|
|
|
+ page->setSize (std::max (page->getWidth(), 1000), std::max (page->getHeight(), 600));
|
|
|
+ offline.dispatchPendingMessages();
|
|
|
+ juce::Component* strip = nullptr;
|
|
|
+ std::function<void (juce::Component&)> find = [&] (juce::Component& c) {
|
|
|
+ for (auto* child : c.getChildren())
|
|
|
+ {
|
|
|
+ if (strip == nullptr && juce::String (typeid (*child).name()).contains ("HelixPlusStrip"))
|
|
|
+ strip = child;
|
|
|
+ find (*child);
|
|
|
+ }
|
|
|
+ };
|
|
|
+ find (*page);
|
|
|
+ check ("#396: Helix+'s strip in the channel window", strip != nullptr && strip->getWidth() > 0);
|
|
|
+ int handles = 0, inside = 0;
|
|
|
+ std::set<juce::String> places;
|
|
|
+ if (strip != nullptr)
|
|
|
+ for (auto* child : strip->getChildren())
|
|
|
+ if (auto* t = dynamic_cast<juce::SettableTooltipClient*> (child))
|
|
|
+ if (t->getTooltip() == tr ("Drag onto a knob to modulate it"))
|
|
|
+ {
|
|
|
+ ++handles;
|
|
|
+ inside += ! child->getBounds().isEmpty() && strip->getLocalBounds().contains (child->getBounds()) ? 1 : 0;
|
|
|
+ places.insert (child->getBounds().toString());
|
|
|
+ }
|
|
|
+ check ("#396: 8 macro handles and 2 chaos handles, each laid out once inside the strip",
|
|
|
+ handles == wt::macroCount + wt::chaosCount && inside == handles && (int) places.size() == handles,
|
|
|
+ juce::String (handles) + " handles, " + juce::String (inside) + " inside, " + juce::String ((int) places.size()) + " places");
|
|
|
+ }
|
|
|
return result;
|
|
|
}
|