home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / XAP / XFILEMAN / XFILEMAN.TAR / xfilemanager / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-03  |  5.4 KB  |  195 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 CONFIG_H
  26. #define    CONFIG_H
  27.  
  28. /*
  29.  * If non-root users shall be restricted to their own directories
  30.  */
  31. /*
  32.  * #define RESTRICTED_DIRS
  33.  */
  34.  
  35. /*
  36.  * Default Icon Font
  37.  */
  38. #define    DEFAULT_ICON_FONT    "8x13"
  39.  
  40. /*
  41.  * distances for the icon-placement in windows. Change them if you need a bigger
  42.  * font.
  43.  */
  44. #define    DIR_X_STEP    30
  45. #define    DIR_Y_STEP    20
  46.  
  47. /*
  48.  * time between mouseclicks to be taken as doubleclicks
  49.  */
  50. #define    MAX_INTERVAL    300
  51.  
  52. /*
  53.  * How many Directory-windows can be opened. Used for a static field.
  54.  * I think 50 may never be reached, because you will never find anything
  55.  * on a desktop with 50 windows. (Only used in multi-window-mode)
  56.  */
  57. #define    MAX_FOLDERS    50
  58.  
  59. /*
  60.  * Where to put all the files in case of a secure_remove
  61.  */
  62. #define    DEFAULT_TRASHCAN    NULL
  63.  
  64. /*
  65.  * Quotas are only supported on hpux at this time. Cause it's system depened,
  66.  * I will only head a way to implement them.
  67.  * Look at main.c. The last function displays the quotas.
  68.  */
  69. #ifdef hpux
  70. #define    HAS_QUOTA
  71. #define    QUOTA_DEV    "/dev+/localroot/dsk/5s8"
  72. #endif
  73. #ifdef linux
  74. #define    HAS_QUOTA
  75. #endif
  76.  
  77. /*
  78.  * To force the displaying of the usersright and username in directory-windows
  79.  * insert #define SHOWRIGHTS below
  80.  * Note: This can slow down the update-rate of directory windows rapidly.
  81.  */
  82. /* #define    SHOWRIGHTS */
  83.  
  84. /*
  85.  * Default Iconpath - can be changed by using X11-Resources
  86.  * Be aware that you insert the / at the end of path
  87.  */
  88. #ifdef hpux
  89. #define    ICON_DIR    "/users/kalkan/src/xfilemanager/icons/%N"
  90. #else
  91. #define    ICON_DIR    "~/icons/%N:/usr/X11/include/X11/pixmaps/%N:/usr/X11/include/X11/bitmaps/%N:/var/lib/xfilemanager/icons/%N"
  92. #endif
  93.  
  94. /*
  95.  * Default Workspace file. e.g. /usr/local/lib/xfilemanager/system.wsrc
  96.  */
  97. #ifdef hpux
  98. #define    DEFAULT_WORKSPACE    "/users/kalkan/src/xfilemanager/system.wsrc"
  99. #else
  100. #define    DEFAULT_WORKSPACE    "/var/lib/xfilemanager/system.wsrc"
  101. #endif
  102.  
  103. /*
  104.  * Default Filetypes file. e.g. /usr/local/lib/xfilemanager/system.xfmrc
  105.  */
  106. #ifdef hpux
  107. #define    DEFAULT_FILETYPES    "/users/kalkan/src/xfilemanager/system.xfmrc"
  108. #else
  109. #define    DEFAULT_FILETYPES    "/var/lib/xfilemanager/system.xfmrc"
  110. #endif
  111.  
  112. /*
  113.  * Default Custom-Menu e.g. /usr/local/lib/xfilemanager/system.xfmmenurc"
  114.  */
  115. #ifdef hpux
  116. #define    DEFAULT_CUSTOM        "/users/kalkan/src/xfilemanager/system.xfmmenurc"
  117. #else
  118. #define    DEFAULT_CUSTOM        "/var/lib/xfilemanager/system.xfmmenurc"
  119. #endif
  120.  
  121. /*
  122.  * The fileaction commands - perhaps systemdependent.
  123.  */
  124. #define    MOVE_CMD    "mv -f"
  125. #define    COPY_CMD    "cp -fR"
  126. #define    RM_CMD        "rm -rf"
  127. #define    MKDIR_CMD    "mkdir -p"
  128. #define    LINK_CMD    "ln -sf"
  129.  
  130. /*
  131.  * If you are using X11R4 - try this bugfix
  132.  * #define X11R4
  133.  * Insert the define above before the next ifdef
  134.  * Note: This may not fix all problems when compiling with X11R4, but it
  135.  *      might be a way to fix them.
  136.  * I compiled and tested the program with X11R4 now and didn't find anything
  137.  * unusual. Some people reported about a widget vertical that has a zero
  138.  * width and/or height. The reasom may lie in the X11R4 package, cause the
  139.  * widget is used by the viewport-widget. Try to fix this bug by inserting
  140.  * *vertical.width: 14
  141.  * *vertical.height:14
  142.  * *horizontal.width: 14
  143.  * *horizontal.height:14
  144.  * into the app-defaults file. (I don't know whether it works or not, but
  145.  * you can try it).
  146.  * Normaly all sizes of viewports are set, before they are realized, so
  147.  * vertical should have a legal size as well.
  148.  */
  149.  
  150. #ifdef X11R4
  151. #define    XawChainBottom    XtChainBottom
  152. #define    XawChainTop    XtChainTop
  153. #define    XawChainLeft    XtChainLeft
  154. #define    XawChainRight    XtChainRight
  155. #endif
  156.  
  157. /*
  158.  * File that contains the list of mountable devices
  159.  * DON'T USE IT NOW - IT ONLY SHOWS A LITTLE BOX WITH SOME
  160.  * DEVICENAMES AND SAYS IF IT'S MOUNTED.
  161.  * IT'S STILL UNDER CONSTRUCTION.
  162.  */
  163. #ifdef linux
  164. #define    DEVICE_LIST    "/usr/src/aegis/xfilemanager/system.devrc"
  165. #else
  166. #define    DEVICE_LIST    "/not_existing"    /* A file that absolutly doesn't exist */
  167. #endif
  168.  
  169. /*
  170.  * Some defines for coherent unix, because this system doesn't know links
  171.  */
  172. #ifdef COHERENT
  173. #define    lstat(a,b)    stat(a,b)
  174. #define    S_ISLNK(a)    0
  175. #endif
  176.  
  177. #ifdef NODIRENT
  178. #define    dirent    direct
  179. #endif
  180.  
  181. #ifdef ISC
  182. #include <sys/bsdtypes.h>
  183. #endif
  184.  
  185. #ifdef linux    /* My old linux libraries (4.4.1) doesn't have the strrstr function */
  186. #define    HAS_NO_STRRSTR
  187. #endif
  188.  
  189. /*
  190.  * If your includes are missing the mode_t define
  191.  */
  192. /* typedef ushort mode_t; */
  193.  
  194. #endif
  195.