FS#2443 - Modify > ‘Draw Order’ sub-menu missing
Andrew,
I don’t seem to be able to locate the ‘Draw Order’ sub-menu of the Modify menu.
Reported version 3.27.6 and 3.27.8 (I use them side by side)
Tested on Win7 32 bit and Win10 64 bit.
I am aware that MF & MB were relocated out of the Modify menu.
Two additional PRO tools were added and all four were listed in a sub-menu.
(MO: version 3.21.3; MC: information missing in changelog)
MF, MB, MO and MC are displayed in the Modify Toolbar, in the Modification Tools panel and in the Tool Matrix.
This is even more curious because DrawOrder.init() only initiates DrawOrder.getMenu();
All three DrawOrder.getToolBar() & DrawOrder.getCadToolBarPanel() & DrawOrder.getToolMatrixPanel() are ruled out.
DrawOrder.getCadToolBarPanel() lists WJ as shortcut QKeySequence but that will bring up the Projections Tool Panel.
In the QCAD Reference Manual (menu Help > Reference Manual) the ‘Draw Order’ icon list is only the Modifying Tools icon.
For all four the tools the manual list up: Menu: Modify > Draw Order > ...
Under App.Prefs. > General > Tool Settings MF and MB are listed but not in a sub-menu like for example “Detection“.
Seemingly under Modify but they remain visible when Modify is collapsed.
MC and MO are listed lower than Help when this is collapsed.
I thought I understood how to implement menus and tools.
All this makes me doubt whether I had understood it in its entirety.
Could you elaborate in a few words why the menu fails but the Toolbar and Panels work even when these are excluded ...
Regards,
CVH
I cannot reproduce under 3.27.6 or 3.27.8, Windows 32bit or 64bit. The menu is there and also the tool preferences show under Modify > Draw Order as expected. Perhaps a local configuration issue?
After an intensive search I found the culprit.
A global variable DrawOrder is declared in nTruss.js ... And set equal to 1000.
! Under QCAD all variables should start with a lower case !
And I think this overwrites the class DrawOrder with a value of 1000.
The script package is as such on the forum.
I think you may warn the 21 downloaders to not use this tool bundle as is.
I'm sorry I bothered you.
Regards,
CVH