MCPcopy Create free account
hub / github.com/audacity/audacity / init

Method init

au4/src/context/internal/uicontextresolver.cpp:39–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37static const QString PROJECT_NAVIGATION_PANEL("MainToolBar");
38
39void UiContextResolver::init()
40{
41 interactive()->currentUri().ch.onReceive(this, [this](const Uri&) {
42 notifyAboutContextChanged();
43 });
44
45#ifdef AU_BUILD_PLAYBACK_MODULE
46 playbackController()->isPlayingChanged().onNotify(this, [this]() {
47 notifyAboutContextChanged();
48 });
49#endif
50
51 //! TODO AU4
52 // globalContext()->currentProjectChanged().onNotify(this, [this]() {
53 // auto project = globalContext()->currentProject();
54 // if (notation) {
55 // notation->interaction()->selectionChanged().onNotify(this, [this]() {
56 // notifyAboutContextChanged();
57 // });
58
59 // notation->interaction()->textEditingStarted().onNotify(this, [this]() {
60 // notifyAboutContextChanged();
61 // });
62
63 // notation->interaction()->textEditingEnded().onReceive(this, [this](engraving::TextBase*) {
64 // notifyAboutContextChanged();
65 // });
66
67 // notation->undoStack()->stackChanged().onNotify(this, [this]() {
68 // notifyAboutContextChanged();
69 // });
70
71 // notation->interaction()->noteInput()->noteInputStarted().onNotify(this, [this]() {
72 // notifyAboutContextChanged();
73 // });
74
75 // notation->interaction()->noteInput()->noteInputEnded().onNotify(this, [this]() {
76 // notifyAboutContextChanged();
77 // });
78 // }
79 // notifyAboutContextChanged();
80 // });
81
82 navigationController()->navigationChanged().onNotify(this, [this]() {
83 notifyAboutContextChanged();
84 });
85}
86
87void UiContextResolver::notifyAboutContextChanged()
88{

Callers 1

onInitMethod · 0.45

Calls 1

isPlayingChangedMethod · 0.80

Tested by

no test coverage detected