1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 2 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU Library General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
17 #ifndef SOURCEVIEW_PRIVATE_H
18 #define SOURCEVIEW_PRIVATE_H
19 
20 #include "anjuta-view.h"
21 
22 #include "assist-tip.h"
23 #include "sourceview-cell.h"
24 #include "sourceview-io.h"
25 
26 #include <libanjuta/anjuta-plugin.h>
27 #include <glib.h>
28 
29 struct SourceviewPrivate {
30 	/* GtkSouceView */
31 	AnjutaView* view;
32 
33 	/* GtkSourceBuffer */
34 	GtkSourceBuffer* document;
35 
36 	/* Highlight Tag */
37 	GtkTextTag *important_indic;
38 	GtkTextTag *warning_indic;
39 	GtkTextTag *critical_indic;
40 
41 	/* IO */
42 	SourceviewIO* io;
43 	gboolean read_only;
44 
45 	/* Preferences */
46 	GSettings* settings;
47 	GSettings* msgman_settings;
48 	GSettings* editor_settings;
49 	GList* notify_ids;
50 
51 	/* Popup menu */
52 	GtkWidget* menu;
53 
54 	/* Message area */
55 	GtkWidget* message_area;
56 
57 	/* Editor window */
58 	GtkWidget* window;
59 
60 	/* Goto line hack */
61 	gboolean loading;
62 	gint goto_line;
63 
64 	/* Assist */
65 	AssistTip* assist_tip;
66 
67 	/* Hover */
68 	gchar* tooltip;
69 	SourceviewCell* tooltip_cell;
70 
71 	/* To recover the deleted text */
72 	gchar *deleted_text;
73 
74 	/* Reload */
75 	GSList* reload_marks;
76 	gint reload_line;
77 
78 	/* Plugin */
79 	AnjutaPlugin* plugin;
80 };
81 
82 #endif
83