source: trunk/third/xmh/Xmh.ad @ 16611

Revision 16611, 7.8 KB checked in by rbasch, 23 years ago (diff)
Work around several problems when running on Linux: 1) Change the *toc.scrollVertical resource from WhenNeeded to Always, as the scrollbar was never appearing in the table of contents window. 2) On Linux, link against the older Xaw library, libXaw.so.6. This fixes a crash when switching folders, and a display problem when deleting a message. 3) Add default settings to the resource file for any resource included in the fallback array; on Linux, the fallback setting seems to be used unless the resource is set explicitly in the file.
Line 
1! AppDefaultsVersion should only be defined in the site-wide file
2Xmh.AppDefaultsVersion:         1
3
4Xmh.Geometry:                   508x736
5Xmh.ReplyInsertFilter:          cat
6Xmh.SendBreakWidth:             2000
7*ShapeStyle:                    Oval
8*Command.BorderWidth:   1
9*MenuButton.BorderWidth:        1
10*toc*cursor:                    left_ptr
11
12*menuBox.folderButton.Label:    Folder
13*menuBox.folderButton.borderWidth: 1
14*menuBox.folderButton.translations: #override\n\
15<EnterWindow>:highlight()\n\
16<LeaveWindow>:reset()\n\
17<BtnDown>:reset()PopupMenu()\n
18
19*menuBox.tocButton.Label:       Table of Contents
20*menuBox.messageButton.Label:   Message
21*menuBox.sequenceButton.Label:  Sequence
22*menuBox.viewButton.Label:      View
23*menuBox.optionButton.Label:    Options
24*SimpleMenu*SmeLine.Height:     20
25
26*close.Label:                   Close Window
27*compose.Label:                 Compose Message
28*open.Label:                    Open Folder
29*openInNew.Label:               Open Folder in New Window
30*create.Label:                  Create Folder
31*folderMenu*delete.Label:       Delete Folder
32*inc.Label:                     Incorporate New Mail
33*next.Label:                    View Next Message
34*prev.Label:                    View Previous
35*delete.Label:                  Delete
36*move.Label:                    Move
37*copy.Label:                    Copy as Link
38*unmark.Label:                  Unmark
39*viewNew.Label:                 View In New
40*reply.Label:                   Reply
41*forward.Label:                 Forward
42*useAsComp.Label:               Use as Composition
43*commit.Label:                  Commit Changes
44*print.Label:                   Print
45*pack.Label:                    Pack Folder
46*sort.Label:                    Sort Folder
47*rescan.Label:                  Rescan Folder
48*pick.Label:                    Pick
49*openSeq.Label:                 Open Sequence
50*addToSeq.Label:                Add to Sequence
51*removeFromSeq.Label:           Remove from Sequence
52*deleteSeq.Label:               Delete Sequence
53*edit.Label:                    Edit Message
54*save.Label:                    Save Message
55*send.Label:                    Send
56*reset.Label:                   New Headers
57*insert.Label:                  Insert
58*optionMenu*reverse.Label:      Read in Reverse
59
60Xmh.notice.Dialog.Text.BorderWidth: 0
61Xmh.notice.Dialog.Text.TextSink.Font: -*-courier-bold-r-*--*-120-*-*-*-*-iso8859-1
62Xmh.notice.Dialog.confirm.Label:Acknowledged
63Xmh.notice.BorderWidth:         2
64Xmh.confirm.Dialog.yes.Label:   Yes
65Xmh.confirm.Dialog.no.Label:    No
66Xmh.prompt.Dialog.okay.Label:   Okay
67Xmh.prompt.Dialog.cancel.Label: Cancel
68Xmh.error.Dialog.OK.Label:      Acknowledged
69
70*toc.rightMargin:               0
71*toc.scrollVertical:            Always
72*view.scrollVertical:           Always
73*view.scrollHorizontal:         WhenNeeded
74*view.autoFill:                 True
75*comp.scrollVertical:           Always
76*comp.scrollHorizontal:         WhenNeeded
77*comp.autoFill:                 True
78
79*sequenceMenu.Translations: #override\n\
80<Btn2Up>:XtMenuPopdown()notify()XmhOpenSequence()unhighlight()\n\
81<Btn3Up>:XtMenuPopdown()XmhPushSequence()notify()XmhAddToSequence()XmhPopSequence()unhighlight()\n\
82<BtnUp>:XtMenuPopdown()notify()unhighlight()\n
83
84*sequenceMenu.baseTranslations: #override\n\
85<Btn2Up>:XtMenuPopdown()notify()XmhOpenSequence()unhighlight()\n\
86<Btn3Up>:XtMenuPopdown()XmhPushSequence()notify()XmhAddToSequence()XmhPopSequence()unhighlight()\n\
87<BtnUp>:XtMenuPopdown()notify()unhighlight()\n
88
89*folders*MenuButton.Translations:#override\n\
90<BtnDown>:set()XmhPopupFolderMenu()\n\
91<Btn2Up>:XmhSetCurrentFolder()XmhOpenFolder()reset()\n\
92<Btn3Up>:XmhPushFolder()XmhSetCurrentFolder()XmhMarkMove()XmhPopFolder()reset()\n\
93<BtnUp>:XmhSetCurrentFolder()reset()\n\
94<LeaveWindow>:reset()XmhLeaveFolderButton()\n
95
96*folders*MenuButton.baseTranslations:#override\n\
97<BtnDown>:set()XmhPopupFolderMenu()\n\
98<Btn2Up>:XmhSetCurrentFolder()XmhOpenFolder()reset()\n\
99<Btn3Up>:XmhPushFolder()XmhSetCurrentFolder()XmhMarkMove()XmhPopFolder()reset()\n\
100<BtnUp>:XmhSetCurrentFolder()reset()\n\
101<LeaveWindow>:reset()XmhLeaveFolderButton()\n
102
103*folders*SimpleMenu.Translations:#override\n\
104<Btn2Up>:XtMenuPopdown()notify()XmhOpenFolder()unhighlight()\n\
105<Btn3Up>:XtMenuPopdown()XmhPushFolder()notify()XmhMarkMove()XmhPopFolder()unhighlight()\n\
106<BtnUp>:XtMenuPopdown()notify()unhighlight()\n
107
108*folders*SimpleMenu.baseTranslations:#override\n\
109<Btn2Up>:XtMenuPopdown()notify()XmhOpenFolder()unhighlight()\n\
110<Btn3Up>:XtMenuPopdown()XmhPushFolder()notify()XmhMarkMove()XmhPopFolder()unhighlight()\n\
111<BtnUp>:XtMenuPopdown()notify()unhighlight()\n
112
113*toc.Translations: #override\n\
114        <Btn2Down>: select-start()\n\
115        <Btn2Up>:select-end(PRIMARY)XmhViewNextMessage()\n\
116        Ctrl<Key>R:     no-op(RingBell)\n\
117        Ctrl<Key>S:     no-op(RingBell)\n
118
119*toc.baseTranslations: #override\n\
120        <Btn2Down>: select-start()\n\
121        <Btn2Up>:select-end(PRIMARY)XmhViewNextMessage()\n\
122        Ctrl<Key>R:     no-op(RingBell)\n\
123        Ctrl<Key>S:     no-op(RingBell)\n
124
125*toc.Accelerators: #override\n\
126        :Ctrl<Key>V:    next-page()\n\
127        :Meta<Key>V:    previous-page()\n
128*view.Accelerators: #override\n\
129        :Ctrl<Key>v:    next-page()\n\
130        :Meta<Key>v:    previous-page()\n
131
132*tocMenu.Accelerators: #override\n\
133        :Meta<Key>I:    XmhIncorporateNewMail()\n\
134        :Meta<Key>C:    XmhCommitChanges()\n\
135        :Meta<Key>R:    XmhForceRescan()\n\
136        :Meta<Key>P:    XmhPackFolder()\n\
137        :Meta<Key>S:    XmhSortFolder()\n
138
139*messageMenu.Accelerators: #override\n\
140         Meta<Key>space: XmhViewNextMessage()\n\
141        :Meta<Key>c:    XmhMarkCopy()\n\
142        :Meta<Key>d:    XmhMarkDelete()\n\
143        :Meta<Key>f:    XmhForward()\n\
144        :Meta<Key>m:    XmhMarkMove()\n\
145        :Meta<Key>n:    XmhViewNextMessage()\n\
146        :Meta<Key>p:    XmhViewPreviousMessage()\n\
147        :Meta<Key>r:    XmhReply()\n\
148        :Meta<Key>u:    XmhUnmark()\n
149
150*viewButtons.close.Translations:#override\n\
151        <Btn1Down>,<Btn1Up>:    XmhCloseView()unset()\n
152*viewButtons.reply.Translations:#override\n\
153        <Btn1Down>,<Btn1Up>:    XmhViewReply()unset()\n
154*viewButtons.forward.Translations:#override\n\
155        <Btn1Down>,<Btn1Up>:    XmhViewForward()unset()\n
156*viewButtons.useAsComp.Translations:#override\n\
157        <Btn1Down>,<Btn1Up>:    XmhViewUseAsComposition()unset()\n
158*viewButtons.edit.Translations:#override\n\
159        <Btn1Down>,<Btn1Up>:    XmhEditView()unset()\n
160*viewButtons.save.Translations:#override\n\
161        <Btn1Down>,<Btn1Up>:    XmhSaveView()unset()\n
162*viewButtons.print.Translations:#override\n\
163        <Btn1Down>,<Btn1Up>:    XmhPrintView()unset()\n
164*viewButtons.delete.Translations:#override\n\
165        <Btn1Down>,<Btn1Up>:    XmhViewMarkDelete()unset()\n
166
167*compButtons.close.Translations:#override\n\
168        <Btn1Down>,<Btn1Up>:    XmhCloseView()unset()\n
169*compButtons.send.Translations:#override\n\
170        <Btn1Down>,<Btn1Up>:    XmhSend()unset()\n
171*compButtons.reset.Translations:#override\n\
172        <Btn1Down>,<Btn1Up>:    XmhResetCompose()unset()\n
173*compButtons.compose.Translations:#override\n\
174        <Btn1Down>,<Btn1Up>:    XmhComposeMessage()unset()\n
175*compButtons.save.Translations:#override\n\
176        <Btn1Down>,<Btn1Up>:    XmhSave()unset()\n
177*compButtons.insert.Translations:#override\n\
178        <Btn1Down>,<Btn1Up>:    XmhInsert()unset()\n
179
180! The following are the ATHENA specifc changes. These changes are for
181! user interface compatibility and functionality
182
183*InitialIncFile:
184*CommandButtonCount:            11
185
186*commandBox.button1.label:      inc
187*commandBox.button1.translations: #override\
188        <Btn1Down>,<Btn1Up>: XmhIncorporateNewMail() unset()
189
190*commandBox.button2.label:      next
191*commandBox.button2.translations: #override\
192        <Btn1Down>,<Btn1Up>: XmhViewNextMessage() unset()
193
194*commandBox.button3.label:      prev
195*commandBox.button3.translations: #override\
196        <Btn1Down>,<Btn1Up>: XmhViewPreviousMessage() unset()
197
198*commandBox.button4.label:      compose
199*commandBox.button4.translations: #override\
200        <Btn1Down>,<Btn1Up>: XmhComposeMessage() unset()
201
202*commandBox.button5.label:      reply
203*commandBox.button5.translations: #override\
204        <Btn1Down>,<Btn1Up>: XmhViewReply() unset()
205
206*commandBox.button6.label:      forward
207*commandBox.button6.translations: #override\
208        <Btn1Down>,<Btn1Up>: XmhViewForward() unset()
209
210*commandBox.button7.label:      delete
211*commandBox.button7.translations: #override\
212        <Btn1Down>,<Btn1Up>: XmhMarkDelete() unset()
213
214*commandBox.button8.label:      move
215*commandBox.button8.translations: #override\
216        <Btn1Down>,<Btn1Up>: XmhMarkMove() unset()
217
218*commandBox.button9.label:      unmark
219*commandBox.button9.translations: #override\
220        <Btn1Down>,<Btn1Up>: XmhUnmark() unset()
221
222*commandBox.button10.label:     commit
223*commandBox.button10.translations: #override\
224        <Btn1Down>,<Btn1Up>: XmhCommitChanges() unset()
225
226*commandBox.button11.label:     close
227*commandBox.button11.translations: #override\
228        <Btn1Down>,<Btn1Up>: XmhClose() unset()
229
230
231*Font:  fixed
232
233*mailWaitingFlag:       false
234*checkNewMail:  false
Note: See TracBrowser for help on using the repository browser.