summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/TQTab.cpp
blob: 0f481b14c768e42ca8db945ccf4736970a32b61b (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
//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqrect.h>
#include <tqstring.h>
#include <tqtabbar.h>
#include <tqiconset.h>

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

class TQTabJBridge : public TQTab
{
public:
	TQTabJBridge() : TQTab() {};
	TQTabJBridge(const TQString& arg1) : TQTab(arg1) {};
	TQTabJBridge(const TQIconSet& arg1,const TQString& arg2) : TQTab(arg1,arg2) {};
	TQTabJBridge(const TQIconSet& arg1) : TQTab(arg1) {};
	~TQTabJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QTab_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QTab_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTab_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (TQTab*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTab_iconSet(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQTab*) QtSupport::getQt(env, obj))->iconSet(), "org.kde.qt.TQIconSet");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QTab_identifier(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQTab*) QtSupport::getQt(env, obj))->identifier();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QTab_isEnabled(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQTab*) QtSupport::getQt(env, obj))->isEnabled();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QTab_newTQTab__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring text)
{
static TQString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQTabJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTab_newTQTab__Lorg_kde_qt_QIconSet_2(JNIEnv* env, jobject obj, jobject icon)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQTabJBridge((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTab_newTQTab__Lorg_kde_qt_QIconSet_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject icon, jstring text)
{
static TQString* _qstring_text = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQTabJBridge((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon), (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QTab_rect(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQRect(((TQTab*) QtSupport::getQt(env, obj))->rect()), "org.kde.qt.TQRect", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTab_setEnabled(JNIEnv* env, jobject obj, jboolean enable)
{
	((TQTab*) QtSupport::getQt(env, obj))->setEnabled((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTab_setIconSet(JNIEnv* env, jobject obj, jobject icon)
{
	((TQTab*) QtSupport::getQt(env, obj))->setIconSet((const TQIconSet&)*(const TQIconSet*) QtSupport::getQt(env, icon));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTab_setIdentifier(JNIEnv* env, jobject obj, jint i)
{
	((TQTab*) QtSupport::getQt(env, obj))->setIdentifier((int) i);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTab_setRect(JNIEnv* env, jobject obj, jobject rect)
{
	((TQTab*) QtSupport::getQt(env, obj))->setRect((const TQRect&)*(const TQRect*) QtSupport::getQt(env, rect));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QTab_setText(JNIEnv* env, jobject obj, jstring text)
{
static TQString* _qstring_text = 0;
	((TQTab*) QtSupport::getQt(env, obj))->setText((const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QTab_text(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQTab*) QtSupport::getQt(env, obj))->text();
	return QtSupport::fromTQString(env, &_qstring);
}