"Fossies" - the Fresh Open Source Software Archive

Member "xfe-1.43.2/src/xfedefs.h" (6 Jun 2019, 6072 Bytes) of package /linux/privat/xfe-1.43.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "xfedefs.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 1.43.1_vs_1.43.2.

    1 // Common Xfe constants
    2 
    3 #ifndef COPYRIGHT
    4 #define COPYRIGHT    "Copyright (C) 2002-2019 Roland Baudin (roland65@free.fr)"
    5 #endif
    6 
    7 // Default normal font
    8 #ifndef DEFAULT_NORMAL_FONT
    9 #define DEFAULT_NORMAL_FONT    "Sans,100,normal,regular"
   10 #endif
   11 
   12 // Default text font
   13 #ifndef DEFAULT_TEXT_FONT
   14 #define DEFAULT_TEXT_FONT    "Mono,100,normal,regular"
   15 #endif
   16 
   17 // Default file and directory list time format
   18 #ifndef DEFAULT_TIME_FORMAT
   19 #define DEFAULT_TIME_FORMAT    "%x %X"
   20 #endif
   21 
   22 // Default initial main window width
   23 #ifndef DEFAULT_WINDOW_WIDTH
   24 #define DEFAULT_WINDOW_WIDTH    800
   25 #endif
   26 
   27 // Default initial main window heigth
   28 #ifndef DEFAULT_WINDOW_HEIGHT
   29 #define DEFAULT_WINDOW_HEIGHT    600
   30 #endif
   31 
   32 // Default initial main window X position
   33 #ifndef DEFAULT_WINDOW_XPOS
   34 #define DEFAULT_WINDOW_XPOS    50
   35 #endif
   36 
   37 // Default initial main window Y position
   38 #ifndef DEFAULT_WINDOW_YPOS
   39 #define DEFAULT_WINDOW_YPOS    50
   40 #endif
   41 
   42 // Maximum sizes for thumbnail image preview
   43 #ifndef MAX_BIGTHUMB_SIZE
   44 #define MAX_BIGTHUMB_SIZE     64
   45 #endif
   46 #ifndef MAX_MINITHUMB_SIZE
   47 #define MAX_MINITHUMB_SIZE    20
   48 #endif
   49 
   50 // Minimum width of a file panel or directory panel
   51 #ifndef MIN_PANEL_WIDTH
   52 #define MIN_PANEL_WIDTH    100
   53 #endif
   54 
   55 // Maximum length of a file path
   56 #ifndef MAXPATHLEN
   57 #define MAXPATHLEN    8192
   58 #endif
   59 
   60 // Maximum length of a command line
   61 #ifndef MAX_COMMAND_SIZE
   62 #define MAX_COMMAND_SIZE    128
   63 #endif
   64 
   65 // Maximum length of a filter pattern
   66 #ifndef MAX_PATTERN_SIZE
   67 #define MAX_PATTERN_SIZE    64
   68 #endif
   69 
   70 // Maximum number of characters per line for one line messages
   71 #ifndef MAX_MESSAGE_LENGTH
   72 #define MAX_MESSAGE_LENGTH    96
   73 #endif
   74 
   75 // Root directory string
   76 #ifndef ROOTDIR
   77 #define ROOTDIR    "/"
   78 #endif
   79 
   80 // Path separator
   81 #ifndef PATHSEPSTRING
   82 #define PATHSEPSTRING    "/"
   83 #endif
   84 
   85 // Path separator
   86 #ifndef PATHSEPCHAR
   87 #define PATHSEPCHAR    '/'
   88 #endif
   89 
   90 // Maximum number of path links
   91 #ifndef MAX_LINKS
   92 #define MAX_LINKS    128
   93 #endif
   94 
   95 // Run history size
   96 #ifndef RUN_HIST_SIZE
   97 #define RUN_HIST_SIZE    30
   98 #endif
   99 
  100 // Open with history size
  101 #ifndef OPEN_HIST_SIZE
  102 #define OPEN_HIST_SIZE    30
  103 #endif
  104 
  105 // Filter history size
  106 #ifndef FILTER_HIST_SIZE
  107 #define FILTER_HIST_SIZE    30
  108 #endif
  109 
  110 #ifdef STARTUP_NOTIFICATION
  111 // If startup notification is used, this is the timeout value (seconds)
  112 #define STARTUP_TIMEOUT    15
  113 #endif
  114 
  115 // If startup notification is not used, we use an ugly simulation of a startup time (seconds)
  116 #define SIMULATED_STARTUP_TIME    3
  117 
  118 // Local data path
  119 #ifndef DATAPATH
  120 #define DATAPATH    ".local/share"
  121 #endif
  122 
  123 // Local config path
  124 #ifndef CONFIGPATH
  125 #define CONFIGPATH    ".config"
  126 #endif
  127 
  128 // Xfe config path
  129 #ifndef XFECONFIGPATH
  130 #define XFECONFIGPATH    "xfe"
  131 #endif
  132 
  133 // Scripts path
  134 #ifndef SCRIPTPATH
  135 #define SCRIPTPATH    "scripts"
  136 #endif
  137 
  138 // Local trashcan directory path
  139 #ifndef TRASHPATH
  140 #define TRASHPATH    "Trash"
  141 #endif
  142 
  143 // Local trashcan directory path for files
  144 #ifndef TRASHFILESPATH
  145 #define TRASHFILESPATH    "Trash/files"
  146 #endif
  147 
  148 // Local trashcan directory path for infos
  149 #ifndef TRASHINFOPATH
  150 #define TRASHINFOPATH    "Trash/info"
  151 #endif
  152 
  153 // Xfe application name
  154 #ifndef XFEAPPNAME
  155 #define XFEAPPNAME    "xfe"
  156 #endif
  157 
  158 // Xfe vendor name
  159 #ifndef XFEVDRNAME
  160 #define XFEVDRNAME    "Xfe"
  161 #endif
  162 
  163 // Xfe config file name
  164 #ifndef XFECONFIGNAME
  165 #define XFECONFIGNAME    "xferc"
  166 #endif
  167 
  168 // Default icon path
  169 #ifndef DEFAULTICONPATH
  170 #define DEFAULTICONPATH    "~/.config/xfe/icons/xfe-theme:/usr/local/share/xfe/icons/xfe-theme:/usr/share/xfe/icons/xfe-theme"
  171 #endif
  172 
  173 // Command to launch Xfe as root with sudo or su, using st as a terminal
  174 #ifndef SUDOCMD
  175 #define SUDOCMD    " -g 60x4 -e sudo su -c 'nohup xfe >& /dev/null & sleep 1'"
  176 #endif
  177 
  178 #ifndef SUCMD
  179 #define SUCMD    " -g 60x4 -e su -c 'nohup xfe >& /dev/null & sleep 1'"
  180 #endif
  181 
  182 // Tooltips setup time and duration
  183 #ifndef TOOLTIP_PAUSE
  184 #define TOOLTIP_PAUSE    500
  185 #endif
  186 
  187 #ifndef TOOLTIP_TIME
  188 #define TOOLTIP_TIME    10000
  189 #endif
  190 
  191 // Coefficient used to darken the sorted column in detailed mode
  192 #ifndef DARKEN_SORT
  193 #define DARKEN_SORT    0.96
  194 #endif
  195 
  196 
  197 // Default terminal program
  198 #ifndef DEFAULT_TERMINAL
  199 #define DEFAULT_TERMINAL    "xterm -sb"
  200 #endif
  201 
  202 
  203 // These have to be the same as in xferc.in
  204 
  205 // Default text viewer program
  206 #ifndef DEFAULT_TXTVIEWER
  207 #define DEFAULT_TXTVIEWER    "xfw -r"
  208 #endif
  209 
  210 // Default text editor program
  211 #ifndef DEFAULT_TXTEDITOR
  212 #define DEFAULT_TXTEDITOR    "xfw"
  213 #endif
  214 
  215 // Default file comparator program
  216 #ifndef DEFAULT_FILECOMPARATOR
  217 #define DEFAULT_FILECOMPARATOR    "meld"
  218 #endif
  219 
  220 // Default image editor program
  221 #ifndef DEFAULT_IMGEDITOR
  222 #define DEFAULT_IMGEDITOR    "gimp"
  223 #endif
  224 
  225 // Default image viewer program
  226 #ifndef DEFAULT_IMGVIEWER
  227 #define DEFAULT_IMGVIEWER    "xfi"
  228 #endif
  229 
  230 // Default archiver program
  231 #ifndef DEFAULT_ARCHIVER
  232 #define DEFAULT_ARCHIVER    "xarchiver"
  233 #endif
  234 
  235 // Default PDF viewer program
  236 #ifndef DEFAULT_PDFVIEWER
  237 #define DEFAULT_PDFVIEWER    "xpdf"
  238 #endif
  239 
  240 // Default audio player program
  241 #ifndef DEFAULT_AUDIOPLAYER
  242 #define DEFAULT_AUDIOPLAYER    "audacious"
  243 #endif
  244 
  245 // Default video player program
  246 #ifndef DEFAULT_VIDEOPLAYER
  247 #define DEFAULT_VIDEOPLAYER    "mplayer"
  248 #endif
  249 
  250 // Default mount command
  251 #ifndef DEFAULT_MOUNTCMD
  252 #define DEFAULT_MOUNTCMD    "mount"
  253 #endif
  254 
  255 // Default unmount command
  256 #ifndef DEFAULT_UMOUNTCMD
  257 #define DEFAULT_UMOUNTCMD   "umount"
  258 #endif
  259 
  260 
  261 // FOX hacks
  262 
  263 // FXTextField without frame, for clearlooks controls
  264 #define _TEXTFIELD_NOFRAME    0x10000000
  265 
  266 
  267 // Common macros
  268 
  269 // Tab character
  270 #define TAB     (FXString)"\t"
  271 #define TAB2    (FXString)"\t\t"
  272 
  273 // Macro to add tab characters before and after a given string
  274 #define TABS(s)    ((FXString)"\t"+(s)+(FXString)"\t")
  275 
  276 // Macro to add parentheses before and after a given string
  277 #define PARS(s)    ((FXString)" ("+(s)+(FXString)")")
  278 
  279 
  280 // Linux specials
  281 
  282 #if defined(linux)
  283 
  284 // fstab path
  285 #ifndef FSTAB_PATH
  286 #define FSTAB_PATH    "/etc/fstab"
  287 #endif
  288 
  289 // mtab path
  290 #ifndef MTAB_PATH
  291 #define MTAB_PATH    "/proc/mounts"
  292 #endif
  293 
  294 // Package format
  295 #define DEB_PKG      0
  296 #define RPM_PKG      1
  297 #define OTHER_PKG    2
  298 
  299 #endif