Mercurial > hg > Applications > tvnjviewer
changeset 30:aa88409a502b
Alice update tag:work-compressedDSM
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 08 Nov 2015 21:08:46 +0900 |
parents | e2de671a155d |
children | |
files | .idea/libraries/Gradle__cr_ie_u_ryukyu_ac_jp_Alice_1_1.xml build.gradle src/main/java/com/glavsoft/rfb/encoding/decoder/RichCursorDecoder.java src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEDecoder.java src/main/java/com/glavsoft/rfb/protocol/Protocol.java src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java src/main/java/com/glavsoft/rfb/protocol/state/InitState.java src/viewer_swing/java/com/glavsoft/viewer/Viewer.java src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java |
diffstat | 9 files changed, 38 insertions(+), 29 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.idea/libraries/Gradle__cr_ie_u_ryukyu_ac_jp_Alice_1_1.xml Sun Nov 08 21:08:46 2015 +0900 @@ -0,0 +1,9 @@ +<component name="libraryTable"> + <library name="Gradle: cr.ie.u_ryukyu.ac.jp:Alice:1.1"> + <CLASSES> + <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/cr.ie.u_ryukyu.ac.jp/Alice/1.1/2f429e3a4c3c8b9d276649efc4d141e6221daf74/Alice-1.1.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> +</component> \ No newline at end of file
--- a/build.gradle Mon Dec 08 15:55:38 2014 +0900 +++ b/build.gradle Sun Nov 08 21:08:46 2015 +0900 @@ -4,7 +4,7 @@ sourceCompatibility = 1.8 targetCompatibility = 1.8 -version = '2.7.2' +version = '2.7.3' project.ext.baseName = 'tightvnc-jviewer' def buildNo = processBuildNo(version) @@ -33,7 +33,7 @@ repositories { maven(){ - url 'http://www.cr.ie.u-ryukyu.ac.jp/hg/maven/raw-file/ba8551c1a5c2/' + url 'http://www.cr.ie.u-ryukyu.ac.jp/hg/maven/raw-file/19878c89c434/' } flatDir { dirs 'src/libs/' @@ -42,8 +42,8 @@ dependencies { compile fileTree(dir: 'src/libs', include: '*.jar') - compile group: 'cr.ie.u_ryukyu.ac.jp', name: 'Alice', version: '1.0', ext: 'jar' - viewerSwingCompile group: 'cr.ie.u_ryukyu.ac.jp', name: 'Alice', version: '1.0', ext: 'jar' + compile group: 'cr.ie.u_ryukyu.ac.jp', name: 'Alice', version: '1.1', ext: 'jar' + viewerSwingCompile group: 'cr.ie.u_ryukyu.ac.jp', name: 'Alice', version: '1.1', ext: 'jar' viewerSwingCompile group: 'com.jcraft', name: 'jsch', version: '0.1.+', ext: 'jar' viewerSwingRuntime configurations.viewerSwingCompile } @@ -82,7 +82,7 @@ } ext { - mavenRepository = System.getenv()['HOME']+'/workspace/maven' + mavenRepository = System.getenv()['HOME']+'/Development/CR/maven' } uploadArchives {
--- a/src/main/java/com/glavsoft/rfb/encoding/decoder/RichCursorDecoder.java Mon Dec 08 15:55:38 2014 +0900 +++ b/src/main/java/com/glavsoft/rfb/encoding/decoder/RichCursorDecoder.java Sun Nov 08 21:08:46 2015 +0900 @@ -66,10 +66,10 @@ message.setRectangle(rect); message.bitmask = bitmask.clone(); - ReceiveData rData = new ReceiveData(buffer.clone(), false, false); - DataSegment.getLocal().put("pixelData", rData, null); - rData = new ReceiveData(message, false, false); - DataSegment.getLocal().put("updateRectangle", rData, null); + ReceiveData rData = new ReceiveData(buffer.clone()); + DataSegment.getLocal().put("pixelData", rData, false); + rData = new ReceiveData(message); + DataSegment.getLocal().put("updateRectangle", rData, false); sb = new StringBuilder(" "); for (int i=0; i<bitmask.length; ++i) {
--- a/src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEDecoder.java Mon Dec 08 15:55:38 2014 +0900 +++ b/src/main/java/com/glavsoft/rfb/encoding/decoder/ZRLEDecoder.java Sun Nov 08 21:08:46 2015 +0900 @@ -53,10 +53,10 @@ message.setRectangle(rect); message.encodingTypeId = EncodingType.ZRLEE.getId(); - ReceiveData rData = new ReceiveData(bytes.clone(), false, false); - DataSegment.getLocal().put("pixelData", rData, null); - rData = new ReceiveData(message, false, false); - DataSegment.getLocal().put("updateRectangle", rData, null); + ReceiveData rData = new ReceiveData(bytes.clone()); + DataSegment.getLocal().put("pixelData", rData, false); + rData = new ReceiveData(message); + DataSegment.getLocal().put("updateRectangle", rData, false); decode(renderer, rect, bytes, 0); }
--- a/src/main/java/com/glavsoft/rfb/protocol/Protocol.java Mon Dec 08 15:55:38 2014 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/Protocol.java Sun Nov 08 21:08:46 2015 +0900 @@ -195,8 +195,8 @@ receiverThread = new Thread(receiverTask, "RfbReceiverTask"); receiverThread.start(); // add - ReceiveData rData = new ReceiveData(this, false, false); - DataSegment.getLocal().put("protocol", rData, null); + ReceiveData rData = new ReceiveData(this); + DataSegment.getLocal().put("protocol", rData, false); } private void correctServerPixelFormat() {
--- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Mon Dec 08 15:55:38 2014 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Sun Nov 08 21:08:46 2015 +0900 @@ -186,10 +186,10 @@ message.setRectangle(rect); message.setPixelFormat(context.getPixelFormat()); - ReceiveData rData = new ReceiveData("dummy", false, false); - DataSegment.getLocal().put("pixelData", rData, null); - rData = new ReceiveData(message, false, false); - DataSegment.getLocal().put("updateRectangle", rData, null); + ReceiveData rData = new ReceiveData("dummy"); + DataSegment.getLocal().put("pixelData", rData, false); + rData = new ReceiveData(message); + DataSegment.getLocal().put("updateRectangle", rData, false); context.sendMessage(new FramebufferUpdateRequestMessage(0, 0, rect.width, rect.height, false)); // repaintController.repaintCursor();
--- a/src/main/java/com/glavsoft/rfb/protocol/state/InitState.java Mon Dec 08 15:55:38 2014 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/state/InitState.java Sun Nov 08 21:08:46 2015 +0900 @@ -85,15 +85,15 @@ protected void completeContextData(ServerInitMessage serverInitMessage) { DecodeInfomation mes = new DecodeInfomation(); mes.setServerInitMessage(serverInitMessage); - ReceiveData rData = new ReceiveData(mes, false, false); - DataSegment.getLocal().put("initMessage", rData, null); + ReceiveData rData = new ReceiveData(mes); + DataSegment.getLocal().put("initMessage", rData, false); - rData = new ReceiveData(mes, false, false); + rData = new ReceiveData(mes); mes.encodingTypeId = EncodingType.DESKTOP_SIZE.getId(); - DataSegment.getLocal().put("updateRectangle", rData, null); + DataSegment.getLocal().put("updateRectangle", rData, false); - rData = new ReceiveData("dummy", false, false); - DataSegment.getLocal().put("pixelData", rData, null); + rData = new ReceiveData("dummy"); + DataSegment.getLocal().put("pixelData", rData, false); context.setPixelFormat(serverInitMessage.getPixelFormat()); context.setFbWidth(serverInitMessage.getFrameBufferWidth());
--- a/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java Mon Dec 08 15:55:38 2014 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java Sun Nov 08 21:08:46 2015 +0900 @@ -110,8 +110,8 @@ if ("localhost".equals(parser.getPlainOptionAt(0))) { connectionParams.hostName = "localhost"; isApplet = true; - ReceiveData rData = new ReceiveData(this, false, false); - DataSegment.getLocal().put("viewer", rData, null); + ReceiveData rData = new ReceiveData(this); + DataSegment.getLocal().put("viewer", rData, false); this.needReconnect = false; this.hideJFrame = true; };
--- a/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Mon Dec 08 15:55:38 2014 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Sun Nov 08 21:08:46 2015 +0900 @@ -807,8 +807,8 @@ JButton shareButton = buttonsBar.createButton("share", "Share my screen", new ActionListener() { @Override public void actionPerformed(ActionEvent e) { - ReceiveData rData = new ReceiveData("Request", false, false); - DataSegment.getLocal().put("Request", rData, null); + ReceiveData rData = new ReceiveData("Request"); + DataSegment.getLocal().put("Request", rData, false); } }); kbdButtons.add(shareButton);