Updated Spanish translation
[anjuta-git-plugin.git] / plugins / language-support-cpp-java / cpp-java-assist.h
blobfd7af2d7aad9546f866c2e5187a909d069fc05cd
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * anjuta
4 * Copyright (C) 2007 Naba Kumar <naba@gnome.org>
5 *
6 * anjuta is free software.
7 *
8 * You may redistribute it and/or modify it under the terms of the
9 * GNU General Public License, as published by the Free Software
10 * Foundation; either version 2 of the License, or (at your option)
11 * any later version.
13 * anjuta is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 * See the GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with anjuta. If not, write to:
20 * The Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor
22 * Boston, MA 02110-1301, USA.
25 #ifndef _CPP_JAVA_ASSIST_H_
26 #define _CPP_JAVA_ASSIST_H_
28 #include <glib-object.h>
29 #include <libanjuta/anjuta-preferences.h>
30 #include <libanjuta/interfaces/ianjuta-editor-assist.h>
31 #include <libanjuta/interfaces/ianjuta-symbol-manager.h>
33 G_BEGIN_DECLS
35 #define TYPE_CPP_JAVA_ASSIST (cpp_java_assist_get_type ())
36 #define CPP_JAVA_ASSIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CPP_JAVA_ASSIST, CppJavaAssist))
37 #define CPP_JAVA_ASSIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CPP_JAVA_ASSIST, CppJavaAssistClass))
38 #define IS_CPP_JAVA_ASSIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CPP_JAVA_ASSIST))
39 #define IS_CPP_JAVA_ASSIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CPP_JAVA_ASSIST))
40 #define CPP_JAVA_ASSIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CPP_JAVA_ASSIST, CppJavaAssistClass))
42 typedef struct _CppJavaAssistClass CppJavaAssistClass;
43 typedef struct _CppJavaAssist CppJavaAssist;
44 typedef struct _CppJavaAssistContext CppJavaAssistContext;
45 typedef struct _CppJavaAssistPriv CppJavaAssistPriv;
47 struct _CppJavaAssistContext {
48 GCompletion* completion;
49 GList* tips;
50 gint position;
53 struct _CppJavaAssistClass
55 GObjectClass parent_class;
58 struct _CppJavaAssist
60 GObject parent_instance;
61 CppJavaAssistPriv *priv;
64 GType cpp_java_assist_get_type (void) G_GNUC_CONST;
65 CppJavaAssist *cpp_java_assist_new (IAnjutaEditorAssist *assist,
66 IAnjutaSymbolManager *isymbol_manager,
67 AnjutaPreferences *preferences);
68 gboolean cpp_java_assist_check (CppJavaAssist *assist, gboolean autocomplete,
69 gboolean calltips);
71 G_END_DECLS
73 #endif /* _CPP_JAVA_ASSIST_H_ */