summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/kdejava/KShortcutList.cpp
blob: 8f304c9567913664771a2e113f5bbb9a4aca0485 (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
//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tqvariant.h>
#include <kshortcutlist.h>
#include <kshortcut.h>

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

JNIEXPORT jint JNICALL
Java_org_kde_koala_KShortcutList_count(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KShortcutList*) QtSupport::getQt(env, obj))->count();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KShortcutList_getOther(JNIEnv* env, jobject obj, jint arg1, jint index)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQVariant(((KShortcutList*) QtSupport::getQt(env, obj))->getOther((KShortcutList::Other) arg1, (uint) index)), "org.kde.qt.TQVariant", TRUE);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KShortcutList_index__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring sName)
{
static TQString* _qstring_sName = 0;
	jint xret = (jint) ((KShortcutList*) QtSupport::getQt(env, obj))->index((const TQString&)*(TQString*) QtSupport::toTQString(env, sName, &_qstring_sName));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KShortcutList_index__Lorg_kde_koala_KKeySequence_2(JNIEnv* env, jobject obj, jobject keySeq)
{
	jint xret = (jint) ((KShortcutList*) QtSupport::getQt(env, obj))->index((const KKeySequence&)*(const KKeySequence*) QtSupport::getQt(env, keySeq));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KShortcutList_instance(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KShortcutList*) QtSupport::getQt(env, obj))->instance(), "org.kde.koala.TDEInstanceInterface");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_isConfigurable(JNIEnv* env, jobject obj, jint index)
{
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->isConfigurable((uint) index);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_isGlobal(JNIEnv* env, jobject obj, jint index)
{
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->isGlobal((uint) index);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KShortcutList_label(JNIEnv* env, jobject obj, jint index)
{
	TQString  _qstring;
	_qstring = ((KShortcutList*) QtSupport::getQt(env, obj))->label((uint) index);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KShortcutList_name(JNIEnv* env, jobject obj, jint index)
{
	TQString  _qstring;
	_qstring = ((KShortcutList*) QtSupport::getQt(env, obj))->name((uint) index);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_readSettings__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->readSettings();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_readSettings__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring sConfigGroup)
{
static TQString* _qstring_sConfigGroup = 0;
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->readSettings((const TQString&)*(TQString*) QtSupport::toTQString(env, sConfigGroup, &_qstring_sConfigGroup));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_readSettings__Ljava_lang_String_2Lorg_kde_koala_TDEConfigBase_2(JNIEnv* env, jobject obj, jstring sConfigGroup, jobject pConfig)
{
static TQString* _qstring_sConfigGroup = 0;
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->readSettings((const TQString&)*(TQString*) QtSupport::toTQString(env, sConfigGroup, &_qstring_sConfigGroup), (TDEConfigBase*) QtSupport::getQt(env, pConfig));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_save(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->save();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_setOther(JNIEnv* env, jobject obj, jint arg1, jint index, jobject arg3)
{
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->setOther((KShortcutList::Other) arg1, (uint) index, (TQVariant)*(TQVariant*) QtSupport::getQt(env, arg3));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_setShortcut(JNIEnv* env, jobject obj, jint index, jobject shortcut)
{
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->setShortcut((uint) index, (const KShortcut&)*(const KShortcut*) QtSupport::getQt(env, shortcut));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KShortcutList_shortcutDefault(JNIEnv* env, jobject obj, jint index)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KShortcut *) &((KShortcutList*) QtSupport::getQt(env, obj))->shortcutDefault((uint) index), "org.kde.koala.KShortcut");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KShortcutList_shortcut(JNIEnv* env, jobject obj, jint index)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(KShortcut *) &((KShortcutList*) QtSupport::getQt(env, obj))->shortcut((uint) index), "org.kde.koala.KShortcut");
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KShortcutList_whatsThis(JNIEnv* env, jobject obj, jint index)
{
	TQString  _qstring;
	_qstring = ((KShortcutList*) QtSupport::getQt(env, obj))->whatsThis((uint) index);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_writeSettings__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->writeSettings();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_writeSettings__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring sConfigGroup)
{
static TQString* _qstring_sConfigGroup = 0;
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->writeSettings((const TQString&)*(TQString*) QtSupport::toTQString(env, sConfigGroup, &_qstring_sConfigGroup));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_writeSettings__Ljava_lang_String_2Lorg_kde_koala_TDEConfigBase_2(JNIEnv* env, jobject obj, jstring sConfigGroup, jobject pConfig)
{
static TQString* _qstring_sConfigGroup = 0;
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->writeSettings((const TQString&)*(TQString*) QtSupport::toTQString(env, sConfigGroup, &_qstring_sConfigGroup), (TDEConfigBase*) QtSupport::getQt(env, pConfig));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_writeSettings__Ljava_lang_String_2Lorg_kde_koala_TDEConfigBase_2Z(JNIEnv* env, jobject obj, jstring sConfigGroup, jobject pConfig, jboolean bWriteAll)
{
static TQString* _qstring_sConfigGroup = 0;
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->writeSettings((const TQString&)*(TQString*) QtSupport::toTQString(env, sConfigGroup, &_qstring_sConfigGroup), (TDEConfigBase*) QtSupport::getQt(env, pConfig), (bool) bWriteAll);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KShortcutList_writeSettings__Ljava_lang_String_2Lorg_kde_koala_TDEConfigBase_2ZZ(JNIEnv* env, jobject obj, jstring sConfigGroup, jobject pConfig, jboolean bWriteAll, jboolean bGlobal)
{
static TQString* _qstring_sConfigGroup = 0;
	jboolean xret = (jboolean) ((KShortcutList*) QtSupport::getQt(env, obj))->writeSettings((const TQString&)*(TQString*) QtSupport::toTQString(env, sConfigGroup, &_qstring_sConfigGroup), (TDEConfigBase*) QtSupport::getQt(env, pConfig), (bool) bWriteAll, (bool) bGlobal);
	return xret;
}