~ubuntu-branches/ubuntu/raring/geany/raring-proposed

« back to all changes in this revision

Viewing changes to src/sci_cb.h

  • Committer: Bazaar Package Importer
  • Author(s): Damián Viano
  • Date: 2008-05-02 11:37:45 UTC
  • mfrom: (1.2.1 upstream) (9 hardy)
  • mto: (3.2.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20080502113745-xzp4g6dmovrpoj17
Tags: 0.14-1
New upstream release (Closes: #478126)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *      sci_cb.h - this file is part of Geany, a fast and lightweight IDE
3
 
 *
4
 
 *      Copyright 2006 Enrico Troeger <enrico.troeger@uvena.de>
5
 
 *
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.
10
 
 *
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.
15
 
 *
16
 
 *      You should have received a copy of the GNU General Public License
17
 
 *      along with this program; if not, write to the Free Software
18
 
 *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
 
 *
20
 
 */
21
 
 
22
 
#ifndef GEANY_SCI_CB_H
23
 
#define GEANY_SCI_CB_H 1
24
 
 
25
 
#ifndef PLAT_GTK
26
 
#   define PLAT_GTK 1   // needed for ScintillaWidget.h
27
 
#endif
28
 
 
29
 
#include "Scintilla.h"
30
 
#include "ScintillaWidget.h"
31
 
 
32
 
#define SSM(s, m, w, l) scintilla_send_message(s, m, w, l)
33
 
 
34
 
 
35
 
typedef struct
36
 
{
37
 
        gchar *current_word;    // holds word under the mouse or keyboard cursor
38
 
        gint click_pos;                 // text position where the mouse was clicked
39
 
} EditorInfo;
40
 
 
41
 
extern EditorInfo editor_info;
42
 
 
43
 
gchar **html_entities;
44
 
 
45
 
 
46
 
gboolean
47
 
on_editor_button_press_event           (GtkWidget *widget,
48
 
                                        GdkEventButton *event,
49
 
                                        gpointer user_data);
50
 
 
51
 
// callback func called by all editors when a signal arises
52
 
void on_editor_notification(GtkWidget* editor, gint scn, gpointer lscn, gpointer user_data);
53
 
 
54
 
gboolean sci_cb_start_auto_complete(gint idx, gint pos, gboolean force);
55
 
 
56
 
void sci_cb_get_indent(ScintillaObject *sci, gint pos, gboolean use_this_line);
57
 
 
58
 
void sci_cb_close_block(gint idx, gint pos);
59
 
 
60
 
void sci_cb_auto_forif(gint idx, gint pos);
61
 
 
62
 
void sci_cb_auto_latex(gint idx, gint pos);
63
 
 
64
 
void sci_cb_show_macro_list(ScintillaObject *sci);
65
 
 
66
 
gboolean sci_cb_handle_xml(ScintillaObject *sci, gchar ch);
67
 
 
68
 
void sci_cb_find_current_word(ScintillaObject *sci, gint pos, gchar *word, size_t wordlen);
69
 
 
70
 
gboolean sci_cb_show_calltip(gint idx, gint pos);
71
 
 
72
 
void sci_cb_do_comment_toggle(gint idx);
73
 
 
74
 
void sci_cb_do_comment(gint idx, gint line);
75
 
 
76
 
void sci_cb_do_uncomment(gint idx, gint line);
77
 
 
78
 
void sci_cb_highlight_braces(ScintillaObject *sci, gint cur_pos);
79
 
 
80
 
void sci_cb_auto_multiline(ScintillaObject *sci, gint pos);
81
 
 
82
 
void sci_cb_auto_table(ScintillaObject *sci, gint pos);
83
 
 
84
 
void sci_cb_auto_close_bracket(ScintillaObject *sci, gint pos, gchar c);
85
 
 
86
 
#endif