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  * Conversion parameters:
26  * inFile  = GtkSourceUndoManager.html
27  * outPack = gsv
28  * outFile = SourceUndoManagerIF
29  * strct   = GtkSourceUndoManager
30  * realStrct=
31  * ctorStrct=
32  * clss    = SourceUndoManagerT
33  * interf  = SourceUndoManagerIF
34  * class Code: No
35  * interface Code: No
36  * template for:
37  * extend  = 
38  * implements:
39  * prefixes:
40  * 	- gtk_source_undo_manager_
41  * omit structs:
42  * omit prefixes:
43  * omit code:
44  * omit signals:
45  * imports:
46  * structWrap:
47  * module aliases:
48  * local aliases:
49  * overrides:
50  */
51 
52 module gsv.SourceUndoManagerIF;
53 
54 public  import gsvc.gsvtypes;
55 
56 private import gsvc.gsv;
57 private import glib.ConstructionException;
58 private import gobject.ObjectG;
59 
60 private import gobject.Signals;
61 public  import gtkc.gdktypes;
62 
63 
64 
65 /**
66  * The GtkSourceUndoManager interface can be implemented to provide custom
67  * undo management to a GtkSourceBuffer. Use
68  * gtk_source_buffer_set_undo_manager() to install a custom undo manager for
69  * a particular source buffer.
70  *
71  * Use gtk_source_undo_manager_can_undo_changed() and
72  * gtk_source_undo_manager_can_redo_changed() when respectively the undo state
73  * or redo state of the undo stack has changed.
74  */
75 public interface SourceUndoManagerIF
76 {
77 	
78 	
79 	/** Get the main Gtk struct */
80 	public GtkSourceUndoManager* getSourceUndoManagerTStruct();
81 	
82 	/** the main Gtk struct as a void* */
83 	protected void* getStruct();
84 	
85 	
86 	/**
87 	 */
88 	
89 	@property void delegate(SourceUndoManagerIF)[] onCanRedoChangedListeners();
90 	/**
91 	 * Emitted when the ability to redo has changed.
92 	 * Since 2.10
93 	 */
94 	void addOnCanRedoChanged(void delegate(SourceUndoManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0);
95 	@property void delegate(SourceUndoManagerIF)[] onCanUndoChangedListeners();
96 	/**
97 	 * Emitted when the ability to undo has changed.
98 	 * Since 2.10
99 	 * See Also
100 	 * GtkTextBuffer, GtkSourceView
101 	 */
102 	void addOnCanUndoChanged(void delegate(SourceUndoManagerIF) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0);
103 	
104 	/**
105 	 * Get whether there are undo operations available.
106 	 * Since 2.10
107 	 * Returns: TRUE if there are undo operations available, FALSE otherwise
108 	 */
109 	public int canUndo();
110 	
111 	/**
112 	 * Get whether there are redo operations available.
113 	 * Since 2.10
114 	 * Returns: TRUE if there are redo operations available, FALSE otherwise
115 	 */
116 	public int canRedo();
117 	
118 	/**
119 	 * Perform a single undo. Calling this function when there are no undo operations
120 	 * available is an error. Use gtk_source_undo_manager_can_undo() to find out
121 	 * if there are undo operations available.
122 	 * Since 2.10
123 	 */
124 	public void undo();
125 	
126 	/**
127 	 * Perform a single redo. Calling this function when there are no redo operations
128 	 * available is an error. Use gtk_source_undo_manager_can_redo() to find out
129 	 * if there are redo operations available.
130 	 * Since 2.10
131 	 */
132 	public void redo();
133 	
134 	/**
135 	 * Begin a not undoable action on the buffer. All changes between this call
136 	 * and the call to gtk_source_undo_manager_end_not_undoable_action() cannot
137 	 * be undone. This function should be re-entrant.
138 	 * Since 2.10
139 	 */
140 	public void beginNotUndoableAction();
141 	
142 	/**
143 	 * Ends a not undoable action on the buffer.
144 	 * Since 2.10
145 	 */
146 	public void endNotUndoableAction();
147 	
148 	/**
149 	 * Emits the "can-undo-changed" signal.
150 	 * Since 2.10
151 	 */
152 	public void canUndoChanged();
153 	
154 	/**
155 	 * Emits the "can-redo-changed" signal.
156 	 * Since 2.10
157 	 * Signal Details
158 	 * The "can-redo-changed" signal
159 	 * void user_function (GtkSourceUndoManager *manager,
160 	 *  gpointer user_data) : Action
161 	 * Emitted when the ability to redo has changed.
162 	 * Since 2.10
163 	 */
164 	public void canRedoChanged();
165 }