![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
00001 /******************************************************************************** 00002 * * 00003 * D e b u g T a r g e t * 00004 * * 00005 ********************************************************************************* 00006 * Copyright (C) 1998,2002 by Jeroen van der Zijp. All Rights Reserved. * 00007 ********************************************************************************* 00008 * This library is free software; you can redistribute it and/or * 00009 * modify it under the terms of the GNU Lesser General Public * 00010 * License as published by the Free Software Foundation; either * 00011 * version 2.1 of the License, or (at your option) any later version. * 00012 * * 00013 * This library is distributed in the hope that it will be useful, * 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00016 * Lesser General Public License for more details. * 00017 * * 00018 * You should have received a copy of the GNU Lesser General Public * 00019 * License along with this library; if not, write to the Free Software * 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * 00021 ********************************************************************************* 00022 * $Id: FXDebugTarget.h,v 1.9 2002/01/18 22:42:52 jeroen Exp $ * 00023 ********************************************************************************/ 00024 #ifndef FXDEBUGTARGET_H 00025 #define FXDEBUGTARGET_H 00026 00027 #ifndef FXOBJECT_H 00028 #include "FXObject.h" 00029 #endif 00030 00031 00032 00033 /** 00034 * A DebugTarget prints out every message it receives. 00035 * To use it, simply make the DebugTarget a target of the widget 00036 * whose messages you want to see, 00037 */ 00038 class FXAPI FXDebugTarget : public FXObject { 00039 FXDECLARE(FXDebugTarget) 00040 protected: 00041 FXObject *lastsender; 00042 FXSelector lastsel; 00043 FXuint count; 00044 public: 00045 static const FXchar *const messageTypeName[]; 00046 private: 00047 FXDebugTarget(const FXDebugTarget&); 00048 FXDebugTarget &operator=(const FXDebugTarget&); 00049 public: 00050 long onMessage(FXObject*,FXSelector,void*); 00051 public: 00052 00053 /// Construct a debug target 00054 FXDebugTarget(); 00055 00056 }; 00057 00058 00059 00060 00061 #endif