1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19 
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 
25 module gsv.SourceUndoManagerIF;
26 
27 private import gobject.Signals;
28 private import gsvc.gsv;
29 public  import gsvc.gsvtypes;
30 public  import gtkc.gdktypes;
31 private import std.algorithm;
32 
33 
34 /** */
35 public interface SourceUndoManagerIF{
36 	/** Get the main Gtk struct */
37 	public GtkSourceUndoManager* getSourceUndoManagerStruct();
38 
39 	/** the main Gtk struct as a void* */
40 	protected void* getStruct();
41 
42 
43 	/**
44 	 * Begin a not undoable action on the buffer. All changes between this call
45 	 * and the call to gtk_source_undo_manager_end_not_undoable_action() cannot
46 	 * be undone. This function should be re-entrant.
47 	 *
48 	 * Since: 2.10
49 	 */
50 	public void beginNotUndoableAction();
51 
52 	/**
53 	 * Get whether there are redo operations available.
54 	 *
55 	 * Return: %TRUE if there are redo operations available, %FALSE otherwise
56 	 *
57 	 * Since: 2.10
58 	 */
59 	public bool canRedo();
60 
61 	/**
62 	 * Emits the #GtkSourceUndoManager::can-redo-changed signal.
63 	 *
64 	 * Since: 2.10
65 	 */
66 	public void canRedoChanged();
67 
68 	/**
69 	 * Get whether there are undo operations available.
70 	 *
71 	 * Return: %TRUE if there are undo operations available, %FALSE otherwise
72 	 *
73 	 * Since: 2.10
74 	 */
75 	public bool canUndo();
76 
77 	/**
78 	 * Emits the #GtkSourceUndoManager::can-undo-changed signal.
79 	 *
80 	 * Since: 2.10
81 	 */
82 	public void canUndoChanged();
83 
84 	/**
85 	 * Ends a not undoable action on the buffer.
86 	 *
87 	 * Since: 2.10
88 	 */
89 	public void endNotUndoableAction();
90 
91 	/**
92 	 * Perform a single redo. Calling this function when there are no redo operations
93 	 * available is an error. Use gtk_source_undo_manager_can_redo() to find out
94 	 * if there are redo operations available.
95 	 *
96 	 * Since: 2.10
97 	 */
98 	public void redo();
99 
100 	/**
101 	 * Perform a single undo. Calling this function when there are no undo operations
102 	 * available is an error. Use gtk_source_undo_manager_can_undo() to find out
103 	 * if there are undo operations available.
104 	 *
105 	 * Since: 2.10
106 	 */
107 	public void undo();
108 	/**
109 	 * Emitted when the ability to redo has changed.
110 	 *
111 	 * Since: 2.10
112 	 */
113 	gulong addOnCanRedoChanged(void delegate(SourceUndoManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
114 	;
115 
116 	/**
117 	 * Emitted when the ability to undo has changed.
118 	 *
119 	 * Since: 2.10
120 	 */
121 	gulong addOnCanUndoChanged(void delegate(SourceUndoManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
122 	;
123 
124 }