home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / XAP / XFILEMAN / XFILEMAN.TAR / xfilemanager / resources.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-22  |  4.1 KB  |  110 lines

  1. /*
  2.  * Copyright 1993 by Ove Kalkan, Cremlingen, Germany
  3.  *
  4.  * Permission to use, copy, modify, distribute and sell this software and it's
  5.  * documentation for any purpose is hereby granted without fee, rpovided that
  6.  * the above copyright notice and this permission appear in supporting
  7.  * documentation, and that the name of Ove Kalkan not to be used in
  8.  * advertising or publicity pertaining to distributiopn of the software without
  9.  * specific, written prior permission. Ove Kalkan makes no representations
  10.  * about the suitability of this software for any purpose. It is provided
  11.  * as is without express or implied warranty.
  12.  *
  13.  * OVE KALKAN DISPLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  14.  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABLILITY AND FITNESS, IN NO
  15.  * EVENT SHALL OVE KALKAN BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  16.  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  17.  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  18.  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  19.  * PERFORMANCE OF THIS SOFTWARE.
  20.  *
  21.  * $Header: filename,v 1.0 yyyy/mm/dd hh:mm:ss loginname Exp $
  22.  */
  23.  
  24.  
  25. #ifndef RESOURCES_H
  26. #define    RESOURCES_H
  27.  
  28. /* Resources */
  29. static XtResource    resources[] =
  30.        {{"rootDir",        "RootDir",
  31.      XtRString,        sizeof(String), 
  32.      XtOffsetOf(xfm_struct,root_dir),
  33.      XtRString,        NULL},
  34.     {"iconDir",        "IconDir",
  35.      XtRString,        sizeof(String), 
  36.      XtOffsetOf(xfm_struct,icon_dir),
  37.      XtRString,        ICON_DIR},
  38.     {"trashcan",        "Trashcan",
  39.      XtRString,        sizeof(String), 
  40.      XtOffsetOf(xfm_struct,trashcan),
  41.      XtRString,        DEFAULT_TRASHCAN},
  42.     {"doubleClickInterval",    "DoubleClickInterval",
  43.      XtRDimension,         sizeof(Dimension),
  44.      XtOffsetOf(xfm_struct,click_interval),
  45.      XtRImmediate,         (XtPointer) MAX_INTERVAL},
  46.     {"selectColor",     "SelectColor",
  47.      XtRPixel,         sizeof(Pixel),
  48.      XtOffsetOf(xfm_struct,select_color),
  49.      XtRString,         (XtPointer) "steelblue"},
  50.     {"iconFont",        "IconFont",
  51.      XtRFontStruct,        sizeof(XFontStruct *),
  52.      XtOffsetOf(xfm_struct,icon_font),
  53.      XtRString,        DEFAULT_ICON_FONT},
  54.     {"multiWindow",        "MulitWindow",
  55.      XtRBoolean,        sizeof(Boolean),
  56.      XtOffsetOf(xfm_struct,multi_window),
  57.      XtRImmediate,        (XtPointer) TRUE},
  58.     {"dragCopyAsk",        "DragCopyAsk",
  59.      XtRBoolean,        sizeof(Boolean),
  60.      XtOffsetOf(xfm_struct,drag_copy),
  61.      XtRImmediate,        (XtPointer) TRUE},
  62.     {"dragMoveAsk",        "DragMoveAsk",
  63.      XtRBoolean,        sizeof(Boolean),
  64.      XtOffsetOf(xfm_struct,drag_move),
  65.      XtRImmediate,        (XtPointer) TRUE},
  66.     {"dragExecAsk",        "DragExecAsk",
  67.      XtRBoolean,        sizeof(Boolean),
  68.      XtOffsetOf(xfm_struct,drag_exec),
  69.      XtRImmediate,        (XtPointer) TRUE},
  70.     {"dragDeleteAsk",    "DragDeleteAsk",
  71.      XtRBoolean,        sizeof(Boolean),
  72.      XtOffsetOf(xfm_struct,drag_delete),
  73.      XtRImmediate,        (XtPointer) TRUE},
  74.     {"saveWSOnExit",    "SaveWSOnExit",
  75.      XtRBoolean,        sizeof(Boolean),
  76.      XtOffsetOf(xfm_struct,save_ws_on_exit),
  77.      XtRImmediate,        (XtPointer) FALSE},
  78.     {"iconGrid",        "IconGrid",
  79.      XtRDimension,         sizeof(Dimension),
  80.      XtOffsetOf(xfm_struct,icon_grid),
  81.      XtRImmediate,         (XtPointer) 75},
  82.     {"snapGrid",        "snapGrid",
  83.      XtRDimension,         sizeof(Dimension),
  84.      XtOffsetOf(xfm_struct,snap_grid),
  85.      XtRImmediate,         (XtPointer) 1},
  86. };
  87.  
  88.  
  89. /*
  90.  * Options
  91.  */
  92. static XrmOptionDescRec    options[] =
  93.        {{"-rootDir", ".rootDir", XrmoptionSepArg, (caddr_t) NULL},
  94.     {"-iconDir", ".iconDir", XrmoptionSepArg, (caddr_t) NULL},
  95.     {"-trashcan", ".trashcan", XrmoptionSepArg, (caddr_t) "~/tmp"},
  96.     {"-iconFont", ".iconFont", XrmoptionSepArg, (caddr_t) NULL},
  97.     {"-selectColor", ".selectColor", XrmoptionSepArg, (caddr_t) NULL},
  98.     {"-doubleClickInterval", ".doubleClickInterval", XrmoptionSepArg, (caddr_t) NULL},
  99.     {"-multiWindow", ".multiWindow", XrmoptionNoArg, (caddr_t) "TRUE"},
  100.     {"-singleWindow", ".multiWindow", XrmoptionNoArg, (caddr_t) "FALSE"},
  101.     {"-noDragCopyAsk", ".dragCopyAsk", XrmoptionNoArg, (caddr_t) "FALSE"},
  102.     {"-noDragMoveAsk", ".dragMoveAsk", XrmoptionNoArg, (caddr_t) "FALSE"},
  103.     {"-noDragExecAsk", ".dragExecAsk", XrmoptionNoArg, (caddr_t) "FALSE"},
  104.     {"-noDragDeleteAsk", ".dragDeleteAsk", XrmoptionNoArg, (caddr_t) "FALSE"},
  105.     {"-saveWS", ".saveWSOnExit", XrmoptionNoArg, (caddr_t) "TRUE"},
  106.        };
  107.  
  108.  
  109. #endif
  110.