! Application defaults file for vnc2swf.
! $Id: Vnc2Swf.ad,v 1.2 2005/10/25 23:06:10 euske Exp $
!
! This file contains the same resource settings ("app-defaults") as the
! "fallback resources" embedded in the executable. You can copy this file to
! /usr/lib/X11/app-defaults/Vnc2Swf (or equivalent) and edit it for site-wide
! customisations.
!
! The title of the main window. "%s" will be replaced by the desktop name.
!
Vnc2Swf.title: VNC2SWF %s: %s
!
! Translations on the main window.
!
Vnc2Swf.translations:\
<Enter>: SelectionToVNC()\n\
<Leave>: SelectionFromVNC()
!
! Background around a small desktop in full-screen mode.
!
*form.background: black
!
! Use scrollbars on right and bottom for window smaller than desktop.
!
*viewport.allowHoriz: True
*viewport.allowVert: True
*viewport.useBottom: True
*viewport.useRight: True
*viewport*Scrollbar*thumb: None
!
! Default translations on desktop window.
!
*desktop.baseTranslations:\
<Key>F8: ShowPopup()\n\
<Key>F9: ToggleRecording()\n\
<Key>F11: ToggleStatus()\n\
<ButtonPress>: SendRFBEvent()\n\
<ButtonRelease>: SendRFBEvent()\n\
<Motion>: SendRFBEvent()\n\
<KeyPress>: SendRFBEvent()\n\
<KeyRelease>: SendRFBEvent()
*desktop*statusFont: -*-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
*desktop*statusColor: white
!
! Dialog boxes
!
*serverDialog.dialog.label: VNC server:
*serverDialog.dialog.value:
*serverDialog.dialog.value.translations: #override\n\
<Key>Return: ServerDialogDone()
*passwordDialog.dialog.label: Password:
*passwordDialog.dialog.value:
*passwordDialog.dialog.value.AsciiSink.echo: False
*passwordDialog.dialog.value.translations: #override\n\
<Key>Return: PasswordDialogDone()
!
! Popup window appearance
!
*popup.title: VNC2SWF popup
*popup*background: grey
*popup*font: -*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*
*popup.buttonForm.Command.borderWidth: 0
*popup.buttonForm.Toggle.borderWidth: 0
!
! Translations on popup window - send key presses through
!
*popup.translations: #override <Message>WM_PROTOCOLS: HidePopup()
*popup.buttonForm.translations: #override\n\
<Key>F: ToggleFullScreen() HidePopup()\n\
<Key>R: SelectionToVNC(always) HidePopup()\n\
<Key>L: SelectionFromVNC(always) HidePopup()\n\
<Key>D: SendRFBEvent(keydown,Control_L)\
SendRFBEvent(keydown,Alt_L)\
SendRFBEvent(key,Delete)\
SendRFBEvent(keyup,Alt_L)\
SendRFBEvent(keyup,Control_L)\
HidePopup()\n\
<Key>8: SendRFBEvent(key,F8) HidePopup()\n\
<Key>9: SendRFBEvent(key,F9) HidePopup()\n\
<Key>space: ToggleRecording() HidePopup()\n\
Ctrl<Key>R: ResetRecording() HidePopup()\n\
<Key>Q: Quit()\n\
<Key>F8: HidePopup()\n\
<Key>Escape: HidePopup()
!
! Popup buttons
!
*popupButtonCount: 10
*popup*button1.label: F) Full Screen
*popup*button1.type: toggle
*popup*button1.translations: #override\n\
<Visible>: SetFullScreenState()\n\
<Btn1Down>,<Btn1Up>: ToggleFullScreen() HidePopup()
*popup*button2.label: R) Clipboard: local -> remote
*popup*button2.translations: #override\n\
<Btn1Down>,<Btn1Up>: SelectionToVNC(always) HidePopup()
*popup*button3.label: L) Clipboard: local <- remote
*popup*button3.translations: #override\n\
<Btn1Down>,<Btn1Up>: SelectionFromVNC(always) HidePopup()
*popup*button4.label: D) Send Ctrl-Alt-Del
*popup*button4.translations: #override\n\
<Btn1Down>,<Btn1Up>: SendRFBEvent(keydown,Control_L)\
SendRFBEvent(keydown,Alt_L)\
SendRFBEvent(key,Delete)\
SendRFBEvent(keyup,Alt_L)\
SendRFBEvent(keyup,Control_L)\
HidePopup()
*popup*button5.label: 8) Send F8
*popup*button5.translations: #override\n\
<Btn1Down>,<Btn1Up>: SendRFBEvent(key,F8) HidePopup()
*popup*button6.label: 9) Send F9
*popup*button6.translations: #override\n\
<Btn1Down>,<Btn1Up>: SendRFBEvent(key,F9) HidePopup()
*popup*button7.label: SPC) Start/Stop Recording
*popup*button7.type: toggle
*popup*button7.translations: #override\n\
<Visible>: SetRecordingState()\n\
<Btn1Down>,<Btn1Up>: ToggleRecording() HidePopup()
*popup*button8.label: C-R) Reset Recording
*popup*button8.translations: #override\n\
<Btn1Down>,<Btn1Up>: ResetRecording() HidePopup()
*popup*button9.label: Q) Quit Vnc2Swf
*popup*button9.translations: #override\n\
<Btn1Down>,<Btn1Up>: Quit()
*popup*button10.label: ESC) Close Popup
*popup*button10.translations: #override\n\
<Btn1Down>,<Btn1Up>: HidePopup()
syntax highlighted by Code2HTML, v. 0.9.1