January 20, 2004 - New drop: DEVELOPMENT FOX 1.1.45
|
Nice Anti-aliased fonts are here!
- Rolled in Ivan Markov's Xft2 patch (Thanks Ivan!). Had to change stuff around
a bit; if I broke it, don't blame Ivan please!).
Xft2 requires freetype2 as well as fontconfig and Xft2 to be installed;
it needs to be specifically enabled at this time by passing the option
--with-xft=yes to configure. Saying yes means Xft2 will be enabled if the
header files are present. If Xft2 is not in your version of XFree, then we
can't turn it on!
The initialization of the Xft2 library is at this time extraordinarily slow;
(but as best as I can tell, its not my fault!). Still, this is something
that needs tracking down some time.
- Updated VC++, Borland C++ files based on feedbacks from the mailing list.
- Fixed a few build issues, some important warnings (possible hazards on
other systems) fixed.
- Added alternative modal error, warning, question, and information
dialog box routines; these will come in handy if there's no owner window.
- Also added PLACEMENT_OWNER flag to the error (etc!) dialog box routines
so it comes up centered on the owner window.
January 18, 2004 - New drop: DEVELOPMENT FOX 1.1.44
|
A number of small updated and gotcha's:
- Added VC++ subproject for wizard demo program.
- Fixed VC++ subprojects shutterbug and pathfinder were not building.
- FXSplitter now enforces minimum size on children during layout. Previously
it was only enforcing this during interactive partition resizing.
- Changed the way cursor is erased in FXText and FXTextField. On laptops running
Windows XP with ClearType enabled, the text was not looking good. Thanks to
Bill Baxter for suggestions on how to fix this.
- Fixed out-of memory write problem in FXObjectList.
- Fixed some obscure semantics in FXString self assignment.
- Fixed similar self-assignment issue in FXObjectList.
- Rolled some old code into FXDCPrint.
Updated Borland C++ makefiles; added Borland C++ makefiles for shutterbug.
- Added UNIX man-page for shutterbug.
January 14, 2004 - New drop: DEVELOPMENT FOX 1.1.43
|
Its been a while, but here it is:
- Added alpha blended cursors on Windows and on X11 (XFree >= 4.3 is needed).
On older UNIX systems, we now threshold the color cursors down to black and white.
The internal, application-visible representation is RGBA, just like all the other
images; you can easily create a cursor out of a small image in any file
format. Thanks for Niall Douglas for some of the code.
- FXCURCursor can now build cursor from any depth reswrapped ICO or CUR file;
this is very handy because you can design your cursors using VC++ and they will
still work even on X11.
- Added line-weight and color options to ShutterBug. Added override redirect flag so
it stays on current desktop under Linux. Also added ability to hide ShutterBug
while taking a snapshot (thus, the entire screen is uncluttered even by ShutterBug
itself), and added special full-screen size mode.
- Possible race in runWhileEvents(), runModalWhileEvents() fixed.
- FXObjectList NULL's out grown array. This is needed to prevent problems when
deleting partially filled lists of objects.
- Newly reimplemented XPM file reader can now handle up to 8 characters/pixel.
- Tabbing into FXSpinner, FXRealSpinner makes focus land on text field only.
- Added message ID's for getting/setting tool tip and help strings on some
controls via messages. These can be used in GUI-Updates so that the tooltip,
for example, may be changed as a result of updating the widget.
Updating via messages is handy as we then don't need to know the type of
widget being updated.
- Added support in FXFont for additional encodings (X11). Now russion "microsoft-cp1251"
is supported.
- Added new parser in FXFont to parse human-readable string for font description;
this new one should now be used for registry font settings. The old fxparsefontdesc()
and fxunparsefontdesc() should be considered deprecated.
Another benefit of the new method is that there is syntax to read the font-foundry;
we can now tell adobe-courier and bitstream-courier apart, for example.
- FXFontSelector panel has added support for additional encodings.
- Changed API of fxsaveICO and FXloadICO slightly so they can be used for .CUR
files also.
- Patch from Brian Hook which adjusts FXPopup menus to stay on the currently
active screen (if there are more than 1).
- Fixed issue with window-stacking under Windows.
- Fixed small booboo in FXScrollPane.
January 13, 2004 - New drop: STABLE FOX 1.0.49
|
New in this release:
- Fixed issue with window-stacking under Windows.
November 20, 2003 - New drop: DEVELOPMENT FOX 1.1.42
|
New in this release:
- Added new widget, FXScrollPane, which can be used for large scrolling
popup menus.
- Added new ARROW_AUTO capability to FXArrowButton; this is in support for
the use of FXArrowButton inside FXScrollPane.
- Added new widget, FXSpring, which can be used for fixed-proportion layout
when used inside FXHorizontalFrame or FXVerticalFrame. FXSpring widgets
can be given different lengths, and when piled side by side inside FXHorizontalFrame
the different springs stretch or shrink proportional to their given lengths.
Thus, you can subdivide areas into 60:40 splits for example.
Thanks to Amanda Ross for this wonderful suggestion.
- Added new example program ratio to show off the use of FXSpring for
fixed-proportion layouts.
- Greatly improved FXHeader control which now allows unlimited number of
header items. Various justify options are now available for the text and
icon in each item. The header items also support multi-line text.
Prior to this release, header controls were scrolled as a whole; now, the items
themselves are moved. This permits very wide (greater than 32,000 pixels) contents
without necessitating the FXHeader control itself to be this wide (which is
problematic because of the underlying window coordinate system limitations).
This move has been made in anticipation of using the FXHeader control in FXTable.
- Updated FXIconList and FXFoldingList for new header control functionality.
- Added hand (DEF_HAND_CURSOR) cursor to FXApp.
- Fixed subtle layout bug in FXPopup with uniform packing option.
- Fixed potential buffer overrun bug in FXFileDict. Depending on your compiler's
stack frame layout, it may also have prevented some icon bindings from showing up.
The bug fix was also back-ported to the
STABLE version FOX 1.0.48.
- FXStatusLine now only shows help from controls in the parent window or sub-
dialogs of the parent window containing the status line.
- Fixed some minor bugs in FXRealSpinner.
October 30, 2003 - New drop: DEVELOPMENT FOX 1.1.41
|
New in this release:
- Fixed clipboard and primary selection issues for FOX receiving
clipboard data or primary selection data from GNOME applications;
[clipboard and primary selection from KDE applications worked fine].
- Fixed some compiler warnings for 64-bit Linux on AMD64.
- Fixed FXASSERT in FXHash table; also, fixed bookkeeping issue in FXHash
which caused table growing/shrinking to happen at the wrong times.
October 23, 2003 - New drop: DEVELOPMENT FOX 1.1.40
|
New in this release:
- Added attach() API to FXWindow; this allows a foreign window to be
swallowed into the FOX widget tree.
- A new FLAG_OWNED is added to FXWindow to determine if the window handle
is owned by FXWindow or whether it belongs to a foreign window; various
API's have been fixed accordingly.
- Added new class, FXHash, which maps pointers to pointers; its primary
purpose is to map window handles to FOX widgets; on X11, we used XFindContext()
for this in the past, and we used GetWindowLong() on Windows. Due to the
introduction of attach() we can no longer use GetWindowLong() on Windows
and since FXHash is much faster than XFindContext() we now use FXHash on
both platforms.
- Fixed bug in FXObjectList reported by Dimitris.
October 20, 2003 - New drop: DEVELOPMENT FOX 1.1.39
|
New in this release:
- FXHeader has been vastly updated; each header item now supports customizable
layout of icon and label: relative placement of icon and label, as well as
justification inside the cell. Also, labels inside FXHeaderItem may now be
multi-line.
- Corrected some little bugs with FXTable; in the near future, FXTable will
be overhauled, and will use the updated header control.
- Fixed some minor warnings for AMD Athlon-64 compile of FOX.
- Fixed some template instantiation issues in FXElement.h
- FXScrollWindow now observes more layout options for its content window;
first, LAYOUT_FIX_WIDTH and LAYOUT_FIX_HEIGHT are now observed at all times;
the options LAYOUT_LEFT, LAYOUT_RIGHT, LAYOUT_CENTER_X, LAYOUT_TOP, LAYOUT_BOTTOM,
LAYOUT_CENTER_Y, LAYOUT_FILL_X and LAYOUT_FILL_Y are observed if the content window
is smaller than the visible viewport of the FXScrollWindow.
- The member data content_w, content_h have been removed from FXScrollArea;
these turned out to be unnecessary in all cases, since the information
contained in them wasn't very useful.
- Fixed some minor issues with sorting in FXFoldingList; added sortItems()
API which sorts ALL items, not just items at root level.
- Fixed small problem in FXFile owner() [UNIX only]. When compiled with
--enable-threadsafe, it was returning a bogus value.
- Fixed some minor issues in FXUndoList; first, killed some complaints
reported by Borland C++; also, some minor problems accessing the redoName.
- Did some minor speedup tricks, also killing some pointer underflow
messages reporting by some debuggers (this was not a bug, as no data
was referenced; however some debuggers flagged this).
- Fixed issue with FXStream buffer pointers; some debuggers were
flagging pointer overflow when FXMemoryStream called FXStream::open() with
"unlimited" buffer [we use unlimited buffer for example in reswrapped
icon reading where we know the reader to stop at the end of the icon
data]. When the buffer size is set to ULONG_MAX, the end-pointer in
FXStream is now set to the largest representable pointer value; note
that this value will be compared but never referenced when used in
FXMemoryStream.
- FXMDIChild sets target and selector to NULL just after SEL_CLOSE was
issued from the close() API to prevent any further events:- its target may
have been deleted in the SEL_CLOSE callback. Similar logic applies to
FXTopWindow's close() logic.
- Fixed one memory buglet in glviewer test program.
- Fixed small problem in FXApp peekEvent(); it now returns TRUE whenever
getNextEvent can be called productively. Previously, peekEvent() returned
FALSE even though timers were overdue or chores had been set.
- Renamed FXApp API runWhileEvents() to runModalWhileEvents; added non-modal
version runWhileEvents().
- Added checking for maximum points in FXDCWindow polygon drawing functions
under Windows.
- Fixed bug in FXObjectList, forgot to multiply by sizeof(FXObject*).
- Removed unused declaration from FXText.
October 8, 2003 - New drop: DEVELOPMENT FOX 1.1.38
|
New in this release:
- Harmonized parameter-order of FXMEMDUP() with FXMALLOC() and co.
- Added undo-grouping facility to FXUndoList. In a nutshell, you can
often break down undo/redo capability into lots of little undo/redo activities,
which must be performed as a unit. The new undo extension now allows for this
using a FXCommandGroup. FXCommandGroup may be subclassed, although you
typically only overload undoName() and redoName(). FXUndoList sports new
API's begin() and end() to bracket a set of undo-commands which need to
be executed in unison. These can be arbitrarily nested.
Also new in the undo-system is that FXCommand now derives from FXObject,
meaning that it can both send and receive messages. This is cool because
it allows FXCommand subclasses to be directly interfaced to other objects,
(including widgets!) via the normal message system. The undo merge got
dropped because I'm not sure the mechanism implemented earlier is satisfactory
at this point.
- Added Shift-Delete binding for cut-to-clipboard in FXText and FXTextField.
- Fixed memory leaks (mostly icons) in most sample programs.
- Changed internal timer implementation on Windows to allow for programs
running longer than 24.85 days; the old implemtation worked with 32 integers
and counting in milliseconds caused a wrap-around in 24.85 days, causing
possible problems in FOX long-running programs.
- Blocked assignment and copy constructor in FXVisual.
- Changed some more functions for basic types in FXElement.h
- Fixed bug in FXObjectList and removed superfluous buffer clearing (it
gets overwritten immediately).
- Fixed minor bug in FXString.
September 24, 2003 - New drop: DEVELOPMENT FOX 1.1.37
|
New in this release:
- A new subdirectory started for plotting and charting widgets (libCHART).
- Fixed serious bug in FXTreeList, FXFolding list when deleting items;
first, references were made to deleted items. Second, while in the callback
the item was in an inconsistent state.
- Text now has focus when A.d.i.e. starts up.
- FXObjectList API's added:- can append, insert, remove multiple items now.
Also has new, more efficient implementation.
- FXDLL now uses LoadLibraryEx(dllname,NULL,LOAD_WITH_ALTERED_SEARCH_PATH)
under WIN32; this finds sub-DLL's in the same path as the master DLL when loading
DLL's which themselves load DLL's.
- New API dupElms() added in FXElement.
- Added texture drawing test mode in dctest sample application.
- Updated VC++ for libCHART; DLL building still gives trouble, however...
September 17, 2003 - New drop: DEVELOPMENT FOX 1.1.36
|
In this release:
- FXTreeList, FXFoldingList API's clearItems(), removeItem() and removeItems()
now generate no spurious callbacks:- previously, multiple SEL_CHANGED callbacks
were issued while deleting multiple items; now, only a single SEL_CHANGED
callback will be generated, at the end of the removal.
Also, when deleting items, no reference is being made anymore to deleted item's
icons. This caused problems in some cases where FXTreeList's destructor was
being called AFTER the icons of the items were already deleted.
- FXTreeItem, FXFoldingItem had added API's, isParentOf() and isChildOf() to test
parent/child relationship between items.
- FXUndoList's FXCommand has new added API, merge(), which allows undo-record
merging. Undo records may be merged if (a) merging is allowed, (b) the merge
would not span the marked point of the undo-list, and (c) when the merge()
function of FXCommand returns TRUE; otherwise, a separate undo record will be added.
Also, FXUndoList maintains a flag which indicates whether a command is being
executed. This may be examined during the execution of an FXCommand to determine
if it is a user-initiated or undo-initiated action. Only in user-initiated
actions do new undo records need to be added.
- FXSpinner, FXRealSpinned have added get/set methods to specify the number
of columns in the text field.
- FXMDIChild's close window logic has been finalized; call FXMDIChild's close()
member function to close the MDI child window. This will generate one final
callback of type SEL_CLOSE to FXMDIChild's target, after which the FXMDIChild
will self-destruct.
- FXMDIClient's closeDocument() and closeAllDocuments() API's have been removed;
instead, we now have more general API's forallWindows(), forallDocuments(), and
forallDocWindows(). The API forallWindows() sends a message to all MDI child
windows; forallDocuments() sends one message one window of a group of windows
sharing the same document. Finally, forallDocWindows() sends a message to all
windows of the given document. All these API's stop routing messages at the
first unhandled message.
- FXMDIChild now forwards messages first to its contentWindow(), then to its
target (typically, the "document" in a multiple document interface).
- Fixed FXICOIcon and FXICOImage to handle off-spec icons; according to
the official documents, ".ico" icons should be 16x16, 24x24, 32x32, 48x48 or
64x64 pixels. FOX now handles arbitrary sizes.
- Fixed bug in FXFileStream's position() API:- the file position was not
being corrected for the bytes already buffered, causing file-position and
stream position to get out of sync.
- FXPopup can now take taskbar into account under MS-Windows when popping
up.
- FXProgressDialog forces repaint when label is being updated; frequently,
not only the bar but also the label are being changed while operation is
in progress. Updating the label previously required some explicit calls to
repaint() and flush().
- Buffer overrun testing added to FXXPMIcon/FXXPMImage input routines.
- New function, fxsavePS(), added to allow saving of image data to postscript
image file. Both color and grayscale images are supported, as are some paper
placement options.
- New syntax-coloring engine is being implemented in A.d.i.e. Editor; this
work is still in progress, the patterns are currently hardwired for testing
purposes, until a new GUI is in place. It is recommended people continue
to use the stable version of A.d.i.e. in the FOX 1.0 release for editing
tasks.
August 25, 2003 - New drop: DEVELOPMENT FOX 1.1.35
|
New in this release:
- Added FXPPMImage and FXPPMIcon for Portable Pixmap format support.
- FXColorWheel now supports mouse wheel for hue control.
- Fixed bug in FXSeparator drawing when non-zero padding was passed.
- Fixed introduced bug in FXGIFCursor.
- Added SCROLLBAR_WHEELJUMP option to FXScrollBar; when SCROLLBAR_WHEELJUMP option
is passed, moving the mouse wheel inside the FXScrollBar will jump scroll instead
of performing smooth scrolling. The jump-scrolling mode is usefull when scrolling
complicated contents which are difficult to redraw quickly.
- When passing the option SCROLLERS_DONT_TRACK to FXScrollArea, the FXScrollArea
will automatically enable the SCROLLBAR_WHEELJUMP option for the scroll bars.
- When installing FOX 1.x.y, it will now install the header files into a directory
<prefix>/include/fox-1.x, and install the library into
<prefix>/lib/libFOX-1.x.a; this will make it easy for
the new version and the old version of FOX to coexist on one system.
- Updated Borland C++ and Digital Mars C++ Makefiles.
August 19, 2003 - New drop: DEVELOPMENT FOX 1.1.34
|
Improvements:
- Fixed various list widgets so changing icons in items does not incur
recalc() when icon stays the same.
- Added Bill Baxter's FXRealSpinner class; replaced dial with up/down
buttons (couldn't make this work nicely). Changed internal logic so as
to work in a more user friendly way (keeps nice numbers, rolling mouse
up and down returns to same value, and so on).
- Now all "artwork" exists outside of the source code; however a
pre-reswrapped icons.h and icons.cpp is distributed.
- FXSpinner increments/decrements using mouse wheel.
- FXUndoList maintains counter of number of undo/redo records; you can
connect text fields to these counters for display in the GUI.
- Moved fxmalloc() and co into FXObject.cpp from fxutils.cpp; dynamic
loading of FOX into FXRuby
on Mac OS-X needs this.
- Added list of standard sizes to Shutterbug; makes it much easier
to snapshot standard icon sizes directly from the screen.
August 1, 2003 - New drop: DEVELOPMENT FOX 1.1.33
|
More great improvements:
- Added new image type support, XBM (X Bitmap). X bitmaps are often used
for black and white icons or cursors, and these new image classes allow for
convenient manipulation of these images.
- Fixed bug in FXString and FXSettings; actually, there were two bugs:
first, when strings contained quoted characters it was reading a bit past
the last character. Next, the conversion of hex to a value was wrong
due to a precedence problem.
- Added extra parameter to FXImage::scale(). This is the quality of the
rescaling. Current values may be 1 for the old algorithm and 0 for the new,
very fast dumb-sampling algorithm. The sampling is ugly, but it sure is
fast. We sure intend to have additional scaling algorithms.
- FXText now follows similar GUI update blocking as FXTextField: when
the focus is on it, it does not update.
- Some additional icons has been made available as GIF files. They
are now reswrapped in the process of building the library instead of
being pasted in the source code; this makes it easier to replace icons
work with other ones.
July 22, 2003 - New drop: DEVELOPMENT FOX 1.1.32
|
More great improvements:
- New sample application, ShutterBug which is a simple screen
snapshot utility; ShutterBug can lasso any arbitrary area on the screen and
dump the image to any of the supported file formats.
- FXImage no longer creates its own pixel array in restore(), unless there
was no a-priori pixel array; in other words, it can read back pixels from
the server-side representation straight into the pixel buffer passed on the
constructor.
- FXDirBox now uses FXFileDict, enabling it to display custom icons.
- Updated FXDirSelector; now that FXDirList shows drive names properly under
windows, the FXDriveBox is no longer needed. Also, FXDirList and FXDirBox
share the FXFileDict in FXDirSelector.
- The radio-behavior has been dropped from FXGroupBox;
it is no longer desired, for several reasons: first, we have a much better
mechanism to keep FXRadioButtons in sync using the GUI update mechanism or
with FXDataTargets; second, physical layout has nothing to do with logical
behavior, and FXGroupBox is now a purely decorative layout manager, and
third, the radio-behaviour in FXGroupBox was causing problems when interfacing
FXRadioButtons with other code due to the spurious extra messages due to the
radio-behaviour enforcement.
- Removed SEL_UNCHECK_OTHER and SEL_UNCHECK_RADIO message types; this is due to
the removal of the old FXGroupBox behaviour.
- FXTextField now understands control-arrow cursor movement; control-arrow
moves the cursor by one whole word. To make this more useful, FXTextField
also has new setDelimiters() and getDelimiters() API's with which the user
can indicate the set of characters which are interpreted as word delimiters.
- FXText's setDelimiters() and getDelimiters() API's have been changed to
match those of FXTextField. This makes the class FXCharset obsolete.
- Fixed problem in FXSlider; FXSlider was not drawing correctly when padding
was non-zero; also, the slider had is now drawn in the GUI base color rather
than back color; this allows the user to set the back color to a different
value from base color.
- Fixed FXTreeList's dotted line drawing under Windows: FILL_STIPPLED style
does not work, but FILL_OPAQUESTIPPLED fortunately does.
- New features added to reswrap:
- Reswrap now understands a new option, -n namespace which causes
it to generate a C++ namespace scope around the icon-definitions.
- Another new option, -p prefix will place the string prefix
in front of every symbol generated from the icon filename.
- To force an alternate resource name, you can now use -r resourcename.
If this option is not passed, the resource name is generated from the file name
by dropping the extension and replacing the period (".") by an underscore.
- FXImageView now offers options to control the placement of the image when the
viewport is larger than the image; you can align it in various ways using options
IMAGEVIEW_LEFT, IMAGEVIEW_RIGHT, and so on. The default alignment is now
centered in X and Y, so you may have to force IMAGEVIEW_LEFT|IMAGEVIEW_TOP options
to keep the current image placement.
- FXGLVisual has gained an API, supported() for checking for OpenGL support. It is
primarily useful for UNIX/X11 remote displays. The new API returns the lesser
of the library's OpenGL version and the remote server's version. Programs should
try to limit OpenGL calls to those not exceeding this support level.
- Most icons are now generated by reswrap. Also, many icons have been
updated to more modern-looking icons.
- Fixed bug in FXGZStream; forgot to flush buffer at the end.
- Fixed a number of bugs in FXBZStream; BZ2_bzRead() returned BZ_STREAM_END
and not BZ_OK when at end of stream, causing tail end of file to be left unread.
- In FXTopWindow, absence of DECOR_SHRINKABLE or DECOR_STRETCHABLE should now
work under Windows. If a window has DECOR_STRETCHABLE but not DECOR_SHRINKABLE,
then it can not be resized below its default size; likewise, if it has DECOR_SHRINKABLE
but no DECOR_STRETCHABLE, it can not be resized larger than the default size.
- The undocumented x86-only API fxgetticks() now calls the function
QueryPerformanceCounter() under Windows; presumably, this is implemented in terms of
the RDTSC instruction. The API fxgetticks(), if it exists, allows you to read back
the CPU's time-stamp counter register, which increments every clock tick. It enables
very fine-tuned time measurements.
July 8, 2003 - New drop: DEVELOPMENT FOX 1.1.31
|
Great improvements in this release:
- The new FXStream class is finally here! This represents another one of
the major milestones toward FOX 1.2!
- Much faster than the old FXStream, especially on small items, where the
difference is quite dramatic.
- Now provides byte-swapping capability during writing as well as reading.
- Provides buffered operation, permitting more easy subclassing.
- User-specifyable buffer size allows more tuning of buffering to datasets
of interest to user.
- Now able to position pointer in stream from current- or end-position as
well as start-position.
- Updated FXFileStream. FXFileStream no longer works over buffered I/O
but direct system calls (as FXStream already provides its own buffering!).
- Updated FXGZStream which provides file I/O using GNU ZIP style compression.
- Updated FXBZStream; this one uses BZIP2 style compression.
- Fixed bug in vsscanf() for integer overflow handling (only affects systems which
don't provide their own vsscanf()) [Thank you SGI MIPS Pro C++].
- Fixed FXMDIXXXButton to properly observe frame style while being pressed.
- Regressed FXRootWindow size determination to old method.
- Fixed drawing of accelerator and underscore in FXMenuCommand, FXMenuCheck,
and FXMenuRadio when drawn grayed out.
- Increased buffer size for fxmessage(), fxerror(), fxwarning(), fxtrace(),
and fxassert() because it was too small for some people. The new size is
compile-time configurable, preprocessor constant MAXMESSAGESIZE, which defaults
to 1024 if not passed explicitly.
- Updated FXXXXIcon and FXXXXImage classes for changed argument order in new
FXMemoryStream class.
- Some minor tweaks in new fxsaveGIF() function.
June 27, 2003 - New drop: DEVELOPMENT FOX 1.1.30
|
New stuff for this release:
- New widget, FXFoldingList has been added. FXFoldingList is a tree list with
captions; each item may have a number of substrings (as FXIconList, separated by
tabs). A header control determines the sizes of each column.
- Fixed buglet on 64-bit machines:- FXID should be 64-bit on 64-bit
machines.
- Made moveContents() a protected API. There has been some confusion in
the past with programs invoking moveContents() instead of setPosition().
The correct way is to call setPosition() to scroll. This will verify the
input, then in its turn invoke moveContents() to adjust the insides of
a FXScrollArea.
- Changed FXColorWell's drop behavior. Previously, dragging a color
over a FXColorWell caused the FXColorWell to emit SEL_CHANGED messages;
if this leads to a drop, no subsequent SEL_COMMAND followed, causing
programs which only trapped SEL_COMMAND to behave oddly; now the FXColorWell
emits a SEL_COMMAND when the color is dropped, and the color does not
change while dragging over it.
- Fixed some minor issues in FXIconList. Icon didn't properly disappear
when 2nd column was made very small.
- Fixed minor type in FXMat3d.
- Changed shape of arrow and reverse arrow cursor slightly under X11.
- FXPopup, FXTopWindow, FXToolTip position-adjustment code now no longer
assumes root window starts at 0,0. This means root window may now extend
in all directions. This is in support of multi-head configurations.
June 23, 2003 - New drop: DEVELOPMENT FOX 1.1.29
|
Truely massive numbers of changes this time! Some long-standing wishes
have finally been implemented:
- New API's to FXImage: xshear() and yshear() perform a
shear operation on the image (turning it into a parallelogram). The
area outside the image is filled with an optional background color (the
default being transparent).
- FXImage now always has an alpha channel; this means its now much more
convenient to use, as FXImage can now be treated as a rectangular array
of FXColor. Treating each pixel as a single 32bit word is much faster;
also, no runtime test is needed to test for alpha channel presence.
- The image input and output routines have been upgraded to support
alpha channel also:
- BMP loader now supports 1,4,8,16,24, and 32bpp with alpha channel.
- BMP writer saves to 24 or 32 bit depending on image opacity:- it saves
as 24bpp whenever image is fully opaque.
- BMP loader was incorrectly yielding darker colors when loading 16bpp
BMP files; this has now been corrected.
- ICO loader now supports WindowsXP-style 32bpp icons, which support an
alpha channel.
- ICO writer now saves 24bpp with one bit alpha, or 32bpp with true
alpha channel.
- PCX loader totally revamped; now supports 1, 4, 8, and 24bpp; it
does not support 4 planes of 1bit due to lack of documentation on what
this means.
- TARGA image loader now supports 32, 24, 16, and 8bpp, as well as grey
scale images.
- TARGA loader was incorrectly loading darker colors in 16bpp mode; this
was due to lack of rounding. This problem has now been corrected.
- fxezquantize() bugs have been fixed, and has been speeded up.
- GIF loader now returns proper alpha channel for alpha-color in the
GIF.
- GIF writer may now uses Lempel-Ziv Welch compression in the USA. However,
since FOX is also used internationally, by default the compression is still
disabled. If you compile FOX inside the USA, you may pass the -DUSA flag
to enable GIF compression.
- GIF writer now writes graphic control block when the image has
transparent areas.
- XPM loader now translates "None" color into proper alpha channel.
- XPM writer now translates transparent pixel to "None" when saving to
xpm file.
- FXGLViewer's readPixels() API now yields rectangular array of FXColors;
also, this array is right-side up in the sense that it may be
directly passed to the image output routines.
- Fixed a few remaining 64bit issues for RedHat/Itanium port of FOX.
June 23, 2003 - New drop: STABLE FOX 1.0.42
|
Fixes for 64-bit compiles:
- Added FXival and FXuval definitions from the DEVELOPMENT
version; these integer types are integers big enough to hold a pointer.
When casting from int to void* or vice-versa, do so via
FXival or FXuval to ensure numbers are properly sign-extended
(or zero-extended) on 64-bit machines.
June 6, 2003 - New drop: STABLE FOX 1.0.41
|
New stuff in the stable release.
- FXFileDict now has TIFF support when compiler flag ALL_IMAGE_FORMATS is passed.
- Registry write problem fixed:- deleted registry keys were not being
removed from MS-Windows Registry Database in some cases.
- Fixed problem in FXSlider: onLeftButtonRelease handler was sending
SEL_LEFTBUTTONPRESS message instead of SEL_LEFTBUTTONRELEASE.
- Fixed small problem in FXWindow::create(). Was not passing in the
right WS_CLIPSIBLINGS|WS_CLIPCHILDREN flags (but there were no consequences
of this problem as flags we're being set back on in FXDCWindow).
- Fixed bug in FXGLShape: material[1] was not set properly.
- Fixed problem in FXSplitter: onLeftButtonRelease handler was sending
SEL_LEFTBUTTONPRESS message instead of SEL_LEFTBUTTONRELEASE.
- Fixed problem in FXTable: updateRange issued wrong error message.
June 5, 2003 - New drop: DEVELOPMENT FOX 1.1.28
|
New stuff in the development release.
- Updated reswrap. The old, unused PPM mode has been dropped. New
features have been added: it is now possible to reswrap text, for
example to embed long text into the executable; reswrap automatically
escapes control characters. You can use the ASCII mode for text; it
is also possible to reswrap all input to the form "\xff" which is more
appropriate for binary data; this mode yields slightly more compact
text representation of the image than the normal hexadecimal mode.
A new option can cause reswrap to keep the file extension in the
symbol; this way it is instantly clear whether an image is a GIF or BMP,
for example. The manual page of reswrap has been updated also.
- Fixed little buglet which caused the GUI update to skip one
widget in its cycle.
- Split off common block of code in FXMetaClass into separate
function to eliminate redundancy.
- Fixed MDI child drag-rectangle painting problem; occasionally
the drag-rectangle got clobbered and this caused fragments of the
drag-rectangle to be left behind.
- Fixed focus problem with MDI child. In case the content window
of an MDI child was not focusable, the MDI child window didn't become
active.
- Also, somewhat related, the MDI child was only activated
when it received a SEL_FOCUSIN message. This prevented the MDI
child from becoming active when the window containing it didn't
have the real keyboard focus from the window manager.
- The FXMDIWindowButton now takes a pointer to the window menu
(usually FXMDIMenu); previously, FXMDIChild forced its window menu
to the FXMDIWindowButton in the menubar; this was an unnecessary
complication as we can simply share the window menu between all
instances of FXMDIWindowButton's. Note that the application is
responsible for properly disposing of the window menu when it is
destroyed.
- Added setSplit() and getSpit() API's to FXSplitter; previously
the sizes of the subpanels were set by directly changing the child
window's size; this was kind of hard to explain.
- Added ID_SETICONVALUE and ID_GETICONVALUE messages. Using these
messages, callback functions can change or obtain the icon from the
sending widget without having to know the type of widget which
invoked the callback; thus, it works basically like ID_SETINTVALUE
and ID_GETINTVALUE.
- Replaced old vector classes with new ones. Besides now being able
to access components by x, y, z instead of only indexing, they also
sport a number of additional useful API's.
- Added a 3x3 matrix class, which can be used for 3x3 homogeneous
transformations or regular 3x3 matrix work.
- Added a 2-vector class analoguous to the 3-vector and 4-vector
classes; both single and double-precision versions are supplied.
- Updated quaternion classes, also follows new nomenclature.
- Fixed some minor bug in quaternion class member function.
- Changed various math functions inside FOX to be able to take advantage
of single precision transcendental functions which are now part of the C99
standard math library; added macros for when no C99 standard functions are
available. The single precision functions are usually faster, possibly
substantially faster for some architectures.
- Fixed trouble with FXAccelTable; releasing, then adding back
entries resulted in badly filled hash table. The new implementation
will be less sensitive to this: first, it resizes sooner, i.e. the
allowable load factor has been reduced; second, as entries are removed
the table will now shrink, and in the process the previously
occupied slots will now be marked as unused. Finally, as an entry
is removed an attempt is made to determine if its the last element
on a collision chain, and if so it will be flagged as an unused
slot instead of a previously occupied slot.
- Fixed problem under WIN32 with FXVisual returning wrong depth
of the display; also, was confusing depth (significant bits/pixel)
and packing (padding bytes which may be in the display buffer to
have a nice power of two bytes/pixel).
May 12, 2003 - New drop: DEVELOPMENT FOX 1.1.27
|
New stuff in the development release.
- Added support for opaque dragging and resizing of FXMDIChild
windows; pass MDI_TRACKING flag if desired.
- Fixed WIN32 registry write-back problem in FXRegistry: deleted
sections were not being deleted from native WIN32 registry.
- Fixed problem with fxloadGIF(): when loading back an image
previously written by fxsaveGIF(), the number of bytes read in
was one byte short. This causes FXStream to get out of sync
when the image is followed by other data.
- Fixed problem with fxsaveGIF() and fxsaveXPM(). Adjusted
XPM input/output so that when loading from FXStream, as many
bytes are being loaded as were saved (provided fxsaveXPM() is
used to do the saving!).
- Fixed FXShutter to tolerate a zero-value for animspeed; this
will effectively disable animation of FXShutter closing and
opening.
- Fixed FXMDIChild to make animation proceed smoother; thanks to
Thomas Friedrichsmeier for this patch.
- Fixed problem with closing windows: SEL_CLOSE is now blocked
when closing a window on the bottom of a modal window stack.
Basically, close button now behaves similar to buttons inside
the owner window: it beeps and nothing happens.
May 2, 2003 - New drop: STABLE FOX 1.0.40
|
Bugs fixed in the stable release.
- Added support for thread-safe build (using POSIX thread-safe
functions like readdir_r(), getpwuid_r(), and so on).
Enabled by passing -DFOX_THREAD_SAFE=1 on the command line. Using
the thread-safe library calls ensures that
the GUI thread never interferes with the worker threads if the worker
threads are making certain kinds of library calls (of course, you might
want to ensure the worker threads also call the thread-safe API's so
that they won't interfere with each other!).
- Thread-safe library call support has gone through a few iterations,
and at this time has been checked on IRIX, SUN, HP/UX (PA-RISC, IPF),
DEC, and of course Linux. Do not use this feature in any previous
version than 1.0.40!
- Fixed problem with multple screens in FXVisual class.
- Added select all (Ctrl-A) and delete file (DEL)
accelerators to file selector.
- Fixed a few minor issues w.r.t. checking for files, device special
files, and directories; you can now pick device special files in
the file selector.
- Fixed minor issue in FXTreeList drawing boxes.
- Could not search for filenames with spaces in FXTreeList.
- Fixed issue with GLVisual and 32-bit hardware accelerated visuals.
- Fixed problem in FXTextField when there is an obscene amount of text inside
single line text field.
April 29, 2003 - New drop: DEVELOPMENT FOX 1.1.26
|
Stuff in this development snapshot.
- Changed addTimeout() to replace the old timer, if it exists, with the
new timeout value. This simplifies code as you can simply set the timer
and if it was set already it now gets reset to the new interval.
- Changed addChore() of course to do the same; it re-appends the
chore at the end of the list, basically postponing it until after the
outstanding chores have been performed.
- Fixed forgotten header file include in FXApp for WIN32 build.
- Replaced hard-coded "0" with DefaultScreen(display) in FXVisual;
this caused problems on X11-based systems having more than 1 screens.
- Removed private GetDC() and ReleaseDC() API's (WIN32 only).
- Fixed FXDCWindow problems:- surface->id() shoule now be treated
correctly everywhere based on type of surface.
- Added support for thread-safe build (using POSIX thread-safe
functions like readdir_r()). Enabled by passing -DFOX_THREAD_SAFE=1
on the command line. Using the thread-safe library calls ensures that
the GUI thread never interferes with the worker threads if the worker
threads are making certain kinds of library calls (of course, you might
want to ensure the worker threads also call the thread-safe API's so
that they won't interfere with each other!).
- Replaced virtual getText() functions in FXListItem (and other list widgets)
by non-virtuals which yield const FXString&, this eliminates a lot of string
copying. Returning const FXString& is safe as FXListItem's API's
are chiefly for FXList and its subclasses to use and not usually directly
used by application programs.
- Expunged deprecated fxgetusername(), fxgetgroupname(), and fxgetpermissions()
API's from fxdefs.h. Use the safer equivalent functions from FXFile instead.
- Removed deprecated setPatternList(const FXchar **ptrns) from FXFileDialog
and FXFileSelector. The new function is easier to use and harder to
abuse.
- Fixed FXText widget:- get selection from clipboard returns value of len larger
than actual text length; now we're just scanning till the end of string to determine
the real length.
New in this release.
- Changed the way timers are set or removed. The method addTimeout() is basically
the same as before, except has a small change in argument-order (permitting default
parameters more easily). An overloaded removeTimeout() removes timers by means of
the same target and message combination as the corresponding addTimeout(). This
new method is very convenient as it eliminates to a large degree the bookkeeping
necessary to hang on to the FXTimer pointer.
- Also, addTimeout() now has an optional pointer argument, which is passed back
as the void* pointer in the callback. This way, information may be passed from the
place where the timer is set to the place where the timer callback is called.
Note that the pointer in the timer callback handler no longer
refers to an FXEvent!
- Similarly, changed the way chores are handled; the new overloaded removeChore()
removes a chores by means of the same target and message as the matching addChore() was
invoked with. Again, this simplifies coding in many cases.
- Like the timers, addChore() also adds an optional pointer argument, which is
passed to the chore callback handler when the chore is fired.
Note that the pointer in the chore callback handler no longer
refers to an FXEvent!
- Updated all widgets which have timers and chores to use the new timer system;
all such widgets are now simpler in implementation and actually take a bit less
memory as well.
- Implemented delayed layout update using chores. Previously, a change in layout
was reconciled using a GUI-Update pass. The new system replaces this by a simple chore
being set, and thus a layout change no longer incurs an iteration over the entire widget
tree. This means layout changes are now substantially less CPU intensive (and
faster too!).
- Made layout() a public member function. I had to do this, because the new
method to force an immediate layout is no longer performed via forceRefresh().
If you need immediate layout, then you must now just call layout()
directly!
The member function forceRefresh() now only performs a GUI-Update pass on the
subtree of the widget on which it is called!
- The message handler onUpdate() no longer invokes layout(). This actually
will speed the GUI-update pass up a little bit, as the new GUI-Update implementation
will not call layout() anymore.
If, as a result of a GUI-update, widgets change size (for example caption on a
label is changed), then there will be no need for an additional GUI-update pass
for the layout. The result again is substantially less CPU time wasted during idle
processing, and a more responsive application.
- Implemented delayed layout during window-resizing.
When resizing dialogs, the system previously rearranged the widgets in the dialog
immediately. As a result of this, an interactive (opaque) resize of a complex widget
tree could start to fall behind the mouse movement.
With the new system, it is no longer possible to fall behind, because now it delays
arrangement of the widgets until it has caught up with the event-stream.
This makes opaque resizing complex GUI's on slow machines much faster.
Note that this delayed layout is implemented on X11 only; under WIN32, the
new delayed layout method appears currently impossible).
- Added some missing API's to FXWString.
- Fixed a buglet in FXString::substitute(). The last occurence of a substring
ending the string was not being substituted.
- Fixed a few other bugs that had been reported.
March 13, 2003 - New drop: DEVELOPMENT FOX 1.1.24
|
Stuff in this development snapshot.
- FXFileList now supports case insensitive as well as case sensitive sorting when
sorting by names. It supports two new sort functions for this.
- FXFileList also directly accepts a new message ID_SORT_CASE to toggle case-sensitive
sorting. The default is now to sort case-insensitively.
- The sort functions have been renamed with more human-readable names.
- FXText and FXTextField now support a new ID_DELETE_ALL message. As the name
indicates, it deletes all the text in the widget.
- Some initial support for OpenWatcom C++ has been added.
more to come in the future.
- FXRuler is progressing. You can get an idea what it will look like now.
- FXGLVisual now thinks a visual with RGBA is OK even if you asked for RGB.
Some high-end video cards (ATI) support RGBA and no RGB. For those that do, RGB is
preferred over RGBA if you asked for RGB.
- FXFileDialog's right-mouse menu offers case-ignore as an option; so does PathFinder.
February 25, 2003 - New drop: DEVELOPMENT FOX 1.1.23
|
Of course, all bugs from the STABLE release are now also fixed in the DEVELOPMENT release.
Other news:
- FXDLL should now compile properly.
- FXSettings keys and section names are now no longer allowed to be NULL or empty.
- FXCheckButton gained a new option, CHECKBUTTON_PLUS, with which you can change
the appearance from a check to a plus or minus box similar to FXTreeItem;
the intended use of this feature is to connect FXCheckButton to a layout manager,
whereby the layout manager can be collapsed or expanded via the ID_TOGGLE_SHOWN
method; for this reason the plus-sign is shown when the state is FALSE, i.e. when
the associated layout manager is collapsed.
- FXTable has two new API's, getMinRowHeight() and getMinColumnwidth() which compute
the minimum height or width of a row or column in the table based on the contents of the
items; this substantially simplifies setting up a sensible initial table display.
- FXTableItem's getHeight() and getWidth() now yield sensible values; your subclass
of FXTableItem should overload them if the size computation needs to be different.
There have been a few changes to the FXGLViewer:
- Dropped the SURFACEPROJECTION and SURFACEPROJECTION display lists; the reasons were
two-fold: first, display lists may be shared between FXGLViewers and it was never
clear whose projection matrices were in the display lists; second, there is a better
way to obtain the desired effect in the form of the OpenGL 1.1 Polygon Offset
extension; since OpenGL 1.0 is ancient history now, the time seemed ripe to ditch
the old method.
- FXGLViewer now supports a gradient background; this is simply enabled by
setting the top and bottom background color to different values; setting them
to the same values will revert to the uniform background mode.
You can connect an FXColorWell to the upper and lower gradient color and control
the gradient easily from your GUI.
The default gradient background is a blue-sky; most people would like this I hope.
- The VIEWER_LOCKED feature has been removed; we found no one was ever using
it and it was not so useful anyway.
- We now try a little bit harder getting the OpenGL context into a known
state before calling scene->draw(). This is partly because we need it for
the gradient background drawing.
- Support for shift-click and control-click selection, as well as shift-lasso
and control-lasso is now being improved; the FXGLViewer can distinguish between
them based on mouse movement: if the mouse moves, its a lasso otherwise its a
click. While not entirely finished yet, the basic idea is to give FXGLViewer
similar callbacks as the list widgets, and give the application more control
over the interpretation of the mouse events.
Other issues:
- Slight problem in FXLabel and a few similar widgets fixed: FXString now
remembers its length, and this should be used to find the end of the string.
- Fixed almost all compiler warnings (Linux, GCC 3.2). ANY warnings
still left in the code are intentional! Don't complain about them,
they will be fixed when the time comes!!
- Adie is still broken, sorry! Use the version in the STABLE RELEASE!
It is still under development, but I'm kind of busy right now so its taking more
time than I would have liked.
- PathFinder gained some nice Preferences Panel; more is coming. The current
version of PathFinder is not finished, but the functionality that's there
is stable and solid.
- The initial precision in the FOX calculator has been dropped to 15 digits;
some people complained about roundoff errors (of course, double precision is
only accurate down to about 16 digits so roundoff errors in the 16th digit
are to be expected). I dropped the precision down to 15 because I don't like
to explain this repeatedly!
February 25, 2003 - New drop: STABLE FOX 1.0.34
|
Over the course of the last week, a number of minor issues have surfaced which
are now fixed.
- FXFileDialog now sets both anchor and current file to the same when you suggest an
initial filename when opening a file. Thus, a sunsequent shift-click in multiple select
mode now indeed highlights all files between the suggested selection and the one you
click on; a minor thing but an annoyance to some.
- FXTextField could not easily tolerate contents exceeding a few thousand characters;
this was the result of both X11 and WIN32 internally working within a 16-bit coordinate
system; this caused trouble drawing and highlighting the text inside FXTextField.
The fix to figure out which characters of the string have a remote possibility of
falling inside the visible area, and then only drawing those. As a side-effect,
the amount of data in the drawing protocol is now also substantially less in such cases
resulting in faster drawing.
- An accelerator Ctl-A has been added to FXFileDialog to select all files. Many
people will find this convenient. Also, you can select all files from the righ-mouse
popup menu.
- The test in FXText in API extractStyle() and extractText() was a bit too strict;
it is not necessary for the return buffer to be non-NULL if the amount of text to be
extracted is zero-length.
- A small typo has crept in FXRex in the match() API; a forward case-insensitive
match would sometimes not work correctly.
February 22, 2003 - New drop: STABLE FOX 1.0.33
|
- Minor bug in FXFileDialog: when in multiple file selection mode, FXFileDialog::getFilename()
was not returning a sensible value. This caused various kinds of mayhem in different
places. The new implementation returns FXString::null when no files were selected, or
returns the first selected file in multiple selection mode, or the value in the text box
when in single selection mode.
February 19, 2003 - New drop: STABLE FOX 1.0.32
|
- Updated FXFileList; when no extension is bound, the file extension string becomes the extension of the file name. This permits sorting by extension even for files with no association.
- Fixed bug in FXText; space-terminated last line could not be clicked by mouse.
- Bug in FXRex fixed; incorrect behavior in forward match case-insensitive literal string.
- Wrong callback message type in FX4Splitter.
January 15, 2003 - New drop: DEVELOPMENT FOX 1.1.22
|
- Updated FXDirList for unlimited path lengths. We found MAXPATHLEN to be exceeded in some case, just like FXFileList. Also, FXDirList now properly lists drives under Windows. Periodic scanning now happens non-recursively.
- Renamed FXTreeList::sortItems() to FXTreeList::sortRootItems().
- Added API's to move items around in FXTreeList.
- Added API's to move items around in FXList and FXIconList.
- Added API's to FXSpinner to set arrow colors.
- Added new API's for loading DLL's or dynamic libraries:
- fxdllOpen(). Opens a DLL with given name, returning a handle.
- fxdllClose(). Closes DLL with the given handle.
- fxdllSymbol(). Returns symbol in the DLL with the given handle.
- This has only been coded for Linux and Windows. Other platforms will still need some work. Note that fxdllOpen() may be called multiple times on the same library name. We're counting on the underlying O.S. to reference count (Linux and Windows both do!).
- Added API to FXApp to return drag window. This may be useful to determine which window is currently a drag source. Also added API to FXApp to see if FXApp was already initialized.
- Added API to FXFile to return root of a path. On UNIX, this is only "/" but on Windows this may be something like "c:" or "\\".
- Fixed FXString::vformat().
- In a few days, fox-toolkit.org may go down for an unspecified amount of time as my DSL provider has gone under. Grab it while you can. Otherwise, visit the mirror site:
- FTP: ftp://ftp.fox-toolkit.net/pub
- HTTP: http://www.fox-toolkit.net/fox/fox.html
January 9, 2003 - New drop: STABLE FOX 1.0.30
|
- Minor bug fix:- fixed FXString::vformat(); vformat() uses vsnprintf() if available, vsprintf() otherwise. The former is buffer-overrun safe. Some systems have different symantics for vsnprintf(), and FOX now compensates for this.
December 29, 2002 - ANNOUNCEMENT
|
Due to my ISP (directvdsl) going belly-up, the FOX web-site may be temporarily unavailable sometimes.
If this happens, point your browser to the mirror site:
FTP: ftp://ftp.fox-toolkit.net/pub
HTTP: http://www.fox-toolkit.net/fox/fox.html
December 23, 2002 - New drop: STABLE FOX 1.0.29
|
- Fixed drawing bug in FXTreeList. Drawing with TREELIST_SHOWS_BOXES but no
- TREELIST_SHOWS_LINES was all messed up.
December 5, 2002 - New drop: DEVELOPMENT FOX 1.1.21
|
- Added new API's to FXString:
- substitute() substitute one substring by another.
- contains() count possibly overlapping occurences of a substring in the string.
There are several overloads for these functions.
- Clarified some documentation in FXApp, FXWindow.
- Updated FXFileList to allow it to work with arbitrarily long file names, user names, group names, and directory names. Some people had paths longer than MAXPATHLEN and this caused problems.
- Moved JUSTIFY_XXX options from FXLabel to FXFrame; various subclasses of FXFrame use these flags (but FXFrame itself does not, as it has no contents!).
- Added support for JUSTIFY_XXX in FXImageFrame.
- Added API FXFile::linkinfo(), which stats the link and not the file the link refers to.
- Added flags TEXTFIELD_AUTOGRAY and TEXTFIELD_AUTOHIDE to FXTextField, enabling it to automatically gray (or hide) when its target does not respond to SEL_UPDATE messages. This is very useful when messages are routed around, e.g. via MDI widgets.
- Added new widget, FXTriStateButton, which can assume three states (false, true, and maybe), where the maybe state is usually only reached programmatically or by means of SEL_UPDATE handlers. You can use this widget whenever your application calls for a toggle type button which may have indeterminate state.
- Fixed small buglet in FXTextField; in rare cases, cursor position was outside of text.
- Fixed bug in fxcpuid() implementation:- according to SYSV x86 ABI, EBX is used when compiling PIC for shared libraries; the initial implementation of fxcpuid() was usurping EBX for other uses. The x86/Linux-only API fxcpuid() returns some flags which detect various interesting features of your x86 CPU, such as SSE, SSE2, MMX, MMXEX, 3DNOW, 3DNOWEXT, and TSC presence.
November 20, 2002 - New drop: STABLE FOX 1.0.28
|
- A minor bug has been discovered in the BMP reader; sanity checking code erroneously rejected 4 bit/pixel RLE compressed bitmaps; apparently, these are pretty rare :-).
- Fixed small buglet in FXOptionMenu:- GUI Update becomes disabled after manipulation of the option menu in some scenarios.
- FXSettings had spelling error in warning message.
- Small bug in FXFile::simplify(); simplify("c:\..\") became "c\" instead of "c:\".
November 13, 2002 - New drop: DEVELOPMENT FOX 1.1.20
|
- Added nifty API's to FXImage:
- fill() fill image with a constant color.
- hgradient() fill image with a horizontal gradient using two colors.
- vgradient() fill image with a vertical gradient using two colors.
- gradient() fill image with a bi-linear gradient using four different colors.
- fade() fade an image to a given color by a certain factor.
- blend() blend (transparent) image over a given color.
Stay tuned for more image manipulation API's!
- Added performance (LINUX/GCC/GAS/x86 only) API's:
- FXlong fxgetticks() reads Pentium/Athlon time stamp counter register. This register increments one unit each single clock (for example on my Athlon 1600+ this means 1,400,000,000 ticks/second!). Very useful to settle heated arguments about whose code is faster :-)
- FXuint fxcpuid() determines presence of "interesting" CPU features such as MMX, MMXEX, 3DNOW, 3DNOWEXT, SSE, SSE2, and presence of Time Stamp Counter register.
You can use this function if:
- You're using GCC/GAS/x86.
- You want to whip up some cool inline MMX, 3DNOW, or SSE(2) code.
If you're not using GCC and GAS, you'll have to do without!
- Fixed small introduced bug in FXTextField:- when replacing selection, old cursor position was sometimes out of range.
- Fixed small problem in FXFile. FXFile::absolute("c:\..\") was yielding "c\" instead of "c:\".
- Added feature to FXHeader:- when clicking on split between captions, a SEL_CLICKED message is sent to the target.
- Added feature to FXIconList. When receiving a SEL_CLICKED message from FXHeader, FXIconList recomputes the minimal required space for the caption, given the current list of items in it.
- Made slight change to behaviour of FXTextField. When replacing selection by another string, only a single callback message now results.
- Added getNumOptions() API to FXOptionMenu. FXOptionMenu also sends a SEL_COMMAND message now after completion of the interaction. Also fixed GUI updating of FXOptionMenu.
October 30, 2002 - New drop: DEVELOPMENT FOX 1.1.19
|
- Changed workings of FXMALLOC() and co. again; the initial theory, I have to admit, was flawed and impractical; the new workings however are far more practical:
FXMALLOC(ptr,type,no)
Allocate no elements of type to the specified pointer.
Return FALSE if size!=0 and allocation fails, TRUE otherwise.
An allocation of a zero size block returns a NULL pointer.
FXCALLOC(ptr,type,no)
Allocate no elements of type to the specified pointer, and clear this
memory to zero.
Return FALSE if size!=0 and allocation fails, TRUE otherwise.
An allocation of a zero size block returns a NULL pointer.
FXRESIZE(ptr,type,no)
Resize a previously allocated block of memory.
Returns FALSE if size!=0 and reallocation fails, TRUE otherwise.
If reallocation fails, pointer is left to point to old block; a reallocation
to a zero size block has the effect of freeing it.
FXMEMDUP(ptr,type,src,no)
Allocate and initialize memory from another block.
Return FALSE if size!=0 and source!=NULL and allocation fails, TRUE otherwise.
An allocation of a zero size block returns a NULL pointer.
FXFREE(ptr)
Free a block of memory allocated with either FXMALLOC, FXCALLOC, FXRESIZE,
or FXMEMDUP.
It is OK to call free a NULL pointer.
- Fixed harmless bug in FXTable.
- Removed radio and check behavior from FXMenuCommand; this functionality is now assumed by FXMenuRadio and FXMenuCheck.
October 26, 2002 - New drop: DEVELOPMENT FOX 1.1.18
|
- Fixed argument test in FXText:- NULL text argument is allowed if size is zero.
- Fixed drawing bug on MS-Windows in FXMenuRadio.
- Fixed potential buffer overrun in FXFont.
October 25, 2002 - New drop: DEVELOPMENT FOX 1.1.17
|
- Changed FXMALLOC(), FXRESIZE(), FXCALLOC() macros very slightly; FXCALLOC() and FXMALLOC() new always return a NULL pointer and a FALSE return value when a zero size is passed; previously, this depended on the underlying malloc() implementation of the operating system, and operating systems varied in this behaviour. Also, FXRESIZE() returns a NULL pointer and FALSE return value when resizing to zero size; again, operating systems varied in this behaviour. With these changes, it works the same on all operating systems.
- FXIconList, FXList, FXTreeList was trapping KEY_Delete; this prevented a KEY_Delete from being used as an accelerator.
- FXTable was not compiling with Borland C++ builder. Fixed.
- FXMetaClass destructor was not releasing hash table properly; moreover, was causing divide by zero in a few cases. The new implementation releases all memory and can't possibly divide by zero, because the modulo operator has been replaced by bit-wise and; this is possible because the hash table is always a power of two.
- FXFile Dialog has accelerator for delete file.
- All messages should now use the new FXSEL, FXSELTYPE, and FXSELID macros. Note FXSEL has the arguments reversed, and the argument order is now the same as the one used in FXMAPFUNC and FXMAPFUNCS; hopefully, this is easy to remember.
October 8, 2002 - New drop: DEVELOPMENT FOX 1.1.16
|
- Regressed API's to return FXString rather than const FXString&, for the following reasons:
- Not consistent. Some API's *compute* their returned FXStrings, so you're always going to have some API's which can never return const FXString& anyway; but conversely ALL API's can return FXString no matter what, so if its consistency we want then the old way is the only way!
- I don't want to encourage people hanging on to pointers into the private member data of classes; see previous mail on this topic; this reduces my ability to change internal representations of widgets.
- Its not as painful (in terms of run time) as it looks:- many access functions are inlines, and the compiler can decide to eliminate a few copy constructors (if not automatically, then at least with some encouragement like the option "-felide-constructors" for GCC ).
- Once all widgets store FXWString internally, you will really thank me for this:- because if we do it the old way, your software can remain unmodified (thanks to conversion operators between FXString and FXWString), but if we go the via the "const FXString& " route then all the software which tries to take advantage of your trick would have to be rewritten!
- Added API's to FXTable to control item appearance:
- setItemJustify() changes justification
- setItemIconPosition() changes icon position relative to the text
- setItemBorders() changes item's border style
- setItemStipple() changes item's stippling
- Added patch from Petri Hodju for FXToggleButton's TOGGLEBUTTON_KEEPSTATE implementation. When this flag is passed to FXToggleButton, the button stays pressed if the state is TRUE.
- Removed __FXMETACLASSINITIALIZER__ from FXObject.h. FXMetaClass is now made into a proper class instead of a struct. At startup time, the FXMetaClass's constructor adds the class to the hash table of meta classes, and at termination time the FXMetaClass's destructor takes the class back out.
This means if you build DLL's with FOX classes in them loading and unloading the DLL will properly add or remove the class names from the hash table.
This will allow objects to be serialized/deserialized even if they're in a DLL! The only thing left to do is to use the escape code in FXStream to actually load the DLL and we have a proper Plug-In architecture.
- Fixed fxmalloc(), fxcalloc(), and fxresize() so that they return NULL when the desired size is zero; straight malloc() will not do that on all systems.
October 3, 2002 - New drop: STABLE FOX 1.0.26
|
- Janusz Ganczarski found a very minor bug in the PCX loader code; some PCS images failed to load because of this.
- Fixed bug in FXFile (MS-Windows) in recursive copy routine (see previous announcement).
- Bug in FXToolbar getDockingSide().
- Fixed some stuff in FXTable w.r.t. spanning cells.
- Fixed some stuff related to file time in FXDirList; also, handle was not being closed at the right time, preventing timely directory refreshing; finally fixed sporadic crash.
- Window coordinates and size not updated at the right time (MS-Windows) relative to the SEL_CONFIGURE message being issued.
October 2, 2002 - New drop: DEVELOPMENT FOX 1.1.15
|
- Changed internal representation of FXString; the end-of-string character ('\0') is no longer special and all possible bytes are now allowed.
- Added new API's to FXString:
- length(int) changes the length of the string buffer to the given size.
- section() extracts num segments starting from start from a string delimited by delim.
- simplify() simplifies white-space in string.
- before() returns characters before n-th occurrence of ch, starting from begin.
- rbefore() returns characters before n-th occurrence of ch, starting from end.
- after() returns characters after n-th occurrence of ch, starting from begin.
- rafter() returns characters after n-th occurrence of ch, starting from end.
- find() searches for character, starting from begin.
- rfind() searches for character, starting from end.
- find() searches for n-th occurrence of character, starting from begin.
- rfind() searches for n-th occurrence of character, starting from end.
- find_first_of() searches for first character in a set, starting from begin.
- find_last_of() searches for first character in a set, starting from end.
- find_first_not_of() searches for first character NOT in a set, starting from begin.
- find_last_not_of() searches for first character NOT in a set, starting from end.
- escape() returns a string where all special characters are escaped.
- unescape() returns a string where all escaped characters are turned back into special characters.
- Some API's of FXString are now removed:
- extract() is replaced by the much more flexible section().
- findf() is replaced by find().
- findb() is replaced by rfind().
- size() no longer exists.
- size(int) no longer exists.
Note that these changes give FXString an API more consistent with the standard std::string class.
- New API's to replace some old ones:
- fxparseAccel() replaces the old fxparseaccel(). The new flavor takes an FXString parameter.
- fxparseHotKey() replaces the old fxparsehotkey(). The new flavor takes an FXString parameter.
- fxfindHotKey() replaces the old fxfindhotkeyoffset(). The new flavor takes an FXString parameter. Also, the new version correctly counts when && occurs in the string.
- fxstripHotKey() replaces the old FXString::extract().
- Added a new type FXwchar. This is a wide character for UNICODE.
- Added a new class FXWString. This is currently under development, and should NOT be used at this time.
- Added a new class FXTextCodec. FXTextCodec's subclasses will provide (state-less) conversions between UNICODE and other character sets.
- Made further improvements to FXTable widget.
- Changed many API's in FOX to return const FXString& instead of FXString. This will eliminate a copy constructor in many cases, and thus speed things up a lot.
- Added option MBOX_SKIP_SKIPALL_CANCEL to FXMessageBox. Handy if the same dialog can appear for multiple errors.
- Fixed core dump bug in PathFinder. Destructor was deleting uninitialized data.
- Added help-tag to FXWindow. Each widget may now have a help tag, which is intended to be a URL for context-sensitive help for widgets and controls. Utilization of this info is currently up to the programmer.
- Reformatted some web pages for Mozilla.
- Updated some API's to FXArray and FXObjectList.
- Added more error checking into PNG and JPEG loader; a bad image file should not cause an application error anymore, but a simple error code will be returned. Also, the FXImage will be set to empty when a bad file format did not read.
- Fixed bug in FXFile (MS-Windows) in recursive copy routine.
- FXImage, FXIcon, FXBitmap have been made a bit more forgiving when size is 0x0; it no longer terminates the application but creates a 1x1 image instead.
- Changed API's loadPixels() and savePixels() of the various FXImage-derived types to return a boolean which indicates success or failure.
- FXMenuCheck widget added which will draw a check box beside the caption.
- FXWindow::destroy() and FXWindow::detach() will reset FXApp::focusWindow and FXApp::cursorWindow.
- FXDirList bug fixes:- currentitem and anchoritem were left pointing to deleted items in some cases. Also, directory scanner caused some problems in some cases due to CreateFile() holding handle while FindFirstFile() was trying to open directory for scanning.
- Sublte bug with SEL_CONFIGURE fixed:- on Windows v.s. Unix, the width and height of the widget were different while in the callback.
- Added to FAQ.
August 29, 2002 - New drop: DEVELOPMENT FOX 1.1.14
|
Of course, all bugs found so far in the stable releases have been fixed in the development release.
- Some API's renamed in FXList, FXIconList, FXHeader, FXComboBox and FXListBox:- retrieveItem() has been renamed to getItem(), and replaceItem() has been renamed to setItem(). Its much easier to remember this way.
- FXTable button mode cells now get pressed (thanks to Alastair Growcott for the patch).
- Added assign() API's to FXString. Makes it easier to fill FXString with some text.
- Added FXMenuCheck, FXMenuRadio classes. These will subsume the FXMenuCommand for checked menus and radio menus; FXMenuCommand will just be a command.
- FXMDIClient no longer derived from FXScrollWindow. This will entail fewer problems.
- FXSeparator class added. It automatically flips based on width:height ratio.
- Added tag string to FXWindow for on-line help tagging of widgets; help systems may use this to provide context sensitive help for controls or dialogs.
August 29, 2002 - New drop: STABLE FOX 1.0.22
|
- A slight tweak has been implemented in FXFileList's collating functions:- instead of just sorting based on type, size, etc. it now also sorts on the name if the type, size, etc. are the same. So if you sort based on e.g. file type, then within each file type, the list is now lexicographically sorted.
- Minor bug with FXShutter widget fixed. This one shouldn't really have affected anyone.
August 22, 2002 - New drop: STABLE FOX 1.0.21
|
- Finally, hardware problems over here at fox-toolkit.org seem to have been resolved! Funny thing is, we're not even overclocking! But nevertheless an Athlon in Alabama in summer on a sunward-facing room has appeared to be a real challenge!
- As of this week, there has been an addendum to the Lesser General Public Licensegoverning the distribution of FOX. The intent of the change is to make it more practical for applications to link statically against FOX; please refer to the license statement for the details.
- Minor bug in FXGLViewer fixed related to image printing.
- Minor buglet in FXTopWindow::setDecorations() fixed.
- FXDriveBox, FXDirBox suffered from uninitialized memory reads:- thanks to valgrind, we found out about this and fixed it.
- Fixed a few bugs in removeRows() and removeColumns() were inconsistent and did not properly deal with with spanning cells. Also setTableSize was fixed and now initializes cells to be empty, i.e. NULL.
- FXList, FXIconList delete items in reversed order, i.e. starting with the last item. This makes maintaining your own parallel list much easier.
- Fixed problem in FXSpinner.
- Esoteric FXFileList bug fixed (Windows) certain programs (e.g. older version of ws_ftp) set bogus file time on files, this caused FOX to crash.
July 25, 2002 - New drop: FOX 1.0.17
|
- Fixed FXList, FXIconList, FXTable callback. When current item or current row/column is removed, SEL_CHANGED callback is generated.
- Fixed FXPopup menu behavior under Windows.
- Added preliminary support for Digital Mars C++ compiler.
- FXFileList sort by modification date bug was fixed.
July 16, 2002 - New drop: FOX 1.0.15
|
- Some patches for Digital Mars C++.
- Only update widgets of new color setting is different from old.
- FXTabItem was using the wrong code to draw itself.
- File time problem retro-ported from development version.
July 1, 2002 - New drop: FOX 1.1.13
|
- Patch from Janusz Ganczarski to add support for 16bpp BMP format files.
- Another patch from Janusz to add support for 32 bit BMP format, as well as some bug fixes to the TARGA image format support.
- Made FXMDIChild draw nicer, by adding interior sunken border.
- Added API's to FXMDIClient for various window placement manipulations.
- Fixed FXMDIClient no loner derives from FXScrollArea. This allows opaque dragging of FXMDIChild windows.
- Adding a FXRuler widget. Ruler widget may be used to place tickmarks and numbers around another widget, for example drawing document; this one will still need lots of work.
July 1, 2002 - New drop: FOX 1.0.14
|
- BMP i/o support for 16, and 32 bit, in addition to already implemented 1, 4, 8, and 24 bit BMP images was added.
- Potential infinite loop in FXImage::restore() was fixed.
- In FXMatrix, getNumRows() and getNumColumns() should not depend on child's visibility.
- FXTable: colors should default to normal back color.
June 19, 2002 - New drop: FOX 1.1.12
|
- Added FXWizard class, and new wizard demo application.
- Added fxparsegeometry() function to parse string of the form: "[=][{xX}][{+-}{+-}]" Into a width, height, x, and y value.
- Fixed FXProgressBar to be flicker-free when setProgress() is called repeatedly; this is done by directly drawing it in the setProgress() call.
- Added a new widget, FXImageFrame, which may be used for simple rendering of images.
- Split the Adie text editor into multiple top-level windows. This allows a single editor to open any number of documents at the same time. Adie is UNDER CONSTRUCTION right now and NOT FULLY FUNCTIONAL!!
- Added setCancelled() API to FXProgressDialog.
- Added maximize(), minimize(), restore() API's to FXTopWindow. Also added isMaximized(), and isMinimized() API's. The old iconify() and deiconify() has been superceeded by these new API's. The new API's are implemented in terms of the new Extended Window Manager Hints standard.
- New API close() added to FXTopWindow added to close a top level window. The close() API will only close the window after consulting the FXTopWindow's target, if any, whether it is OK to do so. When there is no objection, the FXTopWindow will be deleted. When the last FXMainWindow is closed, the application will receive an ID_QUIT message.
- Polarity of SEL_CLOSED message return value has changed; returning 0 means "no objection" i.e. proceed with the closing. Rationale:- when there is no target, or when the widget's target does not respond, closing the window should proceeed.
- Added drawing a chord arc fill drawing method to FXDCWindow. This augments the pie sector method already present.
- Added polygon region constructor to FXRegion.
- Fixed some idiosyncracies in FXText. When typing to replace a selection with new text, two callbacks, instead of one, were being generated. This implied that a single action needed two undo's to undo it.
- Also fixed was a little quirk that happened when a paste was being performed inside an existing selection. This is now blocked.
- FXTopWindow's now appear where they're supposed to, at least on ICCCM compliant Window Managers; borders are discounted as far as placement of window is concerned.
- A new API isOwnerOf() added to FXWindow which is used inside FXApp to determine whether events are passed to a window or not. The upshot is that modal dialogs can now create non-modal subwindows, and thus events are passed to all windows owned (and ownership is transitive!!) by the modal window, and blocked elsewhere.
- Fixed various focus sublteties, and simplified focus assignment code. The subtleties are for example the assignment of the focus to a child window of a composite, when the focus were to move to the composite. This is useful for mega widgets which need to force the focus on a specific child window when they get the focus.
- Added golden ratio constant in FOX Calculator.
May 12, 2002 - New drop: FOX 1.1.9
|
- New FXGradientBar widget is now ready for business! Allows for drag and drop of colors, various color blending features ranging from linear to quadratic, and furthermore horizonal or vertical orientation.
- FXDict, FXMetaClass now deploy a faster, in-lined hashing function. This should translate into slightly faster application startup times.
- Various API's to FXWindow turned into "const" members.
- New API getTempDirectory() added to FXFile.
- FXFileList worked oddly if weird file mod time was found.
- Memory leaks fixed, thanks to valgrind.
- Tentatively added FXGzStream and FXBzStream classes for gzip and bzip2 compressed I/O streaming support.
- FXApp now remembers original display variable passed in. This can be used for later opening of display.
April 5, 2002 - New drop: FOX 1.1.8
|
- New widget, FXGradientBar, which is used to build color gradient ramps (e.g. for OpenGL texturing...).
- Removed limitation of single FXMainWindow; this means the API FXApp::getMainWindow() has now disappeared. When the last FXMainWindow is closed, the application ID_QUIT is invoked, terminatin the application.
- Behaviour of middle mouse paste in FXText was simplified; this makes a paste of a selection work properly, even if the paste occurs in or near the current selection!
- Introduced name spaces. All FOX API's are now in the namespace "FX", thus the vast number of possible identifier clashes are now avoided; note that a great number of #define's have now been replaced by enum's.
- Renamed FXApp::getRoot() to FXApp::getRootWindow() for consistency.
- Renamed a number of widgets. Various widgets have over the course of time gotten names which did not adhered to the current nomenclature; this made them more difficult to memorize. These widgets have now been renamed for greater consistency:
- FXTooltip becomes FXToolTip
- FXToolbar becomes FXToolBar
- FXScrollbar becomes FXScrollBar
- FXMenubar becomes FXMenuBar
- FXStatusbar becomes FXStatusBar
- FXStatusline becomes FXStatusLine
- FXToolbarShell becomes FXToolBarShell
- FXToolbarGrip becomes FXToolBarGrip
- FXProgressBar becomes FXProgressBar
February 26, 2002 - New drop: FOX 1.0.0
|
- Yes, I went to 1.0!!! Why not? The code has been *very* stable for a while, and its time we called it what it is:- the 1.0 release!
- New API's to FXString. FXString::vscan() and FXString::scan() are API's to parse a string via sscanf-style format conventions. This is very useful in many cases, and obviates the need for some complex coding in the past.
- New API's to FXRegistry (actually, FXSettings). FXSettings::readFormatEntry() and FXSettings::writeFormatEntry() perform sscanf- and sprintf-style access to registry database strings. As with FXString, this obviates the need for complex coding and is very compact and convenient.
- Removed deprecated functions from fxdefs.h. The following functions have been removed: fxprefix(), fxsuffix(), fxexpand(), fxpathname(), fxdirpart(), fxfiletitle(), fxfilepart(), fxfileext(), fxexists(), fxisdir(), fxisfile(), fxbakname(), fxidentical(), fxsplit(), fxshortestpath(), fxupdir(), fxabspath(), fxistopdir(), fxgetcurrentdir(), fxmkdir(), fxgethomedir(), fxsearchpath(). These functions have been moved to the file: fxdeprecated.h and fxdeprecated.cpp. Should your application need them, simply include these two files into your project. Note, the functions above have better maintained, and easier-to-use equivalents in the FXFile namespace.
- A new file, vsscanf.cpp, was added for those systems where vsscanf() and its ilk are not available. Under Linux, and other C99 standard compliant C Libraries, this file is not used.
- Added some missing API's to FXListBox, FXComboBox, and FXTreeListBox; simplified internals of these widgets a bit.
- Fixed some FXDirBox problems; removed reliance on deprecated API's.
- Added a SELECTFILE_MULTIPLE_ALL to FXFileSelector (and FXFileDialog). This mode allows selection of a mix of files and directories. The mode SELECTFILE_MULTIPLE works as before, and selects only multiple, existing filename names (and no directories).
- Fixed FXPopup focus navigation:- hidden menu items should not be focused upon.
- Fixed little biddy problem in FXText and style settings.
- Fixed text in FXReplaceDialog and FXSearchDialog; was not proper.
- Fixed little problem in FXRex::substitute().
- Fixed some minor configure issues. You can pass overrides for JPEGLIB, PNGLIB, TIFFLIB, ZLIB, and MATHLIB. This is useful if you want to force a different library than the one found in the usual places (for example if you loaded a newer version than your system came with, or want to force static linking, etc.). Also added a test to search for vsscanf() function in your C library.
- Added quick-and-dirty, ad-hoc, "hack" to Adie for syntax coloring. It still piggy-backs on the timer. However, the dialogs to set up highlight styles, language recognition, and syntax patterns is essentially complete. You can now add and remove, and edit syntax patterns fairly reliably. I added a sample C++ and C syntax file you can drop into your .foxrc/Adie registry (or in any of the usual global registry places /usr/lib/foxrc/Adie, /usr/local/lib/foxrc/Adie, etc.) to kick-start some patterns to get you started. The stylizer can now also use patterns with back-references, or capturing parentheses; I will still figure some way to color captured parentheses some day as well.
- WANTED: syntax patterns for various languages: PERL, RUBY, PYTHON, HTML, XML, Pascal, Eiffel, and whatever else you can think of. I will collect these patterns and distribute them in future versions of Adie.
February 5, 2002 - New drop: FOX 0.99.193
|
- Added new mode SWITCHER_HCOLLAPSE and SWITCHER_VCOLLAPSE to FXSwitcher; these will cause the FXSwitcher to collapse its default height or width to the currently active child's height or width, respectively.
- Fixed bug in FXDriveBox. The option to report errors went away as FXDriveBox does not set the current drive anymore:- it just sends a message.
- Fixed declaration in FXStringDict API: API's yield const strings.
- Added support for SGI IRIS RGB Image input and output, as well as corresponding image and icon classes.
- Completed editing of style-entries in Adie (language mode and pattern panels not complete yet). Minor style-coloring engine improvements.
- Incorporated documentation man-page for Adie, PathFinder, and Calculator.
- Fixed bug in FXText::changeStyle.
- Added missing API's to FXListBox, FXTreeListBox, FXComboBox.
- Fixed grooved border drawing.
- Relaxed syntax of section and group name in FXSettings database [was too strict earlier for no good reason].
- FXWindow issues SEL_MOTION events.
- FXRex properly observes REX_NEWLINE for \D, \s, \W, and so on.
January 8, 2002 - New drop: FOX 0.99.189
|
- Optional style buffer was added. FXText takes roughly same amount of memory/text, unless style buffer is turned on in which case memory usage doubles to store the style information.
- Style table support was added. You can specify up to 127 different styles, where a style is a combination of fg/bg colors for normal, selected, or highlighted display, i.e. 6 different colors.
- New API's added to manipulate contents of the style buffer. First, normal API's like appendText() and so on now have an equivalent appendStyledText(). The style is a single value 0-127 indexing into style table, to which 128 may be added to achieve underlining. This makes it very easy to add colorful text....
- Its still possible I will add flags to the style table for underlining instead of use a bit in the style buffer; I don't know yet...
- changeStyle() changes the style w/o affecting the text.
- Despite the style additions, drawing has actually been speeded up quite a bit, as some old crap has been removed:
- drawing is split into painting the background and painting the text over it. This may alleviate some problems on SGI with XDrawImageString.
- drawing no longer loops over virtual characters, it just rect-fills the tail-end of a line; this is of course much faster.
- even better, drawing also accumulates runs of spaces and tabs into a single rect-fill; needless to say that is also much faster.
- FXText now maintains a c&