summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KKeyDialog.java
blob: d6e11da71505e61eb7df31b37f125b5b5b84f5bd (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQWidget;

/**

 The KKeyDialog class is used for configuring dictionaries of key/action
 associations for KActionCollection, KAccel, and KGlobalAccel. It uses the KKeyChooser widget
 and offers buttons to set all keys to defaults and invoke on-line help.
 Several static methods are supplied which provide the most convenient interface
 to the dialog. The most common and most encouraged use is with KActionCollection.
 <pre>
 KKeyDialog.configure( actionCollection() );
 </pre>
		@author Nicolas Hadacek <hadacek@via.ecp.fr>
 
		@short Dialog for configuration of KActionCollection, KAccel, and KGlobalAccel.

*/
public class KKeyDialog extends KDialogBase  {
	protected KKeyDialog(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Constructs a KKeyDialog called <code>name</code> as a child of <code>parent.</code>
		 Set <code>bAllowLetterShortcuts</code> to false if unmodified alphanumeric
		 keys ('A', '1', etc.) are not permissible shortcuts.
			 		@short    Constructs a KKeyDialog called <code>name</code> as a child of <code>parent.</code>
	*/
	public KKeyDialog(boolean bAllowLetterShortcuts, TQWidget parent, String name) {
		super((Class) null);
		newKKeyDialog(bAllowLetterShortcuts,parent,name);
	}
	private native void newKKeyDialog(boolean bAllowLetterShortcuts, TQWidget parent, String name);
	public KKeyDialog(boolean bAllowLetterShortcuts, TQWidget parent) {
		super((Class) null);
		newKKeyDialog(bAllowLetterShortcuts,parent);
	}
	private native void newKKeyDialog(boolean bAllowLetterShortcuts, TQWidget parent);
	public KKeyDialog(boolean bAllowLetterShortcuts) {
		super((Class) null);
		newKKeyDialog(bAllowLetterShortcuts);
	}
	private native void newKKeyDialog(boolean bAllowLetterShortcuts);
	public KKeyDialog() {
		super((Class) null);
		newKKeyDialog();
	}
	private native void newKKeyDialog();
	/**	
		 Insert an action collection, i.e. add all its actions to the ones
		 displayed by the dialog.
		 This method can be useful in applications following the document/view
		 design, with actions in both the document and the view.
		 Simply call insert with the action collections of each one in turn.
				@return true :)
	 
		@short    Insert an action collection, i.
	*/
	public native boolean insert(KActionCollection arg1);
	/**	
		 Insert an action collection, i.e. add all its actions to the ones
		 displayed by the dialog.
		 This method can be useful in applications following the document/view
		 design, with actions in both the document and the view.
		 Simply call insert with the action collections of each one in turn.
			@param title the title associated with the collection (if null, the
		 TDEAboutData.progName() of the collection's instance is used)
				@return true :)

		@short    Insert an action collection, i.
	*/
	public native boolean insert(KActionCollection arg1, String title);
	/**	
		 Run the dialog and call commitChanges() if <code>bSaveSettings</code>
		 is true.
			 		@short    Run the dialog and call commitChanges() if <code>bSaveSettings</code>  is true.
	*/
	public native boolean configure(boolean bSaveSettings);
	public native boolean configure();
	/**	
		 Commit key setting changes so that changed settings actually become active.
		 This method is implicitly called from configure(boolean) if
		 <code>bSaveSettings</code> is true.
			 		@short    Commit key setting changes so that changed settings actually become active.
	*/
	public native void commitChanges();
	/**	
		 Pops up a modal dialog for configuring key settings. The new
		 shortcut settings will be active if the user presses OK.  If
		 <code>bSaveSettings</code> if true, the settings will also be saved back to
		 the uirc file which they were intially read from.
				@return Accept if the dialog was closed with OK, Reject otherwise.
	 
		@short    Pops up a modal dialog for configuring key settings.
	*/
	public static native int configure(KActionCollection coll, TQWidget parent, boolean bSaveSettings);
	public static native int configure(KActionCollection coll, TQWidget parent);
	public static native int configure(KActionCollection coll);
	/**	
		 This is an overloaded member function, provided for convenience.
		 It behaves essentially like the above function, except that settings
		 are saved to a .rc file using KConfig.
			 		@short    This is an overloaded member function, provided for convenience.
	*/
	public static native int configure(KAccel keys, TQWidget parent, boolean bSaveSettings);
	public static native int configure(KAccel keys, TQWidget parent);
	public static native int configure(KAccel keys);
	/**	
		 This is an overloaded member function, provided for convenience.
		 It behaves essentially like the above function.
			 		@short    This is an overloaded member function, provided for convenience.
	*/
	public static native int configure(KGlobalAccel keys, TQWidget parent, boolean bSaveSettings);
	public static native int configure(KGlobalAccel keys, TQWidget parent);
	public static native int configure(KGlobalAccel keys);
	/**	
		 This is an overloaded member function, provided for convenience.
		 It behaves essentially like the above function.
			@param coll the KActionCollection to configure
			@param bAllowLetterShortcuts Set to false if unmodified alphanumeric
		  keys ('A', '1', etc.) are not permissible shortcuts.
			@param parent the parent widget to attach to
			@param bSaveSettings if true, the settings will also be saved back to
		 the uirc file which they were intially read from.
			 		@short    This is an overloaded member function, provided for convenience.
	*/
	public static native int configure(KActionCollection coll, boolean bAllowLetterShortcuts, TQWidget parent, boolean bSaveSettings);
	public static native int configure(KActionCollection coll, boolean bAllowLetterShortcuts, TQWidget parent);
	public static native int configure(KActionCollection coll, boolean bAllowLetterShortcuts);
	/**	
		 This is an overloaded member function, provided for convenience.
		 It behaves essentially like the above function.
				@short    This is an overloaded member function, provided for convenience.
	*/
	public static native int configure(KAccel keys, boolean bAllowLetterShortcuts, TQWidget parent, boolean bSaveSettings);
	public static native int configure(KAccel keys, boolean bAllowLetterShortcuts, TQWidget parent);
	public static native int configure(KAccel keys, boolean bAllowLetterShortcuts);
	/**	
		 This is an overloaded member function, provided for convenience.
		 It behaves essentially like the above function.
				@short    This is an overloaded member function, provided for convenience.
	*/
	public static native int configure(KGlobalAccel keys, boolean bAllowLetterShortcuts, TQWidget parent, boolean bSaveSettings);
	public static native int configure(KGlobalAccel keys, boolean bAllowLetterShortcuts, TQWidget parent);
	public static native int configure(KGlobalAccel keys, boolean bAllowLetterShortcuts);
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}