X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdialog.cpp;h=2342e8483786b6ce5eba91f1a6c497290a70f7da;hb=f0b600c3b1739f7e088da6ab8eb7c2e67adf592c;hp=cc4c1bf6a51f67cd1b00ecd46a9fc3cb2fda0c90;hpb=2b70e8801c43875ed3f4135bdd0141265cff0312;p=libs%2Fgltk.git diff --git a/source/dialog.cpp b/source/dialog.cpp index cc4c1bf..2342e84 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