1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
4 * Copyright (C) Ishan Chattopadhyaya 2009 <ichattopadhyaya@gmail.com>
6 * anjuta is free software.
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)
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 _PYTHON_ASSIST_H_
26 #define _PYTHON_ASSIST_H_
28 #include <glib-object.h>
29 #include <libanjuta/interfaces/ianjuta-editor-assist.h>
30 #include <libanjuta/interfaces/ianjuta-symbol-manager.h>
31 #include <libanjuta/interfaces/ianjuta-project-manager.h>
35 #define TYPE_PYTHON_ASSIST (python_assist_get_type ())
36 #define PYTHON_ASSIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PYTHON_ASSIST, PythonAssist))
37 #define PYTHON_ASSIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PYTHON_ASSIST, PythonAssistClass))
38 #define IS_PYTHON_ASSIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PYTHON_ASSIST))
39 #define IS_PYTHON_ASSIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PYTHON_ASSIST))
40 #define PYTHON_ASSIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PYTHON_ASSIST, PythonAssistClass))
42 typedef struct _PythonAssistClass PythonAssistClass
;
43 typedef struct _PythonAssist PythonAssist
;
44 typedef struct _PythonAssistContext PythonAssistContext
;
45 typedef struct _PythonAssistPriv PythonAssistPriv
;
47 struct _PythonAssistContext
{
48 GCompletion
* completion
;
53 struct _PythonAssistClass
55 GObjectClass parent_class
;
60 GObject parent_instance
;
61 PythonAssistPriv
*priv
;
64 GType
python_assist_get_type (void) G_GNUC_CONST
;
67 python_assist_new (IAnjutaEditor
*ieditor
,
68 IAnjutaSymbolManager
*isymbol_manager
,
71 const gchar
*project_root
);
75 #endif /* _PYTHON_ASSIST_H_ */