~ubuntu-branches/debian/sid/geany-plugins/sid

« back to all changes in this revision

Viewing changes to codenav/src/codenavigation.h

  • Committer: Bazaar Package Importer
  • Author(s): Evgeni Golov, Chow Loong Jin, Evgeni Golov
  • Date: 2010-09-04 23:05:00 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100904230500-4n99m507u6drouv5
Tags: 0.19-1
[ Chow Loong Jin ]
* New upstream release
  + Builds against geany 0.19 (Closes: #590346, #587141)
* debian/control, debian/rules:
  + Shift geany dependency to geany-plugins-common instead, since it's a
    common dependency for all plugins
* debian/control:
  + Add new packages for codenav, extrasel, gendoc, insertnum,
    prettyprinter and treebrowser plugins
  + Update build-deps:
    - Bump geany dependency to 0.19. (Closes: #573318)
    - Add libctpl-dev and python-docutils for geanygendoc
    - Add libxml2-dev for prettyprinter
  + No-change bump of Standards-Version from 3.8.3 to 3.9.0
  + Tighten dependency on geany-plugins-common (= instead of >=)
  + Add a Breaks on all geany-plugin-* packages prior to this version to
    ensure geany-plugins-common and geany-plugin-* versions match
* debian/geany-plugin-codenav.{docs,install},
  debian/geany-plugin-extrasel.{docs,install},
  geany-plugin-gendoc.{docs,install},
  geany-plugin-insertnum.{docs,install},
  geany-plugin-prettyprinter.install
  geany-plugin-treebrowser.{docs,install}:
  + Install plugin files into individual packages

[ Evgeni Golov ]
* debian/control:
  + Disable the new plugins for now.
    If you want to build them localy, just uncomment them.
  + Don't D-B on libctpl-dev (it's not in Debian yet).
  + Add myself to Uploaders.
  + Standards-Version: 3.9.1
* debian/copyright:
  + Update to include latest plugins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *      codenavigation.h - this file is part of "codenavigation", which is
 
3
 *      part of the "geany-plugins" project.
 
4
 *
 
5
 *      Copyright 2009 Lionel Fuentes <funto66(at)gmail(dot)com>
 
6
 *
 
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.
 
11
 *
 
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.
 
16
 *
 
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,
 
20
 *      MA 02110-1301, USA.
 
21
 */
 
22
 
 
23
#ifndef CODENAVIGATION_H
 
24
#define CODENAVIGATION_H
 
25
 
 
26
/* First */
 
27
#include "geany.h"              /* for the GeanyApp data type */
 
28
 
 
29
/* Other includes */
 
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 */
 
34
#include "ui_utils.h"
 
35
#include "Scintilla.h"  /* for the SCNotification struct */
 
36
 
 
37
#include "keybindings.h"
 
38
#include "filetypes.h"
 
39
#include <gdk/gdkkeysyms.h>
 
40
#include <string.h>
 
41
 
 
42
#include "switch_head_impl.h"
 
43
 
 
44
/* Last */
 
45
#include "plugindata.h"         /* this defines the plugin API */
 
46
#include "geanyfunctions.h"     /* this wraps geany_functions function pointers */
 
47
 
 
48
/* Debug flag */
 
49
/*#define CODE_NAVIGATION_DEBUG
 
50
*/
 
51
 
 
52
#define CODE_NAVIGATION_VERSION "0.1"
 
53
 
 
54
/* Log utilities */
 
55
#ifdef CODE_NAVIGATION_DEBUG
 
56
static void log_debug(const gchar* s, ...)
 
57
{
 
58
        gchar* format = g_strconcat("[CODENAV DEBUG] : ", s, "\n", NULL);
 
59
        va_list l;
 
60
        va_start(l, s);
 
61
        g_vprintf(format, l);
 
62
        g_free(format);
 
63
        va_end(l);
 
64
}
 
65
 
 
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 :) */
 
68
#else
 
69
static void log_debug(const gchar* s, ...) {}
 
70
static void log_func() {}
 
71
#endif
 
72
 
 
73
/* IDs for keybindings */
 
74
enum
 
75
{
 
76
        KEY_ID_SWITCH_HEAD_IMPL,
 
77
        KEY_ID_GOTO_FILE,
 
78
        NB_KEY_IDS
 
79
};
 
80
 
 
81
/* Items for controlling geany */
 
82
extern GeanyPlugin              *geany_plugin;
 
83
extern GeanyData                *geany_data;
 
84
extern GeanyFunctions   *geany_functions;
 
85
 
 
86
extern GeanyKeyGroup *plugin_key_group;
 
87
 
 
88
#endif /* CODENAVIGATION_H */