Im Großen und Ganzen klappts jetzt in allen Kombinationen.
Ich hab noch ein Problem von AWT->Qt, wenn von AWT nur eine Zeile oder weniger kopiert wurde.
Dann kommt in Qt der kopierte Text und zustätzlicher Datenmüll an.
Liegt vielleicht an meinem AWT Code.
Qt->Qt
Quelle
Code:
-- copy --
detecting change of clipboard data
MimeSource 0 has 5 formats:
Format 0: text/plain;charset=UTF-8
Format 1: text/plain;charset=ISO-10646-UCS-2
Format 2: text/plain
Format 3: text/plain;charset=iso8859-15
Format 4: application/x-qrichtext
-- copy finished --
Ziel
Code:
-- paste --
MimeSource 0 has 9 formats:
Format 0: text/plain;charset=UTF-8
Format 1: text/plain
Format 2: text/plain
Format 3: text/plain;charset=ISO-8859-1
Format 4: text/plain;charset=UTF-8
Format 5: text/plain;charset=ISO-10646-UCS-2
Format 6: text/plain
Format 7: text/plain;charset=iso8859-15
Format 8: application/x-qrichtext
-- paste finished--
Qt->AWT
Quelle
Code:
-- copy --
detecting change of clipboard data
MimeSource 0 has 5 formats:
Format 0: text/plain;charset=UTF-8
Format 1: text/plain;charset=ISO-10646-UCS-2
Format 2: text/plain
Format 3: text/plain;charset=iso8859-15
Format 4: application/x-qrichtext
-- copy finished --
Ziel
Code:
-- paste --
Transferable has 5 formats
Format 0: application/x-java-serialized-object; class=java.lang.String
Format 1: text/plain; class=java.io.InputStream; charset=iso8859-1
Format 2: text/plain; class=java.io.InputStream
Format 3: text/plain; class=java.io.InputStream; charset=unicode
Format 4: text/plain; class=java.io.InputStream; charset=X11-COMPOUND_TEXT
-- paste finished --
AWT->Qt
Quelle
Code:
-- copy --
Transferable has 2 formats
Format 0: application/x-java-serialized-object; class=java.lang.String
Format 1: text/plain; class=java.io.InputStream; charset=unicode
-- copy finished --
Ziel
Code:
-- paste --
MimeSource 1 has 4 formats:
Format 0: text/plain
Format 1: text/plain;charset=ISO-8859-1
Format 2: JAVA_DATAFLAVOR:application/x-java-serialized-object; class=java.lang.String
Format 3: JAVA_DATAFLAVOR:text/plain; class=java.io.InputStream; charset=unicode
-- paste finished--
AWT->AWT
Quelle
Code:
-- copy --
Transferable has 2 formats
Format 0: application/x-java-serialized-object; class=java.lang.String
Format 1: text/plain; class=java.io.InputStream; charset=unicode
-- copy finished --
Ziel
Code:
-- paste --
Transferable has 4 formats
Format 0: application/x-java-serialized-object; class=java.lang.String
Format 1: text/plain; class=java.io.InputStream; charset=iso8859-1
Format 2: text/plain; class=java.io.InputStream
Format 3: text/plain; class=java.io.InputStream; charset=unicode
-- paste finished --
Interessant ist, dass irgendwie Datentypen hinzukommen, wenn in eine andere Applikation gepastet wird, zb
Code:
Format 3: text/plain;charset=ISO-8859-1
beim Qt->Qt Test.
Ich hoffen dass einer unserer GTK Coder Zeit hat, auch ein entsprechendes Programm zu machen, dann könnte wir auch damit Kombinationen testen.
Selbiger Aufruf an Entwickler mit entsprechende Know-How in anderen Toolkits
Interessant sind dann noch anderen Datenarten, Images zum Beispiel.
Mal sehen, ob ich das nächste Woche für Qt und AWT bewerkstelligen kann (außer einer unserer Java Entwickler möchte den Java Teil übernehmen )
Im Attachment ist der Qt Test und der korrigierte AWT Test.
Ciao,
_
Lesezeichen