]> git.sur5r.net Git - glabels/blob - glabels2/src/debug.h
Changed object property dialogs to a single object property editor sidebar.
[glabels] / glabels2 / src / debug.h
1 /*
2  *  (GLABELS) Label and Business Card Creation program for GNOME
3  *
4  *  debug.h:  GLabels debug module
5  *
6  *  Copyright (C) 2001-2002  Jim Evins <evins@snaught.com>.
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program 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
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21  */
22
23 /*
24  * This file is based on gedit-debug.h from gedit2:
25  *
26  * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence
27  * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi 
28  *
29  */
30 #ifndef __DEBUG_H__
31 #define __DEBUG_H__
32
33 G_BEGIN_DECLS
34
35 typedef enum {
36         GL_DEBUG_VIEW,
37         GL_DEBUG_ITEM,
38         GL_DEBUG_PRINT,
39         GL_DEBUG_PREFS,
40         GL_DEBUG_FILE,
41         GL_DEBUG_LABEL,
42         GL_DEBUG_TEMPLATE,
43         GL_DEBUG_PAPER,
44         GL_DEBUG_XML,
45         GL_DEBUG_MERGE,
46         GL_DEBUG_UNDO,
47         GL_DEBUG_RECENT,
48         GL_DEBUG_COMMANDS,
49         GL_DEBUG_WINDOW,
50         GL_DEBUG_UI,
51         GL_DEBUG_PROPERTY_BAR,
52         GL_DEBUG_MEDIA_SELECT,
53         GL_DEBUG_MINI_PREVIEW,
54         GL_DEBUG_PIXBUF_CACHE,
55         GL_DEBUG_EDITOR,
56         GL_DEBUG_WDGT,
57 } glDebugSection;
58
59 extern gint gl_debug_all;
60 extern gint gl_debug_view;
61 extern gint gl_debug_item;
62 extern gint gl_debug_print;
63 extern gint gl_debug_prefs;
64 extern gint gl_debug_file;
65 extern gint gl_debug_label;
66 extern gint gl_debug_template;
67 extern gint gl_debug_paper;
68 extern gint gl_debug_xml;
69 extern gint gl_debug_merge;
70 extern gint gl_debug_commands;
71 extern gint gl_debug_undo;
72 extern gint gl_debug_recent;
73 extern gint gl_debug_window;
74 extern gint gl_debug_ui;
75 extern gint gl_debug_property_bar;
76 extern gint gl_debug_media_select;
77 extern gint gl_debug_mini_preview;
78 extern gint gl_debug_pixbuf_cache;
79 extern gint gl_debug_editor;
80 extern gint gl_debug_wdgt;
81
82 #ifndef __GNUC__
83 #define __FUNCTION__   ""
84 #endif
85
86 #define DEBUG_VIEW      GL_DEBUG_VIEW,    __FILE__, __LINE__, __FUNCTION__
87 #define DEBUG_ITEM      GL_DEBUG_ITEM,    __FILE__, __LINE__, __FUNCTION__
88 #define DEBUG_PRINT     GL_DEBUG_PRINT,   __FILE__, __LINE__, __FUNCTION__
89 #define DEBUG_PREFS     GL_DEBUG_PREFS,   __FILE__, __LINE__, __FUNCTION__
90 #define DEBUG_FILE      GL_DEBUG_FILE,    __FILE__, __LINE__, __FUNCTION__
91 #define DEBUG_LABEL     GL_DEBUG_LABEL,   __FILE__, __LINE__, __FUNCTION__
92 #define DEBUG_TEMPLATE  GL_DEBUG_TEMPLATE,__FILE__, __LINE__, __FUNCTION__
93 #define DEBUG_PAPER     GL_DEBUG_PAPER,   __FILE__, __LINE__, __FUNCTION__
94 #define DEBUG_XML       GL_DEBUG_XML,     __FILE__, __LINE__, __FUNCTION__
95 #define DEBUG_MERGE     GL_DEBUG_MERGE,   __FILE__, __LINE__, __FUNCTION__
96 #define DEBUG_UNDO      GL_DEBUG_UNDO,    __FILE__, __LINE__, __FUNCTION__
97 #define DEBUG_RECENT    GL_DEBUG_RECENT,  __FILE__, __LINE__, __FUNCTION__
98 #define DEBUG_COMMANDS  GL_DEBUG_COMMANDS,__FILE__, __LINE__, __FUNCTION__
99 #define DEBUG_WINDOW    GL_DEBUG_WINDOW,  __FILE__, __LINE__, __FUNCTION__
100 #define DEBUG_UI        GL_DEBUG_UI,      __FILE__, __LINE__, __FUNCTION__
101 #define DEBUG_PROPERTY_BAR      GL_DEBUG_PROPERTY_BAR,     __FILE__, __LINE__, __FUNCTION__
102 #define DEBUG_MEDIA_SELECT      GL_DEBUG_MEDIA_SELECT,     __FILE__, __LINE__, __FUNCTION__
103 #define DEBUG_MINI_PREVIEW      GL_DEBUG_MINI_PREVIEW,     __FILE__, __LINE__, __FUNCTION__
104 #define DEBUG_PIXBUF_CACHE      GL_DEBUG_PIXBUF_CACHE,     __FILE__, __LINE__, __FUNCTION__
105 #define DEBUG_EDITOR    GL_DEBUG_EDITOR,  __FILE__, __LINE__, __FUNCTION__
106 #define DEBUG_WDGT      GL_DEBUG_WDGT,    __FILE__, __LINE__, __FUNCTION__
107
108 void gl_debug (gint section, gchar *file,
109                gint line, gchar* function, gchar* format, ...);
110
111 G_END_DECLS
112
113 #endif /* __DEBUG_H__ */