Improve tag-goto popup
[geany-mirror.git] / src / geanyobject.h
blobe6cb9880445fe3a4e13666db6b1b44221be20d88
1 /*
2 * geanyobject.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2007 The Geany contributors
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 along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef GEANY_OBJECT_H
23 #define GEANY_OBJECT_H 1
25 #include "document.h"
26 #include "editor.h"
27 #include "filetypes.h"
29 #include "Scintilla.h"
31 #include "gtkcompat.h"
34 G_BEGIN_DECLS
36 typedef enum
38 GCB_DOCUMENT_NEW,
39 GCB_DOCUMENT_OPEN,
40 GCB_DOCUMENT_RELOAD,
41 GCB_DOCUMENT_BEFORE_SAVE,
42 GCB_DOCUMENT_SAVE,
43 GCB_DOCUMENT_FILETYPE_SET,
44 GCB_DOCUMENT_ACTIVATE,
45 GCB_DOCUMENT_CLOSE,
46 GCB_PROJECT_OPEN,
47 GCB_PROJECT_SAVE,
48 GCB_PROJECT_CLOSE,
49 GCB_PROJECT_BEFORE_CLOSE,
50 GCB_PROJECT_DIALOG_OPEN,
51 GCB_PROJECT_DIALOG_CONFIRMED,
52 GCB_PROJECT_DIALOG_CLOSE,
53 GCB_UPDATE_EDITOR_MENU,
54 GCB_EDITOR_NOTIFY,
55 GCB_GEANY_STARTUP_COMPLETE,
56 GCB_BUILD_START,
57 GCB_SAVE_SETTINGS,
58 GCB_LOAD_SETTINGS,
59 GCB_KEY_PRESS_NOTIFY,
60 GCB_MAX
62 GeanyCallbackId;
65 #define GEANY_OBJECT_TYPE (geany_object_get_type())
66 #define GEANY_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\
67 GEANY_OBJECT_TYPE, GeanyObject))
68 #define GEANY_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),\
69 GEANY_OBJECT_TYPE, GeanyObjectClass))
70 #define IS_GEANY_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),\
71 GEANY_OBJECT_TYPE))
72 #define IS_GEANY_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),\
73 GEANY_OBJECT_TYPE))
75 typedef struct _GeanyObject GeanyObject;
76 typedef struct _GeanyObjectClass GeanyObjectClass;
78 /** @gironly
79 * Instance structure for GeanyObject */
80 struct _GeanyObject
82 GObject parent;
83 /* add your public declarations here */
86 extern GObject *geany_object;
88 /** @gironly
89 * Class structure for @a GeanyObject */
90 struct _GeanyObjectClass
92 GObjectClass parent_class;
95 GType geany_object_get_type (void);
96 GObject* geany_object_new (void);
98 G_END_DECLS
100 #endif /* GEANY_OBJECT_H */