home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xdaliclk.zip / defaults.h next >
C/C++ Source or Header  |  1992-06-11  |  3KB  |  83 lines

  1. /* Resource and command-line junk
  2.  *
  3.  * xdaliclock.c, Copyright (c) 1991, 1992 Jamie Zawinski <jwz@lucid.com>
  4.  *
  5.  * Permission to use, copy, modify, distribute, and sell this software and its
  6.  * documentation for any purpose is hereby granted without fee, provided that
  7.  * the above copyright notice appear in all copies and that both that
  8.  * copyright notice and this permission notice appear in supporting
  9.  * documentation.  No representations are made about the suitability of this
  10.  * software for any purpose.  It is provided "as is" without express or 
  11.  * implied warranty.
  12.  */
  13.  
  14.  
  15. char *xdaliclockDefaults = "\
  16. *name:            XDaliClock\n\
  17. *mode:            12\n\
  18. *datemode:        MM/DD/YY\n\
  19. *seconds:        True\n\
  20. *cycle:            False\n\
  21. *shape:            False\n\
  22. *memory:        Low\n\
  23. *title:            Dali Clock\n\
  24. *foreground:        black\n\
  25. *background:        white\n\
  26. XDaliClock*font:    BUILTIN\n\
  27. ";
  28.  
  29. /* The font resource above has the class specified so that if the user
  30.    has "*font:" in their personal resource database, XDaliClock won't
  31.    inherit it unless its class is specified explicitly.  To do otherwise
  32.    would be annoying.
  33.  */
  34.  
  35. XrmOptionDescRec xdaliclock_options [] = {
  36.   { "-12",        ".mode",        XrmoptionNoArg, "12"  },
  37.   { "-24",        ".mode",        XrmoptionNoArg, "24"  },
  38.   { "-mm/dd/yy",    ".datemode",        XrmoptionNoArg, "MM/DD/YY" },
  39.   { "-dd/mm/yy",    ".datemode",        XrmoptionNoArg, "DD/MM/YY" },
  40.   { "-seconds",        ".seconds",        XrmoptionNoArg, "on"  },
  41.   { "-noseconds",    ".seconds",        XrmoptionNoArg, "off" },
  42.   { "-cycle",        ".cycle",        XrmoptionNoArg, "on"  },
  43.   { "-nocycle",        ".cycle",        XrmoptionNoArg, "off" },
  44.   { "-reverse",        ".reverseVideo",    XrmoptionNoArg, "on"  },
  45.   { "-rv",        ".reverseVideo",    XrmoptionNoArg, "on"  },
  46.   { "-synchronous",    ".synchronous",        XrmoptionNoArg, "on"  },
  47.   { "-onroot",        ".onroot",        XrmoptionNoArg, "true"  },
  48.   { "-root",        ".onroot",        XrmoptionNoArg, "true"  },
  49.   { "-fullscreen",    ".fullScreen",        XrmoptionNoArg, "true"  },
  50.   { "-full-screen",    ".fullScreen",        XrmoptionNoArg, "true"  },
  51.   { "-oink",        ".memory",        XrmoptionNoArg, "medium" },
  52.   { "-oink-oink",    ".memory",        XrmoptionNoArg, "high"   },
  53. #if defined (BUILTIN_FONT) || defined (BUILTIN_FONT_2)
  54.   { "-builtin",        ".font",        XrmoptionNoArg, "BUILTIN" },
  55.   { "-builtin2",    ".font",        XrmoptionNoArg, "BUILTIN2" },
  56. #endif
  57. #ifdef SHAPE
  58.   { "-shape",        ".shape",        XrmoptionNoArg, "on"  },
  59.   { "-noshape",        ".shape",        XrmoptionNoArg, "off" },
  60. #endif
  61.   { "-visual",        ".visual",        XrmoptionSepArg, 0 },
  62.   { "-memory",        ".memory",        XrmoptionSepArg, 0 },
  63.   { "-sleaze-level",    ".memory",        XrmoptionSepArg, 0 },
  64.   { "-name",        ".name",        XrmoptionSepArg, 0 },
  65.   { "-display",        ".display",        XrmoptionSepArg, 0 },
  66.   { "-geometry",    ".geometry",        XrmoptionSepArg, 0 },
  67.   { "-geom",        ".geometry",        XrmoptionSepArg, 0 },
  68.   { "-foreground",    ".foreground",        XrmoptionSepArg, 0 },
  69.   { "-background",    ".background",        XrmoptionSepArg, 0 },
  70.   { "-fg",        ".foreground",        XrmoptionSepArg, 0 },
  71.   { "-bg",        ".background",        XrmoptionSepArg, 0 },
  72.   { "-bd",        ".border",        XrmoptionSepArg, 0 },
  73.   { "-border",        ".border",        XrmoptionSepArg, 0 },
  74.   { "-borderwidth",    ".borderWidth",        XrmoptionSepArg, 0 },
  75.   { "-bw",        ".borderWidth",        XrmoptionSepArg, 0 },
  76.   { "-title",        ".title",        XrmoptionSepArg, 0 },
  77.   { "-font",        ".font",        XrmoptionSepArg, 0 },
  78.   { "-fn",        ".font",        XrmoptionSepArg, 0 },
  79.   { "-xrm",        0,            XrmoptionResArg, 0 }
  80. };
  81.  
  82. int num_options = sizeof (xdaliclock_options) / sizeof (XrmOptionDescRec);
  83.