am-project: Fix failures due to the previous patches in the regression test
[anjuta.git] / plugins / document-manager / anjuta-bookmarks.h
blobaf0dd14e9a9a84ef0a4e49b89e560aa7b37a64a8
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * anjuta-trunk
4 * Copyright (C) Johannes Schmid 2008 <jhs@gnome.org>
5 *
6 * anjuta-trunk is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * anjuta-trunk is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 * See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef _ANJUTA_BOOKMARKS_H_
21 #define _ANJUTA_BOOKMARKS_H_
23 #include <glib-object.h>
25 #include <libanjuta/interfaces/ianjuta-editor.h>
26 #include <libanjuta/anjuta-session.h>
27 #include "plugin.h"
29 G_BEGIN_DECLS
31 #define ANJUTA_TYPE_BOOKMARKS (anjuta_bookmarks_get_type ())
32 #define ANJUTA_BOOKMARKS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ANJUTA_TYPE_BOOKMARKS, AnjutaBookmarks))
33 #define ANJUTA_BOOKMARKS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ANJUTA_TYPE_BOOKMARKS, AnjutaBookmarksClass))
34 #define ANJUTA_IS_BOOKMARKS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ANJUTA_TYPE_BOOKMARKS))
35 #define ANJUTA_IS_BOOKMARKS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ANJUTA_TYPE_BOOKMARKS))
36 #define ANJUTA_BOOKMARKS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ANJUTA_TYPE_BOOKMARKS, AnjutaBookmarksClass))
38 typedef struct _AnjutaBookmarksClass AnjutaBookmarksClass;
39 typedef struct _AnjutaBookmarks AnjutaBookmarks;
41 struct _AnjutaBookmarksClass
43 GObjectClass parent_class;
46 struct _AnjutaBookmarks
48 GObject parent_instance;
51 GType anjuta_bookmarks_get_type (void) G_GNUC_CONST;
52 AnjutaBookmarks* anjuta_bookmarks_new (DocmanPlugin* docman);
53 void anjuta_bookmarks_add (AnjutaBookmarks* bookmarks, IAnjutaEditor* editor, gint line,
54 const gchar* title, gboolean use_selection);
55 void anjuta_bookmarks_add_file (AnjutaBookmarks* bookmarks, GFile* file,
56 gint line, const gchar* title);
57 void anjuta_bookmarks_toggle (AnjutaBookmarks* bookmarks, IAnjutaEditor* editor, gint line);
58 void anjuta_bookmarks_remove (AnjutaBookmarks* bookmarks);
59 void anjuta_bookmarks_session_save (AnjutaBookmarks* bookmarks, AnjutaSession* session);
60 void anjuta_bookmarks_session_load (AnjutaBookmarks* bookmarks, AnjutaSession* session);
62 void anjuta_bookmarks_next (AnjutaBookmarks* bookmarks, IAnjutaEditor* editor,
63 gint line);
64 void anjuta_bookmarks_prev (AnjutaBookmarks* bookmarks, IAnjutaEditor* editor,
65 gint line);
66 void anjuta_bookmarks_clear (AnjutaBookmarks* bookmarks);
68 G_END_DECLS
70 #endif /* _ANJUTA_BOOKMARKS_H_ */