X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdialog.cpp;h=2342e8483786b6ce5eba91f1a6c497290a70f7da;hb=1bc84ded58379ee24315db8784d9fb710a02e24e;hp=5a03102f463dd8b551e5606253c2b0426aa683a4;hpb=91997dd3189b93a67179822ec2fed5f2a7bddb74;p=libs%2Fgltk.git diff --git a/source/dialog.cpp b/source/dialog.cpp index 5a03102..2342e84 100644 --- a/source/dialog.cpp +++ b/source/dialog.cpp @@ -1,13 +1,8 @@ -/* $Id$ - -This file is part of libmspgltk -Copyright © 2010 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include "button.h" #include "dialog.h" +using namespace std; + namespace Msp { namespace GLtk { @@ -42,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