1 /* Workspace-local defs
2  */
3 
4 /*
5 
6     Copyright (C) 1991-2003 The National Gallery
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 along
19     with this program; if not, write to the Free Software Foundation, Inc.,
20     51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21 
22  */
23 
24 /*
25 
26     These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
27 
28  */
29 
30 #define TYPE_WORKSPACEDEFS (workspacedefs_get_type())
31 #define WORKSPACEDEFS( obj ) \
32 	(GTK_CHECK_CAST( (obj), TYPE_WORKSPACEDEFS, Workspacedefs ))
33 #define WORKSPACEDEFS_CLASS( klass ) \
34 	(GTK_CHECK_CLASS_CAST( (klass), \
35 		TYPE_WORKSPACEDEFS, WorkspacedefsClass ))
36 #define IS_WORKSPACEDEFS( obj ) \
37 	(GTK_CHECK_TYPE( (obj), TYPE_WORKSPACEDEFS ))
38 #define IS_WORKSPACEDEFS_CLASS( klass ) \
39 	(GTK_CHECK_CLASS_TYPE( (klass), TYPE_WORKSPACEDEFS ))
40 
41 struct _Workspacedefs {
42 	vObject parent_object;
43 
44 	Workspace *ws;			/* Workspace we explore */
45 
46 	GtkWidget *text;
47 	gboolean changed;		/* Text has been edited */
48 	gboolean errors;		/* Error on last process */
49 	guint text_hash;		/* Hash of the last text we set */
50 	GtkWidget *status;
51 };
52 
53 typedef struct _WorkspacedefsClass {
54 	vObjectClass parent_class;
55 
56 } WorkspacedefsClass;
57 
58 GtkType workspacedefs_get_type( void );
59 Workspacedefs *workspacedefs_new( void );
60