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,2009 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or modify          *
00009 * it under the terms of the GNU Lesser General Public License as published by   *
00010 * the Free Software Foundation; either version 3 of the License, or             *
00011 * (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                 *
00016 * GNU Lesser General Public License for more details.                           *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public License      *
00019 * along with this program.  If not, see <http://www.gnu.org/licenses/>          *
00020 *********************************************************************************
00021 * $Id: FXDebugTarget.h,v 1.19 2009/01/06 13:07:22 fox Exp $                     *
00022 ********************************************************************************/
00023 #ifndef FXDEBUGTARGET_H
00024 #define FXDEBUGTARGET_H
00025 
00026 #ifndef FXOBJECT_H
00027 #include "FXObject.h"
00028 #endif
00029 
00030 namespace FX {
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 #endif

Copyright © 1997-2009 Jeroen van der Zijp