summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/QMenuItem.cpp
blob: 58f1278f84711054a21de01cfe423164269937d4 (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
//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tqmenudata.h>
#include <tqkeysequence.h>

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

class TQMenuItemJBridge : public TQMenuItem
{
public:
	TQMenuItemJBridge() : TTQMenuItem() {};
	~TQMenuItemJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMenuItem_custom(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TTQMenuItem*) QtSupport::getQt(env, obj))->custom(), "org.kde.qt.TTQCustomMenuItem");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMenuItem_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QMenuItem_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QMenuItem_id(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TTQMenuItem*) QtSupport::getQt(env, obj))->id();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMenuItem_isChecked(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TTQMenuItem*) QtSupport::getQt(env, obj))->isChecked();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMenuItem_isDirty(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TTQMenuItem*) QtSupport::getQt(env, obj))->isDirty();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMenuItem_isEnabledAndVisible(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TTQMenuItem*) QtSupport::getQt(env, obj))->isEnabledAndVisible();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMenuItem_isSeparator(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TTQMenuItem*) QtSupport::getQt(env, obj))->isSeparator();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QMenuItem_isVisible(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TTQMenuItem*) QtSupport::getQt(env, obj))->isVisible();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMenuItem_key(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TTQKeySequence(((TTQMenuItem*) QtSupport::getQt(env, obj))->key()), "org.kde.qt.TTQKeySequence", TRUE);
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMenuItem_pixmap(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TTQMenuItem*) QtSupport::getQt(env, obj))->pixmap(), "org.kde.qt.TTQPixmap");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMenuItem_popup(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TTQMenuItem*) QtSupport::getQt(env, obj))->popup(), "org.kde.qt.TTQPopupMenu");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMenuItem_setDirty(JNIEnv* env, jobject obj, jboolean dirty)
{
	((TTQMenuItem*) QtSupport::getQt(env, obj))->setDirty((bool) dirty);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QMenuItem_setVisible(JNIEnv* env, jobject obj, jboolean visible)
{
	((TTQMenuItem*) QtSupport::getQt(env, obj))->setVisible((bool) visible);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QMenuItem_setWhatsThis(JNIEnv* env, jobject obj, jstring text)
{
static TTQString* _qstring_text = 0;
	((TTQMenuItem*) QtSupport::getQt(env, obj))->setWhatsThis((const TTQString&)*(TTQString*) QtSupport::toTQString(env, text, &_qstring_text));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMenuItem_signal(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TTQMenuItem*) QtSupport::getQt(env, obj))->signal(), "org.kde.qt.TTQSignal");
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QMenuItem_whatsThis(JNIEnv* env, jobject obj)
{
	TTQString  _qstring;
	_qstring = ((TTQMenuItem*) QtSupport::getQt(env, obj))->whatsThis();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QMenuItem_widget(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TTQMenuItem*) QtSupport::getQt(env, obj))->widget(), "org.kde.qt.TTQWidget");
	return xret;
}