From: Mikko Rasa Date: Sat, 15 Jun 2013 21:00:30 +0000 (+0300) Subject: Support loading dialog action buttons X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=8c24649c40829dd1ce78ca4bbcae0913574ab292;p=libs%2Fgltk.git Support loading dialog action buttons --- diff --git a/source/dialog.cpp b/source/dialog.cpp index cc4c1bf..dba276d 100644 --- a/source/dialog.cpp +++ b/source/dialog.cpp @@ -1,6 +1,8 @@ #include "button.h" #include "dialog.h" +using namespace std; + namespace Msp { namespace GLtk { @@ -35,5 +37,20 @@ void Dialog::response(int code) stale = true; } + +Dialog::Loader::Loader(Dialog &d, WidgetMap &wm): + DerivedObjectLoader(d, wm) +{ + add("action_button", &Loader::action_button); +} + +void Dialog::Loader::action_button(const string &n, int c) +{ + RefPtr