20 #include <unordered_map> 23 #include <vstgui4/vstgui/lib/iviewlistener.h> 32 using namespace VSTGUI;
33 using namespace Params;
96 template<
typename TView>
108 void viewWillDelete(CView *iView)
override;
111 std::unordered_map<CView *, std::unique_ptr<GUIParamCxAware>> fViewConnections{};
117 template<
typename TView>
123 auto iter = fViewConnections.find(iView);
125 if(iter == fViewConnections.end())
127 iView->registerViewListener(
this);
128 fViewConnections[iView] = std::make_unique<ViewGUIParamCxAware<TView>>(iView);
129 fViewConnections[iView]->initState(iGUIState);
Definition: GUIState.h:39
Definition: GUIParamCxAware.h:277
Definition: ViewCxMgr.h:87
ViewGUIParamCxAware< TView > * registerConnectionFor(TView *iView, GUIState *iGUIState)
Definition: ViewCxMgr.h:118