• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ossia / score / 41341968869

01 Nov 2026 07:29PM UTC coverage: 52.268% (+0.8%) from 51.472%
41341968869

push

github

jcelerier
[http_server] quick fix for crash when setting IP address

1 of 2 new or added lines in 1 file covered. (50.0%)

155 existing lines in 8 files now uncovered.

186108 of 356067 relevant lines covered (52.27%)

310779.08 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.44
/src/plugins/score-lib-process/Effect/EffectLayer.cpp
1
#include "EffectLayer.hpp"
2

3
#include <Process/ApplicationPlugin.hpp>
4
#include <Process/Commands/LoadPreset.hpp>
5
#include <Process/Commands/LoadPresetCommandFactory.hpp>
6
#include <Process/Dataflow/CableCopy.hpp>
7
#include <Process/Focus/FocusDispatcher.hpp>
8
#include <Process/Process.hpp>
9
#include <Process/ProcessList.hpp>
10
#include <Process/ProcessMimeSerialization.hpp>
11
#include <Process/Script/EditorOverlay.hpp>
12
#include <Process/Style/Pixmaps.hpp>
13
#include <Process/UIPlacement.hpp>
14

15
#include <score/selection/SelectionDispatcher.hpp>
16
#include <score/application/GUIApplicationContext.hpp>
17
#include <score/command/Dispatchers/CommandDispatcher.hpp>
18
#include <score/document/DocumentContext.hpp>
19
#include <score/graphics/GraphicWidgets.hpp>
20
#include <score/model/EntitySerialization.hpp>
21
#include <score/model/path/PathSerialization.hpp>
22
#include <score/plugins/documentdelegate/DocumentDelegateView.hpp>
23
#include <score/plugins/panel/PanelDelegate.hpp>
24
#include <score/selection/SelectionStack.hpp>
25
#include <score/widgets/HelpInteraction.hpp>
26
#include <score/widgets/SetIcons.hpp>
27

28
#include <core/document/Document.hpp>
29
#include <core/document/DocumentView.hpp>
30
#include <core/view/CentralViewStack.hpp>
31
#include <core/view/FixedTabWidget.hpp>
32
#include <core/view/Window.hpp>
33

34
#include <ossia/detail/algorithms.hpp>
35
#include <ossia/detail/hash_map.hpp>
36
#include <ossia/detail/thread.hpp>
37

38
#include <QActionGroup>
39
#include <QDialogButtonBox>
40
#include <QMenu>
41
#include <QPointer>
42
#include <QToolButton>
43

44
#include <wobjectimpl.h>
UNCOV
45
W_OBJECT_IMPL(Process::EffectLayerPresenter)
×
46
namespace Process
47
{
48

49
EffectLayerView::EffectLayerView(QGraphicsItem* parent)
2 ✔
50
    : Process::LayerView{parent}
2 ✔
51
{
2 ✔
52
}
53

54
EffectLayerView::~EffectLayerView() { }
2 ✔
55

56
void EffectLayerView::setWidth(qreal val, qreal defaultWidth)
2 ✔
57
{
58
  m_defaultWidth = defaultWidth;
2 ✔
59
  LayerView::setWidth(val);
2 ✔
60
}
2 ✔
61

UNCOV
62
void EffectLayerView::paint_impl(QPainter*) const { }
×
63

64
EffectLayerPresenter::EffectLayerPresenter(
1 ✔
65
    const ProcessModel& model, Process::EffectLayerView* view, const Context& ctx,
66
    QObject* parent)
67
    : LayerPresenter{model, view, ctx, parent}
1 ✔
68
    , m_view{view}
1 ✔
69
{
1 ✔
70
  putToFront();
1 ✔
71
}
1 ✔
72

73
EffectLayerPresenter::~EffectLayerPresenter() { }
2 ✔
74

75
void EffectLayerPresenter::setWidth(qreal val, qreal defaultWidth)
2 ✔
76
{
77
  m_view->setWidth(val, defaultWidth);
2 ✔
78
}
2 ✔
79

80
void EffectLayerPresenter::setHeight(qreal val)
2 ✔
81
{
82
  m_view->setHeight(val);
2 ✔
83
}
2 ✔
84

85
void EffectLayerPresenter::putToFront()
1 ✔
86
{
87
  m_view->setVisible(true);
1 ✔
88
}
1 ✔
89

UNCOV
90
void EffectLayerPresenter::putBehind()
×
91
{
92
  m_view->setVisible(false);
×
UNCOV
93
}
×
94

95
void EffectLayerPresenter::on_zoomRatioChanged(ZoomRatio) { }
2 ✔
96

97
void EffectLayerPresenter::parentGeometryChanged() { }
2 ✔
98

UNCOV
99
void EffectLayerPresenter::fillContextMenu(
×
100
    QMenu& menu, QPoint pos, QPointF scenepos, const LayerContextMenuManager& mgr)
101
{
UNCOV
102
}
×
103

104
QGraphicsItem* makeScriptButton(
1,648 ✔
105
    ProcessModel& effect, const score::DocumentContext& context, QObject* self,
106
    QGraphicsItem* root)
107
{
108
  auto& pixmaps = Process::Pixmaps::instance();
1,648 ✔
109
  auto& facts = context.app.interfaces<Process::LayerFactoryList>();
1,648 ✔
110
  auto fact = facts.findDefaultFactory(effect);
1,648 ✔
111
  if(effect.flags() & Process::ProcessFlags::ScriptEditingSupported)
1,648 ✔
112
  {
113
    auto ui_btn = new score::QGraphicsPixmapToggle{
758 ✔
114
        pixmaps.show_script_on, pixmaps.show_script_off, root};
379 ✔
115
    ui_btn->setToolTip(
758 ✔
116
        QObject::tr("Show/hide UI\nShow the process's script editor for JS, shaders, etc."));
379 ✔
117
    QObject::connect(
379 ✔
118
        ui_btn, &score::QGraphicsPixmapToggle::toggled, self,
379 ✔
119
        [=, &effect, &context](bool b) {
380 ✔
120
      // The button takes the click the process would have been selected by
121
      score::SelectionDispatcher{context.selectionStack}.select(effect);
1 ✔
122
      Process::setupScriptUI(effect, *fact, context, b);
1 ✔
123
    });
1 ✔
124

125
    if(effect.scriptUI)
379 ✔
126
      ui_btn->setState(true);
5 ✔
127
    QObject::connect(
379 ✔
128
        &effect, &Process::ProcessModel::scriptUIVisible, ui_btn,
379 ✔
129
        [=](bool v) { ui_btn->setState(v); });
509 ✔
130
    QObject::connect(
379 ✔
131
        ui_btn, &score::QGraphicsPixmapToggle::contextMenuRequested, self,
379 ✔
132
        [&effect, &context](QPoint pos) {
379 ✔
133
      QMenu menu;
×
134
      fillPlacementMenu(menu, effect, context, ProcessUIKind::ScriptEditor);
×
135
      menu.exec(pos);
×
UNCOV
136
    });
×
137
    return ui_btn;
379 ✔
138
  }
139
  return nullptr;
1,269 ✔
140
}
1,648 ✔
141

142
namespace
143
{
144
score::View* mainView() noexcept
72 ✔
145
{
146
  return qobject_cast<score::View*>(score::GUIAppContext().mainWindow);
72 ✔
147
}
148

149
score::CentralViewStack* centralViews(const score::DocumentContext& ctx) noexcept
92 ✔
150
{
151
  if(auto v = ctx.document.view())
92 ✔
152
    return &v->centralViews();
92 ✔
UNCOV
153
  return nullptr;
×
154
}
92 ✔
155

156
void showAsWindow(QWidget* win)
27 ✔
157
{
158
#if defined(__EMSCRIPTEN__)
159
  // Qt for wasm reports ShowIsFullScreen unconditionally, and QWidget::show()
160
  // acts on it exactly as QWindow::show() does: the window covers the page and
161
  // loses the frame Qt draws for it, leaving no way to close or move it.
162
  // Also, without an OS window manager the window would otherwise open
163
  // behind / unfocused: the first click on "Compile" would only activate it.
164
  win->setWindowFlag(Qt::WindowStaysOnTopHint, true);
165
  win->showNormal();
166
#else
167
  win->show();
27 ✔
168
#endif
169
  win->raise();
27 ✔
170
  win->activateWindow();
27 ✔
171
}
27 ✔
172

173
QString kindName(ProcessUIKind kind)
195 ✔
174
{
175
  return kind == ProcessUIKind::ScriptEditor ? QObject::tr("code") : QObject::tr("UI");
195 ✔
176
}
177

178
// "My script (code)", "My script (UI)": a process can have both open
179
QString processTitle(const Process::ProcessModel& proc, ProcessUIKind kind)
195 ✔
180
{
181
  auto n = proc.prettyName();
195 ✔
182
  if(n.isEmpty())
195 ✔
UNCOV
183
    n = proc.metadata().getLabel();
×
184
  return QStringLiteral("%1 (%2)").arg(n, kindName(kind));
195 ✔
185
}
195 ✔
186

187
/**
188
 * Bookkeeping attached to a process UI widget: where it is and the
189
 * connections that placement made, undone when it moves.
190
 * Deleted with the widget.
191
 */
192
class PlacedUI final : public QObject
193
{
194
public:
195
  PlacedUI(QWidget* win, UIPlacement p, ProcessUIKind k)
216 ✔
196
      : QObject{win}
108 ✔
197
      , placement{p}
108 ✔
198
      , kind{k}
108 ✔
199
  {
108 ✔
200
    setObjectName(QStringLiteral("PlacedUI"));
108 ✔
201
  }
108 ✔
202

203
  ~PlacedUI()
119 ✔
204
  {
11 ✔
205
    for(auto& c : connections)
274 ✔
206
      QObject::disconnect(c);
166 ✔
207
  }
119 ✔
208

209
  UIPlacement placement;
210
  ProcessUIKind kind;
211
  //! The widget put in the central stack: an overlay host, or the UI itself
212
  QPointer<QWidget> host;
213
  std::vector<QMetaObject::Connection> connections;
214
};
215

216
PlacedUI* placedState(QWidget* win)
205 ✔
217
{
218
  if(!win)
205 ✔
UNCOV
219
    return nullptr;
×
220
  for(auto child : win->children())
995 ✔
221
    if(auto state = dynamic_cast<PlacedUI*>(child))
887 ✔
222
      return state;
97 ✔
223
  return nullptr;
108 ✔
224
}
205 ✔
225

226
//! The placement asked for this process, or the user's default
227
UIPlacement placementFor(const Process::ProcessModel& proc, ProcessUIKind kind)
108 ✔
228
{
229
  switch(kind)
108 ✔
230
  {
231
    case ProcessUIKind::ScriptEditor:
232
      return UIPlacementSettings::fromString(
84 ✔
233
          proc.scriptEditorPlacement(), UIPlacementSettings::scriptEditorPlacement());
84 ✔
234
    case ProcessUIKind::ExternalUI: {
235
      // Only UIs made of plain widgets / Qt Quick can live inside the main
236
      // window; plug-ins owning a native window keep opening separately.
237
      if(!(proc.flags() & Process::ProcessFlags::ExternalUIEmbeddable))
24 ✔
UNCOV
238
        return UIPlacement::Window;
×
239
      return UIPlacementSettings::fromString(
24 ✔
240
          proc.processUIPlacement(), UIPlacementSettings::processUIPlacement());
24 ✔
241
    }
242
  }
UNCOV
243
  return UIPlacement::Window;
×
244
}
108 ✔
245

246
void showPlacementMenu(
3 ✔
247
    Process::ProcessModel& proc, const score::DocumentContext& ctx, ProcessUIKind kind,
248
    QPoint globalPos)
249
{
250
  QMenu menu;
3 ✔
251
  fillPlacementMenu(menu, proc, ctx, kind);
3 ✔
252
  menu.exec(globalPos);
3 ✔
253
}
3 ✔
254

255
//! A menu button in the editor's own button row, so that it can be moved
256
//! from wherever it is, including from a separate window.
257
void addPlacementButton(
84 ✔
258
    QWidget* win, Process::ProcessModel& proc, const score::DocumentContext& ctx,
259
    ProcessUIKind kind)
260
{
261
  auto bbox = win->findChild<QDialogButtonBox*>();
84 ✔
262
  if(!bbox)
84 ✔
UNCOV
263
    return;
×
264
  if(bbox->findChild<QToolButton*>(QStringLiteral("PlacementButton")))
84 ✔
265
    return;
15 ✔
266

267
  auto btn = new QToolButton{bbox};
69 ✔
268
  btn->setObjectName(QStringLiteral("PlacementButton"));
69 ✔
269
  btn->setAutoRaise(true);
69 ✔
270
  btn->setPopupMode(QToolButton::InstantPopup);
69 ✔
271
  btn->setIcon(makeIcons(
138 ✔
272
      QStringLiteral(":/icons/undock_on.png"), QStringLiteral(":/icons/undock_off.png"),
69 ✔
273
      QStringLiteral(":/icons/undock_off.png")));
69 ✔
274
  btn->setToolTip(QObject::tr("Where this editor opens"));
69 ✔
275
  score::setHelp(
69 ✔
276
      btn, QObject::tr(
69 ✔
277
               "Open the editor in a separate window, in the side panel or in "
278
               "the central view. Remembered for this process, and becomes "
279
               "the default for the others."));
280

281
  auto menu = new QMenu{btn};
69 ✔
282
  QObject::connect(menu, &QMenu::aboutToShow, btn, [menu, &proc, &ctx, kind] {
69 ✔
283
    // Rebuilt on every opening; the action groups are not among what
284
    // clear() deletes.
285
    qDeleteAll(menu->findChildren<QActionGroup*>(QString{}, Qt::FindDirectChildrenOnly));
×
286
    menu->clear();
×
287
    fillPlacementMenu(*menu, proc, ctx, kind);
×
UNCOV
288
  });
×
289
  btn->setMenu(menu);
69 ✔
290
  bbox->addButton(btn, QDialogButtonBox::HelpRole);
69 ✔
291
}
84 ✔
292

293
//! The document's background when it shows one (a Background device, a
294
//! watched texture port)
295
QWidget* backgroundPreview(const score::DocumentContext& ctx)
12 ✔
296
{
297
  if(auto docView = ctx.document.view())
12 ✔
298
  {
299
    auto& delegate = docView->viewDelegate();
12 ✔
300
    if(delegate.activeBackgroundRenderer())
12 ✔
301
      return new DocumentBackgroundPreview{delegate};
10 ✔
302
  }
2 ✔
303
  return nullptr;
2 ✔
304
}
12 ✔
305

306
//! What a central code editor is drawn over: the document's background, when
307
//! asked for and when the document shows one
308
QWidget* makePreview(const score::DocumentContext& ctx)
36 ✔
309
{
310
  switch(UIPlacementSettings::scriptEditorPreview())
36 ✔
311
  {
312
    case PreviewSource::Background:
313
      return backgroundPreview(ctx);
12 ✔
314
    case PreviewSource::None:
315
      return nullptr;
24 ✔
316
  }
UNCOV
317
  return nullptr;
×
318
}
36 ✔
319

320
/**
321
 * Puts a UI created for a process (script editor, custom UI) where the
322
 * user wants it. The widget is expected to delete itself on close
323
 * (Qt::WA_DeleteOnClose): the panels it gets docked into watch for that.
324
 */
325
void placeProcessUI(
108 ✔
326
    QWidget* win, Process::ProcessModel& proc, const score::DocumentContext& ctx,
327
    UIPlacement placement, ProcessUIKind kind)
328
{
329
  const char* icon = kind == ProcessUIKind::ScriptEditor ? "script" : "new_window";
108 ✔
330
  const auto title = [&proc, kind] { return processTitle(proc, kind); };
303 ✔
331

332
  delete placedState(win);
108 ✔
333
  auto state = new PlacedUI{win, placement, kind};
108 ✔
334
  state->host = win;
108 ✔
335

336
  win->setWindowTitle(title());
108 ✔
337
  if(kind == ProcessUIKind::ScriptEditor)
108 ✔
338
    addPlacementButton(win, proc, ctx, kind);
84 ✔
339

340
  switch(placement)
108 ✔
341
  {
342
    case UIPlacement::Central: {
343
      auto views = centralViews(ctx);
47 ✔
344
      if(!views)
47 ✔
UNCOV
345
        break;
×
346

347
      QWidget* host = win;
47 ✔
348
      if(kind == ProcessUIKind::ScriptEditor)
47 ✔
349
      {
350
        if(auto preview = makePreview(ctx))
36 ✔
351
        {
352
          host = new EditorOverlayHost{win, preview};
10 ✔
353
        }
10 ✔
354
      }
36 ✔
355
      state->host = host;
47 ✔
356

357
      views->addView(
94 ✔
358
          host, title(), QIcon{QStringLiteral(":/icons/%1_on.png").arg(icon)});
47 ✔
359
      views->showView(host);
47 ✔
360

361
      state->connections.push_back(
47 ✔
362
          QObject::connect(
47 ✔
363
              &proc.metadata(), &score::ModelMetadata::NameChanged, win,
47 ✔
364
              [host, title, v = QPointer<score::CentralViewStack>{views}] {
48 ✔
365
        if(v)
1 ✔
366
          v->setViewTitle(host, title());
1 ✔
367
      }));
1 ✔
368
      state->connections.push_back(
94 ✔
369
          QObject::connect(
47 ✔
370
              views, &score::CentralViewStack::viewContextMenuRequested, win,
47 ✔
371
              [host, &proc, &ctx, kind](QWidget* v, QPoint pos) {
48 ✔
372
        if(v == host)
1 ✔
373
          showPlacementMenu(proc, ctx, kind, pos);
1 ✔
374
      }));
1 ✔
375
      return;
47 ✔
376
    }
377
    case UIPlacement::SidePanel: {
378
      auto view = mainView();
36 ✔
379
      if(!view)
36 ✔
UNCOV
380
        break;
×
381

382
      auto act = view->addRightPanel(
72 ✔
383
          win, score::PanelStatus{
72 ✔
384
                   false, true, Qt::RightDockWidgetArea, -100000, title(), icon,
36 ✔
385
                   QKeySequence{}});
36 ✔
386
      view->showRightPanel(win);
36 ✔
387

388
      state->connections.push_back(
72 ✔
389
          QObject::connect(
36 ✔
390
              &proc.metadata(), &score::ModelMetadata::NameChanged, win,
36 ✔
391
              [win, act = QPointer<QAction>{act}, view = QPointer<score::View>{view},
37 ✔
392
               title] {
36 ✔
393
        if(!act)
1 ✔
UNCOV
394
          return;
×
395
        act->setText(title());
1 ✔
396
        act->setIconText(title());
1 ✔
397
        act->setToolTip(title());
1 ✔
398
        // The pane's title only follows the current tab when it is shown
399
        if(view && act->isChecked())
1 ✔
400
          view->showRightPanel(win);
1 ✔
401
      }));
1 ✔
402
      state->connections.push_back(
72 ✔
403
          QObject::connect(
36 ✔
404
              view->rightTabs, &score::FixedTabWidget::tabContextMenuRequested, win,
36 ✔
405
              [win, &proc, &ctx, kind](QWidget* tab, QPoint pos) {
38 ✔
406
        if(tab == win)
2 ✔
407
          showPlacementMenu(proc, ctx, kind, pos);
2 ✔
408
      }));
2 ✔
409
      return;
36 ✔
410
    }
411
    case UIPlacement::Window:
412
      break;
25 ✔
413
  }
414

415
  state->placement = UIPlacement::Window;
25 ✔
416
  showAsWindow(win);
25 ✔
417
}
108 ✔
418

419
//! Takes a process UI out of wherever placeProcessUI put it, without closing it
420
void detachProcessUI(QWidget* win, const score::DocumentContext& ctx)
97 ✔
421
{
422
  auto state = placedState(win);
97 ✔
423
  if(!state)
97 ✔
424
  {
425
    if(!win->isWindow())
×
426
      win->setParent(nullptr);
×
UNCOV
427
    return;
×
428
  }
429

430
  const QPointer<QWidget> host = state->host;
97 ✔
431
  switch(state->placement)
97 ✔
432
  {
433
    case UIPlacement::Central: {
434
      if(auto views = centralViews(ctx); views && host)
41 ✔
435
      {
436
        if(host == win)
41 ✔
437
        {
438
          views->removeView(win);
33 ✔
439
        }
33 ✔
440
        else if(auto overlay = qobject_cast<EditorOverlayHost*>(host.data()))
8 ✔
441
        {
442
          // The host closes itself once its editor is gone; its tab goes
443
          // now rather than with its deferred deletion
444
          if(overlay->editor() == win)
8 ✔
445
            overlay->releaseEditor();
8 ✔
446
          if(host)
8 ✔
447
            views->removeView(host);
8 ✔
448
        }
8 ✔
449
      }
41 ✔
450
      break;
41 ✔
451
    }
452
    case UIPlacement::SidePanel: {
453
      if(auto view = mainView())
34 ✔
454
        view->removeRightPanel(win);
34 ✔
455
      win->setParent(nullptr);
34 ✔
456
      break;
34 ✔
457
    }
458
    case UIPlacement::Window:
459
      win->hide();
22 ✔
460
      break;
22 ✔
461
  }
462
  delete state;
97 ✔
463
}
97 ✔
464

465
//! Brings back an already opened process UI in front of the user
466
void raiseProcessUI(QWidget* win, const score::DocumentContext& ctx)
6 ✔
467
{
468
  if(win->isWindow())
6 ✔
469
  {
470
    showAsWindow(win);
2 ✔
471
  }
2 ✔
472
  else if(auto views = centralViews(ctx))
4 ✔
473
  {
474
    if(auto view = views->viewContaining(win))
4 ✔
475
      views->showView(view);
2 ✔
476
    else if(auto main = mainView())
2 ✔
477
      main->showRightPanel(win);
2 ✔
478
  }
4 ✔
UNCOV
479
  else if(auto view = mainView())
×
480
  {
481
    view->showRightPanel(win);
×
UNCOV
482
  }
×
483
}
6 ✔
484

485
//! Closes a process UI, making sure it is gone when this returns.
486
//! True when the UI left the bookkeeping to us: the pointer was still set
487
//! after its close, and got reset here.
488
bool closeProcessUI(QWidget*& slot, const score::DocumentContext& ctx)
82 ✔
489
{
490
  auto win = slot;
82 ✔
491
  if(!win)
82 ✔
492
    return false;
1 ✔
493

494
  // close() lets the widget notify that it is going away (the script
495
  // dialogs and the plug-in windows reset the process's pointer themselves)
496
  // and, with WA_DeleteOnClose, schedules its deletion. UIs that only hide
497
  // on close (the Pd wrapper for instance) are deleted here.
498
  const QPointer<QWidget> alive = win;
81 ✔
499
  win->close();
81 ✔
500
  const bool resetHere = (slot == win);
81 ✔
501
  if(resetHere)
81 ✔
502
    slot = nullptr;
22 ✔
503
  if(!alive)
81 ✔
UNCOV
504
    return resetHere;
×
505

506
  // Out of its tab right away, not once the deferred deletion has run
507
  detachProcessUI(alive, ctx);
81 ✔
508
  if(alive && !alive->testAttribute(Qt::WA_DeleteOnClose))
81 ✔
509
    delete alive.data();
81 ✔
510
  return resetHere;
81 ✔
511
}
82 ✔
512
}
513

514
void setupScriptUI(
132 ✔
515
    Process::ProcessModel& proc, const Process::LayerFactory& fact,
516
    const score::DocumentContext& ctx, bool show)
517
{
518
  if(!show)
132 ✔
519
  {
520
    closeProcessUI(proc.scriptUI, ctx);
60 ✔
521
    return;
60 ✔
522
  }
523

524
  if(auto win = proc.scriptUI)
72 ✔
525
  {
526
    raiseProcessUI(win, ctx);
3 ✔
527
    return;
3 ✔
528
  }
529

530
  auto win = fact.makeScriptUI(proc, ctx, nullptr);
69 ✔
531
  if(!win)
69 ✔
UNCOV
532
    return;
×
533

534
  proc.scriptUI = win;
69 ✔
535
  win->setAttribute(Qt::WA_DeleteOnClose);
69 ✔
536

537
  placeProcessUI(
69 ✔
538
      win, proc, ctx, placementFor(proc, ProcessUIKind::ScriptEditor),
69 ✔
539
      ProcessUIKind::ScriptEditor);
540
  proc.scriptUIVisible(true);
69 ✔
541
}
132 ✔
542

543
void setupExternalUI(
48 ✔
544
    Process::ProcessModel& proc, const Process::LayerFactory& fact,
545
    const score::DocumentContext& ctx, bool show)
546
{
547
  if(!show)
48 ✔
548
  {
549
    // A UI that does not report its own closing (a window container: its
550
    // cleanup only runs with the deferred deletion, once the pointer is
551
    // gone) gets reported here.
552
    if(closeProcessUI(proc.externalUI, ctx))
22 ✔
553
      proc.externalUIVisible(false);
22 ✔
554
    return;
22 ✔
555
  }
556

557
  if(auto win = proc.externalUI)
26 ✔
558
  {
559
    raiseProcessUI(win, ctx);
3 ✔
560
    return;
3 ✔
561
  }
562

563
  auto win = fact.makeExternalUI(proc, ctx, nullptr);
23 ✔
564
  if(!win)
23 ✔
UNCOV
565
    return;
×
566

567
  proc.externalUI = win;
23 ✔
568
  placeProcessUI(
23 ✔
569
      win, proc, ctx, placementFor(proc, ProcessUIKind::ExternalUI),
23 ✔
570
      ProcessUIKind::ExternalUI);
571
  proc.externalUIVisible(true);
23 ✔
572
}
48 ✔
573

574
void moveProcessUI(
17 ✔
575
    Process::ProcessModel& proc, const score::DocumentContext& ctx, ProcessUIKind kind,
576
    const QString& placement)
577
{
578
  // What gets stored ends up in the document: only known names
579
  if(!placement.isEmpty() && !UIPlacementSettings::names().contains(placement))
17 ✔
580
    return;
1 ✔
581

582
  // An explicit choice is kept for this process and becomes the default
583
  // for the others; "default" makes this process follow it again.
584
  QWidget* win{};
16 ✔
585
  switch(kind)
16 ✔
586
  {
587
    case ProcessUIKind::ScriptEditor:
588
      proc.setScriptEditorPlacement(placement);
15 ✔
589
      if(!placement.isEmpty())
15 ✔
590
        UIPlacementSettings::setScriptEditorPlacement(
14 ✔
591
            UIPlacementSettings::fromString(
14 ✔
592
                placement, UIPlacementSettings::scriptEditorPlacement()));
14 ✔
593
      win = proc.scriptUI;
15 ✔
594
      break;
15 ✔
595
    case ProcessUIKind::ExternalUI:
596
      proc.setProcessUIPlacement(placement);
1 ✔
597
      if(!placement.isEmpty())
1 ✔
598
        UIPlacementSettings::setProcessUIPlacement(
1 ✔
599
            UIPlacementSettings::fromString(
1 ✔
600
                placement, UIPlacementSettings::processUIPlacement()));
1 ✔
601
      win = proc.externalUI;
1 ✔
602
      break;
1 ✔
603
  }
604
  if(!win)
16 ✔
UNCOV
605
    return;
×
606

607
  const auto target = placementFor(proc, kind);
16 ✔
608
  detachProcessUI(win, ctx);
16 ✔
609
  placeProcessUI(win, proc, ctx, target, kind);
16 ✔
610
}
17 ✔
611

612
void fillPlacementMenu(
5 ✔
613
    QMenu& menu, Process::ProcessModel& proc, const score::DocumentContext& ctx,
614
    ProcessUIKind kind)
615
{
616
  const bool isEditor = kind == ProcessUIKind::ScriptEditor;
5 ✔
617
  auto title = menu.addAction(
10 ✔
618
      isEditor ? QObject::tr("Open the editor in") : QObject::tr("Open the UI in"));
5 ✔
619
  title->setEnabled(false);
5 ✔
620

621
  if(!isEditor && !(proc.flags() & Process::ProcessFlags::ExternalUIEmbeddable))
5 ✔
622
  {
623
    auto note = menu.addAction(QObject::tr("This UI can only open in its own window"));
1 ✔
624
    note->setEnabled(false);
1 ✔
625
    return;
1 ✔
626
  }
627

628
  const QString& current
4 ✔
629
      = isEditor ? proc.scriptEditorPlacement() : proc.processUIPlacement();
4 ✔
630
  const auto userDefault = isEditor ? UIPlacementSettings::scriptEditorPlacement()
4 ✔
UNCOV
631
                                    : UIPlacementSettings::processUIPlacement();
×
632
  const auto displayName = [](UIPlacement p) {
20 ✔
633
    switch(p)
16 ✔
634
    {
635
      case UIPlacement::Window:
636
        return QObject::tr("Separate window");
4 ✔
637
      case UIPlacement::SidePanel:
638
        return QObject::tr("Side panel");
7 ✔
639
      case UIPlacement::Central:
640
        return QObject::tr("Central view");
5 ✔
641
    }
UNCOV
642
    return QString{};
×
643
  };
16 ✔
644

645
  auto group = new QActionGroup{&menu};
4 ✔
646
  group->setExclusive(true);
4 ✔
647
  const auto addChoice = [&](const QString& text, const QString& value) {
20 ✔
648
    auto act = menu.addAction(text);
16 ✔
649
    act->setCheckable(true);
16 ✔
650
    act->setChecked(value == current);
16 ✔
651
    group->addAction(act);
16 ✔
652
    QObject::connect(act, &QAction::triggered, &menu, [&proc, &ctx, kind, value] {
17 ✔
653
      moveProcessUI(proc, ctx, kind, value);
1 ✔
654
    });
1 ✔
655
  };
16 ✔
656

657
  addChoice(QObject::tr("Default (%1)").arg(displayName(userDefault)), QString{});
4 ✔
658
  const auto& names = UIPlacementSettings::names();
4 ✔
659
  for(int i = 0; i < names.size(); i++)
16 ✔
660
    addChoice(displayName(static_cast<UIPlacement>(i)), names[i]);
12 ✔
661

662
  if(!isEditor)
4 ✔
UNCOV
663
    return;
×
664

665
  // What the editor is drawn over in the central view
666
  menu.addSeparator();
4 ✔
667
  auto previewTitle = menu.addAction(QObject::tr("Behind the editor"));
4 ✔
668
  previewTitle->setEnabled(false);
4 ✔
669
  const auto previewName = [](PreviewSource p) {
12 ✔
670
    switch(p)
8 ✔
671
    {
672
      case PreviewSource::Background:
673
        return QObject::tr("Document background, without chrome");
4 ✔
674
      case PreviewSource::None:
675
        return QObject::tr("Nothing: a plain editor");
4 ✔
676
    }
UNCOV
677
    return QString{};
×
678
  };
8 ✔
679
  const auto currentPreview = UIPlacementSettings::scriptEditorPreview();
4 ✔
680
  auto previewGroup = new QActionGroup{&menu};
4 ✔
681
  previewGroup->setExclusive(true);
4 ✔
682
  for(auto src : {PreviewSource::Background, PreviewSource::None})
12 ✔
683
  {
684
    auto act = menu.addAction(previewName(src));
8 ✔
685
    act->setCheckable(true);
8 ✔
686
    act->setChecked(src == currentPreview);
8 ✔
687
    previewGroup->addAction(act);
8 ✔
688
    QObject::connect(act, &QAction::triggered, &menu, [&proc, &ctx, src] {
8 ✔
UNCOV
689
      UIPlacementSettings::setScriptEditorPreview(src);
×
690
      // Applied right away to an open central editor
691
      auto win = proc.scriptUI;
×
692
      auto state = placedState(win);
×
693
      if(!win || !state || state->placement != UIPlacement::Central)
×
694
        return;
×
695
      detachProcessUI(win, ctx);
×
696
      placeProcessUI(win, proc, ctx, UIPlacement::Central, ProcessUIKind::ScriptEditor);
×
UNCOV
697
    });
×
698
  }
699
}
5 ✔
700

701
void setupScriptUI(
131 ✔
702
    Process::ProcessModel& proc, const score::DocumentContext& ctx, bool show)
703
{
704
  if(!(proc.flags() & Process::ProcessFlags::ScriptEditingSupported))
131 ✔
UNCOV
705
    return;
×
706

707
  auto& facts = ctx.app.interfaces<Process::LayerFactoryList>();
131 ✔
708
  auto fact = facts.findDefaultFactory(proc);
131 ✔
709
  if(!fact)
131 ✔
UNCOV
710
    return;
×
711

712
  setupScriptUI(proc, *fact, ctx, show);
131 ✔
713
}
131 ✔
714

715
void setupExternalUI(
50 ✔
716
    Process::ProcessModel& proc, const score::DocumentContext& ctx, bool show)
717
{
718
  auto& facts = ctx.app.interfaces<Process::LayerFactoryList>();
50 ✔
719

720
  auto fact = facts.findDefaultFactory(proc);
50 ✔
721
  if(!fact || !fact->hasExternalUI(proc, ctx))
50 ✔
722
    return;
2 ✔
723

724
  setupExternalUI(proc, *fact, ctx, show);
48 ✔
725
}
50 ✔
726

727
QGraphicsItem* makeExternalUIButton(
3,491 ✔
728
    ProcessModel& effect, const score::DocumentContext& context, QObject* self,
729
    QGraphicsItem* root)
730
{
731
  auto& pixmaps = Process::Pixmaps::instance();
3,491 ✔
732
  auto& facts = context.app.interfaces<Process::LayerFactoryList>();
3,491 ✔
733
  auto fact = facts.findDefaultFactory(effect);
3,491 ✔
734
  if(fact && fact->hasExternalUI(effect, context))
3,491 ✔
735
  {
736
    auto ui_btn = new score::QGraphicsPixmapToggle{
126 ✔
737
        pixmaps.show_ui_on, pixmaps.show_ui_off, root};
63 ✔
738
    ui_btn->setToolTip(
126 ✔
739
        QObject::tr(
63 ✔
740
            "Show/hide UI\nShow the process's interface for instance for VSTs "
741
            "or script editor for JS, etc."));
742
    QObject::connect(
63 ✔
743
        ui_btn, &score::QGraphicsPixmapToggle::toggled, self,
63 ✔
744
        [=, &effect, &context](bool b) {
63 ✔
745
      Process::setupExternalUI(effect, *fact, context, b);
×
UNCOV
746
    });
×
747

748
    if(effect.externalUI)
63 ✔
749
      ui_btn->setState(true);
1 ✔
750
    QObject::connect(
63 ✔
751
        &effect, &Process::ProcessModel::externalUIVisible, ui_btn,
63 ✔
752
        [=](bool v) { ui_btn->setState(v); });
108 ✔
753
    QObject::connect(
63 ✔
754
        ui_btn, &score::QGraphicsPixmapToggle::contextMenuRequested, self,
63 ✔
755
        [&effect, &context](QPoint pos) {
63 ✔
756
      QMenu menu;
×
757
      fillPlacementMenu(menu, effect, context, ProcessUIKind::ExternalUI);
×
758
      menu.exec(pos);
×
UNCOV
759
    });
×
760
    return ui_btn;
63 ✔
761
  }
762
  return nullptr;
3,428 ✔
763
}
3,491 ✔
764

765
namespace
766
{
767
//! "Foo / Bar//Baz" -> {"Foo", "Bar", "Baz"}: a category as the menu nests it
768
QStringList categoryPath(const QString& category)
429 ✔
769
{
770
  QStringList path;
429 ✔
771
  for(const QString& part : category.split('/', Qt::SkipEmptyParts))
935 ✔
772
    if(auto p = part.trimmed(); !p.isEmpty())
1,012 ✔
773
      path.push_back(std::move(p));
506 ✔
774
  return path;
429 ✔
775
}
429 ✔
776

777
// Grouped by category, each submenu's entries together, then by name: a
778
// category sorts before its own subcategories, as the menu shows them
779
bool presetMenuOrder(const Process::Preset* lhs, const Process::Preset* rhs) noexcept
176 ✔
780
{
781
  const auto a = categoryPath(lhs->category), b = categoryPath(rhs->category);
176 ✔
782
  if(a != b)
176 ✔
783
    return std::lexicographical_compare(a.begin(), a.end(), b.begin(), b.end());
154 ✔
784
  return lhs->name < rhs->name;
22 ✔
785
}
176 ✔
786

787
// The presets of a process as its preset menu shows them. The menu is built
788
// from this tree and the Forward / Back buttons walk it depth-first, so that
789
// stepping goes through the presets in exactly the order the menu lists them,
790
// built-in presets that land in a library preset's submenu included.
791
struct PresetTree
792
{
793
  struct Node
55 ✔
794
  {
795
    QString name;
796
    struct Entry
797
    {
798
      const Process::Preset* preset{}; // a preset,
799
      int child = -1;                  // or a submenu,
800
      bool separator{};                // or a separator
801
    };
802
    std::vector<Entry> entries;
803
    std::vector<std::unique_ptr<Node>> children;
804
    ossia::hash_map<QString, int> childIndex;
805
  };
806
  Node root;
807

808
  //! The library's presets of this process, then its built-in ones: both
809
  //! must outlive the tree
810
  PresetTree(
11 ✔
811
      const Process::ProcessModel& proc, const std::vector<Process::Preset>& library,
812
      const std::vector<Process::Preset>& builtins)
813
  {
814
    std::vector<const Process::Preset*> files;
11 ✔
815
    for(auto& preset : library)
88 ✔
816
      if(proc.presetMatches(preset))
77 ✔
817
        files.push_back(&preset);
77 ✔
818
    std::sort(files.begin(), files.end(), presetMenuOrder);
11 ✔
819
    for(auto* preset : files)
88 ✔
820
      add(*preset);
77 ✔
821

822
    if(!builtins.empty() && !files.empty())
11 ✔
UNCOV
823
      root.entries.push_back({nullptr, -1, true});
×
824
    for(auto& preset : builtins)
11 ✔
825
      add(preset);
×
826
  }
11 ✔
827

828
  std::vector<const Process::Preset*> ordered() const
11 ✔
829
  {
830
    std::vector<const Process::Preset*> out;
11 ✔
831
    flatten(root, out);
11 ✔
832
    return out;
11 ✔
833
  }
11 ✔
834

835
private:
836
  Node& node(const QString& category)
77 ✔
837
  {
838
    Node* current = &root;
77 ✔
839
    for(const QString& part : categoryPath(category))
165 ✔
840
    {
841
      auto it = current->childIndex.find(part);
88 ✔
842
      if(it == current->childIndex.end())
88 ✔
843
      {
844
        auto child = std::make_unique<Node>();
44 ✔
845
        child->name = part;
44 ✔
846
        const int index = int(current->children.size());
44 ✔
847
        current->children.push_back(std::move(child));
44 ✔
848
        current->entries.push_back({nullptr, index, false});
44 ✔
849
        it = current->childIndex.emplace(part, index).first;
44 ✔
850
      }
44 ✔
851
      current = current->children[std::size_t(it->second)].get();
88 ✔
852
    }
853
    return *current;
77 ✔
854
  }
×
855

856
  void add(const Process::Preset& preset)
77 ✔
857
  {
858
    node(preset.category).entries.push_back({&preset, -1, false});
77 ✔
859
  }
77 ✔
860

861
  static void flatten(const Node& n, std::vector<const Process::Preset*>& out)
55 ✔
862
  {
863
    for(auto& e : n.entries)
176 ✔
864
    {
865
      if(e.preset)
121 ✔
866
        out.push_back(e.preset);
77 ✔
867
      else if(e.child >= 0)
44 ✔
868
        flatten(*n.children[std::size_t(e.child)], out);
44 ✔
869
    }
870
  }
55 ✔
871
};
872

873
// The preset last loaded from the preset button, kept on the process so that
874
// it outlives the button: headers are rebuilt on zoom, resize, selection...
875
// Loading a preset does not rename the process, so its name says nothing
876
// about which preset is current.
877
constexpr auto presetCursorProperty = "score_presetCursor";
878

879
void rememberPreset(const Process::ProcessModel& proc, const Process::Preset& preset)
11 ✔
880
{
881
  const_cast<Process::ProcessModel&>(proc).setProperty(
22 ✔
882
      presetCursorProperty, QStringList{preset.category, preset.name});
11 ✔
883
}
11 ✔
884

885
bool isCurrentPreset(const Process::ProcessModel& proc, const Process::Preset& preset)
49 ✔
886
{
887
  const auto cursor = proc.property(presetCursorProperty).toStringList();
49 ✔
888
  return cursor.size() == 2 && cursor[0] == preset.category && cursor[1] == preset.name;
49 ✔
889
}
49 ✔
890

891
void loadPresetFromButton(
11 ✔
892
    const Process::ProcessModel& proc, const Process::Preset& preset,
893
    const score::DocumentContext& context)
894
{
895
  auto& load_preset_ifaces = context.app.interfaces<LoadPresetCommandFactoryList>();
11 ✔
896
  if(auto cmd
11 ✔
897
     = load_preset_ifaces.make(&LoadPresetCommandFactory::make, proc, preset, context))
11 ✔
898
  {
899
    rememberPreset(proc, preset);
11 ✔
900
    CommandDispatcher<> c{context.commandStack};
11 ✔
901
    c.submit(cmd);
11 ✔
902
  }
11 ✔
903
}
11 ✔
904
}
905

906
score::QGraphicsDraggablePixmap* makePresetButton(
1,654 ✔
907
    const ProcessModel& proc, const score::DocumentContext& context, QObject* self,
908
    QGraphicsItem* root)
909
{
910
  auto& pixmaps = Process::Pixmaps::instance();
1,654 ✔
911
  auto ui_btn
1,654 ✔
912
      = new score::QGraphicsDraggablePixmap{pixmaps.preset_on, pixmaps.preset_off, root};
1,654 ✔
913
  ui_btn->setToolTip(
3,308 ✔
914
      QObject::tr(
1,654 ✔
915
          "Presets\nDrag to the library to save the current preset. Drag to a "
916
          "scenario or a state for a cue of the current values of the controls; "
917
          "hold Ctrl when dropping to choose what to drop. If there are "
918
          "existing presets, they will be shown in a menu. The mouse's Forward "
919
          "and Back buttons step through them in the menu's order."));
920
  ui_btn->createDrag = [&proc, &context](QMimeData& mime) {
1,660 ✔
921
    // Dropped on a state or in a scenario it makes a cue; elsewhere a copy
922
    std::vector<const ProcessModel*> dragged{&proc};
6 ✔
923
    const auto& sel = context.selectionStack.currentSelection();
6 ✔
924
    if(ossia::any_of(sel, [&](const auto& obj) { return obj.data() == &proc; }))
13 ✔
925
      for(const auto& obj : sel)
6 ✔
926
        if(auto p = qobject_cast<const ProcessModel*>(obj.data()); p && p != &proc)
4 ✔
927
          dragged.push_back(p);
4 ✔
928

929
    QByteArray data;
6 ✔
930
    {
931
      JSONReader r;
6 ✔
932
      r.stream.StartObject();
6 ✔
933
      copyProcess(r, proc);
6 ✔
934
      r.obj["Path"] = score::IDocument::path(proc);
6 ✔
935
      r.obj["View"] = QStringLiteral("Nodal");
6 ✔
936
      r.stream.Key("Copy");
6 ✔
937
      r.stream.StartObject();
6 ✔
938
      copyProcesses(r, dragged, context);
6 ✔
939
      r.stream.EndObject();
6 ✔
940
      r.stream.EndObject();
6 ✔
941
      data = r.toByteArray();
6 ✔
942
    }
6 ✔
943

944
    mime.setData(score::mime::layerdata(), data);
6 ✔
945
    mime.setData(score::mime::processpreset(), proc.savePreset().toJson());
6 ✔
946
  };
6 ✔
947

948
  ui_btn->click = [&proc, &context](Qt::MouseButton btn, QPointF screenPos) {
1,665 ✔
949
    auto& pplug = context.app.applicationPlugin<Process::ApplicationPlugin>();
11 ✔
950
    const auto builtins = proc.builtinPresets();
11 ✔
951
    const PresetTree tree{proc, pplug.presets, builtins};
11 ✔
952

953
    switch(btn)
11 ✔
954
    {
955
      default:
956
        break;
×
957
      case Qt::LeftButton: {
958
        // Preset menu
UNCOV
959
        auto menu = new QMenu;
×
960
        menu->setToolTipsVisible(true);
×
UNCOV
961
        menu->addAction(
×
962
            "Save current preset", menu, [&proc, &pplug] { pplug.savePreset(&proc); });
×
UNCOV
963
        menu->addSeparator();
×
964

965
        // The actions hold a copy of their preset: the library's list can
966
        // grow, and reallocate, while the menu is open
UNCOV
967
        auto fill = [&](auto& recurse, QMenu* m, const PresetTree::Node& n) -> void {
×
UNCOV
968
          for(auto& e : n.entries)
×
969
          {
UNCOV
970
            if(e.separator)
×
UNCOV
971
              m->addSeparator();
×
UNCOV
972
            else if(e.child >= 0)
×
973
            {
UNCOV
974
              auto& child = *n.children[std::size_t(e.child)];
×
UNCOV
975
              auto sub = m->addMenu(child.name);
×
UNCOV
976
              sub->setToolTipsVisible(true);
×
UNCOV
977
              recurse(recurse, sub, child);
×
UNCOV
978
            }
×
UNCOV
979
            else if(e.preset)
×
980
            {
UNCOV
981
              auto act = m->addAction(
×
UNCOV
982
                  e.preset->name, menu,
×
UNCOV
983
                  [&proc, &context, preset = *e.preset] {
×
UNCOV
984
                loadPresetFromButton(proc, preset, context);
×
UNCOV
985
              });
×
UNCOV
986
              if(!e.preset->description.isEmpty())
×
UNCOV
987
                act->setToolTip(e.preset->description);
×
UNCOV
988
              act->setCheckable(true);
×
UNCOV
989
              act->setChecked(isCurrentPreset(proc, *e.preset));
×
UNCOV
990
            }
×
991
          }
UNCOV
992
        };
×
UNCOV
993
        fill(fill, menu, tree.root);
×
994

UNCOV
995
        menu->exec(screenPos.toPoint());
×
UNCOV
996
        menu->deleteLater();
×
UNCOV
997
        break;
×
998
      }
999

1000
      case Qt::ForwardButton:
1001
      case Qt::BackButton: {
1002
        // Step from the current preset, in the menu's order
1003
        const auto ordered = tree.ordered();
11 ✔
1004
        const int n = std::ssize(ordered);
11 ✔
1005
        if(n < 2)
11 ✔
UNCOV
1006
          return;
×
1007

1008
        int i = -1;
11 ✔
1009
        for(int j = 0; j < n; j++)
50 ✔
1010
          if(isCurrentPreset(proc, *ordered[std::size_t(j)]))
49 ✔
1011
          {
1012
            i = j;
10 ✔
1013
            break;
10 ✔
1014
          }
1015

1016
        if(i < 0)
11 ✔
1017
          // None loaded from here yet: start at the relevant end
1018
          i = (btn == Qt::ForwardButton) ? 0 : (n - 1);
1 ✔
1019
        else if(btn == Qt::ForwardButton)
10 ✔
1020
          i = (i + 1) % n;
8 ✔
1021
        else
1022
          i = (i - 1 + n) % n;
2 ✔
1023

1024
        loadPresetFromButton(proc, *ordered[std::size_t(i)], context);
11 ✔
1025
        break;
11 ✔
1026
      }
11 ✔
1027
    }
1028
  };
11 ✔
1029

1030
  return ui_btn;
1,654 ✔
UNCOV
1031
}
×
1032

1033
void copyProcess(JSONReader& r, const Process::ProcessModel& proc)
7 ✔
1034
{
1035
  const auto& ctx = score::IDocument::documentContext(proc);
7 ✔
1036

1037
  std::vector<const Process::ProcessModel*> vp{&proc};
7 ✔
1038
  std::vector<Path<Process::ProcessModel>> vpath{proc};
7 ✔
1039
  // Object is not created here but in SlotHeader
1040
  r.obj["PID"] = ossia::get_pid();
7 ✔
1041
  r.obj["Document"] = ctx.document.id();
7 ✔
1042
  // Document identifiers repeat across open documents
1043
  r.obj["OriginDocument"] = score::IDocument::copyOrigin(ctx.document);
7 ✔
1044
  r.obj["Process"] = proc;
7 ✔
1045
  r.obj["Cables"] = Process::cablesToCopy(vp, vpath, ctx);
7 ✔
1046
}
7 ✔
1047

1048
void copyProcesses(
15 ✔
1049
    JSONReader& r, const std::vector<const Process::ProcessModel*>& processes,
1050
    const score::DocumentContext& ctx)
1051
{
1052
  r.obj["Processes"] = processes;
15 ✔
1053
  r.obj["Cables"] = Process::cablesToCopy(processes, ctx);
15 ✔
1054
  r.stream.Key("ProcessPaths");
15 ✔
1055
  r.stream.StartArray();
15 ✔
1056
  for(auto proc : processes)
33 ✔
1057
    r.readFrom(score::IDocument::unsafe_path(*proc));
18 ✔
1058
  r.stream.EndArray();
15 ✔
1059
  r.obj["OriginDocument"] = score::IDocument::copyOrigin(ctx.document);
15 ✔
1060
}
15 ✔
1061
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc