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

window.class 46.1 (22.02.02)

- initial release for OS4. Not every v45 feature is
  implemented yet.

window.class 50.1 (5.7.2002)

- bumped the version number to 50.

window.class 50.2 - 50.24

- internal development versions, never released.

window.class 50.25 (6.8.2002)

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

window.class 50.27 (28.8.2002)

- now uses the bitmap sharing functions of Intuition V50 to handle the
  backfill patterns in a more optimized way.

  IMPORTANT NOTE: the class still works with Intuition V40, but if used
  under V50 it *requires* at least intuition.library 50.13!

window.class 50.28 (8.10.2002)

- small adjustment in backfill handling, now REQUIRES Intuition 50.16
  (if used under V50).

window.class 50.29 (13.11.2002)

- now the iconify gadget uses the automatic titlebar gadget positioning
  offered by Intuition V50.

window.class 50.30 (21.02.2003)

- re-implemented auto (de)iconification feature.

- added WA_ToolBox, WA_Hidden, WA_WindowBox, WA_MenuHook to the
  list of supported tags.

window.class 50.31 (09.03.2003)

- implemented WPOS_CENTERWINDOW (actually the same as
  WPOS_CENTERSCREEN).

- fixed WPOS_FULLSCREEN (didn't open the window at the
  right position and size).

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

window.class 50.32 (18.8.2019)

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

- fixed race condition when opening/closing.

- now runs on 68000/68010.

window.class 47.1 (1.9.2019):

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

window.class 47.2 (8.9.2019)

- iconification gadget and busy pointer now always use
  built-in Intuition functionality.

window.class 47.3 (8.9.2019)

- removed dead code

- moved all globals to the library base

window.class 47.4 (9.9.2019)

- In case the window backfill was turned off, the
  window class could crash.

window.class 47.5 (18.9.2019)

- The window class IDCMP handling had a race condition
  that could result in a damaged input message list and
  as a result, the window class may have looped forever.

- As part of another bug, the window input handler could
  have also forgotten to reply some intuition messages,
  thus causing memory holes.

window.class 47.6 (19.9.2019)

- Fixed: IDCMP hook result was always being acted upon,
  even when WINDOW_InterpretIDCMPHook was FALSE.

window.class 47.7 (28.9.2019)

- The backfill hook caused MuForce hits in case the rastport
  to render to was not equipped with a layer.

window.class 47.8 (14.12.2019)

- An incoming delivered IDCMP message was replied too
  early and might have triggered problems in the IDCMP
  hook then.

- If the window was closed as part of a user hook, then
  the code forgot to re-check the validity of the window
  pointer.

window.class 47.9 (19.12.2019)

- Also put up tooltips gadgethelptext for icons not in layout

window.class 47.10 (22.12.2019)

- Fixed window preferences refresh loop. The 47.9 could run into
  an endless refresh due to an error in the loop iteration.

window.class 47.11 (7.1.2020)

- In case the window position is not specified in any particular
  way, the window class does not set the tags for OpenWindowTags()
  either, such that intuition picks the position for it.

window.class 47.12 (26.1.2020)

- There was some confusion concerning how the offset calculation
  for the backfill hook works. This had the result that the pattern
  offset for smart refresh windows of the window class was mismatched
  in case the pattern was refreshed under a hidden part of the window
  if the window was resized. I.e. resizing a smart window trashed
  the obscured parts of the window.

window.class 47.13 (3.4.2020)

- Added a WPOS_ENTIRESCREEN option for the WINDOW_Position tag.

- Now WMHI_VANILLAKEY messages are sent on the downstroke rather than
  the upstroke of the key.

window.class 47.14 (15.6.2020)

- Changed default fallback font to match ReAction Preferences.

window.class 47.15 (15.6.2020)

- Use the new GM_QUERYHOVERED method to implement tooltips. The main
  benefit is that we no longer have potentially dangling pointers to
  gadgets and strings.

window.class 47.16 (7.7.2020)

- Added WINDOW_Qualifier tag from OS4.

window.class 47.17 (13.7.2020)

- Align half-light and half-dark colors with MagicWB

window.class 47.18 (08.9.2020)

- Implement old style tooltips - seems to have never worked in 3.2
  reaction

window.class 47.19 (21.11.2020)

- Changed the way the Workbench setup/cleanup hook is installed and
  removed, to prevent AmiDock from blocking resets of the Workbench
  screen (bug #941).

window.class 47.20 (03.12.2020)

- Fix that tooltips could flicker under some circumstances
- Fix that tooltips  would pop up again too soon
- Fix that tooltips didn't show when a gadget was active

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

window.class 47.21 (12.06.2021)

- Fix half-light and half-dark color calculation to not overrun

window.class 47.22 (9.7.2021)

- Fixed wrong positioning of window when using WPOS_CENTERSCREEN.

window.class 47.23 (11.07.2021)

- Fix that tooltips could show up outside the window

window.class 47.24 (21.07.2021)

- Fix that Iconify didn't work unless the window had a closegadget too

window.class 47.25 (31.07.2021)

- Ensure we emit WMHI_HelpHit whenever it changes

------------------------ AmigaOS 3.2.2 update ------------------------

window.class 47.26 (9.8.2022)

- Fixed the bug that applications were not able to cancel menu
  operations.


window.class 47.27 (13.4.2022)

- Some shuffling of the deckchairs to make this fine ReAction class
  build using the AmigaOS 3.2 header files, if only there weren't
  so many of them included more than twice.

- Minor cleanup work to avoid declaring library base types which
  are not being used (ExecBase, DosLibrary, GfxBase, IntuitionBase).

- No functional changes yet, or at least none are intended...


window.class 47.28 (13.4.2022)

- Cleaned out the header files, added function prototype header
  files as needed. Funny how little of what the previous huge header
  files included was actually needed.


window.class 47.29 (13.4.2022)

- Changed the header files to increase sharing of data structure
  declarations and macros.

- If possible, multiple inclusion of the same local header files is
  now avoided.

- Cut down the number of operating system header files included.
  Where needed, the respective component will #include what it
  needs. But there is no good reason to include everything via
  the local "classbase.h" header file which might just be
  useful somewhere.

- Moved comment text in order to make the source code and
  in particular #include lines, macros and data structure definitions
  easier to access. Scrolling down a few hundred lines just to do
  this is a bit much to ask.

- There is no guarantee whatsoever that the data to be accessed
  through the small data mode A4 register will start exactly where
  the library base passed to the LibInit function begins. Especially
  if the library setup information won't always be written in
  assembly language. Hence, the use of __SAVE_DS__ in the
  startup.c/LibInit function.


window.class 47.30 (13.4.2022)

- Clever code is not always clever code, especially if it's not
  documented how the pieces fit together with the small data model,
  the size of the library base (declared in the only assembly language
  part of window.class, without comment or documentation) and whether
  the A4 register value will in fact refer to the correct data structure
  offset.

  More troubling still, the order of declarations in the
  "classdata.h" header file has to be a perfect match for the corresponding
  definitions and the library base must be the first data structure defined
  in the data segment.

  This code is now a lot less clever than before and will become less
  clever still...


window.class 47.31 (13.4.2022)

- Now free from dependencies on assembly language source code and
  not much larger than it used to be with that code still in it...


window.class 47.32 (16.4.2022)

- Now uses "#include <internal/layout_private.h>" instead of
  redefining these message IDs and data structures locally.

- If possible, we now uses the SAS/C built-in min() and max()
  functions (which yield inline code) instead of the staid
  MIN() and MAX() from <clib/macros.h>.

- Reset the indentation and the layout to make it more consistent,
  improving readability. The plan is not to have the code's
  behaviour change at all.


window.class 47.33 (16.4.2022)

- Rewrote the library and class initialization to be shorter. We
  don't have to do all that NULL pointer testing when closing the
  libraries/gadgets if the code isn't supposed to run on anything
  but Kickstart 3.1 and higher.

- The helper process is now launched as part of the library open
  function, rather than the library init function. This was a bad
  choice, because the library init function is not supposed to
  call Wait() at any time.

- Because workbench.libray may open window.class and perhaps even
  close it, the entire code which was intended to skip shutting
  down the helper process has been removed. The issue which this
  avoids is a deadlock either at library close or at library
  expunge time if it's the Workbench process closing the
  window.class. The helper process would have called a workbench.library
  API function which cannot be made safe. This is a design flaw
  of window.class which is required to implement the AppWindow
  functionality attached to each window.

  This ultimatively means that once window.class has been opened
  successfully, it can never be removed :-(


window.class 47.34 (29.1.2023)

- Ask layout.gadget to send us helphits


window.class 47.35 (11.2.2023)

- Rework the Backfill of several classes. It should now work better. And
  most imporantliy it fixes a potential crash if you move a gadget from
  one window to another


window.class 47.36 (26.2.2023)

- Allow the helper process to be shut down again so the class can be
  expunged. After some soul searching we believe wb will never close
  the library so we can not end in deadlock.


----------------------- AmigaOS 3.2.3 update -------------------------

window.class 47.37 (20.10.2024)

- Fixed broken WMHI_VANILLAKEY handling.

window.class 47.38 (07.1.2025)

- Fix a problem with key activation (incl tab)
