xboard.git
13 years agoImplement yynewstr entry point in new parser
H.G. Muller [Thu, 10 Mar 2011 18:27:41 +0000]
Implement yynewstr entry point in new parser

This entry point, used for parsing an ICS move list, was forgotten, and
was still an empty routine. This made XBoard crash when observing an ICS
game.

13 years agofixed wrong default for polyglotDir mentioned in docs.
Arun Persaud [Tue, 8 Mar 2011 07:11:00 +0000]
fixed wrong default for polyglotDir mentioned in docs.

Thanks to Hans Aberg for reporting it.

13 years agoFix "make install" on Os X10.6.6 (removed a "/")
Arun Persaud [Sat, 5 Mar 2011 20:39:01 +0000]
Fix "make install" on Os X10.6.6 (removed a "/")

seems like an extra "/" made "make install" unhappy

13 years agoremoved parser.l from build process, also removed flex dependency from configure
Arun Persaud [Fri, 4 Mar 2011 05:19:05 +0000]
removed parser.l from build process, also removed flex dependency from configure

13 years agoNew parser, written in C
H.G. Muller [Wed, 2 Mar 2011 21:14:57 +0000]
New parser, written in C

A new parser was written to replace the flex-generated one. Immediate
improvements are that it understand double-digit rank numbers, and Shogi
coordinates. No changes were made in the Makefile yet to reflect the
new, flexless building procedure.

13 years agoFix bugs in FRC castling rights
H.G. Muller [Wed, 2 Mar 2011 21:23:21 +0000]
Fix bugs in FRC castling rights

When parsing a castling move in FRC when no rights existed, the parser
returned 0 (= EndOfFile) rather than ImpossibleMove. The recognition of
the absence of rights was not adapted to the new encoding NoRights in
stead of -1.

13 years agoFix parsing bug of FRC castling
H.G. Muller [Tue, 1 Mar 2011 22:42:34 +0000]
Fix parsing bug of FRC castling

The code that was supposed to intercept castling when no rights existed
in FRC was not adapted to the new encoding for this by NoRights, rather
than -1, and furthermore returned 0 (= EndOfFile) rather than
ImpossibleMove. Not sure if the former would manifest itself in any
way, but the latter seems bad.

13 years agoFix two bugs in reading position diagram
H.G. Muller [Tue, 1 Mar 2011 22:32:25 +0000]
Fix two bugs in reading position diagram

When reading a game without FEN tag, a position diagram is used to set
the initial position. This calls CharToPiece() with a '.' as argument,
because that is the position-diagram way to indicate empty squares.
altered CharToPiece() over time this would be recognized as the first
undefined piece or, more recently, the first piece without nickName,
which is a white Pawn. Now it returns EmptySquare again in that case.
A second problem was that for position diagrams in braces the brace was
not in the list of ignored characters, and would cause the reading to
get out of phase, so that the side to move was not recognized.

13 years agoFix flipBlack option XBoard with board texture
H.G. Muller [Sat, 26 Feb 2011 20:12:08 +0000]
Fix flipBlack option XBoard with board texture

In XBoard -flipBlack is implemented by swapping white and black pieces,
because the Shogi bitmaps from XShogi are made that way. But the mask
used to cut out the whole in the board texture to fit the piece was not
swapped, both when drawing static pieces, as well as during animation.

13 years agoImprove repairing damage of arrow highlight XBoard
H.G. Muller [Fri, 25 Feb 2011 13:38:21 +0000]
Improve repairing damage of arrow highlight XBoard

With line gap the highlight arrow necessitated redrawing of the entire
board, to repair damage on the grid. This interfered with flashing of
pieces, which was only done on selective redraws. In stead of forcing a
total repaint we now just redraw the grid lines.

13 years agoFix unintended translation in debug file
H.G. Muller [Wed, 23 Feb 2011 15:41:36 +0000]
Fix unintended translation in debug file

The words "first" and "second" (cps->which) were sometimes used in
context that should definitely not be translated. (e.g. the indicator
for which engine printed/got the line in the debug file.) So translation
is now deferred to all uses in popups.

13 years agoFix nps bug
H.G. Muller [Wed, 23 Feb 2011 15:29:12 +0000]
Fix nps bug

The nps settingwas tested for being > 0 in stead of >=0, so that the
case of CPU time was not properly handled.

13 years agoAdded missing fclose()
Kamil Blank [Thu, 24 Feb 2011 18:06:27 +0000]
Added missing fclose()

(tiny change)
Signed-off-by: Arun Persaud <apersaud@lbl.gov>

13 years agorelease of version 4.5.1
Arun Persaud [Mon, 21 Feb 2011 00:12:19 +0000]
release of version 4.5.1

13 years agoupdated Changelog, NEWS, etc.
Arun Persaud [Mon, 21 Feb 2011 00:10:16 +0000]
updated Changelog, NEWS, etc.

13 years agoFix two typos in option names in texi file
H.G. Muller [Sun, 20 Feb 2011 19:36:28 +0000]
Fix two typos in option names in texi file

Polyglot was capitalyzed

13 years agoFix some resource leaks
H.G. Muller [Sat, 19 Feb 2011 23:03:19 +0000]
Fix some resource leaks

Some files were opened not closed in XBoard, when loading XIM images
(which I doubt anyone ever does) but also when copying the clipboard
(which has the potential of being done very often). There was also some
code that would not work if conditional code which is permanently
disabled would be enabled.

13 years agonew developer release
Arun Persaud [Fri, 18 Feb 2011 04:17:04 +0000]
new developer release

13 years agoupdated Changelog, NEWS, etc.
Arun Persaud [Fri, 18 Feb 2011 04:14:38 +0000]
updated Changelog, NEWS, etc.

13 years agoFix MSVC snprintf problem
H.G. Muller [Thu, 17 Feb 2011 14:40:02 +0000]
Fix MSVC snprintf problem

In MSVC snprintf has to be redefined as _snprintf, and this happens
conditionally in config.c. But the latter was not #included in help.c.

13 years agoupdated configure.ac to check for Xaw header files
Arun Persaud [Thu, 17 Feb 2011 03:41:27 +0000]
updated configure.ac to check for Xaw header files

check for Xaw header files when --without-Xaw3d was given. Before the test was
only done when Xaw3d was specified, but could not be found.

If Xaw3d or Xaw can't be found, print a hopefully useful error message and exit the configure script.

13 years agoFix ICS channel 0
H.G. Muller [Wed, 16 Feb 2011 11:03:22 +0000]
Fix ICS channel 0

Channel 0 messages were not displayed in the console, because the test
for channel number considered every non-numeric or non-existent handle
in a chatbox to be zero. So the messages were diverted to a non-exsting
chatbox. Now it test first for the handle to start with a digit.

13 years agoMake language choice from menu persistent
H.G. Muller [Tue, 15 Feb 2011 18:13:33 +0000]
Make language choice from menu persistent

Set appData.language to the chosen language file, or empty if English is
chosen, so that the choice is saved with the settings. Increase the
number of possible language choices from 5 to 20. (After all, we already
have 7 now!)

13 years agoFix showing of user move after adjudication
H.G. Muller [Mon, 14 Feb 2011 10:09:24 +0000]
Fix showing of user move after adjudication

The correction of the fishy patch (removing ShowMove() from Adjudicate())
had broken the adjudication of user moves (that actually did work before
the fishy patch, because there the gobal fromX/Y and toX/Y do contain
the correct values for the move to be shown). An entered move that led
to adjudication (like a checkmate) now was not displayed at all. Adding
an extra ShowMove() after (successful) return of Adudicate() solves it.

13 years agoFix Xiangqi King facing
H.G. Muller [Sun, 13 Feb 2011 22:49:44 +0000]
Fix Xiangqi King facing

The Spartan patch had broken the CheckTest for Xiangqi, because cl.check
was cleared after the King-facing test, rather than before it.

13 years agoFix variant janus size prefix
H.G. Muller [Sun, 13 Feb 2011 21:30:59 +0000]
Fix variant janus size prefix

The default board size of Janus Chess was not consistently taken to be
10x8, which resulted the name to be sent as 10x8+0_janus to the engine.

13 years agoFix Alfil bug
H.G. Muller [Sun, 13 Feb 2011 11:18:52 +0000]
Fix Alfil bug

The test for Alfil (suppressing single steps on the Elephant) contained
a wrong logical operator, so that it could never be active. It also
failed to include Xiangqi as variant with traditional Alfil. This led to
one-step moves of the Elephant in these variants, and false check or
unreliable mate detections.

Fix move of Xiangqi Elephant

13 years agofixed configure script to correctly detect Xaw3d library
Arun Persaud [Thu, 10 Feb 2011 07:19:09 +0000]
fixed configure script to correctly detect Xaw3d library

13 years agoFix unmarked translation
H.G. Muller [Sun, 6 Feb 2011 21:07:17 +0000]
Fix unmarked translation

The file-browser wndowtitle in WB was not marked for translation.

13 years agoPut warning in HTML help
H.G. Muller [Fri, 4 Feb 2011 09:27:49 +0000]
Put warning in HTML help

A warning is added that the help file is not yet updated for the new
menu organzation.

13 years agoFix 64-bit Windows compilability
H.G. Muller [Fri, 4 Feb 2011 09:22:29 +0000]
Fix 64-bit Windows compilability

The API interface for Set/GetWindowLong has been changed for 64-bit
Windows, both in the name of the call as in the arguments.

13 years agoFix MSVC compilability
H.G. Muller [Fri, 4 Feb 2011 09:21:06 +0000]
Fix MSVC compilability

Both the makefile and the project file had to be adapted for the new
source file history.c, and the new location of parser.c.

13 years agoadded missing #includes and missing prototypes to filebrowser
Arun Persaud [Sat, 5 Feb 2011 18:11:58 +0000]
added missing #includes and missing prototypes to filebrowser

thanks to Max Funk for reporting. Now using HAVE_DIRENT_H.

Also cleaned up missing prototypes and some casts.

13 years agoadded missing header file for sprintf
Arun Persaud [Sat, 5 Feb 2011 17:21:48 +0000]
added missing header file for sprintf

13 years agoadded history.c to the tar-ball. Needed for Winboard
Arun Persaud [Thu, 3 Feb 2011 16:50:50 +0000]
added history.c to the tar-ball. Needed for Winboard

13 years agoFix deselection of greyed-out variant button (WB)
H.G. Muller [Mon, 31 Jan 2011 22:03:05 +0000]
Fix deselection of greyed-out variant button (WB)

In Windows a disabled radiobutton refuses to deselect when you select
another (enabled) button from the group. There are then 2 buttons
checked, and the code to readout the buttons took the first one. Now it
is changed to take the first enabled one.

13 years agoRevert "Implement -reset option feature in WinBoard"
Arun Persaud [Thu, 3 Feb 2011 16:28:15 +0000]
Revert "Implement -reset option feature in WinBoard"

This reverts commit efecf86cd9b54072c6a2f38d62f1d775e69c545b.

picked the wrong commit from HGM's git tree.

13 years agoadd DIFFSTAT and SHORTLOG to tar-ball
Arun Persaud [Wed, 2 Feb 2011 06:01:12 +0000]
add DIFFSTAT and SHORTLOG to tar-ball

was only in the v4.4.x branch and not in master

13 years agorelease of version 4.5.0
Arun Persaud [Sun, 30 Jan 2011 17:52:15 +0000]
release of version 4.5.0

13 years agochanged size of borders around squares from 0 to 1 as a default
Arun Persaud [Tue, 1 Feb 2011 15:41:04 +0000]
changed size of borders around squares from 0 to 1 as a default

this way highlights show up again.

13 years agoImplement -reset option feature in WinBoard
H.G. Muller [Sat, 29 Jan 2011 19:11:30 +0000]
Implement -reset option feature in WinBoard

13 years agoupdated Changelog, NEWS, etc.
Arun Persaud [Sun, 30 Jan 2011 18:12:08 +0000]
updated Changelog, NEWS, etc.

13 years agoupdated parser.c form parser.l
Arun Persaud [Sun, 30 Jan 2011 17:56:39 +0000]
updated parser.c form parser.l

13 years agoClean up fishy patch
H.G. Muller [Sat, 29 Jan 2011 18:59:11 +0000]
Clean up fishy patch

None of the ShowMove() calls in Adjudicate() was working, because when
this code was taken out of HandleMachineMove() it was taken outside the
scope of the local fromX, fromY etc. there, so that it started using the
global variables from the mouse driver. As these usually contain -1,
this suppressed move animation and highlighting. All these calls have
now been removed, and ShowMove() is called after a positive return (from
HandleMachineMove(), so within the correct scope).
This improves the previous fix, which led to some flicker, because the
erroneous ShowMove() calls did draw the new board (instantly), wich in
the fishy patch was then immediately overwritten by the old position, to
start animation. This drawing of the old position is now no longer
needed either.

13 years agoUpdate RTF file
H.G. Muller [Sat, 29 Jan 2011 12:36:30 +0000]
Update RTF file

The RTF file is adapted to the new menu organization.

13 years agoUpdate texi file
H.G. Muller [Sat, 29 Jan 2011 12:31:48 +0000]
Update texi file

The highlight-with-arrow and one-click-move menu items are described.
The highlightMoveWithArrow and variations option are described.
Load Next /Previous Position descriptions are moved to File menu.
The description for entering variations is updated (using Shift key).
The remark that editing holdings is impossible is removed.
Spartan Chess is added to the list of supported variants.

13 years agoUpdated copyright notice to 2011
Arun Persaud [Sat, 29 Jan 2011 02:35:48 +0000]
Updated copyright notice to 2011

13 years agoGreyout unavailable variants in New Variant dialog
H.G. Muller [Mon, 24 Jan 2011 14:01:25 +0000]
Greyout unavailable variants in New Variant dialog

The WB radio-button code is refactored to be driven from a list (which
must be kept in phase with the variant definitions in common.h!). It now
also checks if the first engine supports the variant, and greys out the
item if it isn't. XB now also makes this check. Slight re-ordering of
10x8 variants there, to have the more common on top.
If no radio button is selected, keep old variant even on OK.

13 years agoMove clock-click code to back-end
H.G. Muller [Wed, 19 Jan 2011 10:10:59 +0000]
Move clock-click code to back-end

Some duplicated (or should-be-duplicated) code for handling clicks on
the clocks from the XBoard and WinBoard front-ends was merged and
relocated to the back-end, so it can be shared. Noticeable was that
XBoard allowed turn change in ICS examine mode by clock clicking,
while WinBoard did not. WB, on the other hand, allowed clock adjustment.

13 years agoFix legality testing of drop moves
H.G. Muller [Sun, 16 Jan 2011 22:15:17 +0000]
Fix legality testing of drop moves

Drops of noexistent pieces (i.e. with a piece indicator letter that is
not corresponding to any defined piece) are now parsed as
ImpossibleMove, rather than IllegalMove, so they are also rejected with
legality testing off.

13 years agoFix WB Sound Options greyout and remove some grossness
H.G. Muller [Sun, 16 Jan 2011 23:28:32 +0000]
Fix WB Sound Options greyout and remove some grossness

The sound and ICS Options menu items in WB were accessed 'by position',
with fixed defined positions (always messing up any reorganization of
the menus when you forgot to redefine the position constants in
winboard.h). And not only that, but for completely mysterious reasons,
the greying of the sound item greyed out the game-list options (above
it) in stead when it was defined as 9, and the ICS options (below it)
when it was 10 !!!. Now they are addressed 'by command' (and the
position definitions are removed), which fixes things.

13 years agoRe-instate load next/prev position menu items
H.G. Muller [Tue, 25 Jan 2011 20:35:10 +0000]
Re-instate load next/prev position menu items

As positions do not use something similar to the game list, these are
still useful. For some reason I could not get Alt+Shift+PgUp/Dn to work,
so I settled for Shift+PgUp/Dn.

13 years agoRemove superfluous copying of machine move
H.G. Muller [Sun, 16 Jan 2011 20:56:14 +0000]
Remove superfluous copying of machine move

There was explicit code in HandleMachineMove() and FinishMove() to put
the move in the moveList, while MakeMove() already does this later in a
more reliable way by calling CoordsToComputerAlgebraic(). This
superfluous code is removed now.

13 years agoFix spurious mate test in Edit Game mode
H.G. Muller [Sun, 16 Jan 2011 20:44:26 +0000]
Fix spurious mate test in Edit Game mode

When entering a game, it was terminated by the mate test even when
legality checking was switched off (so that mates might not be reliably
recognized). The mate test is now made dependent on legality testing.

13 years agoFix type-in of drop moves
H.G. Muller [Sun, 16 Jan 2011 20:37:16 +0000]
Fix type-in of drop moves

Drop moves entered through the move type-in already come in the (piece,
DROP_RANK, x, y) format, rather than having a holdings from square. This
caused UserMoveEvent to consider them illegal when testing if the
piecewas of the side to move, and when this was fixed, to recognize
Knight drops as coming from between board and holdings (and thus
illegal).

13 years agoFix move type-in truncating game
H.G. Muller [Sun, 16 Jan 2011 20:31:42 +0000]
Fix move type-in truncating game

Starting a new variation by keeping Shift pressed did not work when
OK'ing the move type-in, because there was some code ther that truncated
the game. While this could be safely left to UserMoveEvent, which it
calls, as the situation is not different from entering moves through the
mouse.

13 years agoFix legality testing for promotions
H.G. Muller [Tue, 11 Jan 2011 15:12:02 +0000]
Fix legality testing for promotions

Turns out WB has never tested for the legality of the chosen promotion
piece, and would allow promotion to King innorml chess even with
legality testing on (when entered through the keyboard)! Now strict
testing is done, outlawing Pawns and Kings (or Unicorns in
Knightmate). Only in suicide / giveaway Kings are stillallowed, and in
spartan a black King if you do not have two yet.(And promotion
toLnce,representing Hoplite Pawn,is forbidden there.)

13 years agoReset 50-move counter on all pawn-like Lance moves
H.G. Muller [Tue, 11 Jan 2011 10:34:07 +0000]
Reset 50-move counter on all pawn-like Lance moves

Now the Lance represents a Pawn-like piece not only in variant fairy,
but anywhere outside Shogi / Superchess, its moves should also reset the
50-move counter in those cases. Especially important for Spartan Chess,
where the Lance actually participates.

13 years agoFix logo repainting
H.G. Muller [Tue, 11 Jan 2011 10:18:15 +0000]
Fix logo repainting

The logos were not repainted when the main window was moved out of the
display area, and then back into view. The reason for this is
unknown, as the PaintProc calls HDCDrawPosition, which was calling
DrawLogoOnDC. But the logos were not drawn, (or on an expose event
sometimes half drawn!) despite the fact that the rest of the board was.
The drawing of logos now has been decoupled from drawing the board,
and has been moved to a separate routine DisplayLogos() (in analogy to
DisplayBothClocks()). This is cleaner anyway, as the logos usually do
not change when the board does. So apart from in PaintProc, it has only
to be called when the mode changes (ModeHighlight()) or on swap clocks.
This seems to fix the problem.

13 years agoFix time in PGN info
H.G. Muller [Mon, 10 Jan 2011 19:36:48 +0000]
Fix time in PGN info

Saving of the thinking time in the PGN was broken by the patch that
removed the race condition in the clock switching, because that moved
the incrementing of forwardMostMove to behind the code that used fmm to
index pvInfoList. As a result the time was stored in the slot for the
opponent's previous move. The value is corrected now.

13 years agoFishy fix
H.G. Muller [Sat, 8 Jan 2011 23:24:17 +0000]
Fishy fix

The move that delivers checkmate in two-machines mode is not animated
when adjudication is on. There then also is no highlighting of this move
Redrawing the board and calling ShowMove fixes it. Which is rather
strange, because ShowMove was already called in Adjudicate (when it
adjudicates), before GameEnds. For reasons that are not understood this
call to ShowMove() (which calls AnimateMove()) is not effective.

13 years agoReset machine colors after match
H.G. Muller [Sat, 8 Jan 2011 23:21:41 +0000]
Reset machine colors after match

The colors each engine playse are set to the originals after the last
match game, so that a new match or two-machines game will not have
swapped colors.

13 years agoReset win/loss counters before match
H.G. Muller [Sat, 8 Jan 2011 23:15:18 +0000]
Reset win/loss counters before match

The win/loss counters were not reset, because the code counted on them
being initialized to zero. But with matches startable from the menu,
this is no longer true after the first match.

13 years agoShow move that causes false illegal-move claim
H.G. Muller [Sat, 8 Jan 2011 23:08:52 +0000]
Show move that causes false illegal-move claim

Without claim testing XBoard takes back moves that an engine objects to.
But when the engine is forfeited for a false claim, the move should of
course stay. So the claim test is moved to before the take-back.

13 years agoFix Spartan promotion to King
H.G. Muller [Sat, 8 Jan 2011 23:05:38 +0000]
Fix Spartan promotion to King

Promotions toKing were refused when in check, because XBoard thought
they would not resolve the check. Now the promotion is actually
performed before doing the check test.

13 years agoFix WB font-based piece rendering on variant switch
H.G. Muller [Wed, 5 Jan 2011 16:31:37 +0000]
Fix WB font-based piece rendering on variant switch

The piece bitmaps were only created from the font characters when the
number of ranks or files changed, because it was done in
InitDrawingSizes(). This caused missing pieces when changing to a
variant on the same board that used other pieces. Now InitDrawingSizes()
is called for any variant switch.

13 years agoFix right-alignment pproblem in WB ICS window
H.G. Muller [Wed, 5 Jan 2011 16:25:11 +0000]
Fix right-alignment pproblem in WB ICS window

Use of Ctrl-R to summon the context menu still trickled through to the
default text-edit window routine, and caused right-alignment. This was
because the text-edit reacts on keyDown rather than the character event.
KeyDown of R with Ctrl pressed is now also intercepted and ignored.

13 years agoFix chat window title
H.G. Muller [Mon, 3 Jan 2011 12:04:56 +0000]
Fix chat window title

The title was using the engine name, rather than the ICS handle, which
did not work outside zippy mode. Now it only uses the engine name when
no ICS handle is known. The titleis now also subjected to translation.

13 years agoFix spurious reading of old game title by JAWS
H.G. Muller [Mon, 3 Jan 2011 11:50:54 +0000]
Fix spurious reading of old game title by JAWS

Because focus was switched to the board window before loading the
selected game from the game list, the titlebar still contained the
name of the previously loaded game, which would spontaneously be read by
JAWS. Now the focus switch is done after loading the new game (which
updates the window title.)

13 years agoAdd variant Spartan Chess
H.G. Muller [Mon, 3 Jan 2011 11:37:17 +0000]
Add variant Spartan Chess

In the WB menu it takes the place of the defunct Twilight Chess item.
The setup routine needed patching for setting up Lances in stead of
Pawns for black, the check test had to be adapted to handle duple check,
Alfil and Dragon moves were fine tuned in this variant to make the exact
moves, and the promotion popup was adapted to show King and interpret
Rook and Bishop as Dragon and Alfil for black. The Alfil now always
moves as Modern Elephant except in Shatranj and Courier.

13 years agoFix mate test
H.G. Muller [Mon, 3 Jan 2011 11:23:39 +0000]
Fix mate test

Due to a bug in logical operators drops were tried for mate evasions
even in non-drop games, which broke it in Superchess and Great Shatranj,
and wasted CPU time in other variants.

13 years agoFix promotion suffixon disambiguated piece moves
H.G. Muller [Wed, 5 Jan 2011 16:19:35 +0000]
Fix promotion suffixon disambiguated piece moves

The promotion suffixon piecemoves that needed disambiguation was not
passedon to the back-end in most variants. Now it is passed on in any
variant.

13 years agoFix promotion of Pawn-like Lance
H.G. Muller [Mon, 3 Jan 2011 11:08:19 +0000]
Fix promotion of Pawn-like Lance

In variants where the Lance is used to represent an unorthodox Pawn, it
must promote when it reaches last rank. With legality testing on,
however, the promoChar was ignored in ApplyMove in this case. The
promotion suffix also was not appended in SAN moves.

13 years agoFix WB promotion popup
H.G. Muller [Mon, 3 Jan 2011 10:57:23 +0000]
Fix WB promotion popup

The promotion popup did not work properly in variants where black did
not use the pieces that white wanted to promote to. Now the character
for the selected piece is taken from the piece encodings of the side to
move. In addition, selection of undefined pieces is ignored.

13 years agoFix bug in parsing variations
H.G. Muller [Sun, 2 Jan 2011 13:17:32 +0000]
Fix bug in parsing variations

The moves parsed from a variation were stored in the moveList without
appended linefeed. This caused errors if the variation extended to
beyond the end of the main line,into a hitherto unused part of the move
list, as the linefeed was then not there from the overwritten move. As a
result moves sent to the engine were concatenated, triggering
illegal-move messages and bringing the engine out of phase.

13 years agoDefine Ctrl-R as right-click in WB Comment dialog
H.G. Muller [Sun, 2 Jan 2011 13:11:45 +0000]
Define Ctrl-R as right-click in WB Comment dialog

To allow JAWS users to load a variation through the keyboard, Ctrl-R is
equated to a right click at the position of the caret or selection.

13 years agoAllow starting a variation from keyboard entry in WB-JAWS
H.G. Muller [Sun, 2 Jan 2011 13:10:02 +0000]
Allow starting a variation from keyboard entry in WB-JAWS

The status of the shift key is remembered when space is pressed to
select a board square.

13 years agoDisable some accelerators in JAWS version
H.G. Muller [Sun, 2 Jan 2011 13:06:14 +0000]
Disable some accelerators in JAWS version

Single-key accelerators that could result in irreversible data loss are
undesirable, because the risk of accidentally pushing them is too large.
So the non-Alt duplicates of next/previous game/position are disabled,
as are Home and End for Revert and Truncate Game. JAWS users will have
to rely on the menus for those functions.

13 years agoGroup engine-output memos with engine names
H.G. Muller [Sun, 2 Jan 2011 12:59:01 +0000]
Group engine-output memos with engine names

The engine names are now defined just before the text edits, so that
JAWS 11 will read the engine name when the memo for the output of that
engine is selected. (JAWS 10 will still read the NPS, as it reads in
geometrical order.)

13 years agoPut nr CPU earlier in tab cycle of WB Common Engine dialog
H.G. Muller [Sun, 2 Jan 2011 12:55:19 +0000]
Put nr CPU earlier in tab cycle of WB Common Engine dialog

By defining the max CPU control after hash size, the tabbing steps
through the controls in geometrical (and logical) order, rather than
having the max CPU in between the book controls.

13 years agoUpdate WB language template file
H.G. Muller [Wed, 29 Dec 2010 22:47:14 +0000]
Update WB language template file

13 years agoSubject JAWS menu and spoken strings to translation
H.G. Muller [Wed, 29 Dec 2010 22:41:27 +0000]
Subject JAWS menu and spoken strings to translation

13 years agoLet JAWS SayString buffer full sentence
H.G. Muller [Wed, 29 Dec 2010 22:37:39 +0000]
Let JAWS SayString buffer full sentence

The meaning of the flag parameter of SayString was changed to indicate
buffering of flushing. On flushing a message of a single space is used
as a kludge to indicate interruptability. Calls to force flushing where
added everywhere.

13 years agoAdapt JAWS menu to new menu organization
H.G. Muller [Wed, 29 Dec 2010 22:32:54 +0000]
Adapt JAWS menu to new menu organization

The menus did not correspondto the texts after translation of the main
menu bar.

13 years agoTranslate menus after creation of JAWS menu
H.G. Muller [Wed, 29 Dec 2010 22:18:30 +0000]
Translate menus after creation of JAWS menu

13 years agoFix ICS context menu for JAWS
H.G. Muller [Wed, 29 Dec 2010 22:07:05 +0000]
Fix ICS context menu for JAWS

The Ctrl+R key did select text at the mouse pointer in stead of at the
curser, now that up and down-click were combined.

13 years agoReorganize order of WB New Variant dialog controls
H.G. Muller [Wed, 29 Dec 2010 22:04:08 +0000]
Reorganize order of WB New Variant dialog controls

The definitions are re-ordered so that at least JAWS 11 will speak the
board-size elements properly.

13 years agoFix order of elements in WB time-control dialog
H.G. Muller [Wed, 29 Dec 2010 21:57:55 +0000]
Fix order of elements in WB time-control dialog

Someleading texts were defined after the text edit they referred to,so
that JAWS 11 associated them to the wrong one. A tab stop was added to
the time-odds label, to make JAWS speak it.

13 years agoChange tabbing order in WB sounds dialog
H.G. Muller [Wed, 29 Dec 2010 21:51:17 +0000]
Change tabbing order in WB sounds dialog

The 'Play' button now gets focus immediately after the controls for
selecting the sound, rather than at the end of the dialog (after OK).

13 years agoRemove tab stops on first radio button of WB dialogs
H.G. Muller [Wed, 29 Dec 2010 21:47:26 +0000]
Remove tab stops on first radio button of WB dialogs

The New Variant and Board dialogs had a tab stop on the first radio
button,so that tabbing toit would automatically select variant
normal or size tiny. Now it tabs straight to the current size, without
changing anything. (Important for JAWS users.)

13 years agoPut OK/Cancel last in tab cycle of some WB dialogs
H.G. Muller [Wed, 29 Dec 2010 21:45:23 +0000]
Put OK/Cancel last in tab cycle of some WB dialogs

13 years agoFix duplicate menu character for Edit Comment
H.G. Muller [Wed, 29 Dec 2010 21:29:37 +0000]
Fix duplicate menu character for Edit Comment

Edit Comment did have the same shortcut character as Copy Game. Changed
to m now.

13 years agofixed automake process: xboard.conf couldn't be generated if $srcdir was not the...
Arun Persaud [Sat, 11 Dec 2010 19:18:56 +0000]
fixed automake process: xboard.conf couldn't be generated if $srcdir was not the current directory

13 years agonew developer release
Arun Persaud [Sat, 11 Dec 2010 17:50:48 +0000]
new developer release

13 years agoSubject WB context menus to translation
H.G. Muller [Sun, 5 Dec 2010 17:01:21 +0000]
Subject WB context menus to translation

The innerloopof the menu translation has been made into a separate
routine. This now uses GetMenuItemInfo() in stead of ModifyMenu() to
better preserve menu breaks. Menu #10 is used for context menus (from
the routine that pops them up), and for this number the orignal texts
are not saved in menuText. (This is not needed, because the menu is
created everytime anew from the resource data.)

13 years agoUpdate translation template
H.G. Muller [Sun, 5 Dec 2010 14:00:28 +0000]
Update translation template

Add the new menu items; add some notes.

13 years agoResize buttons in WB engine-settings dialog
H.G. Muller [Sun, 5 Dec 2010 13:04:46 +0000]
Resize buttons in WB engine-settings dialog

The OK and cancel buttons were to narrow for most translations, and were
a non-standard order as well.

13 years agoAdd one-click move control to WB general-options dialog
H.G. Muller [Sun, 5 Dec 2010 12:56:52 +0000]
Add one-click move control to WB general-options dialog

This is a duplicate of the one in the ICS options dialog, but the latter
is inaccessible in non-ICS modes, and one-click move is now
alsoavailable in engine mode.

13 years agoCreate space in dialogs for translation
H.G. Muller [Sun, 5 Dec 2010 12:51:20 +0000]
Create space in dialogs for translation

The translated texts often did not fit, because controls were defined
needlessly small (when there was empty space between them). In these
cases they have been enlarged to consume all available space. Some
dialogs are made wider.

13 years agoAdd handle for translator acknowledgement
H.G. Muller [Sun, 5 Dec 2010 12:47:26 +0000]
Add handle for translator acknowledgement

An empty string is printed in the about box, which can be 'translated'
to a message acknowledging the translator.