build: add built .plugin files to CLEANFILES
[anjuta.git] / plugins / snippets-manager / snippets-editor.h
blobcd12b0ece3b6b924df8cdd5bbc58616ec704c4be
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 snippets-editor.h
4 Copyright (C) Dragos Dena 2010
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.
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.
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,
19 Boston, MA 02110-1301 USA
22 #ifndef __SNIPPETS_EDITOR_H__
23 #define __SNIPPETS_EDITOR_H__
25 #include <glib.h>
26 #include <glib-object.h>
27 #include <gtk/gtk.h>
28 #include "snippet.h"
29 #include "snippets-db.h"
31 G_BEGIN_DECLS
33 typedef struct _SnippetsEditor SnippetsEditor;
34 typedef struct _SnippetsEditorPrivate SnippetsEditorPrivate;
35 typedef struct _SnippetsEditorClass SnippetsEditorClass;
37 #define ANJUTA_TYPE_SNIPPETS_EDITOR (snippets_editor_get_type ())
38 #define ANJUTA_SNIPPETS_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ANJUTA_TYPE_SNIPPETS_EDITOR, SnippetsEditor))
39 #define ANJUTA_SNIPPETS_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ANJUTA_TYPE_SNIPPETS_EDITOR, SnippetsEditorClass))
40 #define ANJUTA_IS_SNIPPETS_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ANJUTA_TYPE_SNIPPETS_EDITOR))
41 #define ANJUTA_IS_SNIPPETS_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ANJUTA_TYPE_SNIPPETS_EDITOR))
43 struct _SnippetsEditor
45 GtkBox parent;
47 /*< private >*/
48 SnippetsEditorPrivate *priv;
51 struct _SnippetsEditorClass
53 GtkBoxClass parent_class;
55 /* Signals */
56 void (*snippet_saved) (SnippetsEditor *snippets_editor,
57 GObject *snippet);
58 void (*close_request) (SnippetsEditor *snippets_editor);
62 GType snippets_editor_get_type (void) G_GNUC_CONST;
63 SnippetsEditor* snippets_editor_new (SnippetsDB *snippets_db);
65 void snippets_editor_set_snippet (SnippetsEditor *snippets_editor,
66 AnjutaSnippet *snippet);
67 void snippets_editor_set_snippet_new (SnippetsEditor *snippets_editor);
69 G_END_DECLS
71 #endif /* __SNIPPETS_EDITOR_H__ */