summaryrefslogtreecommitdiffstats
path: root/src/devices/xditview/GXditview.ad
blob: 549f0d71c9fb4d0b81f007d1ec0ee89d25dc6db1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
GXditview*shapeStyle: rectangle

GXditview.paned.allowResize:         true
GXditview.paned.label.skipAdjust:    true
GXditview.paned.viewport.skipAdjust: false
GXditview.paned.viewport.showGrip:   false
GXditview.paned.viewport.allowVert:  true
GXditview.paned.viewport.allowHoriz: true
GXditview.paned.viewport.forceBars:  true
! viewport size = papersize * resol + scrollbarthickness + 1
! letter size paper
!GXditview.paned.viewport.width:     652
!GXditview.paned.viewport.height:    840
! a4 size paper
! 865 is wide enough for a page of X100-12.
GXditview.paned.viewport.width:      865
GXditview.paned.viewport.height:     892
GXditview.paned.viewport.Scrollbar.thickness: 14

GXditview.geometry: 865x892

GXditview.paned.translations: #augment \
  <Key>Next:      NextPage()\n\
  <Key>n:         NextPage()\n\
  <Key>space:     NextPage()\n\
  <Key>Return:    NextPage()\n\
  <Key>Prior:     PreviousPage()\n\
  <Key>p:         PreviousPage()\n\
  <Key>b:         PreviousPage()\n\
  <Key>BackSpace: PreviousPage()\n\
  <Key>Delete:    PreviousPage()\n\
  <Key>g:         SelectPage()\n\
  <Key>o:         OpenFile()\n\
  <Key>r:         Rerasterize()\n\
  <Key>q:         Quit()
GXditview.paned.viewport.clip.translations: #augment \
  <Btn1Down>:     XawPositionSimpleMenu(menu) MenuPopup(menu)
GXditview.paned.label.translations: #augment \
  <Btn1Down>:     XawPositionSimpleMenu(menu) MenuPopup(menu)
GXditview.paned.viewport.vertical.accelerators: #override \
  <Key>k:     StartScroll(Backward) NotifyScroll(FullLength) EndScroll()\n\
  <Key>j:     StartScroll(Forward)  NotifyScroll(FullLength) EndScroll()\n\
  <Key>Up:    StartScroll(Backward) NotifyScroll(FullLength) EndScroll()\n\
  <Key>Down:  StartScroll(Forward)  NotifyScroll(FullLength) EndScroll()
GXditview.paned.viewport.horizontal.accelerators: #override \
  <Key>h:     StartScroll(Backward) NotifyScroll(FullLength) EndScroll()\n\
  <Key>l:     StartScroll(Forward)  NotifyScroll(FullLength) EndScroll()\n\
  <Key>Left:  StartScroll(Backward) NotifyScroll(FullLength) EndScroll()\n\
  <Key>Right: StartScroll(Forward)  NotifyScroll(FullLength) EndScroll()

GXditview.menu.nextPage.label:     Next Page
GXditview.menu.previousPage.label: Previous Page
GXditview.menu.selectPage.label:   Goto Page
GXditview.menu.print.label:        Print
GXditview.menu.openFile.label:     Open
GXditview.menu.quit.label:         Quit

GXditview.promptShell.allowShellResize: true
GXditview.promptShell.promptDialog.value.translations: #override \
  <Key>Return: Accept() \n\
  <Key>Escape: Cancel()

GXditview.promptShell.promptDialog.accept.label: Accept
GXditview.promptShell.promptDialog.accept.translations: #override \
  <BtnUp>: Accept() unset()

GXditview.promptShell.promptDialog.cancel.label: Cancel
GXditview.promptShell.promptDialog.cancel.translations: #override \
  <BtnUp>: Cancel() unset()