summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/KCommand.java
blob: e9416d051edeac3914c9da7667e1cfbcc7cacce5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;

import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.QtSupport;

/**

 The abstract base class for all Commands. Commands are used to
 store information needed for Undo/Redo functionality...
 		@short    The abstract base class for all Commands.

*/
public class KCommand implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected KCommand(Class dummy){}

	/**
		 The main method: executes this command.
		 Implement here what this command is about, and remember to
		 record any information that will be helpful for #unexecute.
		     		@short    The main method: executes this command.
	*/
	public native void execute();
	/**
		 Unexecutes (undo) this command.
		 Implement here the steps to take for undoing the command.
		 If your application uses actions for everything (it should),
		 and if you implement unexecute correctly, the application is in the same
		 state after unexecute as it was before execute. This means, the next
		 call to execute will do the same thing as it did the first time.
		     		@short    Unexecutes (undo) this command.
	*/
	public native void unexecute();
	/**
				@return the name of this command, translated, since it will appear
 in the menus.

		@short
	*/
	public native String name();
}