1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3  * anjuta-environment-editor.h
4  * Copyright (C) 2011 Sebastien Granjoux
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, write to the Free Software
18  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19  */
20 
21 #ifndef _ANJUTA_ENVIRONMENT_EDITOR_H_
22 #define _ANJUTA_ENVIRONMENT_EDITOR_H_
23 
24 #include <gtk/gtk.h>
25 
26 G_BEGIN_DECLS
27 
28 #define ANJUTA_TYPE_ENVIRONMENT_EDITOR             (anjuta_environment_editor_get_type ())
29 #define ANJUTA_ENVIRONMENT_EDITOR(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), ANJUTA_TYPE_ENVIRONMENT_EDITOR, AnjutaEnvironmentEditor))
30 #define ANJUTA_ENVIRONMENT_EDITOR_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), ANJUTA_TYPE_ENVIRONMENT_EDITOR, AnjutaEnvironmentEditorClass))
31 #define ANJUTA_IS_ENVIRONMENT_EDITOR(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ANJUTA_TYPE_ENVIRONMENT_EDITOR))
32 #define ANJUTA_IS_ENVIRONMENT_EDITOR_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), ANJUTA_TYPE_ENVIRONMENT_EDITOR))
33 #define ANJUTA_ENVIRONMENT_EDITOR_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), ANJUTA_TYPE_ENVIRONMENT_EDITOR, AnjutaEnvironmentEditorClass))
34 
35 typedef struct _AnjutaEnvironmentEditorClass AnjutaEnvironmentEditorClass;
36 typedef struct _AnjutaEnvironmentEditor AnjutaEnvironmentEditor;
37 
38 struct _AnjutaEnvironmentEditorClass
39 {
40 	GtkBinClass parent_class;
41 
42 	/* Signals */
43 	void(* changed) (AnjutaEnvironmentEditor *self);
44 };
45 
46 GType anjuta_environment_editor_get_type (void) G_GNUC_CONST;
47 
48 GtkWidget* anjuta_environment_editor_new (void);
49 void anjuta_environment_editor_set_variable (AnjutaEnvironmentEditor *editor, const gchar *variable);
50 gchar** anjuta_environment_editor_get_all_variables (AnjutaEnvironmentEditor *editor);
51 gchar** anjuta_environment_editor_get_modified_variables (AnjutaEnvironmentEditor *editor);
52 void anjuta_environment_editor_reset (AnjutaEnvironmentEditor *editor);
53 
54 G_END_DECLS
55 
56 #endif /* _ANJUTA_ENVIRONMENT_EDITOR_H_ */
57