aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-text-event-processor.h
blob: b2219923f7f37f67ab31d7fec9791d8ddb31a923 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* 
 * e-text-event-processor.h
 * Copyright 2000, 2001, Ximian, Inc.
 *
 * Authors:
 *   Chris Lahey <clahey@ximian.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License, version 2, as published by the Free Software Foundation.
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301, USA.
 */

#ifndef __E_TEXT_EVENT_PROCESSOR_H__
#define __E_TEXT_EVENT_PROCESSOR_H__

#include <glib.h>
#include <gtk/gtkobject.h>
#include <e-util/e-text-event-processor-types.h>

#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */

/* ETextEventProcessor - Turns events on a text widget into commands.
 *
 */

#define E_TEXT_EVENT_PROCESSOR_TYPE     (e_text_event_processor_get_type ())
#define E_TEXT_EVENT_PROCESSOR(obj)     (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TEXT_EVENT_PROCESSOR_TYPE, ETextEventProcessor))
#define E_TEXT_EVENT_PROCESSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), E_TEXT_EVENT_PROCESSOR_TYPE, ETextEventProcessorClass))
#define E_IS_TEXT_EVENT_PROCESSOR(obj)      (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TEXT_EVENT_PROCESSOR_TYPE))
#define E_IS_TEXT_EVENT_PROCESSOR_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((obj), E_TEXT_EVENT_PROCESSOR_TYPE))
#define E_TEXT_EVENT_PROCESSOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), E_TEXT_EVENT_PROCESSOR_TYPE, ETextEventProcessorClass))
typedef struct _ETextEventProcessor       ETextEventProcessor;
typedef struct _ETextEventProcessorClass  ETextEventProcessorClass;

struct _ETextEventProcessor
{
    GObject parent;

    /* object specific fields */
    guint allow_newlines : 1;
};

struct _ETextEventProcessorClass
{
    GtkObjectClass parent_class;

    /* signals */
    void (* command) (ETextEventProcessor *tep, ETextEventProcessorCommand *command);

    /* virtual functions */
    gint (* event) (ETextEventProcessor *tep, ETextEventProcessorEvent *event);
};


GType      e_text_event_processor_get_type (void);
gint       e_text_event_processor_handle_event (ETextEventProcessor *tep, ETextEventProcessorEvent *event);

#ifdef __cplusplus
}
#endif /* __cplusplus */


#endif /* __E_TEXT_EVENT_PROCESSOR_H__ */
6160eb7e20f914a7334a6b'>Sync for 1.1.2.Ettore Perazzoli2002-10-081-1/+11 * Sync for 1.1.1.Ettore Perazzoli2002-09-103-5/+64 * updatedJeffrey Stedfast2002-08-262-0/+2 * Added new library to scan programRodrigo Moya2002-08-161-0/+1 * Install libversit.a so that people compiling against the addressbook canPeter Williams2002-07-183-6/+14 * more fixes for libversit.la -> libversit.aDan Winship2002-03-203-2/+9 * Use EVOLUTION_CALENDAR_CFLAGS and EVOLUTION_CALENDAR_LIBS. Likewise.Ettore Perazzoli2002-01-252-2/+3 * Use EVOLUTION_CALENDAR_CFLAGS and EVOLUTION_CALENDAR_LIBS.Ettore Perazzoli2002-01-252-10/+13 * Clean up some of the Makefiles so we dont' link every library multipleEttore Perazzoli2002-01-251-113/+123 * cal-client needs bonobo-conf nowJP Rosevear2001-12-194-188/+195 * Updated docs for repeating alarms.Federico Mena Quintero2001-10-309-226/+425 * use install hook instead of install rule to guarantee we run afterJP Rosevear2001-09-151-38/+30 * The finaleKjartan Maraas2001-08-174-636/+0 * Missed thisKjartan Maraas2001-08-171-9/+0 * Here go the restKjartan Maraas2001-08-1733-19802/+0 * I have deleted all of these files as they are being moved to the help directory.Aaron Weber2001-08-1746-8967/+0 * Nuke the old no docsKjartan Maraas2001-08-1746-8946/+0 * Back to building develKjartan Maraas2001-08-171-1/+1 * Small fix to build. Small fix. Remove an extra space. Same here. And here.Kjartan Maraas2001-08-166-10/+17 * Remove the other copy of the figuresKjartan Maraas2001-08-1623-0/+0 * Updated one line about bullet points.Kevin Breit2001-08-162-1/+5 * Added beginnings of a Norwegian translation. Forgot to add this. KindaKjartan Maraas2001-08-1649-1/+9087 * s/fig/figures/ Make it use the sgmldocs.make framework.Kjartan Maraas2001-08-1611-96/+69 * Moved imagesKjartan Maraas2001-08-1623-0/+0 * Commented out menuref. Commented out menuref. commented out menuref.Aaron Weber2001-08-155-17/+21 * Added missing ;'s after entities. s/en/C in Language. Add missing ;. SameKjartan Maraas2001-08-125-5/+12 * New files.Aaron Weber2001-08-112-0/+0 * Switched all images in entire document to *not* use file extensions, soAaron Weber2001-08-115-19/+22 * Made sharing tip an orderedlist.Aaron Weber2001-08-103-25/+66 * sync - FedericoFederico Mena Quintero2001-08-093-5/+38 * Add information about sharing mailbox files.Kevin Breit2001-08-092-1/+11 * Add information about gathering actions.Kevin Breit2001-08-042-2/+18 * Added a <tip> for scrolling through mails.Kevin Breit2001-08-032-0/+12 * Remove the copying of the index.sgml file which doesn't seem to beEttore Perazzoli2001-07-312-1/+6 * Fixed some breakage Aaron caused.Kevin Breit2001-07-312-2/+8 * revised.Aaron Weber2001-07-274-264/+427 * Reworded a few questions.Aaron Weber2001-07-242-6/+8 * Pulled instance of config-setupassist.sgml to make stuff build right.Kevin Breit2001-07-242-1/+4 * validated.Aaron Weber2001-07-244-212/+13 * Minor revisions.Aaron Weber2001-07-249-480/+411 * Changed background transparency.Aaron Weber2001-07-241-0/+0 * Fixed the first time druid stuff a little more.Kevin Breit2001-07-212-8/+14 * Updated slightly for new design.Kevin Breit2001-07-162-3/+15 * Added lots of good stuff with the first time druid.Kevin Breit2001-07-141-0/+255 * Fixing typo.Aaron Weber2001-07-131-1/+2 * svn path=/trunk/; revision=11063Aaron Weber2001-07-132-4/+71 * Add these files because we're pretty sure gtk-doc needs them.Peter Williams2001-07-122-0/+34 * Clean up make dist.Peter Williams2001-07-126-38/+50 * validation on usage-mainwindow and usage-contact.Aaron Weber2001-07-123-18/+18 * More edits.Kevin Breit2001-07-1212-211/+299 * ShhKjartan Maraas2001-07-125-116/+188 * shhKjartan Maraas