Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXDebugTarget.h

Go to the documentation of this file.
00001 /********************************************************************************
00002 *                                                                               *
00003 *                              D e b u g   T a r g e t                          *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 1998,2006 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.15 2006/01/22 17:58:00 fox Exp $                     *
00023 ********************************************************************************/
00024 #ifndef FXDEBUGTARGET_H
00025 #define FXDEBUGTARGET_H
00026 
00027 #ifndef FXOBJECT_H
00028 #include "FXObject.h"
00029 #endif
00030 
00031 namespace FX {
00032 
00033 
00034 /**
00035 * A DebugTarget prints out every message it receives.
00036 * To use it, simply make the DebugTarget a target of the widget
00037 * whose messages you want to see,
00038 */
00039 class FXAPI FXDebugTarget : public FXObject {
00040   FXDECLARE(FXDebugTarget)
00041 protected:
00042   FXObject   *lastsender;
00043   FXSelector  lastsel;
00044   FXuint      count;
00045 public:
00046   static const FXchar *const messageTypeName[];
00047 private:
00048   FXDebugTarget(const FXDebugTarget&);
00049   FXDebugTarget &operator=(const FXDebugTarget&);
00050 public:
00051   long onMessage(FXObject*,FXSelector,void*);
00052 public:
00053 
00054   /// Construct a debug target
00055   FXDebugTarget();
00056 
00057   };
00058 
00059 }
00060 
00061 #endif

Copyright © 1997-2005 Jeroen van der Zijp