2
* codenavigation.h - this file is part of "codenavigation", which is
3
* part of the "geany-plugins" project.
5
* Copyright 2009 Lionel Fuentes <funto66(at)gmail(dot)com>
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
23
#ifndef CODENAVIGATION_H
24
#define CODENAVIGATION_H
27
#include "geany.h" /* for the GeanyApp data type */
30
#include "support.h" /* for the _() translation macro (see also po/POTFILES.in) */
31
#include "editor.h" /* for the declaration of the GeanyEditor struct, not strictly necessary
32
as it will be also included by plugindata.h */
33
#include "document.h" /* for the declaration of the GeanyDocument struct */
35
#include "Scintilla.h" /* for the SCNotification struct */
37
#include "keybindings.h"
38
#include "filetypes.h"
39
#include <gdk/gdkkeysyms.h>
42
#include "switch_head_impl.h"
45
#include "plugindata.h" /* this defines the plugin API */
46
#include "geanyfunctions.h" /* this wraps geany_functions function pointers */
49
/*#define CODE_NAVIGATION_DEBUG
52
#define CODE_NAVIGATION_VERSION "0.1"
55
#ifdef CODE_NAVIGATION_DEBUG
56
static void log_debug(const gchar* s, ...)
58
gchar* format = g_strconcat("[CODENAV DEBUG] : ", s, "\n", NULL);
66
#define log_func() g_print("[CODENAV FUNC] : %s", __func__) /* NB : this needs the C99 standard, but is only
67
used when debugging, so no problem :) */
69
static void log_debug(const gchar* s, ...) {}
70
static void log_func() {}
73
/* IDs for keybindings */
76
KEY_ID_SWITCH_HEAD_IMPL,
81
/* Items for controlling geany */
82
extern GeanyPlugin *geany_plugin;
83
extern GeanyData *geany_data;
84
extern GeanyFunctions *geany_functions;
86
extern GeanyKeyGroup *plugin_key_group;
88
#endif /* CODENAVIGATION_H */