1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
5 * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence
6 * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi
7 * Copyright (C) 2002-2005 Paolo Maggi
8 * Copyright (C) 2006 Johannes Schmid
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 * Boston, MA 02110-1301, USA.
27 * Modified by the anjuta Team, 1998-2005. See the AUTHORS file for a
28 * list of people on the anjuta Team.
29 * See the ChangeLog files for a list of changes.
32 #ifndef __ANJUTA_VIEW_H__
33 #define __ANJUTA_VIEW_H__
37 #include "sourceview.h"
38 #include <gtksourceview/gtksource.h>
43 * Type checking and casting macros
45 #define ANJUTA_TYPE_VIEW (anjuta_view_get_type ())
46 #define ANJUTA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), ANJUTA_TYPE_VIEW, AnjutaView))
47 #define ANJUTA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), ANJUTA_TYPE_VIEW, AnjutaViewClass))
48 #define ANJUTA_IS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), ANJUTA_TYPE_VIEW))
49 #define ANJUTA_IS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ANJUTA_TYPE_VIEW))
50 #define ANJUTA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), ANJUTA_TYPE_VIEW, AnjutaViewClass))
52 /* Private structure type */
53 typedef struct _AnjutaViewPrivate AnjutaViewPrivate
;
56 * Main object structure
58 typedef struct _AnjutaView AnjutaView
;
65 AnjutaViewPrivate
*priv
;
71 typedef struct _AnjutaViewClass AnjutaViewClass
;
73 struct _AnjutaViewClass
75 GtkSourceViewClass parent_class
;
77 void (* char_added
) (GtkTextBuffer
*document
,
85 GType
anjuta_view_get_type (void) G_GNUC_CONST
;
87 GtkWidget
*anjuta_view_new (Sourceview
*sv
);
89 void anjuta_view_cut_clipboard (AnjutaView
*view
);
90 void anjuta_view_copy_clipboard (AnjutaView
*view
);
91 void anjuta_view_paste_clipboard (AnjutaView
*view
);
92 void anjuta_view_delete_selection (AnjutaView
*view
);
93 void anjuta_view_select_all (AnjutaView
*view
);
95 void anjuta_view_scroll_to_cursor (AnjutaView
*view
);
97 void anjuta_view_set_font (AnjutaView
*view
,
99 const gchar
*font_name
);
100 void anjuta_view_get_current_word (AnjutaView
*view
,
106 #endif /* __ANJUTA_VIEW_H__ */