H.G. Muller [Tue, 7 Feb 2012 22:04:49 +0000]
Increase max nr of engines to 2000
Move the #define for MAXENGINES also to common.h, so that both the
Load and Tourney dialog use the same maximum.
H.G. Muller [Thu, 19 Jan 2012 22:01:20 +0000]
Fix fix of switch to mono-mode
The previous fix had == in stead of != for testing if mono-mode had changed.
H.G. Muller [Thu, 19 Jan 2012 21:21:38 +0000]
Make New Variant dialog visible in mono-mode
All colored buttons did get a black background, and also black text...
Use timer background color in stead, which is white.
H.G. Muller [Thu, 19 Jan 2012 19:48:37 +0000]
Incease size of WB array of translated items
For the BoardOptions dialog 42 items are now needed
H.G. Muller [Thu, 19 Jan 2012 16:18:25 +0000]
Implement Clone Tourney button XBoard
This makes use of the new GenericUpdate().
H.G. Muller [Thu, 19 Jan 2012 15:34:13 +0000]
Implement GenericUpdate function
This does the opposite from GenericReadout: it copies the current
parameter values into the dialog.
H.G. Muller [Thu, 19 Jan 2012 11:19:27 +0000]
Fix arrow damage with highlightDragging XB
With highlight dragging the highlights of the previous moves are cleared
when lifting the piece. Logically, this should also clear the arrow, but
to do that requires a board redraw, which is not done at this stage. (And
even then this would only be effective after marking the arrow damage,
which is not done yet either). As a temporary fix, we repair the arrow
by redrawing it.
This patch has moved marking of the arrow damage from DrawArrowHighlight
to a separate routine, so a future better fix can also call that when the
arrow should be erased.
H.G. Muller [Wed, 18 Jan 2012 15:01:50 +0000]
Prevent unnecessary loading of engines
For engines that can be reused, the unloading at the end of a pairing
is in some cases wasteful, as the same engine will be used in the next
pairing as well. In simple gauntlets the gauntlet engine will always
stay first engine, while in multi-gauntlets the oppent engine will stay
the same for an entire round. In these cases unloading is now suppressed.
H.G. Muller [Tue, 17 Jan 2012 21:22:32 +0000]
Reset protocol version before loading new engine
The protocol version was not reset, so if the previous engine was v1,
the newly loaded engine would not be sent a protover command, so
that its features would remain unknown!
H.G. Muller [Tue, 17 Jan 2012 18:33:32 +0000]
Give focus to board window after ICS login
toprevent that the focus remains on any popped up chat boxes, it is
explicitlly set otherwise. The board window is preferred over the
ICS interaction window, because you can type from there to the ICS anyway,
and it makes all accelerator keys available.
H.G. Muller [Mon, 16 Jan 2012 13:37:05 +0000]
Fix seek-graph popup and popdown
Clicking outside the board area in WB (e.g.on the clocks) would also
trigger seek-graph 'popup'. This is now suppressed by testing for
y-coord > 0. In addition, the seek graph is automaticaly taken down
when we step to another position in the current game (using buttons,
arrow keys or whatever).
H.G. Muller [Sun, 15 Jan 2012 20:29:11 +0000]
Suppress empty lines when observing on VICS
Capture of the engine kibitzes when observing an engine game with
-autoKibitz on was still leaking a linefeed on the Variant ICS
(but not FICS or ICC!?).
H.G. Muller [Sun, 15 Jan 2012 20:24:12 +0000]
Fix printing non-numeric kibitz with -autoKibitz
Messages that were not considered kibitzed engine PV info for lack of
numeric content, were kibitzed as coming from "your opponent", which
is nonsense if you were iobserving, and masked the source. Fortunately
star_match[0] is still holding the original name, at that point.
H.G. Muller [Wed, 11 Jan 2012 16:33:29 +0000]
Fix 4 warnings
H.G. Muller [Wed, 11 Jan 2012 16:00:38 +0000]
Use same translation of "vs." everywhere
H.G. Muller [Wed, 11 Jan 2012 16:08:18 +0000]
Add new translations to WB language file
H.G. Muller [Wed, 11 Jan 2012 15:20:17 +0000]
Fix re-allocation of PGN-cache memory
It allocated 8 times too much!
H.G. Muller [Wed, 11 Jan 2012 11:47:38 +0000]
Fix height board dialog
H.G. Muller [Wed, 11 Jan 2012 11:34:39 +0000]
Enable WB time-control dialog even when no clock mode
The dialog could be called from the tournament dialog to set a TCfor
the tourney even when currently in game-viewer mode, so it'd better work.
H.G. Muller [Wed, 11 Jan 2012 11:28:43 +0000]
Exempt variant seirawan from -disguisePromoted inheritance
This is not a variant where promoted Pawns have to be distingushed
from primordial pieces, as captured pieces do not go into the holdings.
H.G. Muller [Mon, 9 Jan 2012 20:23:52 +0000]
Add control for overrideLineGap in WB Board dialog
Make it a checkbox to choose between 0 and -1.
H.G. Muller [Mon, 9 Jan 2012 19:56:40 +0000]
Add Ctrl-D as alternative to Ctrl+Alt+F12 in WinBoard
The acellerator key Ctrl+Alt+F12 seems reserved on Windows 7.
H.G. Muller [Mon, 9 Jan 2012 19:52:05 +0000]
Fix seek graph for VICS
The sought command on the open-source ICS code is ICC-like (no terminating
line), although the server is FICS like. So also accept prompt as seek-graph
trigger on FICS.
H.G. Muller [Mon, 9 Jan 2012 19:27:01 +0000]
Open WB startup chat boxes only after logged on
The init code for opening the chat boxes ismoved to DisplayIcsTitle().
H.G. Muller [Sat, 7 Jan 2012 19:31:34 +0000]
Install mime types directly
H.G. Muller [Sat, 7 Jan 2012 19:29:10 +0000]
Install desktop files directly
H.G. Muller [Sat, 7 Jan 2012 19:19:09 +0000]
Install icons directly
Rather than letting make-install copy the pixmaps to the XBoard data
directory they are installed directly from the source files. The name
of the TRN icon was also corrected and changed.
H.G. Muller [Thu, 5 Jan 2012 17:41:13 +0000]
Update texi file and remove duplicate control
Some missing option descriptions were added. The highlight-dragging
control was removed from the General Options dialog, as it did the same
as Show Target Squares. -highlightDragging wa changed to a volatile option
with default value true, making it effectively disappear as an XBoard
option. (In WinBoard it is still persistent.)
H.G. Muller [Thu, 5 Jan 2012 14:55:54 +0000]
Remove the direct commands to the engines
Arun Persaud [Fri, 6 Jan 2012 05:15:11 +0000]
forgot to list new desktop files in EXTRA_DIST section in Makefile.am
Arun Persaud [Fri, 6 Jan 2012 04:08:23 +0000]
added some autogenerated po files to .gitignore
Arun Persaud [Fri, 6 Jan 2012 04:05:44 +0000]
added desktop and mime-type association to autoconf install process
This should install and uninstall the mime assocciation and also the icons.
Also renamed the desktop files to avoid possible name collisions.
Arun Persaud [Wed, 4 Jan 2012 05:30:59 +0000]
code cleanup: make function definition confirm to GNU coding style
change everything in the main directory to
void
funcname (int a, int b)
format
Arun Persaud [Wed, 4 Jan 2012 02:43:18 +0000]
Updated copyright notice to 2012
H.G. Muller [Tue, 3 Jan 2012 20:32:04 +0000]
Implement -viewerOptions
A mechanism is added to allow the user to configure persistently if the
game viewer that starts on clicking PGN files will use -ncp mode, or
load an egine for analysis (or, in fact, do anything). This by introducing
a persistent string option -viewerOptions, which will be parsed as a
command line after the real command line when the option -viewer was present.
H.G. Muller [Tue, 3 Jan 2012 10:29:00 +0000]
Fix crash in auto-comment
Trailing linefeeds in AppendComment were not properly stripped off,
leading to a mismatch between the allocted and used memory, and thus
possible buffer overruns.
H.G. Muller [Mon, 2 Jan 2012 22:46:18 +0000]
Fix crash at match end
The -afterTourney option had broken old-style matches, because the ranking
string that was tested for "busy" is not set there at all, and remains a
NULL pointer, which strcmp doesn't like.
H.G. Muller [Sun, 1 Jan 2012 18:56:58 +0000]
Add desktop files for PGN viewer and tournament player
The desktop files define startup commands for handling PGN, FEN and
tourney files, calling xboard with the proper command-line options.
H.G. Muller [Sun, 1 Jan 2012 18:53:02 +0000]
Add xml file for defining mime types
The file xboard.xml defines application/x-chess-pgn, aplication/x-chess-fen
and application/x-xboard-trn as mime types for *.pgn, *.fen and *.trn files,
so these files can be associated with XBoard in various modes.
H.G. Muller [Sun, 1 Jan 2012 18:41:39 +0000]
Add icons for PGN and tourney files
Icons are provided in two sizes: 32x32 and 48x48.
H.G. Muller [Thu, 29 Dec 2011 18:55:33 +0000]
Clear square markers on new game
Now that the markers can stay on after a first click, they need to be
explicitly cleared when moving to another board, including a new game.
H.G. Muller [Thu, 29 Dec 2011 14:51:18 +0000]
Abandon single-letter menus in tinyLayout
Now that the items on the main menu bar are clipped, it iso longer
necessary to abbreviate them.
H.G. Muller [Thu, 29 Dec 2011 14:38:46 +0000]
Implement peeking previous position in WinBoard
The backspace key is used to temporarily display the previous position.
H.G. Muller [Thu, 29 Dec 2011 14:32:20 +0000]
Fix parsing of faulty PGN tags
A closing bracket could be missed in a malformed tag
H.G. Muller [Thu, 29 Dec 2011 14:29:00 +0000]
Fix parser for variant seirawan
The new parser didnot understand gating suffixes with /, and did not
allow any suffix at all on SAN castling moves.
H.G. Muller [Wed, 28 Dec 2011 21:32:38 +0000]
Try to not confuse ICS rating adustments as shouts
An explicit pattern match for the rating adjustment is added before
matching the shouts.
H.G. Muller [Wed, 28 Dec 2011 21:21:54 +0000]
Describe -overrideLineGap option in texi file
H.G. Muller [Wed, 28 Dec 2011 21:03:30 +0000]
Use <Enter> in stead of Ctrl+. for peeking last move
I commented out the explicit detection of the Ctrl key, as this
is not needed when there are no 'unnatural' Ctrl keystrokes used
for binding.
H.G. Muller [Wed, 28 Dec 2011 18:37:49 +0000]
Next try for menu-bar sizing
This time request the width needed to just fit everything, and then start
shaving off pixels from the currently largest until the entire thing fits.
H.G. Muller [Wed, 28 Dec 2011 14:17:49 +0000]
Clip texts on menu bar
The width of the items on the main menu bar is restricted so the bar
will never exceed board width.
H.G. Muller [Wed, 28 Dec 2011 13:01:53 +0000]
Fix format in temporary timing printf
H.G. Muller [Wed, 28 Dec 2011 12:38:59 +0000]
Don't test drops as mate evasions in variant seirawan
H.G. Muller [Wed, 28 Dec 2011 12:36:23 +0000]
Fix ICS castling rights
Copying the castling rights together with CopyBoard seems to have
broken handling of ICS rights, where ParseBoard12 prepares a board
in a local variable, an copies it before parsing the rights.
H.G. Muller [Wed, 28 Dec 2011 12:35:10 +0000]
Fix initial holdings ICS seirawan games
H.G. Muller [Tue, 27 Dec 2011 17:31:05 +0000]
Fix sending of S-Chess gating moves to ICS
Normal moves did not get the gating suffix sent.
H.G. Muller [Tue, 27 Dec 2011 16:56:07 +0000]
Fix menu grayout after illegal move
TheThinkingEnables were not reset to user state after the engine rejected
the entered move as illegal.
H.G. Muller [Tue, 27 Dec 2011 12:26:36 +0000]
Allow setting of holdings with edit command
For the benefit of Fairy-Max' Seirawan Chess implementation, the edit command
no also sends holdings contents (if the engine sent feature xedit=1), encoded
as pieceType + '@' + holdingsCount (if the count is non-zero).
H.G. Muller [Sat, 24 Dec 2011 16:54:16 +0000]
Fix out-of-bounds access in check test
Thepath to make the check test work with drops had broken the test
after null move (both have rf<0), which led to corruption of the high
word of the black clock.
H.G. Muller [Sat, 24 Dec 2011 16:51:22 +0000]
Fix legality of Spartan promotion to king
In the check test promotion to King is only allowed if there are not
yet 2 kings.
H.G. Muller [Wed, 21 Dec 2011 21:17:01 +0000]
Fix switching back from mono-mode XB
Suppressing unnecesary X-server calls in InitDrawingSizes had broken
switching back from monoMode, because the animVars have to be recreated
for that, and this was only done when the variant changed.
H.G. Muller [Wed, 21 Dec 2011 21:09:02 +0000]
Fix showTargetSquares in mono-mode XB
Make the marker dots black (captures) and white, and draw a circle
in the opposite color around them in monoMode.
H.G. Muller [Wed, 21 Dec 2011 21:00:26 +0000]
Fix arrow highlighting in mono-mode XB
Draw a line around it in darkSquare color in monoMode.
H.G. Muller [Wed, 21 Dec 2011 16:48:33 +0000]
Fix alignment of generic browse button XBoard
The width ofthe browse button is now read back after creating it,
and subtracted from the preceding text edit.
H.G. Muller [Wed, 21 Dec 2011 13:41:31 +0000]
Add -afterTourney option
Only the instance pinting the tourney result will execute this.
Byrial Jensen [Thu, 22 Dec 2011 20:01:43 +0000]
Fix buffer possible overflow when writings tags
PGNTagsStatic() could overflow its buffer and is removed. PGNTags() do the work instead of calling it.
It starts by calculation the required buffer size and then allocate the buffer.
PrintPGNTags() now prints directly to the file without having a buffer.
Byrial Jensen [Thu, 22 Dec 2011 14:01:31 +0000]
One more string marked for translation
And it is moved inside the if statement that uses it.
Byrial Jensen [Thu, 22 Dec 2011 13:30:08 +0000]
Fix checking of return value from snprintf()
snprintf() returns the needed space excluding the trailing 0 byte, so
it has truncated if the returned valued is greater than or EQUAL TO the buffersize
Byrial Jensen [Mon, 19 Dec 2011 15:49:31 +0000]
Fix unportable memory initialisation
Memory sat to zero by calloc() cannot safely be assumed to have the pointer value NULL
Byrial Jensen [Mon, 19 Dec 2011 12:16:58 +0000]
Add 2 strings for translation
Byrial Jensen [Mon, 19 Dec 2011 10:25:11 +0000]
Remove the last 2 compile warnings in gamelist.h
Byrial Jensen [Mon, 19 Dec 2011 10:17:48 +0000]
Add #include "moves.h" to gamelist.c for def. of CopyBoard()
Byrial Jensen [Mon, 19 Dec 2011 10:11:34 +0000]
Definition of TimeMark moved from 3 c files to backend.h
Byrial Jensen [Mon, 19 Dec 2011 00:21:46 +0000]
Transfer a pointer to the promoChar from PromotionPopUp() to PromotionCallback(). Fixes #34980
Byrial Jensen [Sun, 18 Dec 2011 16:24:07 +0000]
Duh! Initialise the argument to sscanf() inside the loop, so it always gets a known value when sscanf() fails.
Byrial Jensen [Sun, 18 Dec 2011 16:18:12 +0000]
Give numeric options the value 0 if a non-numeric text is entered (one more place). Before the value ended up undefined.
Byrial Jensen [Sun, 18 Dec 2011 16:08:46 +0000]
Give numeric options the value 0 if a non-numeric text is entered. Before the value ended up undefined.
Byrial Jensen [Sun, 18 Dec 2011 14:41:46 +0000]
Fix possible crash on 64-bit systems when copying game or position
The two convertproc's for X selections caused reads out of bounds on 64-bit systems.
I hope that this is the right solution. I am not experienced with X stuff, but it
follows that I have seen in other programs, testing shows that copying still works,
and the reading out of bounds have disappearinged with this patch.
Byrial Jensen [Sun, 18 Dec 2011 12:26:20 +0000]
Fix a possible crash in the file browser
If the OK button was selected in the file browser when no file was selected
there was a read out of bounds which could crash xboard
Byrial Jensen [Sat, 17 Dec 2011 21:54:34 +0000]
Fix a memory leak in Sound Options
Byrial Jensen [Fri, 16 Dec 2011 01:57:20 +0000]
Fix crash when selecting user soundfile due to free() of not malloc()'ed memory
Byrial Jensen [Fri, 16 Dec 2011 01:32:37 +0000]
Make GenericPopUp() more readable by using more named flags instead of numerals
Defines the flags SAME_ROW (value 1) and NO_OK (value 2) for use with buttons and endmarks.
There should no functional change.
Also add a code comment where a condition depends on an uninitialised value. There is no direct harm, as both
branches do the same (that is nothing) when the value is uninitialised.
Byrial Jensen [Thu, 15 Dec 2011 01:51:36 +0000]
Add NO_GETTEXT flag for combobox. Fix bug #34991
Define NO_GETTEXT flag to avoid calling gettext() for comboboxes, and define COMBO_CALLBACK
flag to call comboCallback() when an item is selected in a combobox (no new code for this,
just a symbolic value instead of a number). The flags are used for the min field of struct Option.
NO_GETTEXT is used for the Select engine combobixes in the Match Options and Load engine windows.
Arun Persaud [Wed, 14 Dec 2011 03:48:37 +0000]
only translate entries in CreateComboPopup if strlen>0; fixes #34991
Byrial Jensen [Tue, 13 Dec 2011 03:06:26 +0000]
fix for repeating key issue, with this allissues this bug should be closed; fixes #35000
Arun Persaud [Tue, 13 Dec 2011 02:45:05 +0000]
also don't translate selection in ComboSelect; fixes #34991
Arun Persaud [Tue, 13 Dec 2011 02:40:23 +0000]
make entries in CreateComboPopup not translateable; fixes #34991
Arun Persaud [Sun, 11 Dec 2011 00:06:47 +0000]
fix translation for engine list; fixes #34991
* click on browse button should be recognized in translated versions
* width of button should auto-scale
Arun Persaud [Sat, 10 Dec 2011 19:04:17 +0000]
change keybindings that don't use ctrl, make MoveTypeInProc ctrl aware; fixes #35000
two keybindings were using keys without modifiers, adjusted these to use the ctrl key.
Furthermore when typing in moves we need to check if ctrl was pressed and ignore those inputs.
Also added documentation for these keybindings.
Arun Persaud [Sat, 10 Dec 2011 18:51:18 +0000]
replaced unicode character for "'" in xboard.texi
Arun Persaud [Sat, 10 Dec 2011 18:08:48 +0000]
removed Iconify function. Should be handled by the window manager.
Arun Persaud [Fri, 9 Dec 2011 04:53:13 +0000]
marked an error messages for translation
Arun Persaud [Fri, 9 Dec 2011 04:33:29 +0000]
translation: updated uk.po
Arun Persaud [Sun, 4 Dec 2011 01:52:23 +0000]
fixed size of XBoard icon to 48x48
the icon gets installed in the 48x48 directory, but was >200 pixel wide. This gave a warning during rpm creation.
Arun Persaud [Sat, 3 Dec 2011 16:07:32 +0000]
updated pot file
marked a lot of new strings for translation
Arun Persaud [Sat, 3 Dec 2011 16:06:42 +0000]
added new files to po/POTFILES.in
Arun Persaud [Sat, 3 Dec 2011 06:13:36 +0000]
marked more strings for translation
Arun Persaud [Sat, 3 Dec 2011 04:08:01 +0000]
translation: added danish translation
H.G. Muller [Thu, 1 Dec 2011 17:45:55 +0000]
Change encoding of seirawan ICS gating-castlings
In stead of using upper/lower-case promoChar, the ICS now uses
RxK notation, like WinBoard writes in SAN, for better consistency.
H.G. Muller [Wed, 30 Nov 2011 14:38:21 +0000]
Put promo-suffix on ICS move in variant seirawan castlings
The distinction upper-case / lowercase determines gating at R / K
H.G. Muller [Mon, 28 Nov 2011 10:56:18 +0000]
Refrain from making unnecessary resize X request
The window resizing code in InitDrawingSizes is suppressed when no
change is needed. Similarly, changing piece bitmaps is suppressed when
we stay in the same variant (and InitDrawingSizes is called e.g. because
of chaging lineGap through the Board dialog).