diff options
Diffstat (limited to 'src/devices/xditview/GXditview.ad')
-rw-r--r-- | src/devices/xditview/GXditview.ad | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/src/devices/xditview/GXditview.ad b/src/devices/xditview/GXditview.ad new file mode 100644 index 0000000..549f0d7 --- /dev/null +++ b/src/devices/xditview/GXditview.ad @@ -0,0 +1,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() + |