xboard.git
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.

13 years agoUse default logo for user
H.G. Muller [Sun, 5 Dec 2010 12:43:26 +0000]
Use default logo for user

When no logo with the name of the current user is found, use dummy.bmp.

13 years agoadded rlwrap tip to FAQ
Arun Persaud [Sun, 5 Dec 2010 23:46:34 +0000]
added rlwrap tip to FAQ

13 years agoreplace hard coded paths with path from configure script
Arun Persaud [Sat, 4 Dec 2010 07:24:06 +0000]
replace hard coded paths with path from configure script

use $datadir and subdirectories to store some data files. Also make files in xboard.conf use correct path.

13 years agofixed a typo in the configure script output
Arun Persaud [Sat, 4 Dec 2010 07:02:09 +0000]
fixed a typo in the configure script output

13 years agoadded a desktop file
Arun Persaud [Sat, 4 Dec 2010 05:46:00 +0000]
added a desktop file

taken from the openSUSE project

13 years agoFix Edit Game/Position checkmarking in WinBoard
H.G. Muller [Fri, 3 Dec 2010 21:44:02 +0000]
Fix Edit Game/Position checkmarking in WinBoard

Because the entries in Edit and Mode menu were pure duplicats, the
entries in the wrong menu (Edit) were checkmarked while active. By
defining different IDs for those in the Edit menu, those in the Mode
menu are checkmarked again.

13 years agoAdd XBoard menu items for arrow highlight and one-click move
H.G. Muller [Fri, 3 Dec 2010 09:07:34 +0000]
Add XBoard menu items for arrow highlight and one-click move

These items are put in the options menu; the 'Old Save Style' item is
removed.

13 years agoProvide menus for editing WinBoard engine and server lists
H.G. Muller [Fri, 3 Dec 2010 08:27:58 +0000]
Provide menus for editing WinBoard engine and server lists

The Edit Tags dialog in the WB front-end is adapted to act as a general
edit for string variables, by giving it an extra parameter to indicate
where to store the edited result. Menu items are added to invoke this
dialog for editing the /first, /secondChessProgramNames and /icsNames
options. This solves the problem that people would have to edit an ini
file that they can no longer locate (because the %APPDATA% folder has
different names and locations in the various Windows versions, and is
often a hidden folder on top of that).
There is a slight memory leak here, as the memory for the previous
value of the altered string option is not freed.

13 years agoConfigure arrow highlighting as default in XBoard
H.G. Muller [Thu, 2 Dec 2010 15:18:53 +0000]
Configure arrow highlighting as default in XBoard

Set -highlightMoveWithArrow true in the xboard.conf file, and specify a
lineGap of 0 to make that efficient (and the wood theme even nicer).

13 years agoPort highlighting with arrow to XBoard
H.G. Muller [Thu, 2 Dec 2010 14:56:46 +0000]
Port highlighting with arrow to XBoard

Unfortuntely this duplicates a fair amount of code in the front end.
Removing the arrow is done by a total repaint if there is a non-zero
lineGap, because the clever algorithm for selective redrawing (based
on damage) that XBoard uses does not repair damage to the grid lines.
For lineGap=0, however, (for which the arrow is mainly intended) the
damage mechanism is used, and the damaged squares are determined by
tracing out the arrow in 64 steps, and marking all squares in the
neighborhood as damaged.

13 years agoStrip CR from xboard.c
H.G. Muller [Thu, 2 Dec 2010 14:55:25 +0000]
Strip CR from xboard.c

13 years agoLet user decide if he wants highlights in blindfold mode
H.G. Muller [Thu, 2 Dec 2010 13:21:24 +0000]
Let user decide if he wants highlights in blindfold mode

Remove the automaticsuppression ofhighlighting.

13 years agoFix fag-fell marker with logos on
H.G. Muller [Wed, 1 Dec 2010 23:24:43 +0000]
Fix fag-fell marker with logos on

The flag-fell marker "(!)" that is displayed in the clock in WinBoard in
two-machines mode was printed twice when the clock was split over two
lines (as with logos on).

13 years agoAlso exempt variant seirawan from eval-scale doubling
H.G. Muller [Wed, 1 Dec 2010 17:57:57 +0000]
Also exempt variant seirawan from eval-scale doubling

It is not really a drop game, so a scale from -7 to 7 in the eval graph
is good enough (like variants great and super).

13 years agoConfigure EGTB cache size in adapterCommand
H.G. Muller [Wed, 1 Dec 2010 09:33:13 +0000]
Configure EGTB cache size in adapterCommand

The hash size, nr of CPUs and EGTB path are transferred through the WB
protocol interface commands memory, cores and egtpath. But there is no
WB command for detailing the EGTB cache size. So the value of the
command-line option -defaultCacheSizeEGTB has to be sent to Polyglot
through its startup command to make it known to UCI engines.

13 years agoMove Hint and Book items to Engine menu in XBoard
H.G. Muller [Tue, 30 Nov 2010 21:46:16 +0000]
Move Hint and Book items to Engine menu in XBoard

13 years agoCorrect the key bindings fo view menu in texi file
H.G. Muller [Tue, 30 Nov 2010 21:17:24 +0000]
Correct the key bindings fo view menu in texi file

The mentioned bindings for Game List and Eval Graph were wrong.

13 years agoFix sub-variation display with negative score
H.G. Muller [Tue, 30 Nov 2010 20:25:07 +0000]
Fix sub-variation display with negative score

The test if the displayed score was the pvInfo score failed for negative
scores, because floats are truncated towards zero. So the previous fix
of spurious score/depth info was not working when the score was
negative.

13 years agoPeel PV out of comment
H.G. Muller [Tue, 30 Nov 2010 17:27:52 +0000]
Peel PV out of comment

Arena stores engine PVs not in variation format, but within both braces
and parentheses, before the score/depth info. This caused XBoard to
overlook the score/depth info, (frustrating, e.g., the eval graph),
while the PV would not be accessible for walking it as a variation.
The routine that extracts the score/depth from a comment now has
been made more clever, to recognize a leadin PV in the comment, and then
place it in front of the comment as variation (by moving the opening
brace to behind it). For some reason it does not work if the PV and
score/depth were separated by a newline, but this happens quite rarely.

13 years agoAllow line-straddling result comments
H.G. Muller [Tue, 30 Nov 2010 17:23:12 +0000]
Allow line-straddling result comments

Some GUIs (in particular Arena) do not have the decency to keep the
result comment on a single line. In this case the parser rules would not
recognize it, and treat it as a normal comment, plus an undetailed PGN
result. The rules are now fixed to allow linefeeds in the comment, and
between comment and PGN result. To correctly process the comment further
(e.g. in game-list lines) the linefeeds are replaced by spaces in the
back-end routines that do use the result comment.

13 years agoWrite key bindings in XBoard menus
H.G. Muller [Tue, 30 Nov 2010 11:22:32 +0000]
Write key bindings in XBoard menus

Unfortunately tabs are not understood in menu texts, so fine-tuning
through spaces is necessary to get some sort of ragged alignment.

13 years agoConfigure XBoard to use wood board texture by default
H.G. Muller [Mon, 29 Nov 2010 17:01:38 +0000]
Configure XBoard to use wood board texture by default

The texture pixmaps are sought in /usr/share/games/xboard, with names
wood_l.pm and wood_d.xpm. I guess the " make install" should be adapted
to put them there. XBoard is resitent to non-existence of the files,
btw. It simply ignores the arguments in that case.

13 years agoConfigure -inc as volatile option in XBoard
H.G. Muller [Mon, 29 Nov 2010 16:48:48 +0000]
Configure -inc as volatile option in XBoard

XBoard users are not used to options being persistent, and thus have
many scripts assuming the timeIncrement is -1 when they don't specify it
on the command line, and want to specify -mps. But a persistent -inc of
0 fom a preious session would then force their -mps to zero, causing
big-time confusion.

13 years agoMake WinBoard clocks translation-proof
H.G. Muller [Mon, 29 Nov 2010 16:36:33 +0000]
Make WinBoard clocks translation-proof

With logos on, the splitting of the clock over two lines assumed the
lengths of the words "white" and "black" would always be 5. Used strlen.

13 years agoImprove drawing of highlight arrow
H.G. Muller [Mon, 29 Nov 2010 13:57:00 +0000]
Improve drawing of highlight arrow

A diagonal arrow sometimes had a notch in the shaft because of
independent rounding of the starting and ending point coordinates.
Furthermore the width of the shaft was unnecessary variable(as a
function of direction) because half the width was rounded and then used
twice. Now rounding of end-points is always done towards a fixed grid
of square centers, which keeps diagonals purely diagonal, and one side
of the shaft is drawn relative to the other side, after the
position of the latter has been rounded, so any rounding error affects
the shaft width only once.

13 years agoAlter descriptionof Analyze File menu item
H.G. Muller [Mon, 29 Nov 2010 09:25:50 +0000]
Alter descriptionof Analyze File menu item

This menu item has been given a new function, so a new description was
needed.

13 years agoAdd description of Game List Options in texi file
H.G. Muller [Mon, 29 Nov 2010 09:15:39 +0000]
Add description of Game List Options in texi file

13 years agoUpdate texi file for new menu organization
H.G. Muller [Mon, 29 Nov 2010 08:58:00 +0000]
Update texi file for new menu organization

The descriptions are shuffled around and organized into sections
corresponding to the new main menus. Where necessary the name of the
items was changed to their new names. The items removed from the File
menu (the next/previous/same stuff) are nowmoved to the section "other
shortcut keys", as the key bindings for some of them are still active.

13 years agoUpdate info on key bindings in texi file
H.G. Muller [Mon, 29 Nov 2010 08:06:14 +0000]
Update info on key bindings in texi file

The texi file was still listing the old XBoard key bindings. Where
necessary this is now changed to the new (WinBoard) bindings, and all
the new bindings were added.

13 years agoAdd XBoard key bindings for Revert and Truncate
H.G. Muller [Mon, 29 Nov 2010 08:04:53 +0000]
Add XBoard key bindings for Revert and Truncate

Use Home key as accelerator for Revert, End for Truncate, as in WinBoard.

13 years agoDivorce the Edit and Show Tags/Comment menu items
H.G. Muller [Sun, 28 Nov 2010 22:12:14 +0000]
Divorce the Edit and Show Tags/Comment menu items

In WinBoard the items in the Edit and View menu for Tags and Comment now
have different IDs, so they can be independently controlled. Only the
items in the View menu are check-marked. The items still do the same.

13 years agoAlter WinBoard menu text
H.G. Muller [Sun, 28 Nov 2010 22:08:26 +0000]
Alter WinBoard menu text

The texts are slightly adapted, mostly by choosing more convenient
tabbing characters for the new menu organization. The translation
template is updated accordingly.

13 years agoLet move-history window scroll to bottom after adding move
H.G. Muller [Sun, 28 Nov 2010 19:24:46 +0000]
Let move-history window scroll to bottom after adding move

By activating the scrollbar of the viewport through XtCallActionProc
the move-history window is scrolled to the bottom.

13 years agoFix Shogi promotion popup
H.G. Muller [Sat, 27 Nov 2010 13:38:14 +0000]
Fix Shogi promotion popup

The texts were adapted to shogi by printing new text items over the
Queen and Knight buttons, but these did not alwys cover it. Now the text
on the buttons is changed as it should be. Also the window title is
adapted.

13 years agoApply gettext macros to menu texts
H.G. Muller [Fri, 26 Nov 2010 10:22:06 +0000]
Apply gettext macros to menu texts

Now texts and references are separated, the texts in the tables can be
decorated with the N_() macro, so that the _() macro no longer has to be
applied when they are used. (This makes the texts appear in the .po
files.)

13 years agoAdapt some XBoard menu texts
H.G. Muller [Fri, 26 Nov 2010 10:12:58 +0000]
Adapt some XBoard menu texts

The "Show" prefix is removed from the "View" menu items, as this seems
implied. An ellipsis is added to the Engine #N Settings items, which
could not be there before, because periods in a menu name would break
any reference to it. For some other names the ellipsis was deleted.
(These were not refered to, but who knows what we will do in the future.)

13 years agoSeparate menu text from menu name in XBoard
H.G. Muller [Fri, 26 Nov 2010 10:03:35 +0000]
Separate menu text from menu name in XBoard

The text string in the menu-definition tables was used both for the menu
text, as well as for referencing the items from the code (for enabing or
checkmarking). Now these can be defined separately, so that altering the
menu texts is possible without breaing any references to the item.
(Moving them to another menu would still break XBoard, though!)
Currently the texts and names are still the same.

13 years agoBugfix XBoard menu translation
H.G. Muller [Fri, 26 Nov 2010 09:48:54 +0000]
Bugfix XBoard menu translation

The gettext macro N_() was applied to the menu definition tables, but
this would break any translation, as these items are both used as menu
texts as well as reference for enabling and checkmarking. The routines
that create the menus already apply _() dynamically to these items when
they are used as menu texts.

13 years agoRestrict drops in variant seirawan to back rank
H.G. Muller [Fri, 26 Nov 2010 09:10:55 +0000]
Restrict drops in variant seirawan to back rank

Drops aren't really llowed at all in Seirawan Ches, but there exists an
engine that supports a variant where drops on the back-rank are allowed.

13 years agoLet Analyze File annotate the loaded game
H.G. Muller [Thu, 25 Nov 2010 18:44:37 +0000]
Let Analyze File annotate the loaded game

By not suppressing the auto-play loop in AnalyzeFle mode, we step
through the game while the engine is analyzing, and store the PV info
that the engine produces, as well as the full PV (as variation comment)
with each move.

13 years agoRevive Analyze File menu item in WB
H.G. Muller [Thu, 25 Nov 2010 18:41:05 +0000]
Revive Analyze File menu item in WB

We will keep this menu after all, becase it can be given a new meaning.

13 years agoFix spurious scores in comments
H.G. Muller [Thu, 25 Nov 2010 18:31:52 +0000]
Fix spurious scores in comments

The comment popup is also used to display engine PV info, but when the
contents of the window is written back when we select a variation,
it was treated as a real comment. This is fixed now by checing in
ReplaceComment() if the comment starts with the PV info, and if so,
ignore the latter. This solves the problem, but I guess the real bug is
that selecting a variation tries to write the comment even if it did not
change.

13 years agoDisplay error for wrong use of Machine Match
H.G. Muller [Thu, 25 Nov 2010 18:26:34 +0000]
Display error for wrong use of Machine Match

13 years agoReorganize XBoard menus
H.G. Muller [Wed, 24 Nov 2010 12:30:08 +0000]
Reorganize XBoard menus

13 years agoReorganize WinBoard menus
H.G. Muller [Wed, 24 Nov 2010 10:02:19 +0000]
Reorganize WinBoard menus

New main menus Edit, View and Engine are added; the step menu
disappears. The menu items are redistributed over the new menus.
Sometimes duplicates are created. No adaptation of short-cut characters
as made yet (as this affects translation).

13 years agoremoved trailing whitespaces from NEWS
Arun Persaud [Sun, 21 Nov 2010 04:20:27 +0000]
removed trailing whitespaces from NEWS