20 #include <unordered_map> 23 #include <vstgui4/vstgui/lib/iviewlistener.h> 34 using namespace Params;
97 template<
typename TView>
109 void viewWillDelete(CView *iView)
override;
112 std::unordered_map<CView *, std::unique_ptr<GUIParamCxAware>> fViewConnections{};
118 template<
typename TView>
124 auto iter = fViewConnections.find(iView);
126 if(iter == fViewConnections.end())
128 iView->registerViewListener(
this);
129 fViewConnections[iView] = std::make_unique<ViewGUIParamCxAware<TView>>(iView);
130 fViewConnections[iView]->initState(iGUIState);
Definition: GUIState.h:39
Definition: GUIParamCxAware.h:299
Definition: ViewCxMgr.h:88
ViewGUIParamCxAware< TView > * registerConnectionFor(TView *iView, GUIState *iGUIState)
Definition: ViewCxMgr.h:119