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