Changeset 1438 for trunk/packages
- Timestamp:
- Oct 31, 2008, 6:20:51 AM (16 years ago)
- Location:
- trunk/packages/invirt-vnc-client
- Files:
-
- 5 added
- 6 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-vnc-client/ButtonPanel.java
r1334 r1438 28 28 import java.io.*; 29 29 30 class ButtonPanel extends Panel implements ActionListener , ItemListener{30 class ButtonPanel extends Panel implements ActionListener { 31 31 32 32 VncViewer viewer; … … 37 37 Button ctrlAltDelButton; 38 38 Button refreshButton; 39 Checkbox altCheckbox;40 Checkbox ctrlCheckbox;41 39 42 40 ButtonPanel(VncViewer v) { … … 68 66 add(refreshButton); 69 67 refreshButton.addActionListener(this); 70 71 altCheckbox = new Checkbox("Alt");72 altCheckbox.setEnabled(false);73 add(altCheckbox);74 altCheckbox.addItemListener(this);75 ctrlCheckbox = new Checkbox("Control");76 ctrlCheckbox.setEnabled(false);77 add(ctrlCheckbox);78 ctrlCheckbox.addItemListener(this);79 68 } 80 69 … … 115 104 public void enableRemoteAccessControls(boolean enable) { 116 105 ctrlAltDelButton.setEnabled(enable); 117 ctrlCheckbox.setEnabled(enable);118 altCheckbox.setEnabled(enable);119 106 } 120 107 … … 164 151 } 165 152 } 166 public void itemStateChanged(ItemEvent evt) {167 viewer.moveFocusToDesktop();168 int state = evt.getStateChange();169 int extraModifiers = 0;170 if (altCheckbox.getState()) { extraModifiers |= InputEvent.ALT_MASK; }171 if (ctrlCheckbox.getState()) { extraModifiers |= InputEvent.CTRL_MASK; }172 viewer.vc.extraModifiers = extraModifiers;173 }174 153 } 175 154 -
trunk/packages/invirt-vnc-client/Makefile
r1336 r1438 5 5 CP = cp 6 6 JC = javac 7 JCFLAGS = -target 1.1 -source 1.27 JCFLAGS = -target 1.1 8 8 JAR = jar 9 9 ARCHIVE = VncViewer.jar … … 18 18 RecordingFrame.class SessionRecorder.class \ 19 19 SocketFactory.class HTTPConnectSocketFactory.class \ 20 VNCProxyConnectSocketFactory.class VNCProxyConnectSocket.class \21 20 HTTPConnectSocket.class ReloginPanel.class \ 22 InStream.class MemInStream.class ZlibInStream.class \ 23 VNCProxyConnectSocketWrapper.class SocketWrapper.class SocketWrapper\$$WrappingSocketImpl.class InvirtTrustManager.class 21 InStream.class MemInStream.class ZlibInStream.class 24 22 25 23 SOURCES = VncViewer.java RfbProto.java AuthPanel.java VncCanvas.java \ … … 29 27 RecordingFrame.java SessionRecorder.java \ 30 28 SocketFactory.java HTTPConnectSocketFactory.java \ 31 VNCProxyConnectSocketFactory.java VNCProxyConnectSocket.java \32 29 HTTPConnectSocket.java ReloginPanel.java \ 33 InStream.java MemInStream.java ZlibInStream.java \ 34 VNCProxyConnectSocketWrapper.java SocketWrapper.java InvirtTrustManager.java 30 InStream.java MemInStream.java ZlibInStream.java 35 31 36 32 all: $(CLASSES) $(ARCHIVE) -
trunk/packages/invirt-vnc-client/RfbProto.java
r1334 r1438 209 209 210 210 if (viewer.socketFactory == null) { 211 System.out.println("Null socketFactory");212 211 sock = new Socket(host, port); 213 212 } else { … … 215 214 Class factoryClass = Class.forName(viewer.socketFactory); 216 215 SocketFactory factory = (SocketFactory)factoryClass.newInstance(); 217 System.out.println("Using socketFactory " + factory);218 216 if (viewer.inAnApplet) 219 217 sock = factory.createSocket(host, port, viewer); … … 239 237 sock.close(); 240 238 closed = true; 241 System.out.println("RFB socket closed " + sock);239 System.out.println("RFB socket closed"); 242 240 if (rec != null) { 243 241 rec.close(); -
trunk/packages/invirt-vnc-client/VncCanvas.java
r1334 r1438 80 80 // True if we process keyboard and mouse events. 81 81 boolean inputEnabled; 82 int extraModifiers = 0;83 82 84 83 // … … 1512 1511 synchronized(rfb) { 1513 1512 try { 1514 if (extraModifiers != 0) {1515 evt.setModifiers(evt.getModifiers() | extraModifiers);1516 }1517 1513 rfb.writeKeyEvent(evt); 1518 1514 } catch (Exception e) { -
trunk/packages/invirt-vnc-client/debian/changelog
r1418 r1438 1 invirt-vnc-client (0.0.6) unstable; urgency=low 2 3 * Isolate our patches from the upstream source 4 5 -- Evan Broder <broder@mit.edu> Fri, 31 Oct 2008 06:10:38 -0400 6 1 7 invirt-vnc-client (0.0.5) unstable; urgency=low 2 8 -
trunk/packages/invirt-vnc-client/debian/control
r1337 r1438 3 3 Priority: extra 4 4 Maintainer: Invirt project <invirt@mit.edu> 5 Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 4.1.0), subversion, sun-java6-jdk | java-compiler5 Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 4.1.0), quilt, sun-java6-jdk | java-compiler 6 6 Standards-Version: 3.7.2 7 7 -
trunk/packages/invirt-vnc-client/debian/rules
r1334 r1438 2 2 3 3 include /usr/share/cdbs/1/rules/debhelper.mk 4 include /usr/share/cdbs/1/rules/patchsys-quilt.mk 4 5 include /usr/share/cdbs/1/class/makefile.mk 5 6
Note: See TracChangeset
for help on using the changeset viewer.