• Robert Sprowson's avatar
    Add choices dialogue, don't set Draw$Options · 99383d21
    Robert Sprowson authored
    Messages/Templates: Extra interactive help, new menu templates, new choices dialogue
    DrawChoice.c/h: New source file to handle the choices dialogue, also added to Makefile.
    
    Draw.c/h: Transfer ownership of initial_options to DrawChoice.c, bump up the default undo buffer to a lavish 8k. Delete setting & parsing of Draw$Options. Ensure read of choices happens after the default colours have been read from the icons of the blank paper, otherwise the choices can't override the default grid colour. Add a couple of const qualifiers to clarify where draw_current_options is written.
    DrawMenu.c: Refactor draw_menu_makegridmenu() and draw_menu_setgridmenu() so they can handle multiple grid menus in existence, so the choices dialogue can share all the grid menu update code. Split out draw_menu_setgridunits() from the draw_menu_proc() handler for the same reason. No longer diff Draw$Options for changes. Delete some oddly duplicated code in draw_menu_entry_option().
    DrawMenuD.h: Defines for the iconbar menu.
    DrawFileIO.c/h: constify- draw_file_matches().
    
    Version 1.41. Tagged as 'Draw-1_41'
    99383d21
Messages 20.8 KB