home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 November / Chip_2003-11_cd1.bin / software / dave / dqsd.exe / preferences.js < prev    next >
Text File  |  2002-11-03  |  12KB  |  431 lines

  1. /* Configuration for Dave's Quick Search Deskbar features.
  2. *
  3. *  In order to avoid losing configuration changes during upgrades
  4. *  the preferred way to make changes is to redefine the variable in
  5. *  your localprefs file (defaulted to localprefs.js).  If this file
  6. *  does not exist, you should create it.
  7. *
  8. *  After you've saved your changes, enter "!" in the deskbar
  9. *  to reload.
  10. */
  11.  
  12. /* Local files.  The following files are used to overwrite default
  13. *  settings.  They will not be replaced during upgrade installations.
  14. *
  15. *  Defaults:
  16. *  localeventsfileurl = "localevents.xml"
  17. *  localsearchurl     = "localsearch.xml"
  18. *  localaliases       = "localaliases.txt"
  19. *  localstylesurl     = "localsearch.css"
  20. *
  21. *  NOTE:
  22. *  localeventsfileurl - the format of this file is just like a standard events file (holidays.us.xml)
  23. *  localsearchurl - the format of this file is <searches>[search definition like in /searches/amax.xml]</searches>
  24. *  localaliases - the format of this file is just like aliases.txt
  25. *  localstylesurl - this is a standard cascading stylesheet
  26. */
  27. localeventsfileurl = "localevents.xml";   // local events to be added to the calendar
  28. localsearchurl     = "localsearch.xml";   // local search file
  29. localaliases       = "localaliases.txt";  // local aliases file
  30. localstylesurl     = "localsearch.css";   // local stylsheet (to overwrite defaults in search.css)
  31.  
  32.  
  33. /* Personalization variables
  34. *  Variables can be used in searches as default parameters.
  35. *  Uncomment the following lines and change the values of the variables.
  36. */
  37. /*
  38. user_address = "1600 Pennsylvania Ave"
  39. user_city    = "Washington"
  40. user_state   = "DC"
  41. user_zip     = "20509"
  42. */
  43.  
  44. /* Startup delay
  45. *  Increasing this might help if your tray icons don't all show up when you startup windows.
  46. *  [milliseconds (1000 milliseconds = 1 second)]
  47. */
  48. startupdelay=0;
  49.  
  50. /* Display the clock?
  51. *  true = display
  52. *  false = do not display
  53. */
  54. clock=true;
  55.  
  56.  
  57. /* clock display delay in milliseconds
  58. *  every 1000=1 second ex: 5000=5 seconds
  59. *  default = 5000
  60. */
  61. clockdelay=5000;
  62.  
  63.  
  64. /* clock update rate in milliseconds
  65. *  every 1000=1 second
  66. *  default = 1000
  67. */
  68. clockupdate=1000;
  69.  
  70.  
  71. /* clock long form width.
  72. *  long form is used if this pixel width is exceeded
  73. *  default = 139
  74. */
  75. clocklongwidth=139;
  76.  
  77.  
  78. /* The clock is formatted according to the following format strings:
  79. *  yyyy - four digit year (2001)
  80. *  yy   - two digit year (01)
  81. *  MMMM - fully spelled month name (January)
  82. *  MMM  - abbreviated month name (Jan)
  83. *  MM   - zero-padded month number (01)
  84. *  M    - month number (1)
  85. *  dd   - zero-padded day-of-month number (01)
  86. *  d    - day-of-month number (1)
  87. *  hh   - zero-padded 12-hour clock hour (01)
  88. *  h    - 12-hour clock hour (1)
  89. *  HH   - zero-padded 24-hour clock hour (01, 13)
  90. *  H    - 24-hour clock hour (13)
  91. *  mm   - zero-padded minutes value (00)
  92. *  ss   - zero-padded seconds value (00)
  93. *  a    - 12-hour clock am/pm lowercase (am)
  94. *  A    - 12-hour clock am/pm uppercase (AM)
  95. *  EEEE - day-of-week full name (Monday)
  96. *  EEE  - day-of-week abbreviation (Mon)
  97. *
  98. *  default long form = " EEE d MMM yyyy h:mm A "
  99. *  default short form = " h:mm A "
  100. */
  101. clocklongform  = " EEE MMM d, yyyy h:mm A ";
  102. clockshortform = " h:mm A ";
  103.  
  104.  
  105. /* Display clock tooltip text turned off by default
  106. *  default = ""
  107. *  common tool tip text = "MMMM d, yyyy"
  108. */
  109. clocktooltipform="";
  110.  
  111.  
  112. /* Reuse browser window mode
  113. *  NOTE: reuse browser mode is only valid when IE is the default browser.
  114. *  If any other browser is the default and the launchmode=1, a new browser
  115. *  window will be spawned for each search regardless of category.
  116. *
  117. *  0=new window always [default]
  118. *  1=single window for all
  119. *  2=single window for each search type
  120. */
  121. reuseBrowserWindowMode = 0;
  122.  
  123.  
  124. /* Browser launch mode
  125. *  0=use IE
  126. *  1=use default browser
  127. *  2=auto (launches in IE directly if IE is default browser) [default]
  128. */
  129. launchmode=2;
  130.  
  131. /* Page template to use to initialize search results window
  132. * Used only when launching in IE. Set pagetemplate to "maximized.htm" to maximize results.
  133. * With things set up as is currently, reuses the browser size that was most recently closed.
  134. */
  135. pagetemplate="";
  136.  
  137.  
  138. /* Default language - uncomment to override default language (which is determined programatically)*/
  139. // language="en";
  140.  
  141.  
  142. /* Default search engine
  143. *  gg=google [default]
  144. */
  145. defaultsearch="gg";
  146.  
  147.  
  148. /* Display the calendar on right-click?
  149. *  true = display calendar [default]
  150. *  false = do not display
  151. */
  152. cal=true;
  153.  
  154.  
  155. /* Calendar popup dimensions.
  156. *  default calwidth=179
  157. *  default calheight=156
  158. */
  159. calwidth=179;
  160. calheight=156;
  161.  
  162.  
  163. /* Calendar start method.
  164. *  0 = right click
  165. *  1 = double click
  166. *  default is 0
  167. */
  168. calStart=0;
  169.  
  170.  
  171. /* Calendar start day for a week.
  172. *  1 - Sunday
  173. *  2 - Monday
  174. *  3 - Tuesday
  175. *  4 - Wednesday
  176. *  5 - Thursday
  177. *  6 - Friday
  178. *  7 - Saturday
  179. *  default is 1
  180. */
  181. weekStartDay = 1;
  182.  
  183.  
  184. /* Default calendar. clicking on a calendar day will spawn the defined online calendar.
  185. *  Valid calendars include:
  186. *  yhocal - Yahoo Calendar [default]
  187. *  msncal - MSN Calendar
  188. *  aolcal - AOL Calendar
  189. *  nsccal - Netscape Calendar
  190. *  mycal  - MyCalendar.com
  191. *  evcal  - Evite.com
  192. *  outlook - MS Outlook default calendar (won't go to the current day, yet)
  193. *  mozillacal - Mozilla calendar (won't go to the current day, yet)
  194. */
  195. defaultcal="yhocal";
  196.  
  197.  
  198. /* Events file for the popup calendar events
  199. *  holidays.us.xml - United States [default]
  200. *  holidays.ca.xml - Canada
  201. *  holidays.sg.xml - Singapore
  202. *  holidays.it.xml - Italy
  203. *  holidays.fr.xml - France
  204. *  holidays.nl.NL.xml - Netherlands (Dutch language)
  205. *  holidays.nl.EN.xml - Netherlands (English language)
  206. *  holidays.et.xml - Estonia
  207. */
  208. eventsfileurl="holidays.us.xml";
  209.  
  210.  
  211. /* Use multi-line searchbar?  Set this to false to prevent word wraps.
  212. *  true = display multiline [default]
  213. *  false = do not display multiline
  214. */
  215. multiline=true;
  216.  
  217.  
  218. /*  Show the menu '>>' popup button?
  219.  *  0 = never
  220.  *  1 = always
  221.  *  2 = if search bar width is greater than clocklongwidth [default]
  222.  */
  223. showbutton = 2;
  224.  
  225.  
  226. /*  Align the menu button right or left
  227. */
  228. buttonalign="right";
  229.  
  230.  
  231. /* Display duration for the help message "Press ? for help"
  232. *  after the initial toolbar startup.
  233. *  every 1000=1 second ex: 5000=5 seconds
  234. *  default = 3000
  235. */
  236. helptime = 3000;
  237.  
  238.  
  239. /* Changes to the size of the help window.
  240. *  uncomment the bolow line and set the values that you wish to change.
  241. */
  242. //helpoptions = "width=800, height=550, top=100, left=100";
  243.  
  244.  
  245. /* Turn on/off [default] auto complete.  Values are true (for on) and false (for off)
  246. */
  247. autocomplete = false;
  248.  
  249.  
  250. /* Number of searches to remember.  Lower this if you notice poor performance
  251. *  after a search.  (The entire history is written to disk after each search.)
  252. */
  253. historylength=1000;
  254.  
  255.  
  256. /* Changes the default alert sensitivity:
  257. *  Qualified alerts are alerts that will not display unless a particular variable is set.
  258. *  This setting is mainly used for debugging purposes.
  259. *  0=no qualified alerts [default]
  260. *  1=all qualified alerts
  261. */
  262. alertmode=0;
  263.  
  264.  
  265. /* Length of menu Most Recently Used list
  266. */
  267. menuMRUlength = 5;
  268.  
  269.  
  270. /* The character we use with the 'Windows key' as a hotkey to jump to the searchbar
  271. *  This should be a single UPPER CASE letter
  272. */
  273. hotkeyCharacter = "S";
  274.  
  275. /* An alternative if you want to do something more elaborate - 
  276. *  set the hotkeyCharacter to "" and use this as a direct vkCode number
  277.   VK_LBUTTON = 1;
  278.   VK_RBUTTON = 2;
  279.   VK_CANCEL = 3;
  280.   VK_MBUTTON = 4;  { NOT contiguous with L & RBUTTON }
  281.   VK_BACK = 8;
  282.   VK_TAB = 9;
  283.   VK_CLEAR = 12;
  284.   VK_RETURN = 13;
  285.   VK_CONTROL = 17;
  286.   VK_MENU = 18;
  287.   VK_PAUSE = 19;
  288.   VK_CAPITAL = 20;
  289.   VK_ESCAPE = 27;
  290.   VK_SPACE = $20;
  291.   VK_PRIOR = 33;
  292.   VK_NEXT = 34;
  293.   VK_END = 35;
  294.   VK_HOME = 36;
  295.   VK_LEFT = 37;
  296.   VK_UP = 38;
  297.   VK_RIGHT = 39;
  298.   VK_DOWN = 40;
  299.   VK_SELECT = 41;
  300.   VK_PRINT = 42;
  301.   VK_EXECUTE = 43;
  302.   VK_SNAPSHOT = 44;
  303.   VK_INSERT = 45;
  304.   VK_DELETE = 46;
  305.   VK_HELP = 47;
  306. { VK_0 thru VK_9 are the same as ASCII '0' thru '9' ($30 - $39) }
  307. { VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' ($41 - $5A) }
  308.   VK_LWIN = 91;
  309.   VK_RWIN = 92;
  310.   VK_APPS = 93;
  311.   VK_NUMPAD0 = 96;
  312.   VK_NUMPAD1 = 97;
  313.   VK_NUMPAD2 = 98;
  314.   VK_NUMPAD3 = 99;
  315.   VK_NUMPAD4 = 100;
  316.   VK_NUMPAD5 = 101;
  317.   VK_NUMPAD6 = 102;
  318.   VK_NUMPAD7 = 103;
  319.   VK_NUMPAD8 = 104;
  320.   VK_NUMPAD9 = 105;
  321.   VK_MULTIPLY = 106;
  322.   VK_ADD = 107;
  323.   VK_SEPARATOR = 108;
  324.   VK_SUBTRACT = 109;
  325.   VK_DECIMAL = 110;
  326.   VK_DIVIDE = 111;
  327.   VK_F1 = 112;
  328.   VK_F2 = 113;
  329.   VK_F3 = 114;
  330.   VK_F4 = 115;
  331.   VK_F5 = 116;
  332.   VK_F6 = 117;
  333.   VK_F7 = 118;
  334.   VK_F8 = 119;
  335.   VK_F9 = 120;
  336.   VK_F10 = 121;
  337.   VK_F11 = 122;
  338.   VK_F12 = 123;
  339.   VK_F13 = 124;
  340.   VK_F14 = 125;
  341.   VK_F15 = 126;
  342.   VK_F16 = 127;
  343.   VK_F17 = 128;
  344.   VK_F18 = 129;
  345.   VK_F19 = 130;
  346.   VK_F20 = 131;
  347.   VK_F21 = 132;
  348.   VK_F22 = 133;
  349.   VK_F23 = 134;
  350.   VK_F24 = 135;
  351.   VK_NUMLOCK = 144;
  352.   VK_SCROLL = 145;
  353. { VK_L & VK_R - left and right Alt, Ctrl and Shift virtual keys.
  354.   Used only as parameters to GetAsyncKeyState() and GetKeyState().
  355.   No other API or message will distinguish left and right keys in this way.
  356. }
  357.   VK_LSHIFT = 160;
  358.   VK_RSHIFT = 161;
  359.   VK_LCONTROL = 162;
  360.   VK_RCONTROL = 163;
  361.   VK_LMENU = 164;
  362.   VK_RMENU = 165;
  363.   VK_PROCESSKEY = 229;
  364.   VK_ATTN = 246;
  365.   VK_CRSEL = 247;
  366.   VK_EXSEL = 248;
  367.   VK_EREOF = 249;
  368.   VK_PLAY = 250;
  369.   VK_ZOOM = 251;
  370.   VK_NONAME = 252;
  371.   VK_PA1 = 253;
  372.   VK_OEM_CLEAR = 254;
  373. */
  374. hotkeyVkCode = 0;
  375.  
  376. /* The modifiers for the hotkey
  377.   Options are combinations of 
  378.                 WIN for the windows key (default)
  379.                 ALT for ALT
  380.                 CONTROL for CONTROL
  381.                 SHIFT for SHIFT
  382.   e.g.    hotkeyModifiers="WIN ALT";
  383.   Spaces are optional, so ALTSHIFTWIN is just as good
  384.   You wouldn't want to use anything on its own other than WIN, unless you're deliberately trying to upset people
  385. */
  386. hotkeyModifiers="WIN";
  387.  
  388. /* History search default key assignment.
  389.    <historySearchVkCode> searches for the typed string in any part of a previous command
  390.    Shift-<historySearchVkCode> searches for the typed string in any part of the next command
  391. */
  392. historySearchVkCode = 119 // F8 (kinda' like DOSKEY)
  393.  
  394. /* How to sort the searches in the help window and the popup menu
  395. *  'name'  = sort by search name
  396. *  'alias' = sort by first alias
  397. */
  398. helpSortKey = 'name';
  399.  
  400. /* Enable tooltips on menu help menu items 
  401.     The options are 'true' or 'false'
  402. */
  403. helpMenuToolTipsEnabled = true;
  404.  
  405. /* A multiplier of  the time for which the menu tooltips are displayed
  406.  1 would be the system default, which is a bit fast for some of the long tips
  407. */
  408. helpMenuToolTipsDisplayTime = 3;
  409.  
  410.  
  411. /* Display help text setting. Setting this to false will cause the 'Quick Search'
  412. * and 'Display ? for help' strings to not be displayed at all.
  413. */
  414. displayHelp = true;
  415.  
  416.  
  417. /* Check web for an updated version each time the toolbar is started
  418. */
  419. checkForUpdate = true;
  420. checkForUpdateDelay = 10000; // millisecond delay after first search
  421.  
  422. /* Notify for only final ('final') or both beta and final ('beta,final').
  423. *  This is ignored if 'checkForUpdateTypes' is false
  424. */
  425. checkForUpdateTypes = 'final';
  426.  
  427.  
  428. /* Broadcast a message to refresh the tray icons.  This may solve the problems
  429. *  for some with disappearing tray icons at startup.
  430. */
  431. refreshIconsAtStartup = true;