document-manager: Do not check file types if there is no files in find files window
[anjuta.git] / plugins / sourceview / anjuta-view.h
blobf529bf5a1d081b7d46fee1377d872d1e669b513f
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 "sourceview.h"
37 #include <gtksourceview/gtksourceview.h>
39 G_BEGIN_DECLS
42 * Type checking and casting macros
44 #define ANJUTA_TYPE_VIEW (anjuta_view_get_type ())
45 #define ANJUTA_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), ANJUTA_TYPE_VIEW, AnjutaView))
46 #define ANJUTA_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), ANJUTA_TYPE_VIEW, AnjutaViewClass))
47 #define ANJUTA_IS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), ANJUTA_TYPE_VIEW))
48 #define ANJUTA_IS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ANJUTA_TYPE_VIEW))
49 #define ANJUTA_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), ANJUTA_TYPE_VIEW, AnjutaViewClass))
51 /* Private structure type */
52 typedef struct _AnjutaViewPrivate AnjutaViewPrivate;
55 * Main object structure
57 typedef struct _AnjutaView AnjutaView;
59 struct _AnjutaView
61 GtkSourceView view;
63 /*< private > */
64 AnjutaViewPrivate *priv;
68 * Class definition
70 typedef struct _AnjutaViewClass AnjutaViewClass;
72 struct _AnjutaViewClass
74 GtkSourceViewClass parent_class;
76 void (* char_added) (GtkTextBuffer *document,
77 gint position,
78 gchar character);
82 * Public methods
84 GType anjuta_view_get_type (void) G_GNUC_CONST;
86 GtkWidget *anjuta_view_new (Sourceview *sv);
88 void anjuta_view_cut_clipboard (AnjutaView *view);
89 void anjuta_view_copy_clipboard (AnjutaView *view);
90 void anjuta_view_paste_clipboard (AnjutaView *view);
91 void anjuta_view_delete_selection (AnjutaView *view);
92 void anjuta_view_select_all (AnjutaView *view);
94 void anjuta_view_scroll_to_cursor (AnjutaView *view);
96 void anjuta_view_set_font (AnjutaView *view,
97 gboolean def,
98 const gchar *font_name);
99 void anjuta_view_get_current_word (AnjutaView *view,
100 GtkTextIter *start,
101 GtkTextIter *end);
103 G_END_DECLS
105 #endif /* __ANJUTA_VIEW_H__ */