Updated Spanish translation
[anjuta-git-plugin.git] / plugins / sourceview / anjuta-view.h
blob39ba181dac1f204fdb84fdfffce89263f35d167c
1 /*
2 * anjuta-view.h
4 * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence
5 * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi
6 * Copyright (C) 2002-2005 Paolo Maggi
7 * Copyright (C) 2006 Johannes Schmid
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301, USA.
26 * Modified by the anjuta Team, 1998-2005. See the AUTHORS file for a
27 * list of people on the anjuta Team.
28 * See the ChangeLog files for a list of changes.
31 #ifndef __ANJUTA_VIEW_H__
32 #define __ANJUTA_VIEW_H__
34 #include <gtk/gtk.h>
36 #include "anjuta-document.h"
37 #include "sourceview.h"
38 #include <gtksourceview/gtksourceview.h>
40 G_BEGIN_DECLS
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;
60 struct _AnjutaView
62 GtkSourceView view;
64 /*< private > */
65 AnjutaViewPrivate *priv;
69 * Class definition
71 typedef struct _AnjutaViewClass AnjutaViewClass;
73 struct _AnjutaViewClass
75 GtkSourceViewClass parent_class;
77 void (* char_added) (AnjutaDocument *document,
78 gint position,
79 gchar character);
83 * Public methods
85 GtkType 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_colors (AnjutaView *view,
98 gboolean def,
99 GdkColor *backgroud,
100 GdkColor *text,
101 GdkColor *selection,
102 GdkColor *sel_text);
104 void anjuta_view_set_font (AnjutaView *view,
105 gboolean def,
106 const gchar *font_name);
108 G_END_DECLS
110 #endif /* __ANJUTA_VIEW_H__ */