Updated Spanish translation
[anjuta.git] / plugins / language-support-cpp-java / plugin.h
blob899ad7d2c708ba2d0fb2e3bad5750fdec849fac1
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 plugin.h
4 Copyright (C) 2000 Naba Kumar
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef _PLUGIN_H_
22 #define _PLUGIN_H_
24 #include <libanjuta/anjuta-plugin.h>
25 #include <libanjuta/interfaces/ianjuta-editor.h>
26 #include <libanjuta/interfaces/ianjuta-symbol-manager.h>
27 #include "cpp-packages.h"
29 extern GType cpp_java_plugin_get_type (GTypeModule *module);
30 #define ANJUTA_TYPE_PLUGIN_CPP_JAVA (cpp_java_plugin_get_type (NULL))
31 #define ANJUTA_PLUGIN_CPP_JAVA(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_PLUGIN_CPP_JAVA, CppJavaPlugin))
32 #define ANJUTA_PLUGIN_CPP_JAVA_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), ANJUTA_TYPE_PLUGIN_CPP_JAVA, CppJavaPluginClass))
33 #define ANJUTA_IS_PLUGIN_CPP_JAVA(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_PLUGIN_CPP_JAVA))
34 #define ANJUTA_IS_PLUGIN_CPP_JAVA_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_PLUGIN_CPP_JAVA))
35 #define ANJUTA_PLUGIN_CPP_JAVA_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ANJUTA_TYPE_PLUGIN_CPP_JAVA, CppJavaPluginClass))
37 typedef struct _CppJavaPlugin CppJavaPlugin;
38 typedef struct _CppJavaPluginClass CppJavaPluginClass;
40 typedef enum
42 LS_FILE_C,
43 LS_FILE_CHDR,
44 LS_FILE_CPP,
45 LS_FILE_CPPHDR,
46 LS_FILE_OTHER
47 } CppFileType;
49 struct _CppJavaPlugin {
50 AnjutaPlugin parent;
52 GtkActionGroup *action_group;
53 gint uiid;
55 GSettings* settings;
56 gint editor_watch_id;
57 GObject *current_editor;
58 gboolean support_installed;
59 const gchar *current_language;
61 /* Assist */
62 CppFileType filetype;
64 /* Packages */
65 CppPackages* packages;
67 /* Preferences */
68 GtkBuilder* bxml;
71 struct _CppJavaPluginClass {
72 AnjutaPluginClass parent_class;
75 #endif