bug fixes for 2 edit windows
add Ctrl+D to input log menu
close app if no forms and not ShowIde
Fix cfcase under OSX/Qt5

(Q_WS_MAC is undefined in Qt5.)
enable script|global assignments menu
use compiler marcos