X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdialog.cpp;h=2342e8483786b6ce5eba91f1a6c497290a70f7da;hb=c8291177b545ec81930603a5915234a60296db51;hp=3e09783dcb5eb36350d4c4158b9139ae33ed7fd0;hpb=0af3c2393bd00f39db3bfaf5b78a7a44f0fd5ff1;p=libs%2Fgltk.git diff --git a/source/dialog.cpp b/source/dialog.cpp index 3e09783..2342e84 100644 --- a/source/dialog.cpp +++ b/source/dialog.cpp @@ -1,19 +1,12 @@ -/* $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 { -Dialog::Dialog(const Resources &r): - Widget(r), - Panel(r), +Dialog::Dialog(): stale(false) { } @@ -44,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