H.G.Muller [Fri, 6 May 2016 05:42:55 +0000]
Fix saving theme
The option -trueColors is now saved with the theme settings when a
pieceImageDirectory was given in XBoard, and the piece colors are
saved when this option is off even with a piece directory. The square
colors are now also saved when useBooardTextures is on, but the textures
are transparent. For this the transparency also had to be made visible in
the WinBoard front end, (by moving the flags for it to backend.c), but
always stay at the default 0 there.
H.G.Muller [Wed, 4 May 2016 13:18:34 +0000]
Fix deferral on sweep promotions
When a sweep in the to-square due to a highlight-induced promotion
had left the original piece as choice, the piece would be considered
to promote to itself (i.e. the move would get the promoChar for its
piece type), rather than to not promote at all. Some engines choked
on this (HaChu). Now such a move is not considered a promotion.
H.G.Muller [Sun, 1 May 2016 19:41:40 +0000]
Implement -showMoveTime option
A persistent option -showMoveTime can cause the time thought so far
on the current move to be displayed in the clock field, behind the
time left on the clock, in parentheses.
H.G.Muller [Fri, 29 Apr 2016 14:16:52 +0000]
Prevent crash on help-click for engine without manual
The error message of "man w xxx" when no man entry for xxx exists
appears on stderr, which is not caught by popen(). As a result the
path to the man file gets set to an empty string, and saveStrCpy
is not so save that it can copy an empty string, but quits XBoard
through an ASSERT in that case.
H.G.Muller [Thu, 28 Apr 2016 12:36:54 +0000]
Allow engine to specify holdings larger than board height
On reception of a 'setup' command we now automatically increase the
number of board ranks to the holdings size if the latter is larger,
but remember the number of added 'dead ranks'. When parsing a FEN these
ranks are blacked out, and on generating a FEN they are ignored. This
makes FENs behave like the board was not enlarged.
H.G.Muller [Thu, 28 Apr 2016 11:24:19 +0000]
Implement two-kanji -inscriptions
When the -inscriptions option specifies a UTF8 string that starts with
the character '2', it will assume the symbols that follow have to be
drawn on the pieces in (vertically stacked) pairs of somewhat smaller
size than it would use for single-character inscriptions. An optional
'1' at the start of the string could be used as an escape to be used
when the first character we want to inscribe would be a '2'.
H.G.Muller [Wed, 27 Apr 2016 20:22:35 +0000]
Prevent sending empty line to engine after multi-leg move
As the pmoves are stored internally with a linefeed suffixed to them,
this linefeed was mistaken for a promotion character in the multi-leg
printing formats, and led to an extra empty line being sent to the
engine on non-promotion multi-leg moves. Now a linefeed is replaced
by a null character before sending the move.
H.G.Muller [Wed, 27 Apr 2016 18:34:45 +0000]
Fix piece commands for promoted pieces
The flexible partner assignment had broken the code for 'piece'
commands defining the moves for these pieces, as the promotion
partner was still calculated the old way.
H.G.Muller [Mon, 25 Apr 2016 16:31:22 +0000]
Fix dragged piece during promotion popup
When dragging to a promotion square, the piece would keep 'hanging'
in the release position while the promotion popup was shown.
(This usually covered it, but not always.) As after a choice is made
the move will be animated, it was more logical to put it back on the
from-square.
H.G.Muller [Sun, 24 Apr 2016 20:34:06 +0000]
Add option -pgnTimeLeft to print clocks in extended PGN info
When set a persistent option -pgnTimeLeft makes XBoard save the time
left after the move in the score/depth comments, rather than the time
thought about the move. A leading sign will allow the reader to
distinguish the two. The time is always printed in integer seconds.
H.G.Muller [Sun, 24 Apr 2016 19:10:06 +0000]
Fix EOF detection in PGN parser
The result of fgetc was stored in a (char) before comparing it with EOF,
which fails badly if the char is not signed.
H.G.Muller [Sun, 24 Apr 2016 18:53:47 +0000]
Alter piece images in Spartan Chess
The Captain of Spartain Chess is now represented by the new Tower piece,
so that the Crowned Rook pictogram can be (and is) used for the General,
for better uniformity with other variants.
H.G.Muller [Sun, 24 Apr 2016 18:30:38 +0000]
Regularize Chu-Shogi piece assignment
The pieces in Chu Shogi have been reassigned to other internal codes,
so that juggling of images in variant cu is no longer needed. This
became possible by the flexible assignment of promotion partners.
It makes it easier to use Chu Shogi as parent variant without having
to worry about a non-stadard meaning of the -pieceToCharTable.
The built-in move generator had to be changed to work for the new
assignment.
H.G.Muller [Sun, 24 Apr 2016 12:00:50 +0000]
Allow group specification in ArgInstall options
The option that add a line to the existing multi-line options
(e.g. -installTheme which adds to -themeNames) now can specify the
line should be added within a group, by prefixing the line with
"# GROUPNAME\n" (where \ and n separate characters). If a group of
that name already exists, the line to add is insert immediately after
the group header line. If not, the group is created, by adding both the
group header line and the line to add, as well as an "# end" line to
terminate the group.
H.G.Muller [Sun, 24 Apr 2016 10:30:14 +0000]
Save programStartTime in settings file rather than save time
The -saveDate time stamp is used to decide whether XBoard has seen
options added to the master settings file before. But it looks only
to the master settings file at stratup. So when we save settings we
now put XBoards startup time as -saveDte in it, so that installs
when XBoard was already running would still find their way into the
user settings file.
H.G.Muller [Fri, 22 Apr 2016 09:37:58 +0000]
Also supply shortcut for start directory in GTK file chooser
The first shortcut entry in the Places list is now created for the
directory in which XBoard started (which is $CHESSDIR if that was set).
This is suppressed if it would be a user home directory, as this would
already be in the list by default.
H.G.Muller [Fri, 22 Apr 2016 07:33:23 +0000]
Fix rounding when sizing 1x1 textures
When 1x1 textures were sized to the actual square size, this could lead
to bitmaps that were 1 pixel too small, presumably because of rounding.
We now add 0.99 pixel to the desired size of the texture image before
calculating the scaling factor (in floating arithmetic) that has to be
passed to the cairo scaling routine, and this seems to solve the problem.
H.G.Muller [Thu, 21 Apr 2016 21:11:25 +0000]
Limit prefilling with color to textures with alpha channel
When loading and preparing a texture we now test the format, and if
the image has an alpha channel we stay on the save side, and always
color the squares before drawing the texture. Only when the format
is not ARGB32 we skip the color fill. (And the default textures
do not have an alpha channel, so at least there no time will be
wasted on pointless color fills.)
H.G.Muller [Thu, 21 Apr 2016 20:47:18 +0000]
Fix confinement of Advisor in Xiangqi
Ever since the move-generator rewrite the Advisor could leave the Palace!
Now it can only move in XQ as a normal Ferz when on the board axis, and
everywhere els it can only move to the axis one square from the edge.
This does not generalize in a natural way to larger boards or larger
Palaces.
H.G.Muller [Thu, 21 Apr 2016 20:14:00 +0000]
Allow transparency in board textures
Rather than coloring the square evenly OR rendering a board texture
cutout we now always do both. Drawing the color will then erase anything
that was on the square before, which is expected behavior, and will then
remain visible where the texture is transparent. Before any transparency
in the texture would leave the old square content (pieces, arrows,
markers) visible.
H.G.Muller [Thu, 21 Apr 2016 17:09:00 +0000]
Make EditTags dialog non-wrapping
As the data edited with this dialog (PGN tags, engine list, theme list,
book moves, ICS menu definition) is always tabular, wrapping the lines
is just confusing, and it is better to have an automatic hscroll in case
the lines are too long to fit.
H.G.Muller [Thu, 21 Apr 2016 17:02:05 +0000]
Make preview message in file-chooser title bar a bit clearer
H.G.Muller [Thu, 21 Apr 2016 11:51:08 +0000]
Allow skipping to secondary series in -inscriptions string
A slash in the UTF8 string of the -inscriptions option now will start
the inscriptions of the pieces from the secondary series. This allows
writing -incription values that will remain valid wehen new pieces would
be added to the end of the primary series.
H.G.Muller [Thu, 21 Apr 2016 09:44:32 +0000]
Commit forgotten prototype
H.G.Muller [Thu, 21 Apr 2016 08:03:12 +0000]
Add menu item for editing ICS text menu
An item Edit ICS Menu was added in the View menu, and will pop up
the Edit Tags dialog for editing the -icsMenu option that determines
how the ICS Text Menu will look.
H.G.Muller [Thu, 21 Apr 2016 07:26:39 +0000]
Add Edit Themes List menu item XB
The Edit Tags dialog is now also used for editing the -themeName list,
with a menu item in the View menu to pop it up.
H.G.Muller [Wed, 20 Apr 2016 21:56:31 +0000]
Make preview resistent to nothing being selected
The name of the selected file could be a null pointer, and ScaleOnePiece
does not like that for a pieceImageDirectory.
H.G.Muller [Wed, 20 Apr 2016 12:44:13 +0000]
Add option -jewelled to decide which King is a Zebra XB
A new volatile option -jewelled is added, with default value -1.
When it is set to 0 the King image will be replaced by the Zebra image,
when it is 1 the same thing will happen to the black King. This color
testing will be done before the swapping of colors ordered by -flipBlack,
so that the color rather than the side of the (possibly flipped) board
decides which King is displayed as Zebra. (While the board side determines
whether a white or black Zebra will then be used in -flibBlack mode).
Shogi themes can use this by providing a Jewelled General as Zebra (a piece
that was not used in any Shogi variant).
H.G.Muller [Wed, 20 Apr 2016 09:51:56 +0000]
Point out preview in title of file chooser GTK
H.G.Muller [Wed, 20 Apr 2016 09:31:35 +0000]
Fix sizing problem in i3wm tiling window manager GTK
Apparently i3wm creates a window of different size than the requested one
without sending a configure-event that would allow XBoard to adapt its
board size. This is now fixed by triggering a first configure-event by
hand. The first resize had to no longer be suppressed to make this work.
(This was not needed anymore anyway, as the board size is now protected
during clock resize.) The -fixedSize option had also to be fixed.
H.G.Muller [Tue, 19 Apr 2016 18:49:03 +0000]
Let file chooser show preview of textures on board
When browsing for a board texture or piece theme, selecting a file in
the browser will now cause immediate display of the board with that
texture or theme, which will revert if you cancel the choice. Or when
you accept the choice, but cancel the Board dialog.
H.G.Muller [Sun, 17 Apr 2016 08:16:26 +0000]
Provide item-by-item description of ICS Chat in texi file
H.G.Muller [Sun, 17 Apr 2016 08:13:38 +0000]
Provide help clicks on recently-used-engines menu items
The items for recently used engines in the Engine menu are now recognized
as such, and will look for help on "Recently Used Engines" rather than
on the item text (which is the engine name).
H.G.Muller [Sun, 17 Apr 2016 08:05:39 +0000]
Use missing SVG from parent if -pid name starts with sub_
If the current piece-image directory's name starts with "sub_", any
pieces not found in it will be searched in the parent directory.
This allows variants that need just a few pieces of a theme changed
to get their own sub_xxx sub-directory within the directory with SVG
images, containing the deviating SVGs. This will work recursively.
H.G.Muller [Sun, 17 Apr 2016 07:32:40 +0000]
Fix one-click moving with engine-define and wild-card pieces
In the disambiguation routine wild-card pieces were still treated as
special even when explicit moves were defined for them. In addition,
Disambiguate would try native XBoard piece motion for resolving ambiguous
moves, which is sensible for parsing SAN (which might be saved by an old
version of XBoard), but wrecks one-click moving.
H.G.Muller [Mon, 11 Apr 2016 18:44:27 +0000]
Improve resize/co-dragging GTK
The reconfigure event of the main board is not processed directly,
but sets a timeout to call the actual handler, which will be restarted
when new reconfigure events occur during the timeout period. This makes
that the (very timeconsuming) redrawing and moving of all windows
will only be done if the stream of events dries up.
Unfortunately the ReSize routine called as part of the handling needs
to be interruptable, which can cause recursive calling of the reconfigure
handler. A variable 'busy' would ignore such recursion, but at the price
of missing the interrupting event completely. The attempted fix to set
a new timeout was flawed, as delayedDragTag would not have been cleared
at that point. So we threw it out. Now 'busy' is a counter, which will
remember if there were ignored recursion attempts, and then makes these
into a harmless tail recursion, to do the resize/drag once more, based
on the latest window parameters.
H.G.Muller [Sun, 10 Apr 2016 17:42:47 +0000]
Fix size collapse to 0 after too-small sizing
The test for the end of the sizeDefaults list was one off, so that
a too-small size request would be rounded to a size just behind
the table, where there is an all-zero sentinel element.
H.G.Muller [Sat, 9 Apr 2016 21:40:54 +0000]
Also put themes and textures in file chooser GTK
The themes and textures folders are now also directly listed amongst
the 'Places' shortcuts in the GTK file chooser.
H.G.Muller [Sat, 9 Apr 2016 20:47:18 +0000]
Add DATADIR as shortcut folder to file chooser
The file chooser invoked by a dialog Browse button now puts XBoard's
DATADIR amongst the shortcuts in the 'Places' list, so you can navigate
there with a single mouse click.
H.G.Muller [Sat, 9 Apr 2016 18:12:26 +0000]
Fix browsing for folders, and allow starting in DATADIR
The previous path seemed to cause a segfault when browsing for a folder
with an empty text-edit. In addition there existed a bug for browsing
from the Engine Settings dialog, where the value of the option was taken
as a filter. Both are fixed now.
The Option.textValue field, which for FileName Options holds the filter,
for PatName Options could be NULL or "". The latter is now taken to
mean that browsing should start in DATADIR, and is only used when
browsing for sound files or pieceImageDir with empty pathname field.
H.G.Muller [Sat, 9 Apr 2016 15:29:12 +0000]
Start button-activated browse near old field contents GTK
The file chooser activated by Browse buttons for filling a File or Path
text edit started in the last directory it visited for that file type.
But for the initial browse after startup it started in the current
directory. Now it starts in the directory derived from the filaname
currently in the text edit, if there is one, and only in the last-
visited directory for the file type if the text-edit was empty.
H.G.Muller [Sat, 9 Apr 2016 14:30:20 +0000]
Extend full-board textures by periodic tiling (XB)
Texture images with an -NxM suffix to their name are scaled to match
that number of squares before cutting squares out of them. But if the
actual board was larger than NxM the remaining squares fell outside the
image and remained white. Now the cutting area is mapped back into
the image, effectively behaving as if it is periodically tiling the
entire plane.
H.G.Muller [Thu, 7 Apr 2016 20:14:54 +0000]
Mention support for Arena960 protocol with USI/UCCI checkbox WB
Normally the -uxiAdapter option would be configured to use UCI2WB,
and in the binary distribution of WinBoard it certainly will be.
As UCI2WB now supports the UCI dialect Arena uses to play Chess960,
people can use the USI/UCCI checkbox also for Chess960 engines that
use that protocol, and the checkbox label now points that out.
H.G.Muller [Thu, 7 Apr 2016 17:34:20 +0000]
Finish castling and e.p. rights for Edit Position
In stead of faking rights based on corner positioning of Rooks and
e-file King, EditPositionDone now interprets the rightsBoard that
recorded 'promotion clicks' on King, Rooks or Pawns to toggle their
rights. This rightsBoard is initialized from the castling rights in
the position that is being edited, and the clear and piece-pallette
boards now also set these castling rights correctly.
H.G.Muller [Wed, 6 Apr 2016 16:22:46 +0000]
Describe Common Engine dialog item-by-item in texi file
This had not been done yet, so that help clicks in the dialog did
not retrieve any help.
H.G.Muller [Wed, 6 Apr 2016 14:44:13 +0000]
Fix history/eng.out font setting on sizing and other bug
The coord font was set with the historyFont value, and when a valid
font was taken from the fontTable, fontIsSet was not set.
H.G.Muller [Wed, 6 Apr 2016 14:08:24 +0000]
Apply fonts in 'other windows' after sizing
H.G.Muller [Wed, 6 Apr 2016 13:45:11 +0000]
Store fonts changed by font dialog in fonts table
The fonts table holds fonts per type and size that should be saved
in the settings file because they were either read from it, or explicitly
specified by the user on the command line. This now also holds for
fonts altered through the Fonts dialog, without waiting for the saving
of settings, because by that time the boardSize might already be different.
H.G.Muller [Wed, 6 Apr 2016 12:38:43 +0000]
Only save fonts that are not defaults
When the font in use is a (size-adapted) default, we don't save
it in the settings file.
H.G.Muller [Wed, 6 Apr 2016 12:25:19 +0000]
Conditionally replace 'other-window' fonts on sizing
Fonts not used in the main window (i.e. other than clock, coord and
message) are now also adjusted on sizing, but not when this would
mean replacing an explicitly specified font by a default one.
If we size to a boardSize for which a font was specified earlier,
we always switch to the latter, and if we were merely using the
default font for the old size we switch to the default font for
the new size rather than keeping it.
H.G.Muller [Wed, 6 Apr 2016 12:08:49 +0000]
Reset fontIsSet when sizing causes change to default font
The array fontIsSet now tracks whether the fonts in actual use are
from a (possibly size-adapted) default, or were specified by an option
(also through a fontIsValid entry in the fontsTable) or the Fonts dialog.
For changing a font on sizing a subroutine is now used.
H.G.Muller [Wed, 6 Apr 2016 12:08:23 +0000]
Fix bold button fix
H.G.Muller [Wed, 6 Apr 2016 11:03:38 +0000]
Lock board size when clock changes to two lines
First writing in the clock widget will usually increase its height
because the clock font is bigger than default. And for two-line
clocks as used with logos this will even be more pronounced. This
did cause the extra size to be taken from the board, ending up with
a smaller square size than originally requested. Which again would
cause any font changes to be saved as belonging to that smaller board
size. So starting next time with the originally requested size (as
opposed to the saved board size) would then not use those fonts!
The board size is now locked during the first write to the clocks,
or writes that change the number of lines.
H.G.Muller [Wed, 6 Apr 2016 10:13:52 +0000]
Fix Bold button and application of commentFont
Oops! The B button in the Fonts dialog had disappeared with the
suppression of the B(lue) button in the Board dialog! The comment
font was applied to the wrong widget in the Edit Comment dialog.
H.G.Muller [Wed, 6 Apr 2016 09:56:36 +0000]
Only adjust fonts that are actually changed
OK-ing the Fonts dialog now checks which fonts have been changed,
and only applies those to the widgets that use them. In addition it
sets a flag to indicate that the changed font no longer is a default.
A bug that did not apply the gameListFont for preview is now also
fixed.
H.G.Muller [Wed, 6 Apr 2016 08:49:53 +0000]
Put fonts in font table in allocated memory after sizing
To make it possible to change the font later it should always be
put in allocated memory.
H.G.Muller [Wed, 6 Apr 2016 07:38:56 +0000]
Fix explosion of clocks for large board size GTK
When packing things in a hbox for getting them on the same row,
the hbox was made vertically expandable when the height of the first
element was requested > 80 (assuming it would be a text memo). At
square sizes > 81 the logos would require a height > 80, though,
and would be the first element on the logo + clocks row. This would
make them expandable, so that the window height would be equally divided
between board and logos (which again would leave preciously little for
the board). Now the expandability is reserved for TextBox Options only.
H.G.Muller [Tue, 5 Apr 2016 21:40:32 +0000]
Suppress menubar text clipping on resize in OSX App
The menu bar is not in the window in OSX, so the menu texts should
always remain full length.
H.G.Muller [Tue, 5 Apr 2016 20:07:27 +0000]
Fix clipping of menu texts after sizing
When tinyLayout = 0 the texts should not be clipped at all, rather
than to a single letter.
H.G.Muller [Tue, 5 Apr 2016 19:05:11 +0000]
Enlarge background of startup message
Because of rounding of the character size the message width exceeded
the background for some square sizes.
H.G.Muller [Tue, 5 Apr 2016 18:23:12 +0000]
Adapt clock and message font after board-window sizing
The clock and message font are now adapted to the new -boardSize value
determined after sizing of the board window. When a valid font for the
new size was already available (e.g. read from the settings file), it
uses that. If not it uses the hard-coded default font name. In both
cases a %d in the name is expanded based on the size-table indication
for that font. This makes the clock font adpat even without prior history.
H.G.Muller [Tue, 5 Apr 2016 18:19:21 +0000]
Prevent message text widening window GTK
Removing the size request from the label widget of the message field
made the width of this field grow with the text displayed in it, and
with it the entire board window. This could be prevented by setting
an ellipsize mode for it.
H.G.Muller [Tue, 5 Apr 2016 16:52:32 +0000]
Pick -boardSize on window width rather than square size
For boards with other than 8 files the squares will be scaled different
from what the sizeDefaults say, so that the font and menu clipping
determined by the latter will match the total board width. We now pick
the boardSize after sizing such that popup with an 8-wide board next time
would reproduce the board width.
H.G.Muller [Tue, 5 Apr 2016 16:40:05 +0000]
Adjust menu-text clipping to square size
After window sizing has adjusted the square size the text on the menu
bar are now clipped to a length that would make the menu bar not exceed
the width of the board, similar to what is done at startup.
H.G.Muller [Tue, 5 Apr 2016 14:49:12 +0000]
Make user-adjusted board size quasi-persistent (GTK)
After adjusting the board-window size the newly calculated square size
will be used to derive a new -boardSize for saving in the settings file,
by rounding it down to the nearest standard size. (But the size actually
used for display will not be rounded!) This will cause the board to pop
up with approximately the same size next time. The remembered initial
square size will also be adapted to the rounded value, so that the fonts
will start to apply to the new -boardSize as well on saving settings.
This will only be done if the old -boardSize value did not contain
commas (meaning it specified more than just square size).
H.G.Muller [Tue, 5 Apr 2016 14:36:15 +0000]
Unlock width requests in board window GTK
The message field and clocks had a specified width to force them as
wide as the board irrespective of their text content. This prevented
the user to size the board window below the initial width. The size
requests are now removes after initial pop up, as they already were
for Graph widgets. This means the width of the window can now be
decreased, although we quickly run into the point where the texts
on clock or menu bar prevent further shrinking. (Which could only
be prevented by clipping the menu texts more, or decreasing the clock
font.)
H.G.Muller [Tue, 5 Apr 2016 12:32:54 +0000]
Adjust window height after clock-font change
A routine LockBoardSize are added, and called to protect the board's
Graph widget from absorbing the height change pf clock and message field.
Enlarging these now forces the top-level window to expand, and after the
change we try to reduce this window size to tightly fit the board to
squeeze out empty area after shrinking.
H.G.Muller [Mon, 4 Apr 2016 10:04:36 +0000]
Fix help clicks in Engine Settings dialogs
A previous patch had broken recognition of the .IX Item "..." lines.
H.G.Muller [Mon, 4 Apr 2016 10:00:57 +0000]
Ignore stderr when reading from man command
BufferCommandOutput was using StartChildProcess also used for engines,
which combines the output from stdout and stderr on the pipe. On FreeBSD
"man -w" produces spurious error messages, however, which would append
to the path of the man file. To work around this we now use popen()
to collect the output of the man command during help clicks.
H.G.Muller [Mon, 4 Apr 2016 08:53:26 +0000]
Silence Clang warnings
The assignment of the variant number to appData.variant was a real bug.
The signedness of EP_STATUS looked like one, but seemed to work in practice.
Joshua Pettus [Wed, 13 Apr 2016 18:22:35 +0000]
Update nl.po Translation
Joshua Pettus [Sun, 10 Apr 2016 12:32:47 +0000]
Update es.po translation
Joshua Pettus [Wed, 6 Apr 2016 21:29:37 +0000]
Update de.po translation
Joshua Pettus [Wed, 6 Apr 2016 03:59:50 +0000]
Update fr.po translation
Joshua Pettus [Tue, 5 Apr 2016 19:11:25 +0000]
Update zh_CN.po translation
Joshua Pettus [Mon, 4 Apr 2016 17:41:23 +0000]
Update uk.po translation
Arun Persaud [Sun, 3 Apr 2016 20:55:34 +0000]
new developer release; updated po/pot
H.G.Muller [Sun, 3 Apr 2016 19:25:31 +0000]
Start implementing rights control in Edit Position mode
Clicking on an already selected Rook or King will toggle its virginity,
displaying the new state in the message field.
H.G.Muller [Sun, 3 Apr 2016 14:28:42 +0000]
Fix erroneous use of @itemx
The offending @itemx directives were changed to @item. This does mean
an unwanted empty line will appear above the corresponding headers.
H.G.Muller [Sun, 3 Apr 2016 08:23:49 +0000]
Save font settings based on initial square size
Font settings were saved by the square size as it was at the time of
saving, which could have been altered compared to the reading of the
fonts from the settings file by interactive sizing of the window, or
by switching to a variant with other board dimensions. Now the initial
square size is remembered and used for this.
BEWARE: we might want to undo this when window sizing would affect font
selection, rather than just sizing the board.
H.G.Muller [Sat, 2 Apr 2016 17:12:22 +0000]
Let color-pickers start at current color
H.G.Muller [Fri, 1 Apr 2016 20:01:40 +0000]
Use GTK color picker instead of R, G, B and D buttons
By an awful hack in the generic dialog constructor ever Button Option
with the name R, G or B is now completely ignored, while Buttons with
name D will be replaced by GtkColorButtons. Instead of catching the
"clicked" signal these will respond to the "color-set" signal, invoking
a handler private to the GTK front end, which will set the color text
and colorof the reset button as the platform-independent handler of the
RGBD buttons would normally have done.
Unfortunately this had to use deprecated GTK2 stuff, as the recommended
GTK3 equivalents are not understood on Ubuntu 10.04.
H.G.Muller [Fri, 1 Apr 2016 14:34:15 +0000]
Use the official GTK font selector
A gtk_font_button is now put in the Fonts dialog to allow selection
of a general font. The individual window fonts got a button marked *
to assign this font to them. To implement the selector button some
kludgy code had to be added in the generic dialog constructor, to
recognize these Button Options by name, and use the special GTK
widget to implement them, or assign an unusual callback.
H.G.Muller [Fri, 1 Apr 2016 09:13:27 +0000]
Describe Fonts dialog in texi file
H.G.Muller [Fri, 1 Apr 2016 08:30:51 +0000]
Silence warning due to missing prototype
H.G.Muller [Fri, 1 Apr 2016 08:28:22 +0000]
Fix translation of dialog texts GTK
When using the Option names during the creation of GTK widgets,
the gettext macro _() was not applied to them, so they remained
untranslated even though they were marked with N_() in the Option
tables.
H.G.Muller [Fri, 1 Apr 2016 08:19:29 +0000]
Fix Xaw for font damage
A dummy for ApplyFont is added in the Xaw front end to allow compiling it,
and the Fonts dialog refuses to pop up when it recognizes an X-font setting
for the message font, with an apology.
H.G.Muller [Fri, 1 Apr 2016 08:08:15 +0000]
Silence warnings
H.G.Muller [Fri, 1 Apr 2016 07:50:46 +0000]
Replace coord font control for ICS font control
In the Fonts the control to set the coord font is removed, as the Cairo
version currently ignores the -coordFont setting. Instead a control to
set the font in the ICS Console is added. As the fonts there are controlled
by tags, and would ignoe the global font setting of the widget, the font
tag is redefined through a kludgy call of AppendColorized with a NULL
string as text. This is now interpreted as a signalfor recreating the font
tag based on the current icsFont, which will then only be applied to
future messages.
H.G.Muller [Fri, 1 Apr 2016 07:13:51 +0000]
Let font entries show preview of their own setting
The font settings are now applied to the text entries in the Fonts dialog
that control them, at popup of the dialog as well as when changing them
through the buttons.
H.G.Muller [Thu, 31 Mar 2016 22:46:37 +0000]
Add Fonts dialog
A dialog is added to set the various window fonts, either by typing or by
operating buttons for Bold, Italic, or adjusting the point size.
H.G.Muller [Tue, 29 Mar 2016 19:23:41 +0000]
Add headers for <<, <, > and >> buttons in texi file
H.G.Muller [Tue, 29 Mar 2016 19:20:51 +0000]
Fix help search
The help search was ignoring the last character of the searched string.
Which almost neven mattered, except when the searched string was only
1 or 2 characters, like for the buttons in the button bar.
H.G.Muller [Tue, 29 Mar 2016 18:20:54 +0000]
Fix disambiguation for one-click moving
The test in the DisambiguateCallback to ignore duplicate moves (as
sometimes generated by Betza descriptions) was only testing for the
same from square. This is good enugh if the to-square is always given
(as in SAN), so that moves with different to-square would always be
rejected anyway. But to determine if a piece has only a single move
we disambiguate with unknown to-square. So all moves but the first
of a piece would be ignored, making it always pass the only-move test.
We now test both from- and to-square, and only ignore moves that
have both of these equal to that of an already matching move.
H.G.Muller [Tue, 29 Mar 2016 14:33:30 +0000]
Fix exposing of premove highlight and move exclusion XB
Now that drawHighlights does not trigger an expose event itself, it is
essiential that DrawPosition is called after every SetPremoveHighlight()
call. But it wasn't after entering a premove, and after a drag-drop move
exclusion the old position was not redrawn at all, leaving the dragged
piece 'floating'.
H.G.Muller [Tue, 29 Mar 2016 14:30:50 +0000]
Fix erasing of premove highlights XB
The to-square premove highlight was not marked for erasure (but
the from-square was marked twice if the to-square higlight changed),
leading to accumulation of highlighted squares during PV walking.
H.G.Muller [Mon, 28 Mar 2016 20:31:13 +0000]
Describe New Shuffle dialog item by item in texi file
H.G.Muller [Mon, 28 Mar 2016 20:24:20 +0000]
Fix New Shuffle Game dialog
The insertion of the Fischer-castling option had broken the operation
of the 'randomize' and 'pick fixed' buttons.
H.G.Muller [Mon, 28 Mar 2016 19:56:32 +0000]
Describe -epd option in texi file
H.G.Muller [Mon, 28 Mar 2016 19:44:13 +0000]
Describe divide-by-60 option of TC dialog in texi file