home *** CD-ROM | disk | FTP | other *** search
- !
- ! Xkal - graphical appointment calendar
- !
- ! George Ferguson (ferguson@cs.rochester.edu), 27 Oct 1990.
- !
- ! $Id: Xkal.ad,v 1.8 90/11/12 13:15:08 ferguson Exp $
- !
-
- ! This has must be the first line in the "official" app-defaults file.
- Xkal.revision: $Revision: 1.8 $
- Xkal.title: Xkal 1.0 (beta)
-
- !
- ! Application defaults
- !
- Xkal.appoints: ~/.appoints
- Xkal.bothShown: True
- Xkal.numMonths: 1
- Xkal.opaqueDates: False
- Xkal.dowLabels: False
-
- !
- ! The toplevel shell and form
- !
- Xkal*allowShellResize: True
- Xkal*Form.defaultDistance: 0
- Xkal*bothForm.defaultDistance: 2
-
- !
- ! The menu buttons in the main window
- !
- Xkal*fileButton.label: File
- Xkal*fileButton.menuName: fileMenu
- Xkal*fileMenu.menu:\
- (item "File") \
- (line) \
- (item "[S] Save" (action "xkal-save()")) \
- (item "[Q] Quit" (action "xkal-quit()")) \
- (item "[X] Exit" (action "xkal-exit()"))
-
- Xkal*viewButton.label: View
- Xkal*viewButton.fromHoriz: fileButton
- Xkal*viewButton.menuName: viewMenu
- Xkal*viewMenu.menu:\
- (item "View") \
- (line) \
- (item "[N] Next" (action "xkal-next()")) \
- (item "[P] Prev" (action "xkal-prev()")) \
- (item "[T] Today" (action "xkal-today()")) \
- (item "[1] 1 Month" (action "xkal-numMonths(1)")) \
- (item "[2] 3 Months" (action "xkal-numMonths(3)")) \
- (item "[3] 12 Months" (action "xkal-numMonths(12)"))
-
- Xkal*otherButton.label: Other
- Xkal*otherButton.fromHoriz: viewButton
- Xkal*otherButton.menuName: otherMenu
- Xkal*otherMenu.menu:\
- (item "Other") \
- (line) \
- (item "[E] Edit schedule" (action "xkal-edit-schedule()"))
-
- !
- ! The month forms
- !
- Xkal*allMonthsForm.fromVert: fileButton
- Xkal*allMonthsForm*resizable: True
- Xkal*allMonthsForm*internalWidth: 1
- Xkal*allMonthsForm*internalHeight: 1
- Xkal*allMonthsForm*translations:#override\n\
- <Key>Q: xkal-quit() \n\
- <Key>X: xkal-exit() \n\
- <Key>N: xkal-next() \n\
- <Key>P: xkal-prev() \n\
- <Key>T: xkal-today() \n\
- <Key>S: xkal-save() \n\
- <Key>E: xkal-edit-schedule() \n\
- <Key>1: xkal-numMonths(1) \n\
- <Key>2: xkal-numMonths(3) \n\
- <Key>3: xkal-numMonths(12) \n
-
- Xkal*monthForm1.fromHoriz: NULL
- Xkal*monthForm1.fromVert: NULL
-
- Xkal*monthForm3_1.fromHoriz: NULL
- Xkal*monthForm3_1.fromVert: NULL
- Xkal*monthForm3_2.fromVert: monthForm3_1
- Xkal*monthForm3_3.fromVert: monthForm3_2
-
- Xkal*monthForm12_1.fromHoriz: NULL
- Xkal*monthForm12_1.fromVert: NULL
- Xkal*monthForm12_2.fromHoriz: monthForm12_1
- Xkal*monthForm12_3.fromHoriz: monthForm12_2
- Xkal*monthForm12_4.fromHoriz: monthForm12_3
-
- Xkal*monthForm12_5.fromVert: monthForm12_1
- Xkal*monthForm12_6.fromHoriz: monthForm12_5
- Xkal*monthForm12_6.fromVert: monthForm12_2
- Xkal*monthForm12_7.fromHoriz: monthForm12_6
- Xkal*monthForm12_7.fromVert: monthForm12_3
- Xkal*monthForm12_8.fromHoriz: monthForm12_7
- Xkal*monthForm12_8.fromVert: monthForm12_4
-
- Xkal*monthForm12_9.fromVert: monthForm12_5
- Xkal*monthForm12_10.fromHoriz: monthForm12_9
- Xkal*monthForm12_10.fromVert: monthForm12_6
- Xkal*monthForm12_11.fromHoriz: monthForm12_10
- Xkal*monthForm12_11.fromVert: monthForm12_7
- Xkal*monthForm12_12.fromHoriz: monthForm12_11
- Xkal*monthForm12_12.fromVert: monthForm12_8
-
- ! The month labels in the monthForms
- ! monthLabelX.width = (dateWidthX+internalWidth)*7+borderWidth*12
-
- Xkal*monthLabel1.font: *fixed*bold*
- Xkal*monthLabel1.borderWidth: 0
- Xkal*monthLabel1.justify: center
- Xkal*monthLabel1.width: 376
- Xkal*monthLabel1.resize: False
-
- Xkal*monthLabel3.font: 6x9
- Xkal*monthLabel3.borderWidth: 0
- Xkal*monthLabel3.justify: center
- Xkal*monthLabel3.width: 201
- Xkal*monthLabel3.resize: False
-
- Xkal*monthLabel12.font: 5x8
- Xkal*monthLabel12.borderWidth: 0
- Xkal*monthLabel12.justify: center
- Xkal*monthLabel12.width: 131
- Xkal*monthLabel12.resize: False
-
- ! The day-of-week labels (if .dowLabels is True)
- ! dowLabelX.width = dateWidthX+internalWidth*2
-
- Xkal*dowLabel1.font: *fixed*bold*
- Xkal*dowLabel1.borderWidth: 1
- Xkal*dowLabel1.width: 52
- Xkal*dowLabel1.resize: False
-
- Xkal*dowLabel3.font: 6x9
- Xkal*dowLabel3.borderWidth: 1
- Xkal*dowLabel3.width: 27
- Xkal*dowLabel3.resize: False
-
- Xkal*dowLabel12.font: 5x8
- Xkal*dowLabel12.borderWidth: 1
- Xkal*dowLabel12.width: 17
- Xkal*dowLabel12.resize: False
-
- ! The day buttons in the monthForms
-
- Xkal.dateFont1: *fixed*bold*
- Xkal.datePosition1: +10+10
- Xkal.dateWidth1: 50
- Xkal.dateHeight1: 50
-
- Xkal.dateFont3: 6x9
- Xkal.datePosition3: +0+6
- Xkal.dateWidth3: 25
- Xkal.dateHeight3: 25
-
- Xkal.dateFont12: 5x8
- Xkal.datePosition12: +0+6
- Xkal.dateWidth12: 15
- Xkal.dateHeight12: 15
-
- !
- ! The dayForm stuff (one day's appointments)
- !
-
- Xkal*popupForm.defaultDistance: 2
-
- Xkal*dayForm.defaultDistance: 4
- Xkal*TopLevelShell.title: Xkal Day Window
-
- ! if it's a popup
- Xkal*popupForm*dayForm.fromVert: dismissButton
- Xkal*popupForm*dayForm.borderWidth: 0
-
- ! if it's not a popup
- Xkal*bothForm*dayForm.fromHoriz: allMonthsForm
- Xkal*bothForm*dayForm.fromVert: fileButton
-
- !
- ! The buttons in the dayForm
- !
- Xkal*dismissButton.label: Dismiss
-
- Xkal*selectButton.label: Select
- Xkal*selectButton.fromHoriz: dismissButton
-
- Xkal*unselectButton.label: Unselect
- Xkal*unselectButton.fromHoriz: selectButton
-
- !
- ! The widgets in the dayForm
- !
- Xkal*dayLabel.justify: center
- Xkal*dayLabel.width: 230
- Xkal*dayLabel.borderWidth: 0
- Xkal*dayLabel.label: Xkal 1.0(alpha)
-
- Xkal*timeLabel.font: fixed
- Xkal*timeLabel.borderWidth: 0
- Xkal*timeLabel.vertDistance: 2
-
- Xkal*textText*font: fixed
- Xkal*textText.width: 200
- Xkal*textText.height: 20
- Xkal*textText.vertDistance: 2
- Xkal*textText.borderWidth: 0
- Xkal*textText.topMargin: 0
- Xkal*textText*editType: edit
- Xkal*textText*resize: True
- Xkal*textText*displayCaret: False
- Xkal*textText.scrollHorizontal: whenNeeded
- Xkal*textText*Scrollbar.thickness: 5
- Xkal*textText.translations:#override\n\
- <Enter>: display-caret(True) \n\
- <Leave>: display-caret(False) \n\
- <Key>Return: no-op() \n
-
- !
- ! The schedule editor
- !
- Xkal*schedulePopupShell.title: Xkal Schedule Window
-
- Xkal*dismissSchedButton.label: Dismiss
-
- Xkal*applySchedButton.label: Apply
- Xkal*applySchedButton.fromHoriz: dismissSchedButton
-
- Xkal*schedulePopupShell*dayForm.fromVert: dismissSchedButton
-
- Xkal*schedulePopupShell*dayForm*font: 5x8
- Xkal*schedulePopupShell*Text*width: 100
- Xkal*schedulePopupShell*Text*height: 12
- Xkal*schedulePopupShell*Text*Scrollbar.height: 3
-
-
- !
- ! For calendar boxes without dates
- !
- Xkal.noDayShade: cross_weave
-
- !
- ! For mono displays, the patterns reflecting the number of appointments
- ! These bitmaps are found in the directory specified by the global resource
- ! bitmapFilePath (/usr/staff/include/X11/bitmaps by default).
- !
- Xkal.shade1: gray3
- Xkal.shade2: gray3
- Xkal.shade3: light_gray
- Xkal.shade4: light_gray
- Xkal.shade5: gray
- Xkal.shade6: gray
- Xkal.shade7: flipped_gray
- Xkal.shade8: flipped_gray
- Xkal.shade9: flipped_gray
- Xkal.shade10: flipped_gray
- Xkal.shade11: flipped_gray
- Xkal.shade12: flipped_gray
- Xkal.shade13: flipped_gray
- Xkal.shade14: flipped_gray
- Xkal.shade15: flipped_gray
- Xkal.shade16: flipped_gray
- Xkal.shade17: flipped_gray
- Xkal.shade18: flipped_gray
- Xkal.shade19: flipped_gray
- Xkal.shade20: flipped_gray
- Xkal.shade21: flipped_gray
- Xkal.shade22: flipped_gray
-
- !
- ! For color displays, the colors reflecting the number of appointments
- !
- Xkal.color1: green
- Xkal.color2: green
- Xkal.color3: blue
- Xkal.color4: blue
- Xkal.color5: yellow
- Xkal.color6: yellow
- Xkal.color7: red
- Xkal.color8: red
- Xkal.color9: red
- Xkal.color10: red
- Xkal.color11: red
- Xkal.color12: red
- Xkal.color13: red
- Xkal.color14: red
- Xkal.color15: red
- Xkal.color16: red
- Xkal.color17: red
- Xkal.color18: red
- Xkal.color19: red
- Xkal.color20: red
- Xkal.color21: red
- Xkal.color22: red
-
-