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 private import std.algorithm;
31 
32 
33 /** */
34 public interface SourceUndoManagerIF{
35 	/** Get the main Gtk struct */
36 	public GtkSourceUndoManager* getSourceUndoManagerStruct(bool transferOwnership = false);
37 
38 	/** the main Gtk struct as a void* */
39 	protected void* getStruct();
40 
41 
42 	/**
43 	 * Begin a not undoable action on the buffer. All changes between this call
44 	 * and the call to gtk_source_undo_manager_end_not_undoable_action() cannot
45 	 * be undone. This function should be re-entrant.
46 	 *
47 	 * Since: 2.10
48 	 */
49 	public void beginNotUndoableAction();
50 
51 	/**
52 	 * Get whether there are redo operations available.
53 	 *
54 	 * Returns: %TRUE if there are redo operations available, %FALSE otherwise
55 	 *
56 	 * Since: 2.10
57 	 */
58 	public bool canRedo();
59 
60 	/**
61 	 * Emits the #GtkSourceUndoManager::can-redo-changed signal.
62 	 *
63 	 * Since: 2.10
64 	 */
65 	public void canRedoChanged();
66 
67 	/**
68 	 * Get whether there are undo operations available.
69 	 *
70 	 * Returns: %TRUE if there are undo operations available, %FALSE otherwise
71 	 *
72 	 * Since: 2.10
73 	 */
74 	public bool canUndo();
75 
76 	/**
77 	 * Emits the #GtkSourceUndoManager::can-undo-changed signal.
78 	 *
79 	 * Since: 2.10
80 	 */
81 	public void canUndoChanged();
82 
83 	/**
84 	 * Ends a not undoable action on the buffer.
85 	 *
86 	 * Since: 2.10
87 	 */
88 	public void endNotUndoableAction();
89 
90 	/**
91 	 * Perform a single redo. Calling this function when there are no redo operations
92 	 * available is an error. Use gtk_source_undo_manager_can_redo() to find out
93 	 * if there are redo operations available.
94 	 *
95 	 * Since: 2.10
96 	 */
97 	public void redo();
98 
99 	/**
100 	 * Perform a single undo. Calling this function when there are no undo operations
101 	 * available is an error. Use gtk_source_undo_manager_can_undo() to find out
102 	 * if there are undo operations available.
103 	 *
104 	 * Since: 2.10
105 	 */
106 	public void undo();
107 
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 	 * Emitted when the ability to undo has changed.
117 	 *
118 	 * Since: 2.10
119 	 */
120 	gulong addOnCanUndoChanged(void delegate(SourceUndoManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0);
121 }