~sarahstrong/ubuntu/lucid/gedit/mypatch

« back to all changes in this revision

Viewing changes to src/undo.h

  • Committer: Bazaar Package Importer
  • Author(s): Joe Drew
  • Date: 2002-01-13 02:13:27 UTC
  • Revision ID: james.westby@ubuntu.com-20020113021327-dukaa4n50oykvrjg
Tags: upstream-0.9.6
ImportĀ upstreamĀ versionĀ 0.9.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 
2
/* Cleaned 10-00 by Chema */
 
3
/*
 
4
 * gedit
 
5
 *
 
6
 * Copyright (C) 2000 Chema Celorio
 
7
 *
 
8
 * This program is free software; you can redistribute it and/or modify
 
9
 * it under the terms of the GNU General Public License as published by
 
10
 * the Free Software Foundation; either version 2 of the License, or
 
11
 * (at your option) any later version.
 
12
 *
 
13
 * This program is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
 * GNU General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU General Public License
 
19
 * along with this program; if not, write to the Free Software
 
20
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
 
21
 */
 
22
 
 
23
#ifndef __GEDIT_UNDO_H__
 
24
#define __GEDIT_UNDO_H__
 
25
 
 
26
#include "document.h"
 
27
#include "view.h"
 
28
 
 
29
typedef enum {
 
30
        GEDIT_UNDO_ACTION_INSERT,
 
31
        GEDIT_UNDO_ACTION_DELETE,
 
32
        GEDIT_UNDO_ACTION_REPLACE_INSERT,
 
33
        GEDIT_UNDO_ACTION_REPLACE_DELETE
 
34
} GeditUndoAction;
 
35
 
 
36
typedef enum {
 
37
        GEDIT_UNDO_STATE_TRUE,
 
38
        GEDIT_UNDO_STATE_FALSE,
 
39
        GEDIT_UNDO_STATE_UNCHANGED,
 
40
        GEDIT_UNDO_STATE_REFRESH,
 
41
} GeditUndoState;
 
42
 
 
43
void gedit_undo_add       (const gchar *text, gint start_pos, gint end_pos, GeditUndoAction action, GeditDocument *doc, GeditView *view);
 
44
void gedit_undo_undo      (GtkWidget*, gpointer);
 
45
void gedit_undo_redo      (GtkWidget*, gpointer);
 
46
void gedit_undo_free_list (GList **list_pointer);
 
47
 
 
48
#endif /* __GEDIT_UNDO_H__ */