00001 /*************************************************************************** 00002 LibUFO - UI For OpenGL 00003 copyright : (C) 2001-2005 by Johannes Schmidt 00004 email : schmidtjf at users.sourceforge.net 00005 ------------------- 00006 00007 file : include/ufo/signals/ufo_signals.hpp 00008 begin : Tue Jul 2 2002 00009 $Id: ufo_signals.hpp,v 1.8 2005/02/13 17:49:29 schmidtjf Exp $ 00010 ***************************************************************************/ 00011 00012 /*************************************************************************** 00013 * This library is free software; you can redistribute it and/or * 00014 * modify it under the terms of the GNU Lesser General Public * 00015 * License as published by the Free Software Foundation; either * 00016 * version 2.1 of the License, or (at your option) any later version. * 00017 * * 00018 * This library is distributed in the hope that it will be useful, * 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00021 * Lesser General Public License for more details. * 00022 * * 00023 * You should have received a copy of the GNU Lesser General Public * 00024 * License along with this library; if not, write to the Free Software * 00025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 00026 ***************************************************************************/ 00027 00028 #ifndef UFO_SIGNALS_HPP 00029 #define UFO_SIGNALS_HPP 00030 00031 // The UFO signal system is a minimal signal and slot system to 00032 // connect signal with abstract function slots. 00033 00034 // A slot can be a static function or an object method 00035 00036 // So far this is very similar to the libsigc++ signal system 00037 // (http://libsigcpp.sf.net) 00038 00039 // The main difference is that UFO signals don't know connections. 00040 // Instead you disconnect a slot from a signal by implicitly calling 00041 // signal.disconnect(slot) where slot is equal (via equals(SlotBase*)) 00042 // to the previously connected slot. 00043 00044 // thanks to the libsigc++ people at libsigc.sf.net 00045 00046 // WARNING: 00047 // The UFO signal system is not meant to be stable and 00048 // is definitly _not_ usable for common signal and slot communication 00049 00050 #include "uslot.hpp" 00051 #include "uobjectslot.hpp" 00052 #include "ufunctionslot.hpp" 00053 00054 #include "usignal.hpp" 00055 00056 namespace ufo { 00057 // common action slot specialization 00058 class UActionEvent; 00059 typedef USlot1<UActionEvent*> UActionSlot; 00060 00061 } // namespace ufo 00062 00063 #endif // UFO_SIGNALS_HPP