View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/
Update of /cvsroot/dqsd/dqsd
In directory usw-pr-cvs1:/tmp/cvs-serv27209
Modified Files:
ChangeLog.txt helpmenu.js loader.js search.htm
Log Message:
Added add-ons and searches to modify the popup menu using calls to registerMenuHook;
Change search property name from 'menudisplay' to 'aliasmenudisplay'
Index: ChangeLog.txt
===================================================================
RCS file: /cvsroot/dqsd/dqsd/ChangeLog.txt,v
retrieving revision 1.124
retrieving revision 1.125
diff -C2 -d -r1.124 -r1.125
*** ChangeLog.txt 28 Sep 2002 06:10:46 -0000 1.124
--- ChangeLog.txt 28 Sep 2002 20:02:28 -0000 1.125
***************
*** 38,46 ****
* Modified to display command as tooltip for shortcut on the menu if a name for the
shortcut was supplied.
This is helpful to see what the actual command is from the shortcuts menu without
having to open up localaliases.txt.
Bug Fixes
* Duplicate search function names were not being detected due to an invalid xquery
path
! * Upcase FORM element were not being detected due to an invalid xquery path
--- 38,48 ----
* Modified to display command as tooltip for shortcut on the menu if a name for the
shortcut was supplied.
This is helpful to see what the actual command is from the shortcuts menu without
having to open up localaliases.txt.
+ * Added add-ons and searches to modify the popup menu using calls to registerMenuHook
Bug Fixes
* Duplicate search function names were not being detected due to an invalid xquery
path
! * Uppercase FORM elements were not being detected due to an invalid xquery path
! * Change search property name from 'menudisplay' to 'aliasmenudisplay'
Index: helpmenu.js
===================================================================
RCS file: /cvsroot/dqsd/dqsd/helpmenu.js,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** helpmenu.js 25 Sep 2002 20:22:14 -0000 1.30
--- helpmenu.js 28 Sep 2002 20:02:28 -0000 1.31
***************
*** 1,2 ****
--- 1,10 ----
+ function registerMenuHook( menuHook )
+ {
+ if ( typeof menuHooks == 'undefined' )
+ menuHooks = new Array();
+
+ menuHooks.push( menuHook );
+ }
+
function showpop()
{
***************
*** 33,37 ****
if ( search.enabled )
! mb.AppendMenuItem( search.name + (search.local ? ' [local]' : '' ) + '\t' +
(search.menudisplay ? alias.replace(/&/g, '&&') : ""), // menu text along with alias
search.aliases[0], // function invoked when user
selects menu item
makeToolTipString(search),
--- 41,45 ----
if ( search.enabled )
! mb.AppendMenuItem( search.name + (search.local ? ' [local]' : '' ) + '\t' +
(search.aliasmenudisplay ? alias.replace(/&/g, '&&') : ""), // menu text along with
alias
search.aliases[0], // function invoked when user
selects menu item
makeToolTipString(search),
***************
*** 40,43 ****
--- 48,60 ----
}
+ // Add any hooks created by searches or add-ons
+ if ( typeof menuHooks != 'undefined' )
+ {
+ for ( var i = 0; i < menuHooks.length; i++ )
+ {
+ menuHooks[i]( mb );
+ }
+ }
+
appendMRUMenuSelections( mb );
Index: loader.js
===================================================================
RCS file: /cvsroot/dqsd/dqsd/loader.js,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** loader.js 25 Sep 2002 20:22:14 -0000 1.52
--- loader.js 28 Sep 2002 20:02:28 -0000 1.53
***************
*** 13,17 ****
aliases:[],
enabled:!disabledsearches[fname],
! menudisplay:true,
local:(typeof local != 'undefined' ? local : false)};
if( !aliases[fname] )
--- 13,17 ----
aliases:[],
enabled:!disabledsearches[fname],
! aliasmenudisplay:true,
local:(typeof local != 'undefined' ? local : false)};
if( !aliases[fname] )
***************
*** 57,61 ****
// there's a local alias that is overriding it.
searches[prevfname].aliases = [ prevfname ];
! searches[prevfname].menudisplay = false;
}
}
--- 57,61 ----
// there's a local alias that is overriding it.
searches[prevfname].aliases = [ prevfname ];
! searches[prevfname].aliasmenudisplay = false;
}
}
***************
*** 243,247 ****
catch(e)
{
! alert("An error (" + e + ") occurred loading script '" + xScriptVal + "'");
}
}
--- 243,247 ----
catch(e)
{
! alert("Error '" + e.description + "', " + (e.number & 0xffff) + " occurred
loading script '" + xScriptVal + "'");
}
}
Index: search.htm
===================================================================
RCS file: /cvsroot/dqsd/dqsd/search.htm,v
retrieving revision 1.159
retrieving revision 1.160
diff -C2 -d -r1.159 -r1.160
*** search.htm 4 Sep 2002 15:03:22 -0000 1.159
--- search.htm 28 Sep 2002 20:02:28 -0000 1.160
***************
*** 118,121 ****
--- 118,122 ----
</script>
+ <script type='text/Jscript' src="helpmenu.js"></script>
<script type='text/Jscript'>
***************
*** 769,773 ****
<script defer type='text/Jscript' src="defer_tools.js"></script>
<script defer type='text/Jscript' src="helpbox.js"></script>
- <script defer type='text/Jscript' src="helpmenu.js"></script>
<script type='text/Jscript'>
--- 770,773 ----
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/