home *** CD-ROM | disk | FTP | other *** search
- /*
- * resources.h: All the resource definitions for xkal.
- *
- * These are only used in xkal.c, other users should simply
- * include app-resources.h for access to the resources after
- * they've been loaded.
- *
- */
-
- /*
- * Non-widget resources obtained from the resource manager
- */
- static XtResource resources[] = {
- { "appoints", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,appoints), XtRImmediate, "~/.appoints" },
- { "date", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,date), XtRImmediate, "" },
- { "numMonths", "Int", XtRInt, sizeof(int),
- XtOffset(AppResources *,numMonths), XtRImmediate, (XtPointer)1 },
- { "bothShown", "Boolean", XtRBoolean, sizeof(Boolean),
- XtOffset(AppResources *,bothShown), XtRImmediate, (XtPointer)True },
- { "listOnly", "Boolean", XtRBoolean, sizeof(Boolean),
- XtOffset(AppResources *,listOnly), XtRImmediate, (XtPointer)False },
- { "silent", "Boolean", XtRBoolean, sizeof(Boolean),
- XtOffset(AppResources *,silent), XtRImmediate, (XtPointer)False },
- { "opaqueDates", "Boolean", XtRBoolean, sizeof(Boolean),
- XtOffset(AppResources *,opaqueDates), XtRImmediate, (XtPointer)False },
- { "dowLabels", "Boolean", XtRBoolean, sizeof(Boolean),
- XtOffset(AppResources *,dowLabels), XtRImmediate, (XtPointer)False },
-
- { "dateFont1", "Font", XtRFont, sizeof(Font),
- XtOffset(AppResources *,dateFont1), XtRString, "*fixed*bold*" },
- { "dateFont3", "Font", XtRFont, sizeof(Font),
- XtOffset(AppResources *,dateFont3), XtRString, "*fixed*bold*" },
- { "dateFont12", "Font", XtRFont, sizeof(Font),
- XtOffset(AppResources *,dateFont12), XtRString, "*fixed*bold*" },
-
- { "datePosition1", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,datePosition1), XtRImmediate, "+10+10" },
- { "datePosition3", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,datePosition3), XtRImmediate, "+10+10" },
- { "datePosition12", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,datePosition12), XtRImmediate, "+10+10" },
-
- { "dateWidth1", "Int", XtRInt, sizeof(int),
- XtOffset(AppResources *,dateWidth1), XtRImmediate, (XtPointer)50 },
- { "dateWidth3", "Int", XtRInt, sizeof(int),
- XtOffset(AppResources *,dateWidth3), XtRImmediate, (XtPointer)18 },
- { "dateWidth12", "Int", XtRInt, sizeof(int),
- XtOffset(AppResources *,dateWidth12), XtRImmediate, (XtPointer)10 },
-
- { "dateHeight1", "Int", XtRInt, sizeof(int),
- XtOffset(AppResources *,dateHeight1), XtRImmediate, (XtPointer)50 },
- { "dateHeight3", "Int", XtRInt, sizeof(int),
- XtOffset(AppResources *,dateHeight3), XtRImmediate, (XtPointer)18 },
- { "dateHeight12", "Int", XtRInt, sizeof(int),
- XtOffset(AppResources *,dateHeight12), XtRImmediate, (XtPointer)10 },
-
- { "noDayShade", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,noDayShade), XtRImmediate, "wide_weave" },
-
- { "shade1", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[1]), XtRImmediate, "gray3" },
- { "shade2", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[2]), XtRImmediate, "gray3" },
- { "shade3", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[3]), XtRImmediate, "light_gray" },
- { "shade4", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[4]), XtRImmediate, "light_gray" },
- { "shade5", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[5]), XtRImmediate, "gray" },
- { "shade6", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[6]), XtRImmediate, "gray" },
- { "shade7", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[7]), XtRImmediate, "flipped_gray" },
- { "shade8", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[8]), XtRImmediate, "flipped_gray" },
- { "shade9", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[9]), XtRImmediate, "flipped_gray" },
- { "shade10", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[10]), XtRImmediate, "flipped_gray" },
- { "shade11", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[11]), XtRImmediate, "flipped_gray" },
- { "shade12", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[12]), XtRImmediate, "flipped_gray" },
- { "shade13", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[13]), XtRImmediate, "flipped_gray" },
- { "shade14", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[14]), XtRImmediate, "flipped_gray" },
- { "shade15", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[15]), XtRImmediate, "flipped_gray" },
- { "shade16", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[16]), XtRImmediate, "flipped_gray" },
- { "shade17", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[17]), XtRImmediate, "flipped_gray" },
- { "shade18", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[18]), XtRImmediate, "flipped_gray" },
- { "shade19", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[19]), XtRImmediate, "flipped_gray" },
- { "shade20", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[20]), XtRImmediate, "flipped_gray" },
- { "shade21", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[21]), XtRImmediate, "flipped_gray" },
- { "shade22", "String", XtRString, sizeof(String),
- XtOffset(AppResources *,shade[22]), XtRImmediate, "flipped_gray" },
-
- { "color1", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[1]), XtRString, "Green" },
- { "color2", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[2]), XtRString, "Green" },
- { "color3", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[3]), XtRString, "Blue" },
- { "color4", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[4]), XtRString, "Blue" },
- { "color5", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[5]), XtRString, "Yellow" },
- { "color6", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[6]), XtRString, "Yellow" },
- { "color7", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[7]), XtRString, "Red" },
- { "color8", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[8]), XtRString, "Red" },
- { "color9", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[9]), XtRString, "Red" },
- { "color10", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[10]), XtRString, "Red" },
- { "color11", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[11]), XtRString, "Red" },
- { "color12", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[12]), XtRString, "Red" },
- { "color13", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[13]), XtRString, "Red" },
- { "color14", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[14]), XtRString, "Red" },
- { "color15", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[15]), XtRString, "Red" },
- { "color16", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[16]), XtRString, "Red" },
- { "color17", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[17]), XtRString, "Red" },
- { "color18", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[18]), XtRString, "Red" },
- { "color19", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[19]), XtRString, "Red" },
- { "color20", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[20]), XtRString, "Red" },
- { "color21", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[21]), XtRString, "Red" },
- { "color22", "Pixel", XtRPixel, sizeof(Pixel),
- XtOffset(AppResources *,color[22]), XtRString, "Red" },
-
- { "revision", "Revision", XtRString, sizeof(String),
- XtOffset(AppResources *,revision), XtRImmediate, "" },
- };
-
- /*
- * Non-widget resources settable on command line.
- */
- static XrmOptionDescRec options[] = {
- { "-appoints", ".appoints", XrmoptionSepArg, "~/.appoints" },
- { "-date", ".date", XrmoptionSepArg, "" },
- { "-numMonths", ".numMonths", XrmoptionSepArg, "1" },
- { "-bothShown", ".bothShown", XrmoptionNoArg, "True" },
- { "-nobothShown", ".bothShown", XrmoptionNoArg, "False" },
- { "-listOnly", ".listOnly", XrmoptionNoArg, "True" },
- { "-silent", ".silent", XrmoptionNoArg, "True" },
- { "-opaqueDates", ".opaqueDates", XrmoptionNoArg, "True" },
- { "-noopaqueDates", ".opaqueDates", XrmoptionNoArg, "False" },
- { "-dowLabels", ".dowLabels", XrmoptionNoArg, "True" },
- { "-nodowLabels", ".dowLabels", XrmoptionNoArg, "False" },
- };
-