X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdialog.cpp;h=dba276d32d7aa05de119fa2cdf48407cbdcf4fe9;hb=8c24649c40829dd1ce78ca4bbcae0913574ab292;hp=cc4c1bf6a51f67cd1b00ecd46a9fc3cb2fda0c90;hpb=646af3dd91a6ca981572a5b69a0f0bd205d9af49;p=libs%2Fgltk.git 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