From 91583e23889a7654fab6669821979b36c1819606 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 28 Nov 2016 02:35:12 +0200 Subject: [PATCH] Add nameless child keywords for Panel Additionally, use a template specialization rather than separate function for a child which is itself a Panel. --- source/panel.cpp | 56 ++++++++++++++++++++++++++++++------------------ source/panel.h | 6 +++++- 2 files changed, 40 insertions(+), 22 deletions(-) diff --git a/source/panel.cpp b/source/panel.cpp index dc2808e..b9ddbf1 100644 --- a/source/panel.cpp +++ b/source/panel.cpp @@ -178,27 +178,34 @@ Panel::Loader::Loader(Panel &p, map &m): wdg_map(m), last_widget(0) { - add("button", &Loader::child