logic: Use ControllerProxy in Bookmarking UI classes instead of messaging

* changed ControllerProxy to template class
* allow passing method pointers and arguments to ControllerProxy
* replaced some messages with ControllerProxy calls
* moved logic from BookmarkView into BookmarkController
This commit is contained in:
Eberhard Graether
2017-10-03 07:59:59 +02:00
parent e604d24c40
commit a72da67d32
33 changed files with 641 additions and 840 deletions
+4 -1
View File
@@ -8,6 +8,8 @@
#include "component/view/ViewLayout.h"
class ViewWidgetWrapper;
template <typename ControllerType>
class ControllerProxy;
class View
@@ -44,7 +46,8 @@ protected:
void setWidgetWrapper(std::shared_ptr<ViewWidgetWrapper> widgetWrapper);
private:
friend ControllerProxy;
template <typename ControllerType>
friend class ControllerProxy;
Component* m_component;
ViewLayout* const m_viewLayout;