summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/kdejava/KCommandHistory.cpp
blob: 824e6c243cd044642ad3b5401e0aabd9cd80da2c (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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
//Auto-generated by kalyptus. DO NOT EDIT.
#include <kcommand.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KCommandHistory.h>

class KCommandHistoryJBridge : public KCommandHistory
{
public:
	KCommandHistoryJBridge() : KCommandHistory() {};
	KCommandHistoryJBridge(KActionCollection* arg1,bool arg2) : KCommandHistory(arg1,arg2) {};
	KCommandHistoryJBridge(KActionCollection* arg1) : KCommandHistory(arg1) {};
	void public_undo() {
		KCommandHistory::undo();
		return;
	}
	void public_redo() {
		KCommandHistory::redo();
		return;
	}
	void public_documentSaved() {
		KCommandHistory::documentSaved();
		return;
	}
	void protected_slotUndoAboutToShow() {
		KCommandHistory::slotUndoAboutToShow();
		return;
	}
	void protected_slotUndoActivated(int arg1) {
		KCommandHistory::slotUndoActivated(arg1);
		return;
	}
	void protected_slotRedoAboutToShow() {
		KCommandHistory::slotRedoAboutToShow();
		return;
	}
	void protected_slotRedoActivated(int arg1) {
		KCommandHistory::slotRedoActivated(arg1);
		return;
	}
	~KCommandHistoryJBridge() {QtSupport::qtKeyDeleted(this);}
	void undo() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KCommandHistory","undo")) {
			KCommandHistory::undo();
		}
		return;
	}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void documentSaved() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KCommandHistory","documentSaved")) {
			KCommandHistory::documentSaved();
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.KCommandHistory",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
	void redo() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KCommandHistory","redo")) {
			KCommandHistory::redo();
		}
		return;
	}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_addCommand__Lorg_kde_koala_KCommand_2(JNIEnv* env, jobject obj, jobject command)
{
	((KCommandHistory*) QtSupport::getQt(env, obj))->addCommand((KCommand*) QtSupport::getQt(env, command));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_addCommand__Lorg_kde_koala_KCommand_2Z(JNIEnv* env, jobject obj, jobject command, jboolean execute)
{
	((KCommandHistory*) QtSupport::getQt(env, obj))->addCommand((KCommand*) QtSupport::getQt(env, command), (bool) execute);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCommandHistory_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((KCommandHistory*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_clear(JNIEnv* env, jobject obj)
{
	((KCommandHistory*) QtSupport::getQt(env, obj))->clear();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KCommandHistory_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_documentSaved(JNIEnv* env, jobject obj)
{
	((KCommandHistoryJBridge*) QtSupport::getQt(env, obj))->public_documentSaved();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((KCommandHistory*)QtSupport::getQt(env, obj))->parent() == 0) {
		delete (KCommandHistory*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KCommandHistory_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCommandHistory_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KCommandHistory*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_newKCommandHistory__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KCommandHistoryJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_newKCommandHistory__Lorg_kde_koala_KActionCollection_2(JNIEnv* env, jobject obj, jobject actionCollection)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KCommandHistoryJBridge((KActionCollection*) QtSupport::getQt(env, actionCollection)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_newKCommandHistory__Lorg_kde_koala_KActionCollection_2Z(JNIEnv* env, jobject obj, jobject actionCollection, jboolean withMenus)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KCommandHistoryJBridge((KActionCollection*) QtSupport::getQt(env, actionCollection), (bool) withMenus));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KCommandHistory_redoLimit(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KCommandHistory*) QtSupport::getQt(env, obj))->redoLimit();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_redo(JNIEnv* env, jobject obj)
{
	((KCommandHistoryJBridge*) QtSupport::getQt(env, obj))->public_redo();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_setRedoLimit(JNIEnv* env, jobject obj, jint limit)
{
	((KCommandHistory*) QtSupport::getQt(env, obj))->setRedoLimit((int) limit);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_setUndoLimit(JNIEnv* env, jobject obj, jint limit)
{
	((KCommandHistory*) QtSupport::getQt(env, obj))->setUndoLimit((int) limit);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_slotRedoAboutToShow(JNIEnv* env, jobject obj)
{
	((KCommandHistoryJBridge*) QtSupport::getQt(env, obj))->protected_slotRedoAboutToShow();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_slotRedoActivated(JNIEnv* env, jobject obj, jint arg1)
{
	((KCommandHistoryJBridge*) QtSupport::getQt(env, obj))->protected_slotRedoActivated((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_slotUndoAboutToShow(JNIEnv* env, jobject obj)
{
	((KCommandHistoryJBridge*) QtSupport::getQt(env, obj))->protected_slotUndoAboutToShow();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_slotUndoActivated(JNIEnv* env, jobject obj, jint arg1)
{
	((KCommandHistoryJBridge*) QtSupport::getQt(env, obj))->protected_slotUndoActivated((int) arg1);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KCommandHistory_undoLimit(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KCommandHistory*) QtSupport::getQt(env, obj))->undoLimit();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_undo(JNIEnv* env, jobject obj)
{
	((KCommandHistoryJBridge*) QtSupport::getQt(env, obj))->public_undo();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCommandHistory_updateActions(JNIEnv* env, jobject obj)
{
	((KCommandHistory*) QtSupport::getQt(env, obj))->updateActions();
	return;
}