------------------------ AmigaOS 4 project ---------------------------

listbrowser.gadget 50.1 (7.8.2002)

- initial release for OS4.

listbrowser.gadget 50.2 (18.8.2002)

- first release for testing, with support for some Intuition V50
  features.

listbrowser.gadget 50.3 (24.9.2002)

- improved support for the "flat" Intuition frame style.

- now propagates the backfill to its scroller objects.

listbrowser.gadget 50.4 (4.10.2002)

- fixed a bug which could make the gadget install an invalid backfill
  hook if its parent layout used a fill pattern.

listbrowser.gadget 50.5 (17.01.2003)

- the show/hide images were no longer drawn because glyph.image
  didn't receive a DrawInfo pointer.

----------------------- AmigaOS 3.2 project --------------------------

listbrowser.gadget 50.6 (18.8.2019):

- Notice that v50.6 reflects only a transitional status between the
  OS4 and 3.2 projects.

- fixed race condition when opening/closing.

- now runs on 68000/68010.

listbrowser.gadget 47.1 (1.9.2019):

- recompiled with data=far and utllib to improve
  the code generation.

listbrowser.gadget 47.2 (2.9.2019):

- Fixed a compiler problem, __SAVEDS was used
  with DATA=FARONLY, which confused the compiler
  a lot.

listbrowser.gadget 47.3 (8.9.2019):

- shortened the code by adding initialization
  code for the BSS segment.

listbrowser.gadget 47.4 (8.4.2020):

- LISTBROWSER_MinVisible now takes the height of bevels and
  column titles into account.

listbrowser.gadget 47.5 (25.5.2020):

- Added CIF_CENTER and CIF_RIGHT for justifying column titles.

listbrowser.gadget 47.6 (26.5.2020):

- Now column titles are filled (with FILLPEN).

listbrowser.gadget 47.7 (30.5.2020):

- Fixed rendering bugs with rightmost column titles of autofit
  listbrowsers.

listbrowser.gadget 47.8 (12.6.2020):

- Row contents are now vertically centred.

- CIF_NOSEPARATORS is no longer ignored.

- Fixed: When LISTBROWSER_VertSeparators, FALSE was used,
  columns were too wide and didn't align with the column titles.

- LISTBROWSER_AutoFit columns with images are no longer too wide.

- Setting LISTBROWSER_Labels, NULL now also updates the
  scrollbar(s) accordingly.

- Column title separators are now draggable.

- Adjusted positioning of drag indicator.

- Fixed: too many characters were displayed in the titles of
  narrow columns.

- Fixed a hanging parenthesis in listbrowser.c which was causing
  needless refreshes.

listbrowser.gadget 47.9 (14.6.2020):

- Now clicks on read-only nodes and empty parts of the list do
  nothing.

listbrowser.gadget 47.10 (16.6.2020):

- Fixed: setting LISTBROWSER_ColumnInfo was not causing column
  widths to be recalculated.

- Fixed: GetLBColumnInfoAttrs was returning the wrong value for
  LBCIA_Weight.

- Removed unused lbd_CacheResize variable.

- Fixed: rightmost column title was not always rendered.

- Fixed: LISTBROWSER_MakeVisible had no effect if set in the
  same SetGadgetAttrs() call as LISTBROWSER_Labels.

listbrowser.gadget 47.11 (8.8.2020):

- Backported LBNCA_FillPen tag from OS4.

listbrowser.gadget 47.12 (15.9.2020):

- Support scrollwheel events

- Fixed: column titles were not being shown on <= 8-bit screens.

- Fix scrollers having wrong size

listbrowser.gadget 47.13 (18.9.2020):

- Added LISTBROWSER_AutoWheel tag.

listbrowser.gadget 47.14 (7.10.2020):

- Fixed broken input handling when using LISTBROWSER_MultiSelect.

listbrowser.gadget 47.15 (12.10.2020):

- Fix scroller size if the domain method was never called (as in case
  when not placed inside layout) (bug: 1855)

listbrowser.gadget 47.16 (16.10.2020):

- Fixed bad redrawing of listbrowser in certain situations.

listbrowser.gadget 47.17 (28.10.2020):

- Weighted column widths are now calculated correctly when there
  are fixed-width columns in use.
- FreeListBrowserNode() is now safe to call with a NULL pointer.
- Fix that RelEvent was never reset, so it would report wrong values.
- Fixed: string gadgets of editable cells were wrongly sized and
  positioned in some circumstances.

listbrowser.gadget 47.18 (15.11.2020):

- The border sizes of the list bevel are now computed more accurately
  (whenever possible) via IM_FRAMEBOX/FRAMEF_MINIMAL, which allows to
  specify a DrawInfo providing better visual context information.

- On reception of a REACTION_ChangePrefs notification, the domains of
  the embedded scrollers were not recalculated before the subsequent
  layout; this failed to update the visual thickness of the scrollers
  in already displayed listbrowsers after changing the "3D Scroller"
  option in the ReAction editor. Now fixed.

listbrowser.gadget 47.19 (12.02.2021):

- Follow up from 47.15 as it turns out that sometimes (if no Reaction
  prefs) the call would have no GInfo and the scroller would end up with
  wrong size. Now we just patienly await until it is correct.

- We were sending out way too many updates. The code thought it was only
  sending out a subset, but then OM_NOTIFY just sent out everything anyway
  The committed change doesn't completely clean up the notify method,
  but at least now it works.

listbrowser.gadget 47.20 (21.02.2021):

- Change look of edit box to have a box around and correct colors
- Change how clicking to edit works, now you can still double click
  an already selected item without it going directly to edit mode

listbrowser.gadget 47.21 (1.03.2021):

- Fix keyboard navigation
- Major of the code
- Introduce StayActive mode
- Less repaints and updates (now only as many as neeeded)

listbrowser.gadget 47.22 (3.03.2021):

- Make it so pressing escape during rename will abort witout change
- Fix that rename didn't work in tabactive mode
- Fix LISTBROWSER_NumSelected counting wrong
- Fix going into edit mode could happen wrongly at some combination
  of mouseclicks

listbrowser.gadget 47.23 (24.03.2021):

- Fix clicking in list that doesn't show selection

listbrowser.gadget 47.24 (02.04.2021):

- Wrapping now handles \n chars as hard linebreaks

------------------------ AmigaOS 3.2.1 update ------------------------

listbrowser.gadget 47.25 (18.05.2021):

- Fixed missing ColumnInfo array terminator when using AllocLBColumnInfoA()
- Fixed LBNCA_Integer not pointing to LBNCA_Number when using LBNCA_CopyInteger

listbrowser.gadget 47.26 (28.05.2021):

- Backported automatic column sorting from OS4 ListBrowser including additional
  column tags (LBCIA_Sortable, LBCIA_SortArrow, LBCIA_AutoSort, LBCIA_SortDirection,
  LBCIA_CompareHook and LBCIA_UserData). Beware that this also includes backporting
  of the ExtColumnInfo stuff they introduced, there is still some work ahead to clean
  up duplicate fields etc.

listbrowser.gadget 47.27 (4.6.2021):

- Initially sort list if LBCIA_AutoSort is set for the current lbd_SortColumn
- Fixed sort order confusion (LBMSORT_FORWARD actually sorted the list reverse)

listbrowser.gadget 47.28 (10.7.2021):

- Backported LBNCA_VertJustify from OS4 ListBrowser

listbrowser.gadget 47.29 (13.7.2021):

- Forgot to define a default ExtColumnInfo, which causes a crash when an application
  did not supply its own LISTBROWSER_ColumnInfo.

listbrowser.gadget 47.30 (22.7.2021):

- Fix that scroller could become visible even if the listbrowser had no visible
  scroller
- Implement LISTBROWSER_EditTrigger with default value of LBET_DOUBLECLICK
- Column titles are now in half dark color, and new tag LISTBROWSER_AlternatingRows
- Direction and column in sort message were not set
- Fix that weighted columns couldn't be draggable

listbrowser.gadget 47.31 (30.7.2021):

- Fix First row of a listbrowser is not editable
- Fix (un)folding list nodes were not redrawn in lists which doesn't show selected

listbrowser.gadget 47.32 (18.9.2021):

- Implement LBCIA_DraggableSeparator and LBCIA_Separator since the flag and actual
  function is already there.

listbrowser.gadget 47.33 (09.10.2021):

- Change placement of sort arrows so things line up and don't jump
- Calculate columntitles of empty list - except if autofit
- Fix a MUGA hit on stopping due to releasing the wrong memory
- Let the vertical scrollbar go all the way up so there is no empty area when
  there are column titles
- Fix alignement of text in columns
- Fix that the sorting of integers was the wrong direction
- Fix glitch when autoscrolling
- Fix potential hit when rendering

listbrowser.gadget 47.34 (28.10.2021):

- Make sure background pattern don't show through when borderless

listbrowser.gadget 47.35 (20.11.2021):

- Fixed the code to compute proper proportional font char width

----------------------- AmigaOS 3.2.2 project ------------------------

listbrowser.gadget 47.36 (21.11.2021)

- Calling column_wraptext() no longer reinitializes a temporary local
  RastPort for the purpose of measuring glyph size information. This is now
  done only once in the column_height() function which calls column_wraptext().

- RenderWrapText() might hit an unexpected line feed character which should
  not get rendered. However, this did not take into account that this would
  produce an empty string which should not wind up in a Text() function
  call.

- Found the documentation for the mIRC color codes and then some. Turns out
  that there are modern IRC color codes which the bit in the column_wraptext()
  was unfit to detect or remove. This is no longer the case. To make the set
  complete, the mIRC color code removal is now complemented by text style
  removal code. Best of all, this could be retooled to filter out all these
  control characters and sequences prior to calling column_wraptext().

- For consistency's sake the column_wraptext() function now skips leading
  blank spaces entirely, just like it does for blank spaces following a
  line feed.


listbrowser.gadget 47.37 (22.11.2021)

- This is either a highly experimental release which tried but failed to
  clean up the code or it might just work.

- Header files, macros and how the class calls its own functions have
  been reworked to follow the standard rules which apply to libraries.

- Found that makeStringInactive() calling DoMethod() should have really
  been a DoGadgetMethod() call :-)

- AllocPoolVec() and FreePoolVec() no longer use specific registerized
  parameters. They don't actually have to do that, you know?


listbrowser.gadget 47.38 (24.11.2021)

- column_wraptext() in lb_wrap.c no longer removes and deallocates the
  text wrap nodes for all the columns and then later reallocates them
  all over again as needed.

  The new code begins by collecting all the text wrap nodes for all the
  columns in a list for reuse. When the wrap operations proceed, any wrap
  nodes needed will be collected from the list for reuse. Should that
  list run dry, memory for new nodes may be allocated as needed. If the
  list for reuse should still have any nodes left after the wrap operations
  for the entire row they will be deallocated.

listbrowser.gadget 47.39 (30.1.2022)

- Fix no RelEvent being set when renaming an item.


listbrowser.gadget 47.40 (23.11.21)

- Support the GM_EXTENT method


listbrowser.gadget 47.41 (27.11.2021)

- No longer uses "#include <clib/macros.h>" but uses the built-in
  min/max/abs functions from <string.h> which generate shorter inline
  code for SAS/C and also have score by having no side-effects when
  evaluating their parameters. This results in significantly shorter
  code.

- Removed the '__inline' function parameter attributes where they
  were used. Because this always affected only local functions which
  were not called from other files, the compiler would both inline
  these functions and also generate another copy of the same function
  for callers which expected it to be a global function. Since nobody
  needed that copy this had significantly increased the size of the
  class.

- Removed all the local function prototype definitions which referenced
  functions not present in the current file. These definitions had
  been copied & pasted around over and over again and did not necessarily
  reflect the state of the code as it was. Functions identified as
  "private" were no longer used solely in the same file but now were
  needed by other files. Some functions had changed and now sported
  parameters which the prototypes did not show.

- Identified all class functions which were not used only locally but
  needed to be available because other files needed them, then put
  their function prototypes into "listbrowser_priv.h". Followed this
  up by tagging all functions as "static" which were used only within
  the same file which defined them. This showed which functions were
  called with the wrong parameters and also significantly reduced the
  size of the class (about 3 KBytes).

- Checked which instance variables are actually being used somewhere
  and which variables are used but always have the same effect because
  their respective values are never ever changed. Added comments to
  this effect to the source code. Out of 133 (!) instance variables only
  8 are practically useless, though :-(

- Identified all the macro constants defined in "listbrowser_priv.h"
  which are not used in any way and commented them out.

- Completely replaced the column sorting function with a different
  merge sort implementation which unlike its precursor does not need
  to post-process the sorted list: it comes out as a standard Exec
  list all by itself. Note that unlike its precursor this new merge
  sort is limited to (2^31)-1 nodes per column.

- Split up the sorting operations into those which involve the sorting
  hook and those which do not, so as to not to perform so many test
  operations which can be avoided to begin with.

- Rewrote the sort category tests for integers and for strings. Instead
  of comparing the integers and then returning -1/0/1 as necessary it is
  perfectly sufficient to just subtract them. For strings which share
  the same prefix but are of different length the comparison operation
  now includes the terminating '\0' character of the shorter string so
  that the different strings will be treated as differently. Previously,
  these strings were treated as identical, which they were not.

- Rewrote get_listbrowser() so that it does not indiscriminately store
  a query value for every single attribute. Also, it does not call
  the CalcPropFactor() function for every single attribute: this is
  apparently only necessary for the LISTBROWSER_VPropTotal,
  LISTBROWSER_VPropTop and LISTBROWSER_VPropVisible tags. Just to
  play it safe, CalcPropFactor() is now also called for the case
  in which the query is passed to the superclass (for which it
  might not really be necessary). All of this saved some 180 bytes
  of code size.

- All these changes should work with V47 of this class.


listbrowser.gadget 47.42 (28.11.2021)

- Replaced the LB_Render.c/TextWidth function with plain old
  boring TextLength() calls. Dialed down the complexity of the
  LB_Render.c/calc_sizes down to 10.8 (used to be 11).

- The sorting function which does not use the SortHook now calls
  plain old boring Stricmp() instead of first checking if both
  strings are of different lengths and picking the minimum of
  both because that's a lot more work than needs to be done in
  the first place. It might actually be significantly faster than
  this used to be before.

- These changes saved 140 bytes of code, yay :-)

- All these changes should work with V47 of this class.


listbrowser.gadget 47.43 (5.12.2021)

- So the column sort function didn't work in descending mode. Turns
  out that the sort order was determined in the sort function and
  not in the comparison function.

  If a sort hook was provided and the list should be sorted
  in descending order, this had a funny side-effect. First the
  list was sorted in descending order and then the list was
  reversed again. A descending sort operation would always come
  out as an ascending sort operation unless the node priorities
  affected the order.

- Reworked the column sort mechanics to respect the requested
  sort order. By some pure chance this allowed the code to
  become a bit shorter.


listbrowser.gadget 47.44 (10.12.2021)

- Moved the macros which were part of classbase.h into LB_Render.c
  where they are used (and only there).

- The 'struct ListColumn' definition is now separate from the
  the 'struct ListBrowserNode'. There is no reason to define
  and declare it within 'struct ListBrowserNode'.

- Merged the separate SetAPen() and SetBPen() calls in
  LB_Render.c to use SetABPenDrMd() instead, and also one
  lone SetAPen()+SetDrMd(). This should actually
  be a bit faster on non-RTG systems. It's also shorter.

- Replaced the use of the SetWrMsk() macro in LB_Render.c with a
  call to the SetWriteMask() function.

- The CreateClass() and DestroyClass() functions in ListBrowser.c
  now handle the case of the FreeClass() call failing, which indicates
  that there are still objects or dependent subclasses attached to
  the listbrowser.gadget.

- Moved the memory pool setup and cleanup into the library init and
  expunge code. Because destroying the class can fail it makes no
  sense to destroy the memory pool anywhere else.

- The library initialization code now bails if Kickstart 3.0 or
  earlier are in use. This is cheaper than eventually crashing
  in the library open/close code instead. It also simplifies
  the cleanup of the libraries opened.

- Reworked the library initialization at open time which takes
  into account that the class may have been left open after
  closing & expunging failed.

- The library close and expunge functions now need to deal with
  the class being still in use and the library usage counter
  being 0. The expunge code will retry removing the class
  prior to taking another crack at unloading the library.

- Removed the SAS/C-specific code which cleared the BSS hunk
  segment. Turns out that this saved 30 bytes of code again
  with no increase of the data/BSS hunk.


listbrowser.gadget 47.45 (16.12.2021)

- Changed the GNUmakefile a little so that it has all the compiler
  and linker options enabled properly and doesn't look like it has
  been copied & pasted from somewhere else.

- More shuffling of the deckchairs to make the code shorter and
  show context where it previously had extra parentheses and
  indentation. Moved block-local variable declarations to the
  beginning of the respective function where this was an option
  and improved readability by not needing an extra block just
  to declare a small number of block-local variables (note: this
  used to be a good idea before 1988 as far as Amiga 'C' compilers
  were concerned, but after that not so much).

- Replaced all the input event checks which tested if the two
  least significant bits of the ie_Qualifier field were set
  with what those two bits actually mean (left and/or right
  shift key are being held).

- If code tests several times in a row whether maybe the left or
  maybe the right shift key is being held down, and that input
  event which indicated so will not change, that test is now only
  done once and a local variable indicates whether in fact one of
  these shift keys is being held down.

- Dropped duplicate code from process_ie() which really
  did the same thing twice.

- If memory is deallocated and it makes sense to do so because the
  data structure from it was deallocated will stick around a while
  longer, that memory pointer is now set to NULL. Where setting
  it to NULL does not help since you're freeing that entire data
  structure anyway no NULL is written to the respective pointer.

- Removed NULL pointer tests prior to calling FreePoolVec() because
  that function already performs the test.

- Rewrote GetListBrowserNodeAttrs() not to store the result of a
  query directly in whatever the TagItem->ti_Data points to, but
  to remember what was to be stored and where, until that is
  used later to actually store it. Easy win: that saved 200 bytes
  of code alone.

- Gave the same treatment to GetLBColumnInfoAttrs() which didn't
  save so much memory but still made the code shorter and more
  readable by excising four local blocks.

- Removed those extra special IsListEmpty() macros from code which
  then dropped into processing the list one node at a time, thereby
  repeating what the IsListEmpty() macro had already tested. One
  test is enough.

- Removed all the Tag values specific to listbrowser.gadget from
  LB_Public.c and used "#include <gadgets/listbrowser.h>" like
  everybody else should.

- SetLBColumnInfoAttrs() no longer allow you to pick a column number
  larger than the maximum permitted with LBCIA_Column.

- SPrintf() now uses varargs parameters like a well-behaved
  function ought to.

- calc_sizes() now protects itself against the column information
  getting corrupted somehow and will stop after all the columns
  present in the 'struct ListBrowserData' have been checked.
  Previously, that testing loop could have run forever.

- Dropped a handful of unused variables which accomplished nothing.

- goactive_listbrowser() now properly checks if the label list
  has been detached. Previously, it did not test both conditions
  which indicate whether the label list is detached on account
  of missing parenthesis.

- ReadLBPrefs() now searches for the public ReAction settings
  SignalSemaphore twice, but only calls ObtainSemaphoreShared()
  once, if necessary.

- If AllocLBColumnInfo() failed to successfully allocate memory
  for the two tables it needed, it would free the first allocation
  but still return a pointer to that freed allocation instead of
  NULL. It now correctly cleans up after itself and indeed returns
  NULL under these circumstances.

- AllocLBColumnInfo() will no longer trigger undefined behaviour
  if accidentally (or intentionally) more than 65535 columns
  are requested.

- new_listbrowser() did not check if it failed to allocate
  memory for the two RastPort copies it made for the object.
  It now does and properly cleans up after itself.

- In set_listbrowser() changed the names of local variables from
  "i" to "total" (LISTBROWSER_Labels), "selected"
  (LISTBROWSER_SelectedNode, LISTBROWSER_EditNode, LISTBROWSER_Selected)
  because it's nice to see what purpose that variable serves.

- In set_listbrowser() the sizes of all columns are now set to 0
  and not just the first 31 (LISTBROWSER_ColumnInfo). Same thing
  for LISTBROWSER_AutoFit, but at least it reset them for all 32
  columns when that number was still 32.

- validate_data() now makes sure that no more than the available
  number of visible columns can be used for rendering. Previously,
  the number of columns set for the display, regardless of how
  many could be used (the number is limited), could be permitted
  to exceed that with unfortunate consequences.

- Moved terminate_extended_column_info() into LB_Public.c, which
  is the only place where it is used.

- Added an overflow check to AllocPoolVec(), just in case some
  wonky allocation size value comes close to tripping it up.

- The maximum number of columns which listbrowser.gadget can
  display per instance is limited by the size of the table
  lbd_ColumnSizes in 'struct ListBrowserData'. This table used
  to hold 32 entries and has now been increased to 96 entries
  by reusing two 16 bit words which were allocated but never
  used in each entry.


listbrowser.gadget 47.46 (16.12.2021)

- In process_ie() the creation of a string gadget could set the
  input event pointer to NULL, which was not caught correctly if
  it happened. Fixed.

- Because there is never any time to address double negatives except
  when you make it, changed the name of the local variable "noedit"
  in in process_ie() to "editing_disabled" which should be more
  appropriate for its purpose.


listbrowser.gadget 47.47 (17.12.2021)

- I broke FreeLBColumnInfo() by being too clever by half with
  pointer type casting. Thanks go to Thomas Klein for finding
  and reporting the problem!


listbrowser.gadget 47.48 (28.12.2021)

- Replaced local UBYTE/BYTE/UWORD/WORD variables and function parameters
  with type int, etc. as needed to save code size.

- Removed all unnecessary integer casts. Also removed all the
  unnecessary integer constant suffixes (U and L).

- Replaced the magic 0x4C constant with RAWKEY_CRSRUP, which is
  what it actually is.

- Changed the manner in which the column information is tracked
  as being extended. Also added safeguards to avoid creating more
  column entries than there are column width information table
  entries.

- The hexadecimal character processing did not handle upper
  case characters correctly in the IRC colour code support
  within the column wrapping functions.

- Removed unnecessary variables and unused data structure members.

- The column width table now contains 96 entries, which used to be
  32. The extra space comes from putting two unused 16 bit words per
  column to good use.


listbrowser.gadget 47.49 (3.1.2022)

- Added comments to structure copy operations which might benefit
  from switching to CopyMem().

- Documented how show_children() and hide_children() might work and
  built test versions which are not recursive. The test code is not
  yet operational.

- Reworked SetListBrowserNodeAttrs() so that all the attributes which
  are of boolean type will be set to either 0 or 1 regardless of what
  each TagItem->ti_Data value says. Previously, the 32 bit integer
  in TagItem->ti_Data would be truncated to 16 bits which once in a
  blue moon might just end up producing a value of 0 while the original
  value was > 65535.

- SetListBrowserNodeAttrs() now checks if the column number is within
  bounds and not negative.

- SetListBrowserNodeAttrs() now makes sure if LBNCA_CopyInteger
  is enabled for the current column that the column will be copied.
  Previously, enabling this feature only worked once, preferably
  before you changed the integer values.

- GetListBrowserNodeAttrs() now checks if the column number is within
  bounds and not negative.

- Both ListBrowserSelectAll() and ListBrowserClearAll() now call
  a common function which sets the respective node attributes instead
  of duplicating all the respective code.

- ShowAllListBrowserChildren(), HideAllListBrowserChildren() and
  FreeListBrowserList() are now shorter and simpler.

- The 'struct ExtColumnInfo' no longer contains a shadow copy of the
  associated 'struct ColumnInfo'. Problem was that this shadow copy
  was only referenced in a handful of places, such as GetLBColumnInfoAttrs(),
  and SetColumnInfoAttrs() and even then inconsistently. Also, most of
  the code was completely unaware of this shadow copy, with the side
  effect of changes going into the 'struct ColumnInfo' table and not
  also into the 'struct ExtColumnInfo' table.

- Both GetLBColumnInfoAttrs() and SetLBColumnInfoAttrs() now check
  if the column number is within bounds and not negative.

- All BOOPSI messages which are built on the stack are now
  set to 0 via memset() to guarantee consistency for otherwise
  unitialized data structures.

- 'struct ListBrowserData' now contains its own local defaults for
  the 'struct ColumnInfo' table. Previously, this was a pointer to
  a two element array which was shared by all instances. What could
  possibly go wrong if code accidentally altered it?

- addnode_listbrowser() could reliably trigger an Enforcer hit,
  followed by undefined behaviour because the list node pointer
  was always NULL which was supposed to point to the list head.
  Fixed.

- Counting the number of columns now always follows the same
  procedure, which involves stopping before the global
  column width table size (in ListBrowserData.lbd_ColumnSizes)
  is exceeded:

      int num_columns;

      for (num_columns = 0 ; num_columns < NUM_ENTRIES(lbd->lbd_ColumnSizes) ; num_columns++)
      {
          if (lbd->lbd_ColumnInfo[num_columns].ci_Width == -1)
              break;
      }

- Memory management via AllocPoolVec()/FreePoolVec() can make use of a specific
  memory pool. Problem is that the global pool is protected by a SignalSemaphore
  but there is no equivalent arbitration mechanism for a custom pool which can
  be set via the LBNA_MemPool tag in AllocListBrowserNode() and which may later
  get changed via SetListBrowserNodeAttrs(). This should never happen, but if
  it does, things will go spectacularly wrong. In the mean time, we're using
  Forbid()/Permit() locking for custom memory pools.

- Added an AllocPoolVec() variant by the name of AllocClearPoolVec()
  which sets the allocated memory to 0. Its use renders some of the
  functions which separately set the allocate memory to 0 more
  readable.

- Added a FreePoolVec() by the name of FreePoolVecUnlocked() which only
  works with a valid pointer (not NULL!) and requires that you lock the
  global memory pool prior to calling it. This is useful for the text
  wrapping code which otherwise would have to call ObtainSemaphore()
  and ReleaseSemaphore() for each node.

- Changed is_column_info_extended() so that it returns a pointer to the
  'struct ColumnPrivate' if one is present, and NULL otherwise. This
  simplifies the code which previously had to extract that pointer.
  The function name is now get_column_info_extended().

- The line wrapping code in "lb_wrap.c" now uses its own data structure
  rather than reusing the standard 'struct Node' because it now has to
  try to remember which memory pool the data structure allocations were
  made from. This is not a good solution which has to account for the
  side-effects of using SetListBrowserNodeAttrs() to change the memory
  pool after these allocations have already been made.

- RemWrapText() is now called FreeWrapText().

- Dropped unused data structure members.

- The number of columns 'lbd_NumColumns' member of 'struct ListBrowserData'
  is now a signed long integer (used to be unsigned). Likewise, its cousin
  'lbn_NumColumns' in 'struct ListBrowserNode' is a signed long integer, too
  (used to be a signed short integer).


listbrowser.gadget 47.50 (5.1.2022)

- Shaved off all the 'if (foo != FALSE)' and 'if (foo == TRUE)' and just let them
  be 'if (foo)', as intended. This also revealed that the
  ListBrowserData.lbd_MinVisible member is not a boolean flag but a number.

- Updated the AutoDocs a bit, adding cautions about custom memory pools and
  replacing OS4-specific parameter types (uint32, I'm looking at you) with
  something more homely.

- The 'LBNA_MemPool' tag is now ignored by SetListBrowserNodeAttrs() and
  only takes effect at AllocListBrowserNode() time. This pushes some of
  the worms back into the can which resulted, possibly as a side-effect,
  from AllocListBrowserNode() calling SetListBrowserNodeAttrs() to
  avoid duplicating initialization code.

- The word wrapping data structure no longer has to haul the memory
  pool pointer around in case it should be crucial.

- The 'struct ListColumn' sadly uses bit fields for flags and integers
  which don't really save a lot of trouble. Still, the 'lc_Justification'
  and 'lc_VertJustify' members don't really need more than 2 bits to
  get stuff done. For some values of stuff, of course :-/

- Because it explains better than comparing node and list pointers
  against NULL or -1, there are now a test function and two special
  constants which say through their respective names what they are
  supposed to be good for.


listbrowser.gadget 47.51 (6.1.2022)

- Setting LISTBROWSER_ColumnInfo now always checks if the column
  information, including the extended column information table,
  has to be rebuilt. This was missing in the previous two
  revisions :-(  Thomas Klein had already reported the problem but
  I first needed to wrap up the changes which went into version
  47.50 before following it up.

- Resetting the column width information now always also resets
  the total cumulative column width variable.


listbrowser.gadget 47.52 (12.1.2022)

- Rolled back the new feature in support of LBNCA_CopyInteger to
  synchronize what the pointer referenced with what value was
  provided. This seems to be the wrong approach as implemented.


listbrowser.gadget 47.53 (24.1.2022)

- Updated the Autodocs to stress that the use of the LBCIA_MemPool
  and LBNA_MemPool is not safe to AmigaOS 2.x and 3.x alike.

- Made sure that both LBCIA_MemPool and LBNA_MemPool will be
  consistently ignored.


listbrowser.gadget 47.54 (17.3.2022)

- Fix sorting when priority is involved


listbrowser.gadget 47.55 (11.4.2022)

- Extract columntitles into a subarea
- Extract column resizers into a subarea
- Extract scrollers into a sub area, but instantiate twice (Hor/Vert)
- Extract the rename string.gadget into a subarea
- Extract the mainarea from input,c.  Note: main ares is not (yet)
  a subarea, but just moving it out into a file of its own


listbrowser.gadget 47.56 (13.4.2022)

- Always select text when going into edit mode
- Don't claim edit if the user excaped out of it
- Fix render glitch when layout is changed (add/remove scrollers etc)
  on the fly
- Fix not accepting scroll from outside if we have no scrollers
- Fix crash when using mousescrolling - bug introduced a few commits ago
- Fix that we should return GMR_VERIFY when editing is done


listbrowser.gadget 47.57 (22.4.2022)

- Fix LISTBROWSER_EditNode not working
- Fix LISTBROWSER_CursorSelect not giving selection if no cursor was set


listbrowser.gadget 47.58 (17.6.2022)

- Fix double clicking not working if editiable is enabled but column is not editable
- Fix double click when persistent seelections
- Fix that rendering could sometimes loose the font
- Fix that the width for text was less than in 3.2.0 and earlier versions of the gadget
- Fix crash when clicking when no list attached


listbrowser.gadget 47.59 (31.7.2022)

- Fix double click was impossible in delayedsecond mode if node already selected
- Inline edit should also respect a specifically set font


listbrowser.gadget 47.60 (19.09.2022)

- Resizer mouse pointer when hovering resizers
- Fix bug where hiding children could case list to not be redrawn correctly


listbrowser.gadget 47.61 (17.10.2022)

- Expand/collapse glyph should not scale with the node height


listbrowser.gadget 47.62 (30.10.2022)

- Fix a hit if there is no ginfo
- Reworked the keyboard interaction code
- Allow drag selecting multiple items


listbrowser.gadget 47.63 (15.11.2022)

- Fix that horizontal scroller were not working
- Fix reselction after changed list worked differently than 3.9 and os 4


listbrowser.gadget 47.64 (02.02.2023)

- Long standing legacy compatibility fix
- Fixed compiler warnings


listbrowser.gadget 47.65 (8.2.2023)

- Revert the sigature of public functions


listbrowser.gadget 47.66 (12.2.2023)

- Fix for column min width and title overwrite
- Fix logic && => ||

----------------------- AmigaOS 3.2.3 project ------------------------

listbrowser.gadget 47.67 (20.06.2023)

- Always set GMORE_SCROLLRASTER
- Fixed: Selected rows were not restored properly after sorting on a
		 multiselect ListBrowser
- Fixed: LBNCA_CopyInteger documentation was missing
- Fixed: Documentention on LISTBROWSER_Striping said it was first
		 available with V53.18, changed to V47.31 (educated guess
		 based on the commit history)

listbrowser.gadget 48.68 (2.1.2024)

- Rework domain method a bit - nominal is still just about 12 chars wide
  Would be better if it looked at contents but then..
- Remove a lot of dead code
- Fix many gfx glitches with Xen mode
- Fix that redraw when repairing damage would not redraw the inline
  string gadget
- Fix splitters not being rerendered after rename is done
- Fix not being able to edit top element
- Prevent editing bottom to draw outside gadget
- Fix not being able to edit top element and prevent editing bottom to draw
  outside gadget
- Fix column resizermousepointer  was extending down into h scroller
- Fix h scroller  looking like it is deselected
- Fix title height not using the real font height
- Fix rename not being picked up by applications

listbrowser.gadget 47.69 (29.3.2024)

- Fixed column title baseline calculation when using GA_TextAttr.
- Fix that sorting was not shown when readonly and sorting enabled

listbrowser.gadget 47.70 (26.4.2024)

- Fixed: it was possible to select read-only items.

listbrowser.gadget 47.71 (2.8.2024)

- Fix a hit from accessing data that may not have been calculated yet
- Fix autowheel
- Remove old pref fetching code

listbrowser.gadget 47.72 (8.8.2024)

- Change how selected nodes are rendered when gadget is not active

listbrowser.gadget 47.73 (14.10.2024)

- Fix a hit when navigating using cursor keys

listbrowser.gadget 47.74 (08.11.2024)

- Further refinement to the way active element is rendered

listbrowser.gadget 47.75 (01.03.2025)

- Fix hit

