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

FXDebugTarget.h
Go to the documentation of this file.
1 /********************************************************************************
2 * *
3 * D e b u g T a r g e t *
4 * *
5 *********************************************************************************
6 * Copyright (C) 1998,2006 by Jeroen van der Zijp. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or *
9 * modify it under the terms of the GNU Lesser General Public *
10 * License as published by the Free Software Foundation; either *
11 * version 2.1 of the License, or (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16 * Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public *
19 * License along with this library; if not, write to the Free Software *
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
21 *********************************************************************************
22 * $Id: FXDebugTarget.h,v 1.15 2006/01/22 17:58:00 fox Exp $ *
23 ********************************************************************************/
24 #ifndef FXDEBUGTARGET_H
25 #define FXDEBUGTARGET_H
26 
27 #ifndef FXOBJECT_H
28 #include "FXObject.h"
29 #endif
30 
31 namespace FX {
32 
33 
34 /**
35 * A DebugTarget prints out every message it receives.
36 * To use it, simply make the DebugTarget a target of the widget
37 * whose messages you want to see,
38 */
39 class FXAPI FXDebugTarget : public FXObject {
41 protected:
42  FXObject *lastsender;
43  FXSelector lastsel;
44  FXuint count;
45 public:
46  static const FXchar *const messageTypeName[];
47 private:
49  FXDebugTarget &operator=(const FXDebugTarget&);
50 public:
51  long onMessage(FXObject*,FXSelector,void*);
52 public:
53 
54  /// Construct a debug target
55  FXDebugTarget();
56 
57  };
58 
59 }
60 
61 #endif
char FXchar
Definition: fxdefs.h:380
unsigned int FXuint
Definition: fxdefs.h:389
FXuint FXSelector
Association key.
Definition: FXObject.h:53
#define FXAPI
Definition: fxdefs.h:122
A DebugTarget prints out every message it receives.
Definition: FXDebugTarget.h:39
Definition: FX4Splitter.h:31
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:166
#define FXDECLARE(classname)
Macro to set up class declaration.
Definition: FXObject.h:92

Copyright © 1997-2005 Jeroen van der Zijp