You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
383 lines
14 KiB
383 lines
14 KiB
//Auto-generated by kalyptus. DO NOT EDIT.
|
|
#include <kxmlguiclient.h>
|
|
#include <tqstring.h>
|
|
#include <tqstringlist.h>
|
|
#include <tqdom.h>
|
|
|
|
#include <qtjava/QtSupport.h>
|
|
#include <kdejava/KDESupport.h>
|
|
#include <kdejava/KXMLGUIClient.h>
|
|
|
|
class KXMLGUIClientJBridge : public KXMLGUIClient
|
|
{
|
|
public:
|
|
KXMLGUIClientJBridge() : KXMLGUIClient() {};
|
|
KXMLGUIClientJBridge(KXMLGUIClient* arg1) : KXMLGUIClient(arg1) {};
|
|
void protected_setInstance(TDEInstance* arg1) {
|
|
KXMLGUIClient::setInstance(arg1);
|
|
return;
|
|
}
|
|
void protected_setXMLFile(const TQString& arg1,bool arg2,bool arg3) {
|
|
KXMLGUIClient::setXMLFile(arg1,arg2,arg3);
|
|
return;
|
|
}
|
|
void protected_setXMLFile(const TQString& arg1,bool arg2) {
|
|
KXMLGUIClient::setXMLFile(arg1,arg2);
|
|
return;
|
|
}
|
|
void protected_setXMLFile(const TQString& arg1) {
|
|
KXMLGUIClient::setXMLFile(arg1);
|
|
return;
|
|
}
|
|
void protected_setLocalXMLFile(const TQString& arg1) {
|
|
KXMLGUIClient::setLocalXMLFile(arg1);
|
|
return;
|
|
}
|
|
void protected_setXML(const TQString& arg1,bool arg2) {
|
|
KXMLGUIClient::setXML(arg1,arg2);
|
|
return;
|
|
}
|
|
void protected_setXML(const TQString& arg1) {
|
|
KXMLGUIClient::setXML(arg1);
|
|
return;
|
|
}
|
|
void protected_setDOMDocument(const TQDomDocument& arg1,bool arg2) {
|
|
KXMLGUIClient::setDOMDocument(arg1,arg2);
|
|
return;
|
|
}
|
|
void protected_setDOMDocument(const TQDomDocument& arg1) {
|
|
KXMLGUIClient::setDOMDocument(arg1);
|
|
return;
|
|
}
|
|
void protected_conserveMemory() {
|
|
KXMLGUIClient::conserveMemory();
|
|
return;
|
|
}
|
|
void protected_stateChanged(const TQString& arg1,KXMLGUIClient::ReverseStateChange arg2) {
|
|
KXMLGUIClient::stateChanged(arg1,arg2);
|
|
return;
|
|
}
|
|
void protected_stateChanged(const TQString& arg1) {
|
|
KXMLGUIClient::stateChanged(arg1);
|
|
return;
|
|
}
|
|
~KXMLGUIClientJBridge() {QtSupport::qtKeyDeleted(this);}
|
|
};
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_actionCollection(JNIEnv* env, jobject obj)
|
|
{
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)((KXMLGUIClient*) QtSupport::getQt(env, obj))->actionCollection(), "org.kde.koala.KActionCollection");
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_action__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
|
|
{
|
|
static TQCString* _qstring_name = 0;
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)((KXMLGUIClient*) QtSupport::getQt(env, obj))->action((const char*) QtSupport::toCharString(env, name, &_qstring_name)), "org.kde.koala.KAction");
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_action__Lorg_kde_qt_QDomElement_2(JNIEnv* env, jobject obj, jobject element)
|
|
{
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)((KXMLGUIClient*) QtSupport::getQt(env, obj))->action((const TQDomElement&)*(const TQDomElement*) QtSupport::getQt(env, element)), "org.kde.koala.KAction");
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_addStateActionDisabled(JNIEnv* env, jobject obj, jstring state, jstring action)
|
|
{
|
|
static TQString* _qstring_state = 0;
|
|
static TQString* _qstring_action = 0;
|
|
((KXMLGUIClient*) QtSupport::getQt(env, obj))->addStateActionDisabled((const TQString&)*(TQString*) QtSupport::toTQString(env, state, &_qstring_state), (const TQString&)*(TQString*) QtSupport::toTQString(env, action, &_qstring_action));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_addStateActionEnabled(JNIEnv* env, jobject obj, jstring state, jstring action)
|
|
{
|
|
static TQString* _qstring_state = 0;
|
|
static TQString* _qstring_action = 0;
|
|
((KXMLGUIClient*) QtSupport::getQt(env, obj))->addStateActionEnabled((const TQString&)*(TQString*) QtSupport::toTQString(env, state, &_qstring_state), (const TQString&)*(TQString*) QtSupport::toTQString(env, action, &_qstring_action));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_beginXMLPlug(JNIEnv* env, jobject obj, jobject arg1)
|
|
{
|
|
((KXMLGUIClient*) QtSupport::getQt(env, obj))->beginXMLPlug((TQWidget*) QtSupport::getQt(env, arg1));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_clientBuilder(JNIEnv* env, jobject obj)
|
|
{
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)((KXMLGUIClient*) QtSupport::getQt(env, obj))->clientBuilder(), "org.kde.koala.KXMLGUIBuilderInterface");
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_conserveMemory(JNIEnv* env, jobject obj)
|
|
{
|
|
((KXMLGUIClientJBridge*) QtSupport::getQt(env, obj))->protected_conserveMemory();
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_dispose(JNIEnv* env, jobject obj)
|
|
{
|
|
Java_org_kde_koala_KXMLGUIClient_finalize(env, obj);
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_domDocument(JNIEnv* env, jobject obj)
|
|
{
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomDocument(((KXMLGUIClient*) QtSupport::getQt(env, obj))->domDocument()), "org.kde.qt.TQDomDocument", TRUE);
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_endXMLPlug(JNIEnv* env, jobject obj)
|
|
{
|
|
((KXMLGUIClient*) QtSupport::getQt(env, obj))->endXMLPlug();
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_factory(JNIEnv* env, jobject obj)
|
|
{
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)((KXMLGUIClient*) QtSupport::getQt(env, obj))->factory(), "org.kde.koala.KXMLGUIFactory");
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_finalize(JNIEnv* env, jobject obj)
|
|
{
|
|
if (QtSupport::allocatedInJavaWorld(env, obj)) {
|
|
delete (KXMLGUIClient*)QtSupport::getQt(env, obj);
|
|
QtSupport::setQt(env, obj, 0);
|
|
}
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_findMostRecentXMLFile(JNIEnv* env, jclass cls, jobjectArray files, jobject doc)
|
|
{
|
|
TQString _qstring;
|
|
(void) cls;
|
|
static TQStringList* _qlist_files = 0;
|
|
static TQString* _qstring_doc = 0;
|
|
_qstring = KXMLGUIClientJBridge::findMostRecentXMLFile((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, files, &_qlist_files), (TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, doc, &_qstring_doc));
|
|
QtSupport::fromTQStringToStringBuffer(env, _qstring_doc, doc);
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_insertChildClient(JNIEnv* env, jobject obj, jobject child)
|
|
{
|
|
((KXMLGUIClient*) QtSupport::getQt(env, obj))->insertChildClient((KXMLGUIClient*) QtSupport::getQt(env, child));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_instance(JNIEnv* env, jobject obj)
|
|
{
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)((KXMLGUIClient*) QtSupport::getQt(env, obj))->instance(), "org.kde.koala.TDEInstanceInterface");
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_isDisposed(JNIEnv* env, jobject obj)
|
|
{
|
|
return (QtSupport::getQt(env, obj) == 0);
|
|
}
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_localXMLFile(JNIEnv* env, jobject obj)
|
|
{
|
|
TQString _qstring;
|
|
_qstring = ((KXMLGUIClient*) QtSupport::getQt(env, obj))->localXMLFile();
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_newKXMLGUIClient__(JNIEnv* env, jobject obj)
|
|
{
|
|
if (QtSupport::getQt(env, obj) == 0) {
|
|
QtSupport::setQt(env, obj, new KXMLGUIClientJBridge());
|
|
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
|
|
}
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_newKXMLGUIClient__Lorg_kde_koala_KXMLGUIClientInterface_2(JNIEnv* env, jobject obj, jobject parent)
|
|
{
|
|
if (QtSupport::getQt(env, obj) == 0) {
|
|
QtSupport::setQt(env, obj, new KXMLGUIClientJBridge((KXMLGUIClient*) QtSupport::getQt(env, parent)));
|
|
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
|
|
}
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_parentClient(JNIEnv* env, jobject obj)
|
|
{
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)((KXMLGUIClient*) QtSupport::getQt(env, obj))->parentClient(), "org.kde.koala.KXMLGUIClientInterface");
|
|
return xret;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_prepareXMLUnplug(JNIEnv* env, jobject obj, jobject arg1)
|
|
{
|
|
((KXMLGUIClient*) QtSupport::getQt(env, obj))->prepareXMLUnplug((TQWidget*) QtSupport::getQt(env, arg1));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_reloadXML(JNIEnv* env, jobject obj)
|
|
{
|
|
((KXMLGUIClient*) QtSupport::getQt(env, obj))->reloadXML();
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_removeChildClient(JNIEnv* env, jobject obj, jobject child)
|
|
{
|
|
((KXMLGUIClient*) QtSupport::getQt(env, obj))->removeChildClient((KXMLGUIClient*) QtSupport::getQt(env, child));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_setClientBuilder(JNIEnv* env, jobject obj, jobject builder)
|
|
{
|
|
((KXMLGUIClient*) QtSupport::getQt(env, obj))->setClientBuilder((KXMLGUIBuilder*) QtSupport::getQt(env, builder));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_setDOMDocument__Lorg_kde_qt_QDomDocument_2(JNIEnv* env, jobject obj, jobject document)
|
|
{
|
|
((KXMLGUIClientJBridge*) QtSupport::getQt(env, obj))->protected_setDOMDocument((const TQDomDocument&)*(const TQDomDocument*) QtSupport::getQt(env, document));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_setDOMDocument__Lorg_kde_qt_QDomDocument_2Z(JNIEnv* env, jobject obj, jobject document, jboolean merge)
|
|
{
|
|
((KXMLGUIClientJBridge*) QtSupport::getQt(env, obj))->protected_setDOMDocument((const TQDomDocument&)*(const TQDomDocument*) QtSupport::getQt(env, document), (bool) merge);
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_setFactory(JNIEnv* env, jobject obj, jobject factory)
|
|
{
|
|
((KXMLGUIClient*) QtSupport::getQt(env, obj))->setFactory((KXMLGUIFactory*) QtSupport::getQt(env, factory));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_setInstance(JNIEnv* env, jobject obj, jobject instance)
|
|
{
|
|
((KXMLGUIClientJBridge*) QtSupport::getQt(env, obj))->protected_setInstance((TDEInstance*) QtSupport::getQt(env, instance));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_setLocalXMLFile(JNIEnv* env, jobject obj, jstring file)
|
|
{
|
|
static TQString* _qstring_file = 0;
|
|
((KXMLGUIClientJBridge*) QtSupport::getQt(env, obj))->protected_setLocalXMLFile((const TQString&)*(TQString*) QtSupport::toTQString(env, file, &_qstring_file));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_setXMLFile__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring file)
|
|
{
|
|
static TQString* _qstring_file = 0;
|
|
((KXMLGUIClientJBridge*) QtSupport::getQt(env, obj))->protected_setXMLFile((const TQString&)*(TQString*) QtSupport::toTQString(env, file, &_qstring_file));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_setXMLFile__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring file, jboolean merge)
|
|
{
|
|
static TQString* _qstring_file = 0;
|
|
((KXMLGUIClientJBridge*) QtSupport::getQt(env, obj))->protected_setXMLFile((const TQString&)*(TQString*) QtSupport::toTQString(env, file, &_qstring_file), (bool) merge);
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_setXMLFile__Ljava_lang_String_2ZZ(JNIEnv* env, jobject obj, jstring file, jboolean merge, jboolean setXMLDoc)
|
|
{
|
|
static TQString* _qstring_file = 0;
|
|
((KXMLGUIClientJBridge*) QtSupport::getQt(env, obj))->protected_setXMLFile((const TQString&)*(TQString*) QtSupport::toTQString(env, file, &_qstring_file), (bool) merge, (bool) setXMLDoc);
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_setXMLGUIBuildDocument(JNIEnv* env, jobject obj, jobject doc)
|
|
{
|
|
((KXMLGUIClient*) QtSupport::getQt(env, obj))->setXMLGUIBuildDocument((const TQDomDocument&)*(const TQDomDocument*) QtSupport::getQt(env, doc));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_setXML__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring document)
|
|
{
|
|
static TQString* _qstring_document = 0;
|
|
((KXMLGUIClientJBridge*) QtSupport::getQt(env, obj))->protected_setXML((const TQString&)*(TQString*) QtSupport::toTQString(env, document, &_qstring_document));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_setXML__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring document, jboolean merge)
|
|
{
|
|
static TQString* _qstring_document = 0;
|
|
((KXMLGUIClientJBridge*) QtSupport::getQt(env, obj))->protected_setXML((const TQString&)*(TQString*) QtSupport::toTQString(env, document, &_qstring_document), (bool) merge);
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_stateChanged__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring newstate)
|
|
{
|
|
static TQString* _qstring_newstate = 0;
|
|
((KXMLGUIClientJBridge*) QtSupport::getQt(env, obj))->protected_stateChanged((const TQString&)*(TQString*) QtSupport::toTQString(env, newstate, &_qstring_newstate));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_stateChanged__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring newstate, jint reverse)
|
|
{
|
|
static TQString* _qstring_newstate = 0;
|
|
((KXMLGUIClientJBridge*) QtSupport::getQt(env, obj))->protected_stateChanged((const TQString&)*(TQString*) QtSupport::toTQString(env, newstate, &_qstring_newstate), (KXMLGUIClient::ReverseStateChange) reverse);
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_unplugActionList(JNIEnv* env, jobject obj, jstring name)
|
|
{
|
|
static TQString* _qstring_name = 0;
|
|
((KXMLGUIClient*) QtSupport::getQt(env, obj))->unplugActionList((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name));
|
|
return;
|
|
}
|
|
|
|
JNIEXPORT jstring JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_xmlFile(JNIEnv* env, jobject obj)
|
|
{
|
|
TQString _qstring;
|
|
_qstring = ((KXMLGUIClient*) QtSupport::getQt(env, obj))->xmlFile();
|
|
return QtSupport::fromTQString(env, &_qstring);
|
|
}
|
|
|
|
JNIEXPORT jobject JNICALL
|
|
Java_org_kde_koala_KXMLGUIClient_xmlguiBuildDocument(JNIEnv* env, jobject obj)
|
|
{
|
|
jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomDocument(((KXMLGUIClient*) QtSupport::getQt(env, obj))->xmlguiBuildDocument()), "org.kde.qt.TQDomDocument", TRUE);
|
|
return xret;
|
|
}
|
|
|