summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KKeyChooser.java
blob: c1cb924f755ea365db0adb1a86af198bf9ae521a (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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.TQListViewItem;
import org.kde.qt.TQFont;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQPoint;
import org.kde.qt.TQWidget;
import org.kde.qt.TQWidget;

/**

 Configure dictionaries of key/action associations for KAccel and
 TDEGlobalAccel.
 The class takes care of all aspects of configuration, including
 handling key conflicts internally. Connect to the allDefault()
 slot if you want to set all configurable shortcuts to their
 default values.
 See {@link KKeyChooserSignals} for signals emitted by KKeyChooser
		@author Nicolas Hadacek <hadacek@via.ecp.fr>
 
		@short Widget for configuration of KAccel and TDEGlobalAccel. 
		@see KKeyDialog

*/
public class KKeyChooser extends TQWidget  {
	protected KKeyChooser(Class dummy){super((Class) null);}
	public static final int NoKey = 1;
	public static final int DefaultKey = 2;
	public static final int CustomKey = 3;

	public static final int Application = 0;
	public static final int ApplicationGlobal = 1;
	public static final int Standard = 2;
	public static final int Global = 3;

	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Constructor.
			@param parent the parent widget for this widget
			@param type the ActionType for this KKeyChooser
			@param bAllowLetterShortcuts Set to false if unmodified alphanumeric
		  keys ('A', '1', etc.) are not permissible shortcuts.
				@short    Constructor.
	*/
	// KKeyChooser* KKeyChooser(TQWidget* arg1,ActionType arg2,bool arg3); >>>> NOT CONVERTED
	// KKeyChooser* KKeyChooser(TQWidget* arg1,ActionType arg2); >>>> NOT CONVERTED
	public KKeyChooser(TQWidget parent) {
		super((Class) null);
		newKKeyChooser(parent);
	}
	private native void newKKeyChooser(TQWidget parent);
	/**	
		 \overload
			@param parent parent widget
			@param coll the KActionCollection to configure
			@param bAllowLetterShortcuts Set to false if unmodified alphanumeric
		  keys ('A', '1', etc.) are not permissible shortcuts.
		     		@short    \overload
	*/
	public KKeyChooser(KActionCollection coll, TQWidget parent, boolean bAllowLetterShortcuts) {
		super((Class) null);
		newKKeyChooser(coll,parent,bAllowLetterShortcuts);
	}
	private native void newKKeyChooser(KActionCollection coll, TQWidget parent, boolean bAllowLetterShortcuts);
	public KKeyChooser(KActionCollection coll, TQWidget parent) {
		super((Class) null);
		newKKeyChooser(coll,parent);
	}
	private native void newKKeyChooser(KActionCollection coll, TQWidget parent);
	public KKeyChooser(KAccel actions, TQWidget parent, boolean bAllowLetterShortcuts) {
		super((Class) null);
		newKKeyChooser(actions,parent,bAllowLetterShortcuts);
	}
	private native void newKKeyChooser(KAccel actions, TQWidget parent, boolean bAllowLetterShortcuts);
	public KKeyChooser(KAccel actions, TQWidget parent) {
		super((Class) null);
		newKKeyChooser(actions,parent);
	}
	private native void newKKeyChooser(KAccel actions, TQWidget parent);
	public KKeyChooser(TDEGlobalAccel actions, TQWidget parent) {
		super((Class) null);
		newKKeyChooser(actions,parent);
	}
	private native void newKKeyChooser(TDEGlobalAccel actions, TQWidget parent);
	// KKeyChooser* KKeyChooser(KShortcutList* arg1,TQWidget* arg2,ActionType arg3,bool arg4); >>>> NOT CONVERTED
	// KKeyChooser* KKeyChooser(KShortcutList* arg1,TQWidget* arg2,ActionType arg3); >>>> NOT CONVERTED
	public KKeyChooser(KShortcutList arg1, TQWidget parent) {
		super((Class) null);
		newKKeyChooser(arg1,parent);
	}
	private native void newKKeyChooser(KShortcutList arg1, TQWidget parent);
	/**	
		 Insert an action collection, i.e. add all its actions to the ones
		 already associated with the KKeyChooser object.
			 		@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
		 already associated with the KKeyChooser object.
			@param title subtree title of this collection of shortcut.
				@short    Insert an action collection, i.
	*/
	public native boolean insert(KActionCollection arg1, String title);
	public native void syncToConfig(String sConfigGroup, KConfigBase pConfig, boolean bClearUnset);
	/**	
		 This function writes any shortcut changes back to the original
		 action set(s).
			 		@short    This function writes any shortcut changes back to the original  action set(s).
	*/
	public native void commitChanges();
	/**	
		 This commits and then saves the actions to disk.
		 Any KActionCollection objects with the xmlFile() value set
		 will be written to an XML file.  All other will be written
		 to the application's rc file.
			 		@short    This commits and then saves the actions to disk.
	*/
	public native void save();
	/**	
		 Set all keys to their default values (bindings).
				@short    Set all keys to their default values (bindings).
	*/
	public native void allDefault();
	/**	
		 Specifies whether to use the 3 or 4 modifier key scheme.
		 This determines which default is used when the 'Default' button is
		 clicked.
			 		@short    Specifies whether to use the 3 or 4 modifier key scheme.
	*/
	public native void setPreferFourModifierKeys(boolean preferFourModifierKeys);
	/**	
		 Rebuild list entries based on underlying map.
		 Use this if you changed the underlying map.
			 		@short    Rebuild list entries based on underlying map.
	*/
	public native void listSync();
	/**	
		 Checks whether the given shortcut conflicts with global keyboard shortcuts.
		 If yes, and the warnUser argument is true, warns the user and gives them a chance
		 to reassign the shortcut from the global shortcut.
			@param cut the shortcut that will be checked for conflicts
			@param warnUser if true, the user will be warned about a conflict and given a chance
		        to reassign the shortcut
			@param parent parent widget for the warning dialog
				@return true if there was conflict (and the user didn't reassign the shortcut)

		@short    Checks whether the given shortcut conflicts with global keyboard shortcuts.
	*/
	public static native boolean checkGlobalShortcutsConflict(KShortcut cut, boolean warnUser, TQWidget parent);
	/**	
		 Checks whether the given shortcut conflicts with standard keyboard shortcuts.
		 If yes, and the warnUser argument is true, warns the user and gives them a chance
		 to reassign the shortcut from the standard shortcut.
			@param cut the shortcut that will be checked for conflicts
			@param warnUser if true, the user will be warned about a conflict and given a chance
		        to reassign the shortcut
			@param parent parent widget for the warning dialog
				@return true if there was conflict (and the user didn't reassign the shortcut)

		@short    Checks whether the given shortcut conflicts with standard keyboard shortcuts.
	*/
	public static native boolean checkStandardShortcutsConflict(KShortcut cut, boolean warnUser, TQWidget parent);
	// void initGUI(ActionType arg1,bool arg2); >>>> NOT CONVERTED
	protected native boolean insert(KAccel arg1);
	protected native boolean insert(TDEGlobalAccel arg1);
	protected native boolean insert(KShortcutList arg1);
	protected native void buildListView(int iList, String title);
	protected native void buildListView(int iList);
	protected native void readGlobalKeys();
	protected native void updateButtons();
	protected native void fontChange(TQFont _font);
	protected native void setShortcut(KShortcut cut);
	protected native boolean isKeyPresent(KShortcut cut, boolean warnuser);
	protected native boolean isKeyPresent(KShortcut cut);
	// bool isKeyPresentLocally(const KShortcut& arg1,KKeyChooserItem* arg2,const TQString& arg3); >>>> NOT CONVERTED
	protected native void _warning(KKeySequence seq, String sAction, String sTitle);
	protected native void slotNoKey();
	protected native void slotDefaultKey();
	protected native void slotCustomKey();
	protected native void slotListItemSelected(TQListViewItem item);
	protected native void capturedShortcut(KShortcut cut);
	protected native void slotSettingsChanged(int arg1);
	protected native void slotListItemDoubleClicked(TQListViewItem ipoTQListViewItem, TQPoint ipoTQPoint, int c);
	/** 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();
}