GG

EveGlue.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 /* GG is a GUI for SDL and OpenGL.
00003    Copyright (C) 2003-2008 T. Zachary Laine
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public License
00007    as published by the Free Software Foundation; either version 2.1
00008    of the License, or (at your option) any later version.
00009    
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Lesser General Public License for more details.
00014     
00015    You should have received a copy of the GNU Lesser General Public
00016    License along with this library; if not, write to the Free
00017    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00018    02111-1307 USA
00019 
00020    If you do not wish to comply with the terms of the LGPL please
00021    contact the author as other terms are available for a fee.
00022     
00023    Zach Laine
00024    whatwasthataddress@gmail.com */
00025 
00031 #ifndef _EveGlue_h_
00032 #define _EveGlue_h_
00033 
00034 #include <GG/adobe/dictionary.hpp>
00035 
00036 #include <boost/function.hpp>
00037 
00038 
00039 namespace GG {
00040 
00041 class Wnd;
00042 
00044 struct ModalDialogResult
00045 {
00050     adobe::dictionary_t m_result;
00051 
00054     adobe::name_t m_terminating_action;
00055 };
00056 
00061 typedef boost::function <bool (adobe::name_t, const adobe::any_regular_t&)> ButtonHandler;
00062 
00065 ModalDialogResult ExecuteModalDialog(std::istream& eve_definition,
00066                                      std::istream& adam_definition,
00067                                      ButtonHandler handler);
00068 
00071 Wnd* MakeDialog(std::istream& eve_definition,
00072                 std::istream& adam_definition,
00073                 ButtonHandler handler);
00074 
00075 }
00076 
00077 #endif