1. 25 Jun, 2011 1 commit
    • Jeffrey Lee's avatar
      TextGadgets module fixes & improvements · 62cdc19f
      Jeffrey Lee authored
      Detail:
        c/ScrollList, c/TextArea - ScrollList_SetFont and TextArea_SetFont now accept font handles instead of just font names. The handles are handled in the same way as the Window module, i.e. the handle will be managed and freed by the TextGadgets modules. Fixes bug #212.
        c/ScrollList, c/Scrollbar, c/TextArea - Fix handling of Toolbox_ObjectDeleted events. Original code would corrupt the object lists when deleting items, and reallocate much more memory than was actually needed. Fixes bug #214
        c/MemMan - Fix grow_handlers to not leave handle_list as NULL if the realloc fails. Fixes bug #216.
        c/MemMan, c/TextArea, c/TextMan, h/MemMan, h/TextMan - Changed how the 'Handle' type is handled. Instead of MemMan giving out direct pointers to Handle instances, it now gives out identifiers (HandleId). These identifiers are then converted to Handle pointers via get_handle whenever the contents need to be accessed. This allows the handle_list to be safely realloc'd without breaking all the existing Handle pointers. Fixes bug #217
        c/MemMan - Reduced HDNLE_GRW_BY from 1000 to 128 to save a bit of memory
      Admin:
        Module compiles and runs, but actual functionality is untested.
        Fixes bugs 212, 214, 216, 217.
      
      
      Version 0.32. Tagged as 'Gadgets-0_32'
      62cdc19f
  2. 28 Feb, 2010 1 commit
    • Robert Sprowson's avatar
      Function returns no longer use stack structures. · 44aae368
      Robert Sprowson authored
      Previously, a number of errors were contructed as automatic variables then returned to the caller - potentially accessing stale stack area. All error blocks are now held in ROM and cast from there.
      Error numbers are now not &00000000 or &20202020, using the allocated base - requires 'Common-0_15'.
      Trimmed some unused debugging code out, saves about 3k.
      Renamed C++ clashing variables to stop the compiler moaning.
      Implemented feature request to accept the empty string "" as no font handle in _SetFont calls.
      At some point, this module needs internationalising.
      
      Version 0.31. Tagged as 'Gadgets-0_31'
      44aae368
  3. 14 Jun, 2008 1 commit
  4. 15 Apr, 2005 1 commit
  5. 09 Nov, 2004 1 commit
    • Ben Avison's avatar
      Linking change. · 1624975f
      Ben Avison authored
      Detail:
        Was still doing link -bin in rom_link phase. Changed to use link -rmf
        for consistency with all other C components, and with the BBE auto-
        generated makefile. Also has the benefit of saving approx 1K of ROM space.
      Admin:
        Not expected to cause any problems.
      
      Version 0.28. Tagged as 'Gadgets-0_28'
      1624975f
  6. 16 Jun, 2003 1 commit
    • Robert Sprowson's avatar
      Fix for data abort triggered in the following case: · dc8351f4
      Robert Sprowson authored
       create res file with a single TextArea in it
       change flags to be auto create and auto display
       drop into restest
       delete the 8 character "TextArea" default text
       press enter
       press backspace
      Also,there was a _swix(&107) left in from some point in the past.
      
      Version 0.27. Tagged as 'Gadgets-0_27'
      dc8351f4
  7. 18 Feb, 2003 1 commit
  8. 16 Mar, 2000 1 commit
    • Ben Laughton's avatar
      Removed unused files that were preventing build. · e3556e3c
      Ben Laughton authored
      Detail:
        debug.s was still in the build and included a header which had been removed
        in a previous version.  The code in debug.s in not used anywhere, so I've
        just removed it (and the corresponding debug.h, which was empty anyway).
      Admin:
        Compiled.
      
      Version 0.25. Tagged as 'Gadgets-0_25'
      e3556e3c
  9. 13 Dec, 1999 1 commit
    • Stewart Brodie's avatar
      32-bit compatibility. · 6f8d9c4a
      Stewart Brodie authored
        Improved some of the rather odd Piers-assembler.
      Detail:
        Some rather odd assembler has been tidied up.
        Removed some obsolete header files that are no longer required.
        Removed "objs" - nothing uses it - looks like an accidental
          checkin.
      Admin:
        Tested on Risc PC with Phoebe & 32 machine builds.
      
      Version 0.24. Tagged as 'Gadgets-0_24'
      6f8d9c4a
  10. 18 Oct, 1999 1 commit
    • David Cotton's avatar
      ======== · 44381c2e
      David Cotton authored
      	Altered to work with HdrSrc 0.46
      
      Detail:
      =======
       	HdrSrc 0.46 now includes the macros defined in the hdr.Cvars local
      file in it's Hdr:Macros file. Hence have altered this component to use the
      global header rather than the local copy. Also altered it so its hdr.SWINames
      file no longer attempts to define the AddSWI macro, which is also defined in
      hdr:Macros.
      
      Admin:
      ======
      	tedted that it builds.
      
      Version 0.23. Tagged as 'Gadgets-0_23'
      44381c2e
  11. 23 Jun, 1999 2 commits
  12. 21 Jun, 1999 1 commit
  13. 18 Jun, 1999 2 commits
    • John Beranek's avatar
      * Fixed the textarea_set/get_cursor_position methods to use the method... · 6770c2da
      John Beranek authored
      * Fixed the textarea_set/get_cursor_position methods to use the method interface as specified in docs.textarea.  I wasn't returning values in R4 as it showed in the document, I am now.  The fetching of the cursor position (in both the get and set calls) doesn't appear to work (always returns 0) with what appears to be the correct code to achieve this.  The fixing of this is left as an exercise for the bored and very brave person...textarea internals are "interesting".
      
       * Added some description of the methods into docs.textarea
      
      
      Version 0.21. Tagged as 'Gadgets-0_21'
      6770c2da
    • Pete Goodliffe's avatar
      The scrollbar gadget can now be 'faded' (it doesn't actually fade - it just... · 04521800
      Pete Goodliffe authored
      The scrollbar gadget can now be 'faded' (it doesn't actually fade - it just stops responding and maximises the sausage).
      04521800
  14. 17 Jun, 1999 1 commit
  15. 20 Apr, 1999 1 commit
  16. 15 Apr, 1999 1 commit
  17. 31 Mar, 1999 1 commit
  18. 30 Mar, 1999 1 commit
    • Andrew Hodgkinson's avatar
      ScrollList changes. · adbbc308
      Andrew Hodgkinson authored
      Added scrolllist_set_item_text. Tweak to extent setting to account for
      window border. _add_item fix ('>' should've read '>=' in index range
      check). Can now tell _add_item to make the new item visible (flag
      ScrollList_AddItem_MakeVisible), else it will try to maintain the y
      scroll position. _delete_items continues to jump to the top as before,
      but you can ask it to try and maintain the y scroll position too
      (flag ScrollList_DeleteItems_DoNotJumpToTop).
      
      Version 0.16. Tagged as 'Gadgets-0_16'
      adbbc308
  19. 26 Mar, 1999 1 commit
    • Andrew Hodgkinson's avatar
      Various fixes and extensions to ScrollList, plus a related fix in TextArea and ScrollBar. · ba6f7fab
      Andrew Hodgkinson authored
      Title background colour of gadgets was either undefined or set to 0; should
      be 2. Corrected. Would be apparent with 2D tools or any transparent tool
      sprite set.
      
      SELECT clicks on deselected entries in a ScrollList now deselect any other
      selected items before selecting the new one.
      
      Embedded window of TextArea and ScrollList now put in the right place. At
      create time, the sizes of the current tool sprite set is also checked; this
      used to be hard coded. If the tool sizes and/or Desktop scaling changes at
      run-time this won't be noticed yet, as no mechanism to pass Wimp messages
      to *external* gadgets exists in the Toolbox currently. Still, at least it
      gets it right the next time a new instance of the gadget is created.
      
      Flag bit ScrollList_SelectionChangingMethod_SendEvent to any of
      scrolllist_select_item, scrolllist_deselect_item or scrolllist_delete_items
      prompts them to send ScrollList_Selection to the client on completion. This
      can help simplify client UI code for UIs which depend on what is selected
      (e.g. a "Select all" button greys out if all items are selected by a
      keyboard shortcut - this can now all work on just the one event handler).
      
      Flag bit ScrollList_SelectionChangingMethod_OnAll to either of
      scrolllist_select_item or scrolllist_deselect_item tells the methods to
      act like a "Select all" or "Clear selection" call. This is a common client
      operation and it's a lot easier for the ScrollList gadget to do it than
      have the client iterate over all items.
      
      Supports new method ScrollList_CountItems (scrolllist_count_items veneer
      present in tboxlibs 0.04 or later). Returns number of entries in gadget.
      Avoids clumsy situation of both the gadget and the clienty keeping track
      of how many entries are present.
      
      Note that docs.ScrollList mis-documented some flags settings. Now fixed.
      
      Version 0.15. Not tagged
      ba6f7fab
  20. 21 Oct, 1998 2 commits
  21. 22 Jun, 1998 1 commit
    • Stewart Brodie's avatar
      * These changes make no difference to the build of the TextGadget module. · a76193d9
      Stewart Brodie authored
      Re-arranged header files to be suitable for sharing with Toolboxlib and
      for export to RiscOS/Export/Lib/tboxlibs/h.  The ordering and style of
      these files now matches other toolboxlib header files.
      
      Private TextArea macro definitions moved from TextArea.h to TextAreaP.h
      
      Most function declarations are now auto-generated by MethodGen so they
      come with documentation for free, except for TextArea_GetSelection*
      which need to be done manually.  This new set of declarations is
      identical to the hand-written ones which existed previously.
      a76193d9
  22. 19 Jun, 1998 4 commits
  23. 18 Jun, 1998 4 commits
  24. 16 Feb, 1998 4 commits
  25. 20 Jan, 1998 4 commits