summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/TQGridLayout.cpp
blob: ce1f5e4e73b56ae437d8b25a87011a6fa5d2d42d (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
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqsizepolicy.h>
#include <tqrect.h>
#include <tqlayout.h>
#include <tqstring.h>
#include <tqsize.h>

#include <qtjava/QtSupport.h>
#include <qtjava/TQGridLayout.h>

class TQGridLayoutJBridge : public TQGridLayout
{
public:
	TQGridLayoutJBridge(TQWidget* arg1,int arg2,int arg3,int arg4,int arg5,const char* arg6) : TQGridLayout(arg1,arg2,arg3,arg4,arg5,arg6) {};
	TQGridLayoutJBridge(TQWidget* arg1,int arg2,int arg3,int arg4,int arg5) : TQGridLayout(arg1,arg2,arg3,arg4,arg5) {};
	TQGridLayoutJBridge(TQWidget* arg1,int arg2,int arg3,int arg4) : TQGridLayout(arg1,arg2,arg3,arg4) {};
	TQGridLayoutJBridge(TQWidget* arg1,int arg2,int arg3) : TQGridLayout(arg1,arg2,arg3) {};
	TQGridLayoutJBridge(TQWidget* arg1,int arg2) : TQGridLayout(arg1,arg2) {};
	TQGridLayoutJBridge(TQWidget* arg1) : TQGridLayout(arg1) {};
	TQGridLayoutJBridge(int arg1,int arg2,int arg3,const char* arg4) : TQGridLayout(arg1,arg2,arg3,arg4) {};
	TQGridLayoutJBridge(int arg1,int arg2,int arg3) : TQGridLayout(arg1,arg2,arg3) {};
	TQGridLayoutJBridge(int arg1,int arg2) : TQGridLayout(arg1,arg2) {};
	TQGridLayoutJBridge(int arg1) : TQGridLayout(arg1) {};
	TQGridLayoutJBridge() : TQGridLayout() {};
	TQGridLayoutJBridge(TQLayout* arg1,int arg2,int arg3,int arg4,const char* arg5) : TQGridLayout(arg1,arg2,arg3,arg4,arg5) {};
	TQGridLayoutJBridge(TQLayout* arg1,int arg2,int arg3,int arg4) : TQGridLayout(arg1,arg2,arg3,arg4) {};
	TQGridLayoutJBridge(TQLayout* arg1,int arg2,int arg3) : TQGridLayout(arg1,arg2,arg3) {};
	TQGridLayoutJBridge(TQLayout* arg1,int arg2) : TQGridLayout(arg1,arg2) {};
	TQGridLayoutJBridge(TQLayout* arg1) : TQGridLayout(arg1) {};
	bool protected_findWidget(TQWidget* arg1,int* arg2,int* arg3) {
		return (bool) TQGridLayout::findWidget(arg1,arg2,arg3);
	}
	void protected_add(TQLayoutItem* arg1,int arg2,int arg3) {
		TQGridLayout::add(arg1,arg2,arg3);
		return;
	}
	~TQGridLayoutJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void setMenuBar(TQMenuBar* arg1) {
		if (!QtSupport::eventDelegate(this,"setMenuBar",(void*)arg1,"org.trinitydesktop.qt.TQMenuBar")) {
			TQLayout::setMenuBar(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQLayout::childEvent(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addColSpacing(JNIEnv* env, jobject obj, jint col, jint minsize)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addColSpacing((int) col, (int) minsize);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addItem__Lorg_trinitydesktop_qt_QLayoutItemInterface_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addItem((TQLayoutItem*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addItem__Lorg_trinitydesktop_qt_QLayoutItemInterface_2II(JNIEnv* env, jobject obj, jobject item, jint row, jint col)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addItem((TQLayoutItem*) QtSupport::getQt(env, item), (int) row, (int) col);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addLayout(JNIEnv* env, jobject obj, jobject layout, jint row, jint col)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addLayout((TQLayout*) QtSupport::getQt(env, layout), (int) row, (int) col);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addMultiCellLayout__Lorg_trinitydesktop_qt_QLayout_2IIII(JNIEnv* env, jobject obj, jobject layout, jint fromRow, jint toRow, jint fromCol, jint toCol)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addMultiCellLayout((TQLayout*) QtSupport::getQt(env, layout), (int) fromRow, (int) toRow, (int) fromCol, (int) toCol);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addMultiCellLayout__Lorg_trinitydesktop_qt_QLayout_2IIIII(JNIEnv* env, jobject obj, jobject layout, jint fromRow, jint toRow, jint fromCol, jint toCol, jint align)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addMultiCellLayout((TQLayout*) QtSupport::getQt(env, layout), (int) fromRow, (int) toRow, (int) fromCol, (int) toCol, (int) align);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addMultiCellWidget__Lorg_trinitydesktop_qt_QWidget_2IIII(JNIEnv* env, jobject obj, jobject arg1, jint fromRow, jint toRow, jint fromCol, jint toCol)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addMultiCellWidget((TQWidget*) QtSupport::getQt(env, arg1), (int) fromRow, (int) toRow, (int) fromCol, (int) toCol);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addMultiCellWidget__Lorg_trinitydesktop_qt_QWidget_2IIIII(JNIEnv* env, jobject obj, jobject arg1, jint fromRow, jint toRow, jint fromCol, jint toCol, jint align)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addMultiCellWidget((TQWidget*) QtSupport::getQt(env, arg1), (int) fromRow, (int) toRow, (int) fromCol, (int) toCol, (int) align);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addMultiCell__Lorg_trinitydesktop_qt_QLayoutItemInterface_2IIII(JNIEnv* env, jobject obj, jobject arg1, jint fromRow, jint toRow, jint fromCol, jint toCol)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addMultiCell((TQLayoutItem*) QtSupport::getQt(env, arg1), (int) fromRow, (int) toRow, (int) fromCol, (int) toCol);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addMultiCell__Lorg_trinitydesktop_qt_QLayoutItemInterface_2IIIII(JNIEnv* env, jobject obj, jobject arg1, jint fromRow, jint toRow, jint fromCol, jint toCol, jint align)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addMultiCell((TQLayoutItem*) QtSupport::getQt(env, arg1), (int) fromRow, (int) toRow, (int) fromCol, (int) toCol, (int) align);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addRowSpacing(JNIEnv* env, jobject obj, jint row, jint minsize)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addRowSpacing((int) row, (int) minsize);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addWidget__Lorg_trinitydesktop_qt_QWidget_2II(JNIEnv* env, jobject obj, jobject arg1, jint row, jint col)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addWidget((TQWidget*) QtSupport::getQt(env, arg1), (int) row, (int) col);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_addWidget__Lorg_trinitydesktop_qt_QWidget_2III(JNIEnv* env, jobject obj, jobject arg1, jint row, jint col, jint align)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->addWidget((TQWidget*) QtSupport::getQt(env, arg1), (int) row, (int) col, (int) align);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_add(JNIEnv* env, jobject obj, jobject arg1, jint row, jint col)
{
	((TQGridLayoutJBridge*) QtSupport::getQt(env, obj))->protected_add((TQLayoutItem*) QtSupport::getQt(env, arg1), (int) row, (int) col);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGridLayout_cellGeometry(JNIEnv* env, jobject obj, jint row, jint col)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQRect(((TQGridLayout*) QtSupport::getQt(env, obj))->cellGeometry((int) row, (int) col)), "org.trinitydesktop.qt.TQRect", TRUE);
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridLayout_colSpacing(JNIEnv* env, jobject obj, jint col)
{
	jint xret = (jint) ((TQGridLayout*) QtSupport::getQt(env, obj))->colSpacing((int) col);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridLayout_colStretch(JNIEnv* env, jobject obj, jint col)
{
	jint xret = (jint) ((TQGridLayout*) QtSupport::getQt(env, obj))->colStretch((int) col);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QGridLayout_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_expand(JNIEnv* env, jobject obj, jint rows, jint cols)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->expand((int) rows, (int) cols);
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridLayout_expanding(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQGridLayout*) QtSupport::getQt(env, obj))->expanding();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((TQLayoutItem*)(TQGridLayout*)QtSupport::getQt(env, obj))->layout() == 0 && ((TQLayoutItem*)(TQGridLayout*)QtSupport::getQt(env, obj))->widget() == 0 && ((TQLayoutItem*)(TQGridLayout*)QtSupport::getQt(env, obj))->spacerItem() == 0) {
		delete (TQGridLayout*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QGridLayout_findWidget(JNIEnv* env, jobject obj, jobject w, jintArray r, jintArray c)
{
	int* _int_r = QtSupport::toIntPtr(env, r);
	int* _int_c = QtSupport::toIntPtr(env, c);
	jboolean xret = (jboolean) ((TQGridLayoutJBridge*) QtSupport::getQt(env, obj))->protected_findWidget((TQWidget*) QtSupport::getQt(env, w),  (int*) _int_r,  (int*) _int_c);
	env->SetIntArrayRegion(r, 0, 1, (jint *) _int_r);
	env->SetIntArrayRegion(c, 0, 1, (jint *) _int_c);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QGridLayout_hasHeightForWidth(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQGridLayout*) QtSupport::getQt(env, obj))->hasHeightForWidth();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridLayout_heightForWidth(JNIEnv* env, jobject obj, jint arg1)
{
	jint xret = (jint) ((TQGridLayout*) QtSupport::getQt(env, obj))->heightForWidth((int) arg1);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_invalidate(JNIEnv* env, jobject obj)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->invalidate();
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGridLayout_maximumSize(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQGridLayout*) QtSupport::getQt(env, obj))->maximumSize()), "org.trinitydesktop.qt.TQSize", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGridLayout_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQGridLayout*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridLayout_minimumHeightForWidth(JNIEnv* env, jobject obj, jint arg1)
{
	jint xret = (jint) ((TQGridLayout*) QtSupport::getQt(env, obj))->minimumHeightForWidth((int) arg1);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGridLayout_minimumSize(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQGridLayout*) QtSupport::getQt(env, obj))->minimumSize()), "org.trinitydesktop.qt.TQSize", TRUE);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__I(JNIEnv* env, jobject obj, jint nRows)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((int) nRows));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__II(JNIEnv* env, jobject obj, jint nRows, jint nCols)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((int) nRows, (int) nCols));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__III(JNIEnv* env, jobject obj, jint nRows, jint nCols, jint spacing)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((int) nRows, (int) nCols, (int) spacing));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__IIILjava_lang_String_2(JNIEnv* env, jobject obj, jint nRows, jint nCols, jint spacing, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((int) nRows, (int) nCols, (int) spacing, (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__Lorg_trinitydesktop_qt_QLayout_2I(JNIEnv* env, jobject obj, jobject parentLayout, jint nRows)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((TQLayout*) QtSupport::getQt(env, parentLayout), (int) nRows));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__Lorg_trinitydesktop_qt_QLayout_2II(JNIEnv* env, jobject obj, jobject parentLayout, jint nRows, jint nCols)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((TQLayout*) QtSupport::getQt(env, parentLayout), (int) nRows, (int) nCols));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__Lorg_trinitydesktop_qt_QLayout_2III(JNIEnv* env, jobject obj, jobject parentLayout, jint nRows, jint nCols, jint spacing)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((TQLayout*) QtSupport::getQt(env, parentLayout), (int) nRows, (int) nCols, (int) spacing));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__Lorg_trinitydesktop_qt_QLayout_2IIILjava_lang_String_2(JNIEnv* env, jobject obj, jobject parentLayout, jint nRows, jint nCols, jint spacing, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((TQLayout*) QtSupport::getQt(env, parentLayout), (int) nRows, (int) nCols, (int) spacing, (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__Lorg_trinitydesktop_qt_QWidget_2I(JNIEnv* env, jobject obj, jobject parent, jint nRows)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((TQWidget*) QtSupport::getQt(env, parent), (int) nRows));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__Lorg_trinitydesktop_qt_QWidget_2II(JNIEnv* env, jobject obj, jobject parent, jint nRows, jint nCols)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((TQWidget*) QtSupport::getQt(env, parent), (int) nRows, (int) nCols));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__Lorg_trinitydesktop_qt_QWidget_2III(JNIEnv* env, jobject obj, jobject parent, jint nRows, jint nCols, jint border)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((TQWidget*) QtSupport::getQt(env, parent), (int) nRows, (int) nCols, (int) border));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__Lorg_trinitydesktop_qt_QWidget_2IIII(JNIEnv* env, jobject obj, jobject parent, jint nRows, jint nCols, jint border, jint spacing)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((TQWidget*) QtSupport::getQt(env, parent), (int) nRows, (int) nCols, (int) border, (int) spacing));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_newTQGridLayout__Lorg_trinitydesktop_qt_QWidget_2IIIILjava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jint nRows, jint nCols, jint border, jint spacing, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQGridLayoutJBridge((TQWidget*) QtSupport::getQt(env, parent), (int) nRows, (int) nCols, (int) border, (int) spacing, (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridLayout_numCols(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQGridLayout*) QtSupport::getQt(env, obj))->numCols();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridLayout_numRows(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQGridLayout*) QtSupport::getQt(env, obj))->numRows();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridLayout_origin(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQGridLayout*) QtSupport::getQt(env, obj))->origin();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridLayout_rowSpacing(JNIEnv* env, jobject obj, jint row)
{
	jint xret = (jint) ((TQGridLayout*) QtSupport::getQt(env, obj))->rowSpacing((int) row);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGridLayout_rowStretch(JNIEnv* env, jobject obj, jint row)
{
	jint xret = (jint) ((TQGridLayout*) QtSupport::getQt(env, obj))->rowStretch((int) row);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_setColSpacing(JNIEnv* env, jobject obj, jint col, jint minSize)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->setColSpacing((int) col, (int) minSize);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_setColStretch(JNIEnv* env, jobject obj, jint col, jint stretch)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->setColStretch((int) col, (int) stretch);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_setGeometry(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->setGeometry((const TQRect&)*(const TQRect*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_setOrigin(JNIEnv* env, jobject obj, jint arg1)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->setOrigin((TQGridLayout::Corner) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_setRowSpacing(JNIEnv* env, jobject obj, jint row, jint minSize)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->setRowSpacing((int) row, (int) minSize);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGridLayout_setRowStretch(JNIEnv* env, jobject obj, jint row, jint stretch)
{
	((TQGridLayout*) QtSupport::getQt(env, obj))->setRowStretch((int) row, (int) stretch);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGridLayout_sizeHint(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQGridLayout*) QtSupport::getQt(env, obj))->sizeHint()), "org.trinitydesktop.qt.TQSize", TRUE);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QGridLayout_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
	_qstring = TQGridLayoutJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QGridLayout_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
	_qstring = TQGridLayoutJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}