1 ChangeLog for XBoard/WinBoard
2 -----------------------------
4 (latest entries created by git log --no-merges --pretty="%ai %an <%ae>:%n%s%n%n%b" vlast.. )
6 2013-05-02 22:47:44 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
9 It is explained how to generate multi-line commands for -zipyGameEnd.
11 2013-04-01 20:43:36 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
14 The 'next page' entry of the Xaw file browser contained a \177 character
15 to keep at sorted at the bottom. This caused trouble for gettext.
16 Now the sorting range is adapted so the 'next page' is never part of it.
17 More seriously, the listbox fill code had a wrong cast when testing for
18 an empty listbox on the first element, so that it only tested the low byte
19 of the pointer, in stead of the entire pointer for NULLness. As a result
20 the contents of the listboxes could suddenly disappear when even when it
21 was non-empty, because the first filename was allocated at an unlucky address.
23 2013-03-22 19:23:25 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
24 Make Chat Box window obey -topLevel option
26 It was always popping up as a dialog of the main board, covering it.
27 One could argue it should always be to-level.
29 2013-03-19 13:20:24 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
30 Fix scrolling of Chat Box
32 Seems the problem is that scroll_to_iter does not work until after some time,
33 needed to calculate line heights. Use scroll_to_mark instead, after clumsily
36 2013-03-17 10:33:31 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
39 SetInsertPos() was not yet ported to GTK, with as a result that the cursor
40 was positioned at the start of a line recalled in the ICS Input Box,
41 rather than at the end. The code also called SetInsertPos to force scrolling
42 to that point in the text (which in Xaw is an automatic side effect). So for
43 multi-line text edits this function calls ScrollToCursor(). For some reason
44 this does not work when replacing texts in the Chat Box memo, when switching
45 chat, although it does work in the same memo when a line is added to the
48 2013-03-07 21:38:43 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
49 Print score of final position in Analyze Game
51 The score/depth of the final position of the analyed game is added
52 (as an explicit comment) behind the PV of the forelast position.
53 To make this work, a new 'addBraces' mode (3) had to be added to
54 AppendComment, which suppresses stripping of the score/depth from
57 2013-03-12 18:50:08 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
58 Fix horrible bug in reading scores from PGN
60 Reading scores like -0.94 flipped the sign, because the integer part
61 -0 would read as 0, and thus was no reason for sign flipping.
63 2013-03-10 12:43:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
64 Fix disappearence of pieces that were moved illegally
66 Dragging damages the from-square, but it is not marked as such, because
67 selective board redraws to update highlights and such would draw the piece
68 that is really still there, making it flash on the from-square before
69 the position after the move is drawn. This, however, backfires when the
70 move was illegal, as then there is no draw of a new position, and the
71 from-square stays empty. For now this is solved by making DisplayMoveError()
72 order a total redraw. (As this is rare, only done in case of an error,
73 and might even throw up a pop-up, the performance cost of this is acceptable.)
75 2013-03-20 17:50:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
76 Fix quoting of book name in tourney file
78 The argument of -polyglotBook was written to the tourney file unquoted,
79 which effectively made it disappear if it was an empty or blank string.
81 2013-03-07 18:11:31 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
82 Provide compatibility with Alien Edition setup command
84 The setup command of the Alien Edition has a board-size specifier
85 (possibly as prefix on a parent-variant name) between pieceToCharTable
86 and FEN. The regular version would choke on that, precluding engines
87 designed for the Alien protocol extension to have their setup processed
88 when running under regular XBoard. This patch makes it skip the extra info.
90 2013-03-07 17:52:02 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
91 Fix saving of analyzed game
93 Anotated games after batch-mode Analyze Game were not auto-saved,
94 because the GameEnds() call supposed to do that was called with a NULL
95 argument for resultDetails. Now it is called with the resultDetails as
96 pre-existing in the gameInfo, or an empty string if none exist. This bug
97 was masked by the fact that in standard game ends (mate, etc.) the
98 analyzing engine would declare game end and supply a message.
99 Also makes a distinction between Analyze Game and regular Analyze mode
100 when resuming analysis after loading a game; only the former now would
101 trigger a batch analysis.
103 2013-03-07 17:48:45 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
104 Fix spurious popup after batch-mode Analyze Game
106 A batch analysis of games was not properly terminated, because the game
107 mode was tested after it had already been changed. No oldGameMode is
110 2013-03-02 22:21:29 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
111 Let XBoard -autoBox option also affect move type-in
114 2013-03-02 22:17:31 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
117 Key values > 255 are used for PgUp, PgDown etc., so to pop up only on
118 printables needs a two-sided test.
120 2013-03-01 12:50:06 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
121 Fix fatal error on unsupported board size
123 When a board size unsupported by the engine was requested through the
124 New Variant dialog, this was discovered while the dialog was still up,
125 causing the error message to pop up as a child of the New Variant dialog,
126 so that it would immediately be taken down as the latter closed.
127 As a result it could not be confirmed, so that XBoard would not exit, and
128 was left in a pathologic state (ignoring window-close). This is fixed
129 by performing Reset (which detects the error) after PopDown of New Variant.
131 2013-03-01 12:39:40 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
132 Accept setup command for non-standard board size
134 The code to test if board-size is standard for the current variant
135 has been moved to a subroutine, to allow its calling when receiving
136 a "setup" command from the engine.
138 2013-03-01 11:57:01 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
139 Fix buffer overflow in feature parsing
141 String features (variants, egt, myname and option) relied on a buf[MSG_SIZ]
142 for processing their value. The Nebiyu engine had combobox options that
143 required more than that. All string features are now stored in allocated
144 memory rather than in static arrays, and StringFeature allocates a buffer
145 of sufficient size for them. Only limitation now is the low-level input
146 buffer in the InputSource threads, whih is a static buffer of 4096
147 (=INPUT_SOURCE_BUF_SIZE) characters.
149 2013-02-27 23:44:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
150 Fix vertical sizing of GTK board
152 The clipping of the boad at the bottom was due to resizing of the clock
153 height when we first write it with a big font. This patch delays calculation
154 of the final size until after the clock height changes.
156 2013-02-26 21:13:32 -0800 Arun Persaud <arun@nubati.net>:
157 Updated German translation
160 2013-02-26 20:27:24 -0800 Arun Persaud <arun@nubati.net>:
161 Updated Ukrainian translations
164 2013-02-26 17:59:43 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
165 Fix of argument error
167 Oops. Pevious patch for skipping unknown multi-line arguments
170 2013-02-26 17:44:10 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
171 Let popping up of WinBoard chatbox for channel open it
173 WinBoard now issues a +ch command for a channel when you pop up a chatbox
174 for that channel. A work-around is added for the fact that the public
175 FICS seems to ignore the first such command.
177 2013-02-26 17:27:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
178 Make skipping of unknown option smarter
180 To make XBoard better resistant to the presence of disbanded or future
181 options in its settings file, encountering those is no longer a fatal error.
182 But the error recovery only consisted of skipping the rest of the line.
183 This fails badly on string options with a multi-line value, which is
184 enclosed by {braces}. We now detect that case, to skip to } instead.
186 2013-02-26 17:15:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
187 Add -backupSettingsFile option
189 For better configurability of WinBoard, an option is added to optionally
190 read a settings file, namely if no other settings file (other than the
191 master file) was read so far. This can be used to import settings from
192 a previous version, without destroying its settings file.
194 2013-02-26 16:55:20 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
195 Repair WinBoard compile error
197 __GITVERSION was not defined in WinBoard, as it was only defined with a
198 compiler flag by ./configure, which WinBoard does not use.
200 2013-02-26 16:47:58 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
201 Work-around for Xt selection bug
203 In some Xt implementations calling extend-end with 0 params causes a crash,
204 although the mmanual specifies this should default to a call with 'PRIMARY'.
205 The default selection is now explicitly mentioned in all extend-end calls.
207 2013-02-24 09:31:57 -0800 Christoph Moench-Tegeder <cmt@burggraben.net>:
208 fix bug #38401: xboard.texi doesn't build with texinfo-5.0 (tiny change)
210 xboard-4.7.0's documentation is not buildable with texinfo-5.0, it fails with a lot of error messages from makeinfo like
211 ./xboard.texi:1026: @itemx must follow @item
212 makeinfo seems right, @itemx is not used as described in the texinfo manual.
213 Attached patch puts each item of the "Options" menu in it's own @subsection and formats the description of each item as a @table as neccessary. This way, xboard builds again and the manual doesn't look too bad.
215 2013-02-24 09:09:54 -0800 Arun Persaud <arun@nubati.net>:
219 2013-02-24 09:04:48 -0800 Arun Persaud <arun@nubati.net>:
220 new version number for developer release
223 2013-02-20 21:28:36 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
224 Try to make life more bearable in Xaw menus
226 The alignment still sucks, but not as much as before.
228 2013-02-20 19:26:17 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
231 This option was copletely ignored, after the refactorig.
233 2013-02-20 18:16:00 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
234 Fix testing for valid window placement Xaw
237 2013-02-20 12:15:08 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
238 Suppress printing of status line in dual-board mode
241 2013-02-20 11:56:12 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
242 Fix sizing of slave board GTK
244 For lack of a known method to specify a default size for Graph widgets,
245 we have to use the same system as for the main board: create with 0x0 size,
246 and measure the size of the outer window to determine margins.
247 After every popup we then resize to the required board size plus these
250 2013-02-20 10:08:09 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
251 Better handling of undefined window parameters
253 Repositioning and resizing a newly created dialog was based on the width
254 parameter of the stored sizing info being valid. Now it is separately
255 tested if the position is valid, so that sizing and moving can be done
256 independently. This allows us to store position info, but not size info
257 for the slave board, so that it automatically will use the size of the
258 main board when first opened.
260 2013-02-19 19:14:49 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
261 Limit debug print to debug mode
264 2013-02-19 19:14:00 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
265 Fix repositioning of GTK windows
267 After 'hide' and 'show' GTK would not position the window in the same place,
268 but center it on the parent. Now we reposition the window after 'show' based
269 on the WindowPlacement data (if available).
271 2013-02-19 18:52:41 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
272 Remember window params of slave board
274 The slave board now has been assigned a WindowPlacement, which is also
275 saved in the settings file, through new options -slaveX/Y/W/H.
277 2013-02-19 17:48:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
278 Fix repairing of arrow damage
280 The '2' bit in damage[][] to indicate the arrow was erroneously cleared,
283 2013-02-18 19:55:20 -0800 Arun Persaud <arun@nubati.net>:
284 fix OK-response in gtk dialogs, see c7f8df124
286 the fix in c7f8df124 needs to be applied to both of those if cases
288 2013-02-18 17:11:32 -0800 Arun Persaud <arun@nubati.net>:
289 removed two more translations from debug output
292 2013-02-18 17:09:30 -0800 Arun Persaud <arun@nubati.net>:
293 fixed segfault of g_markup_printf_escaped which needs utf-8 strings
295 defined text-domain as utf-8 solved this
297 2013-02-18 13:38:51 -0800 Arun Persaud <arun@nubati.net>:
301 2013-02-18 10:06:36 -0800 Arun Persaud <arun@nubati.net>:
302 removed some translation calls for messages in the debug log
305 2013-02-18 09:46:53 -0800 Arun Persaud <arun@nubati.net>:
306 add keyboard shortcuts back into Xaw version
309 2013-02-17 14:13:30 -0800 Arun Persaud <arun@nubati.net>:
310 in debug mode also print the git-version if available during build
313 2013-02-18 21:19:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
314 Print game-list timing messages only in debug mode
317 2013-02-18 21:01:35 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
318 Fix title of top-level windows
321 2013-02-18 18:51:44 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
322 Cure GTK warning in top-level windows
324 There is no OK button in top-level windows, so the 'response' signal is
325 not defined, and should not be connected.
327 2013-02-18 18:33:34 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
328 Fix graying of Revert menu item
330 The new code was checkmarking it in stead of enabling it!
332 2013-02-18 11:38:29 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
333 Add -onlyOwnGames option
335 This suppresses auto-saving of ICS observed games.
337 2013-02-18 11:17:16 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
338 Allow display of 50-move counter in zippy mode
340 No chance it could be considered cheating there.
342 2013-02-18 10:48:53 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
343 Add new vertical pixel fudge
345 With the new GTK window type the board is 13 pixels too small.
347 2013-02-18 10:29:17 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
348 Don't add PV moves on board clicking in AnalyzeMode
350 Playing PV moves by right-clicking the PV was only intended for clicks
351 in the engine Output window, selecting from multi-PV analysis output,
352 where by default it plays only the first move. PV walkig by right-clicking
353 the board, however, would start the walk at the end even in AnalyzeMode,
354 and thus add the entire PV. Which is probably not useful. So adding moves
355 in that case has now completely been suppressed, so it can be used for
356 harmless viewing of the latest PV.
357 The behavior has also been made subject to a persistent Boolean option
358 -appendPV, configured to true, with a checkbox in General Options.
359 A checkbox has also been added there for controlling the -variations option,
360 which is now also configured to true.
362 2013-02-18 10:25:40 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
363 Remove checkbox for 'Move Sound'
365 This function is better controlled from the Sounds dialog.
367 2013-02-18 09:59:48 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
368 Make switching between board windows absolute
370 Selecting the window in which to draw the board when the slave board for
371 -dualBoard was up was done by a toggle. For unknown reason this could cause
372 a situation where the drawing took place in the other window than the
373 intended one. The code is made more robust by explicitly specifying which
374 window to draw in, based on the partnerUp flag.
376 2013-02-18 09:50:48 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
377 Warn about experimental nature of dual board
379 The message field, which for now is unused, now contains a warning message.
381 2013-02-17 10:49:21 -0800 Arun Persaud <arun@nubati.net>:
382 add close buttons to gtk windows
384 use windows instead of dialogs for toplevel elements
386 2013-02-16 19:02:52 -0800 Arun Persaud <arun@nubati.net>:
387 keyboard accelerators for both front ends.
389 moved them out of the string definition, so that gtk can add them automatically.
390 Also wrote a function that loads them for X11.
392 TODO: add them again when creating X11 menu names
394 2013-02-15 11:03:02 -0800 Arun Persaud <arun@nubati.net>:
395 added rotated shogi pieces for -flipback option and moved them to the themes directory
398 2013-02-14 17:27:27 -0800 Arun Persaud <arun@nubati.net>:
399 add test for pkg-config
401 exit configure in case we can't find it.
403 2013-02-14 13:02:08 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
404 Only perform e.p. capture if there are rights
406 The heuristic for e.p. capture was such that any non-forward move with
407 a Pawn to an empty square would delete the piece behind its new location
408 (Xiangqi exempted). This is now limited to cases where EP_STATUS indicates
409 that the deleted piece was a Pawn that performed a double-push on the
410 previous move. (Or if there is unknown EP_STATUS.)
411 This makes XBoard more generally suitable for use with variants that have
412 non-conventional Pawn moves (with legality testing off). To guarantee this
413 will not have any unexpected effects in normal Chess, this patch will only
414 be active if legality testing is off.
416 2013-02-11 16:25:09 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
417 Unreserve tourney game on exit during engine load
419 While waiting for the feature timeout we are not yet in TwoMachines mode,
420 so quitting XBoard at that stage would not unreserve the upcoming game.
421 A global flag 'startingEngine' similar to 'waitingForGame' now signals
424 2013-02-10 13:40:10 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
425 Better fix of feature timeout
427 The previous fix of the 2nd engine's done=1 aborting the 1st engine's
428 feature timeout by starting the game caused problems with v1 engines,
429 or other engines that would never send done=1. It is now fixed by
430 explicitly testing for a pending feature timeout after resurrecting
431 the 1st engine, rather than having TwoMachinesEventIfReady wait for
432 initDone to be set by reception of done=1.
433 Also refrain from freezing the UI between match games, as in TwoMachines
434 mode the UI is mostly disabled anyway.
436 2013-02-08 16:24:23 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
437 Connect Ctrl key in WinBoard
439 The Control key is now checked during move entry, for excluding moves
440 during analysis, or for copying pieces when editing a positions. But the
441 WB front-end did not read it out yet!
443 2013-02-08 16:23:58 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
444 Fix Makefile for install of Xiangqi pieces
447 2013-02-08 15:35:44 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
448 Add Xiangqi piece images to project
450 Let the images install in themes/xiangqi.
452 2013-02-08 15:14:43 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
453 Revive -flipBlack option
455 The -flipBlack option in the cairo version is now implemented the same
456 way as it was in XBoard, swapping white and black pieces in filpView mode.
457 This requires a set black piece images that are the upside-down versions
460 2013-02-07 13:55:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
461 Remove empty-square SVG images from project
464 2013-02-06 19:00:35 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
465 Add desktop stuff for .xop MIME type.
467 Icons and desktop file were missing, as was the automake code to package them.
469 2013-02-06 16:48:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
473 2013-02-06 14:48:27 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
474 Add boolean -autoBox option
476 This option controls the automatic popup of the ICS Input Box on typing
477 a printable character, which was annoing to some. The option can be
478 set from the ICS Options dialog.
480 2013-02-06 10:56:20 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
481 Draw both coords in a1
483 The lower-left board square needed two inscriptions, but DrawOneSquare()
484 only allowed one, so that the file ID would not be written. Now two strings
485 can be passed, and when align > 1 to indicate the alignment of the top
486 string, it is still checked if a bottom string is present as well, which
487 then is drawn with alignment 1 (= bottom right).
488 The rank coord or piece count can now also be double digit.
490 2013-02-05 23:03:42 -0800 Arun Persaud <arun@nubati.net>:
491 updated po files for new release (make distcheck)
493 2013-02-05 23:02:07 -0800 Arun Persaud <arun@nubati.net>:
494 updated Changelog, NEWS, etc.
496 2013-02-05 22:52:42 -0800 Arun Persaud <arun@nubati.net>:
497 new version number for release of 4.7.0
499 2013-02-05 11:56:10 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
500 Let initial setting of Twice checkbox reflect current state
502 The Twice checkbox in the Tournament dialog of WinBoard was by default
503 starting unticked. It is more convenient to have it preserve the current
504 state, however, based on the -lpi or -lgi value. Like the auto-incremet
505 checkbox already did.
507 2013-02-04 22:07:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
508 Put GTK warning in about-box
511 2013-02-04 21:59:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
512 Fix warnings of build server
515 2013-02-02 15:58:04 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
516 Fix GTK error auto-raising board
518 The variable mainwindow is not set in the gtk2 version. Unfortunately
519 it is still used to determine default board size...
521 2013-02-01 19:42:12 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
522 Update Dutch WB translation
525 2013-02-01 19:37:06 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
526 Add some new strings to WB translation template
529 2013-02-01 19:34:32 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
530 Assign shortcut char to WB menu item
532 The new Save games as Book item did not have a shortcut yet.
534 2013-02-01 19:31:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
535 Let WinBoard start in its installation folder
537 The current directory in WinBoard was not automatically the same as the
538 installDir returned by SearchPath. Especially not if used without shortcut
541 2013-02-01 19:29:26 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
542 Fix warning in WinBoard
545 2013-01-30 14:25:57 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
546 Fix expose of to-square with grid off
548 The code relied on drawHighlight to request an expose evet for the entire
549 square, but when lineGap = 0, drawHighlight is a no-op.
551 2013-01-29 08:39:30 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
554 On OS X dialog windows could not get focus if -lXaw appeared after
555 -lX11 -lXt in the linker command. This was cured by moving
556 @FRONTEND_FLAGS@ (which expands to -lXaw) first in the LDADD parameter
557 of the automake file.
559 2013-01-28 17:38:26 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
560 Preserve PGN tags when loading engine
562 Switching to EditGame mode would normally erase the tags, but when analyzing
563 a loaded game this would be undesirable. When the engine is playing, keeping
564 the tags is dubious, but it is not obvious what to put in a new name tag,
565 so we leave that for now.
567 2013-01-28 17:23:47 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
568 Preserve mode on engine loading (sometimes)
570 That the mode always switched to EditGame after engine loading was
571 particularly annoying at the start of a game (where leaving BeginningOfGame
572 mode would disablethe Time Control dialog, and the engine would not
573 automatically reply if you start playing) and AnalyzeMode. These two
574 modes are now preserved, BeginningOfGame by refraining from calling
575 EditGameEvent() and sending 'force' to the new engine, and AnalyzeMode
576 be calling AnalyzeModeEvent() after the engine is loaded and repositioned.
578 2013-01-28 14:14:19 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
579 Catch unknown engine in tourney games
581 When an XBoard instance is playing on a tourney it can happen that it is
582 using a settings file with an engine list not yet containing a certain
583 participant, because that participant was just installed in the instance
584 that created the tourney file, but it did not save those modifications yet.
585 This error is now caught, and leads to an error popup and stopping of the
586 tourney play. This error was made non-fatal to allow the user to decide
587 if he wants to quit with or without saving the settings (which, after all,
588 does not seem up-to-date).
590 2013-01-26 18:08:37 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
591 Adjudicate pawn-drop mate as loss in Shogi
593 Mating with a Pawn drop is illegal in Shogi, but rather than burdoning
594 the legality-testing by this complex rule, we simply invert the result
595 for such a mate. After all, Shogi customs are such that everything illegal
596 leads to an immediate loss.
598 2013-01-25 10:05:44 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
599 Adjudicate perpetual checks as loss also in Shogi
601 The Xiangqi code for recognizing perpetual checks is now also activated for
602 Shogi, but in this case we bail out before checking for perpetual chases.
603 The mini-Shogi case is then recognized as a win for gote.
605 2013-01-25 09:55:56 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
606 Stalemate is a win in Shogi
608 In regular Shogi this never occurs, but in the mini variants it happens
611 2013-01-22 20:49:34 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
612 Fix engine timeout problem in match mode
614 Reload of a reuse=0 engine would cause a done=1 event which would be
615 abort the feature timeout of the other engine in the first game.
617 2013-01-22 20:32:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
618 Enforce -popupMoveErrors
620 One move error was using DisplayError(), in stead of DisplayMoveError(),
621 and thus did not obey the -popupMoveErrors option.
623 2013-01-21 15:30:29 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
627 2013-01-21 10:26:20 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
631 2013-01-20 19:09:05 -0800 Arun Persaud <arun@nubati.net>:
632 Updated German translation
635 2013-01-19 17:54:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
636 Do delayed board draw also with -stickyWindows false
638 Only CoDrag needs to be suppressed on a configure event with
639 -stickyWindows false, not the board redraw.
641 2013-01-18 11:11:48 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
642 Let tellothers command add comment to PGN in local mode
645 2012-12-30 15:19:57 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
646 Allow use of ~ in pieceToChar for shadow pieces in any variant
648 The use of shadow-pieces for promoted Pawns was limited to Crazyhouse and
649 Bughouse. But this is not necessary, and in fact undesirable, as it made
650 it impossible to implement Crazyhouse960, which combines shadow promotions
651 with Fischer castling (only available in variant fischerandom)s, and thus
652 has to be played as 8x8+5_fischerandom, using the Crazyhouse -pieceToChaTable.
654 2012-12-30 15:06:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
655 Resend engine-defined options after reuse=0 reload
657 When the engine process is re-spawned for a new game under -xreuse setting,
658 any alteration of engine settings brought about through the Engine Settings
659 dialogs would be lost, and revert to the engine's default. This is now fixed
660 by re-sending all options (known from the previous load of the same engine)
661 with the current settings immediately after "protover 2", and ignoring the
662 engine's option features. Rather than clearing the option list, and
663 redefining it from the option features.
665 2012-12-30 14:58:16 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
666 Implement aborting of games on engine request.
668 A new game-end command is added. For bakward compatibility it is disguised
669 as an old one, namely "1/2-1/2 {Engine Abort Request}". These resultDetails
670 are recognized as special, and rather than ending the game in a draw (which
671 GUIs not implementing this), the game will be completely 'expunged' from
672 the match or tourney it is part of, leaving no trace in the saveGameFile.
674 2012-12-30 14:54:43 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
675 Store some more tourney params in tourney file
677 The hash and threads settings, as well as ponder and book options are now
678 also saved in the tourney file, so that tournaments can be played in
679 parallel where these parameters differ, and no mess up can occur on
680 restarting a touney after doing something else.
682 2012-12-23 11:26:31 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
683 Do not automatically save aborted games in tourney PGN
685 When the game result is 'unfinished', we prompt for a filename rather
686 then using the specified saveGameFile if a tourney is in progress.
688 2013-01-19 08:35:52 -0800 Arun Persaud <arun@nubati.net>:
689 fix configure bug that showed up on OS X (couldn't find X11/Dialog.h)
691 X_CFLAGS (set by AC_PATH_XTRA) was not used in Makefile.am. It was used in tests for X11/Dialog.h, etc. so configure worked, but make didn't.
693 2013-01-18 22:26:13 -0800 Arun Persaud <arun@nubati.net>:
694 Updated Ukrainian translations
697 2013-01-09 07:57:43 -0800 Arun Persaud <arun@nubati.net>:
698 removed trailing whitespace
701 2013-01-09 07:49:20 -0800 Arun Persaud <arun@nubati.net>:
702 Updated copyright notice to 2013
705 2012-12-22 22:46:21 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
706 Do not move to forwadMostMove when unpausing AnalyzeMode
709 2012-12-22 22:44:50 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
710 Use Ctrl key in AnalyzeMode to exclude entered move
713 2012-12-22 20:40:26 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
714 Implement insufficient mating material for Knightmate
716 KBK is draw with Royal Knight. With exo-pieces also KNK and KFK.
718 2012-12-22 20:25:51 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
719 Fix rep-draw detection in drop games
721 In games like Crazyhouse every move is reversible, as captured pieces
722 can eventually change sides again, and be dropped back on the board.
723 So we have to search back a full 100 ply for repetitions, passing captures
726 2012-12-11 22:33:07 -0800 Arun Persaud <arun@nubati.net>:
730 2012-12-11 22:18:05 -0800 Arun Persaud <arun@nubati.net>:
731 new version number for developer release
734 2012-12-10 14:48:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
735 Prefer pause mode on pondering engine over 'easy'
737 If the thinking engine is stopped after its move because it does not
738 support pause, is is still better to use pause on the pondering engine
739 than to switch of its pondering with 'easy', as the latter might not
740 be instantaneous. Also switch off pondering in the thinking engine before
741 it gives the move, just in case it does not respond immediately to
744 2012-12-10 13:40:47 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
745 Update WinBoard translation template
748 2012-12-10 13:35:41 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
749 Fix min-Shogi promotion zone
751 In integer arithmetic N*2/3 is not the same as N - N/3, with as a result
752 that the white promotion zone was 2 ranks deep on 5x5 boards. This only
753 happened in LegalityTest, but because this would classify all moves to
754 4th rank an non-promotions, they would be printed with a faulty
755 deferral (=) sign as promochar in SAN.
757 2012-12-10 13:32:49 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
758 Do not clear PGN tags on Analyze File
761 2012-12-10 13:28:37 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
762 Fix -fSAN in AnalyzeFile mode
764 The exception that a PV relates to currentMove rather than forwardMostMove
765 applies not oly in AnalyzeMode, but also in AnalyzeFile. Furthermore,
766 PvToSan did not properly restore the pushed game tail in this case.
768 2012-12-08 16:02:09 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
769 Improve scaling of border bitmap (WB)
771 The StretchBlt mode is set from dither to delete.
773 2012-12-05 16:34:58 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
774 Implement use of pause / resume protocol commands
776 Engines that implement feature pause=1 will be paused during their move
777 on a pause event; pondering engines will be controlled either through
778 'pause' or (if they don't support that) 'easy', which both should work
779 instantaneously. If the thinking engine does not support 'pause', the pausing
780 will be deferred to when it produces its move, and is implemented by not
781 relaying the move, and switch off pondering for both.
783 2012-12-03 12:58:36 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
784 Fix Loop-Chess promotions
786 Loop Chess is not a supported variant, but hould be playable as Crazyhouse
787 with an altered pieceToCharTable, not defining the shadow promotion pieces.
788 But with legality testing on promotion to shadow piece would take place
789 even if the shadow piece was not defined.
791 2012-12-02 22:44:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
792 Fix move highlighting with animation off
794 In WB the moving of SetHighlights to after the animation had broken the
795 highlighting of engine moves, because it was also moved after DrawPosition.
796 While it is DrawPosition that actually draws the highlights. Now it has been
797 moved to just before DrawPosition.
799 2012-12-02 11:09:14 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
800 Start browsing in currently-selected folder (WB)
802 The folder-browse dialog always started at My Computer, while file browsing
803 started in the globally last-used folder (which might not be related at all
804 to the file entry we are now browsing for).
806 2012-11-29 23:38:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
807 Implement book-creation functions
809 A new menu item triggers conversion of the currently loaded PGN file
810 to a Polyglot book, saved with the GUI-book filename. A (volatile) option
811 -mcBookMode alters the probing algorithm to build a book from scratch by
812 playing games (and using a form of learning).
814 2012-11-29 22:23:44 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
815 Use colors in Board-Options dialog also for font pieces (WB)
817 The piece color settings now control the pieceColor or fontPieceColor
818 settings, depending on the setting of -usePieceFont.
820 2012-11-29 22:14:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
821 Implement auto-creation of ICS logon file
823 Under control of the new option -autoCreateLogon (which can be set from
824 the ICS Options dialog) the first two lines in response to the ICS "login:"
825 pompt will be saved on a newly created logon file (if logon from such
826 an existing file failed).
828 2012-11-29 21:56:02 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
829 Add Themes dialog (WB)
831 This dialog, done by the generic popup, contains controls for many settings
832 that so far could only be controlled by options. It also introduces the
833 concept of 'themes', sets of options stored in the multi-line option
835 Add some dummy routines to suppress compile errors in functions that
836 cannot be called yet in XBoard.
838 2012-11-29 21:32:03 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
839 Allow external piece bitmaps and board border (WB)
841 The -pieceImageDirectory is now also used for WinBoard, to indicate
842 a directory of .bmp files, used to replace the built-ins. The outline
843 and solid bitmaps can be full-color. This allows winBoard to use the
844 WinBoard-zeta graphics. A new option -border can indicate a bitmap file
845 used to draw a half-square-wide border around the board.
846 A white background has to be drawn underneath the black pieces, to avoid
847 color-interference with the board, just like happens for the white pieces.
848 These backgrounds now always use bright white, rather than -withePieceColor.
850 We still have to work on the scaling of the zeta (600x600) bitmaps to
851 the actual board size, as for some bitmaps the stratchblt is ugly.
853 2012-11-29 21:05:15 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
854 Add 'Continue Later' button in Tournament dialog (WB)
856 This button makes it possible to accept the values specified in the
857 dialog without immediately starting the tournament (as OK does),
858 so you can re-open the dialog later, and OK it then.
860 2012-11-29 20:25:35 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
861 Load opponent logo based on handle in ICS play (WB)
863 The logos for handles on FICS are sought in folder logos\freeches.org\*.bmp,
864 etc. If no logo for the handle is found there, the logo of the ICS is
867 2012-11-19 20:35:05 -0800 Daniel Dugovic <dandydand@gmail.com>:
868 Fix configure script for --enable-zippy (tiny change)
870 reported and patch by Daniel.
872 edited by Arun Persaud:
873 - also fixed #ifndef ZIPPY -> #if !ZIPPY
874 - didn't change #if -> #ifdef
876 2012-11-10 00:12:34 -0800 Arun Persaud <arun@nubati.net>:
877 don't define X_LIBS when using gtk-frontend
880 2012-11-07 22:16:09 -0800 Arun Persaud <arun@nubati.net>:
881 updated po/pot files; added new frontend files
884 2012-11-07 22:14:20 -0800 Arun Persaud <arun@nubati.net>:
885 fix configure script for --with-Xaw and --with-gtk
887 made Xaw the default and included xaw or gtk sources as extras
888 in case the other frontend is selected for make distcheck
890 2012-11-07 21:13:38 -0800 Arun Persaud <arun@nubati.net>:
891 new version number for developer release
894 2012-10-31 09:55:02 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
895 Draw frames around memos and listboxes
898 2012-10-30 17:39:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
899 Adapt lineGap during sizing
902 2012-10-30 15:04:32 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
903 Fix clock highlighting
906 2012-10-30 10:59:45 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
909 The genric TypeInProc is re-instated, and replaces ICSKeyEvent as primary
910 handler for special keys in one-liner text edits.
912 2012-10-29 19:46:27 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
913 Pay attention to NO_CANCEL dialog flag
916 2012-10-29 14:18:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
917 Fix clock clicking with GtkEventBox
919 Like in WinBoard the button-3 case is now handled in the primary
920 event handler (and communicated to it in a kludgy way). It would be
921 better if this was absorbed in ClockClick().
923 2012-10-28 22:25:22 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
926 Graphs were not recognized as possible SAME_ROW elements. A Graph requesting
927 FIXED_H (which only the logos did) is now packed into a (borderless) aspect
930 2012-10-25 23:04:42 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
931 Add window positioning
933 Sticky windows now sort of works, but needs unexplained fudge factors.
934 Reopening a persistent dialog centers it on the board, and disobeys
935 the positioning command. The WindowPlacement of the BoardWindow was
936 again added (it was commented out during development).
938 2012-10-22 22:41:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
939 Make board sizing work through subtracting fixed height
941 There is now no attempt to give a size to the board drawing area, so it
942 can later be sized as small as we want. The frame width is determined
943 by subtracting the nominal board size from the actual window size,
944 (because the clocks will have that width, and the board will startas 1x1),
945 while the vertical margin is determined as the difference between the
946 bactual window height, the drawing-area height minus a fudge of 25 pixels
947 to compesate for the erroneously allocated blank space below the board.
949 2012-10-22 21:09:51 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
952 The highTextStart/End are now declared in engineoutput.h, shared between
953 nengineoutput.c and xengineoutput.c. Unused variables were removed.
954 Also fix warnings in xboard.c and xoptions.c.
956 2012-10-22 17:40:08 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
957 Delete emptied front-end files, and move rest to gtk directory
959 Remove #ifdeffed-out Xt code that has GTK implementation. The xgamelist
960 and xhistory have been completely cleared off content, and were removed.
962 2012-10-27 00:12:42 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
965 The code from gtk-xt could be used with almost no modification.
967 2012-10-21 09:09:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
968 Some experimenting with sizing
970 Does not work as intended yet.
972 2012-10-21 23:04:49 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
975 Funny enough it was necessary to swap the two svg icons to make this work!
977 2012-10-20 10:29:37 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
978 Make some tall dialogs multi-column
980 A dummy button was added to the last row of New Variant to make the
981 number even. A legality-test warning as put in the New Variant dialog
982 Fix width of tourney-file in Match dialog
984 2012-10-20 21:14:33 -0700 Arun Persaud <arun@nubati.net>:
985 updated some icons to SVG
988 2012-10-20 19:57:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
989 Add displaying of icons
991 A new Option type, 'Icon', was added for this as in GTK Icons and Labels
992 need different types of widget. The icons are now svg, so we could
993 remove the icon pixmaps.
995 2012-10-20 14:25:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
999 2012-10-20 14:03:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1000 Add BarBegin, BarEnd options
1002 This makes the button bar display correctly. Also fix v-sizing of menu bar.
1004 2012-10-20 10:01:35 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1005 Add listbox double-click callback
1007 This function was formerly performed by WheelProc.
1009 2012-10-19 17:29:40 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1010 Add hiding / showing second Engine Output pane
1012 The handle of the GTK table for the second engine is stored in the
1013 EndMark handle by GenericPopUp, so it can be used later to hise/show
1016 2012-10-19 17:15:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1017 Use different tables for different dialog columns
1019 Making the same table wider (in steps of 3) to get multiple columns
1020 does not work, because it forces options to align vertically. This
1021 wrecks dialogs like Load Engine, where one column contains a very
1022 high option (listbox). Now differnt tables are created for each column,
1023 packed in a new itermediate hbox. In case of the Engine Output window,
1024 a vbox is used instead to cause vertical stacking.
1025 Only multi-line text-edits and listboxes are now allowed to take up
1026 vertical space changes, while only the middle colum of the table
1027 can take up horizontal size changes. Within packing boxes space is
1028 equally distributed.
1029 The labels above the particiant-selection widgets had not the same width
1030 as the textview / listbox, leading to misplacement of the second label.
1031 For Engine Settings the spontaneous breaking into columns did not
1032 involve a SAME_ROW flag, so the 'columns' were stacked vertically.
1033 In addition the columns were too tall for GTK. They are now 20 options max.
1035 2012-10-19 13:46:37 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1036 Deselect first char in Move Type-in and ICS Input Box
1038 After popup the Move Type-In had the typed character in it, but it was
1039 selected, so that typing a second character would erase it again.
1040 Same for the ICS Input Box. A prototype for CursorAtEnd is now also added.
1042 2012-10-19 13:33:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1043 Close Move Type-in on Enter
1045 The code is squeezed into the ICSKeyEvent callback.
1047 2012-10-18 21:57:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1048 Add access routines to checkboxes and FocusOnWidget
1050 The <Enter> handler of the filter field needs it to return focus to
1053 2012-10-18 21:42:49 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1054 Add game-list callbacks
1056 The callbacks for listbox and filter text are treated by the same callback,
1057 which does both key presses and button double-clicks.
1058 Giving focus back to the listbox after filtering does not yet work!
1060 2012-10-18 16:27:57 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1061 Add optional callback to Label Options
1063 For some reason this does not work. The callback isn't called!
1065 2012-10-18 13:40:55 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1066 Add type-in event to board for popping up box
1069 2012-10-18 13:12:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1072 The state of Shift and Ctrl was only probed on button clicks, so it
1073 is now read out of the button-event struct in the relevant button handlers.
1074 For backwad compatibility, they store it in a global, so the routine
1075 ShiftKeys can take them from there.
1077 2012-10-18 12:35:20 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1078 Remove some unneeded low-level X11 code
1080 Things like tabbing between controls, mouse-wheel scolling etc. are all
1081 automatic in GTK, and thuse don't need to be ported.
1083 2012-10-18 10:12:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1086 The gtk-xt code for browsing in response to menu items rather than dialog
1087 browse buttons) was grafted. It seems desirable to merge the two browsing
1088 functions, though. Pass extra params used by Xaw to FileNamePopUpGTK.
1089 The code was altered to use DelayedLoad.
1091 2012-10-18 09:54:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1092 Fix ListBox, and add some support routines
1094 The srolled-window for the listbox used a uninitialized variable for its
1095 width, causing a crash. Now it pays attention to the Option.max and .value
1096 size hints. The access routines were copied from gtk-xt. HighlightWithScroll
1097 could just a wrapper for HighlightListBoxItem, as GTK auto-scrolls.
1099 2012-10-17 20:01:37 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1100 Connect CommentClick handler
1102 This can make use of generic memo callback, so it could be entirely
1103 backend. Therefore it was moved to dialogs.h. As it shared a global with
1104 some other back-end popup routines to remember the current move, these
1105 could now be moved out of xboard.c too. (Well, not so for the X11 front-end,
1106 so it has now been put in a header. :-( )
1108 2012-10-17 19:41:11 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1111 Because FrameDelay does block the event loop, even though it releaes the
1112 CPU, expose events start to lag behind the actual drawing. By combining
1113 expose events for overlapping squares, rather than decompose them into
1114 3 rectangles, this problem seems to go away. But only if there is an
1115 extra exposure on the squares to be drawn also non-overlapping frames
1116 will be properly drawn (?!).
1118 2012-10-17 14:40:59 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1119 Implement highlighting in engine output by through generic method
1121 HighlightMove was made generally available for all text. It is now just a
1122 wrapper for the generic HighlightText, and could be moved to the back-end.
1123 (This requires the initialization to be widget specific, and the flag
1124 indicating it has been done is now stored in the Option.min field.)
1126 2012-10-17 14:33:28 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1127 Let engine-output memos use new generic callback
1130 2012-10-17 13:53:03 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1131 Add scrolling of Move History
1133 To have access to the textview, its handle is now stored in the
1134 Option.textValue field.
1136 2012-10-17 13:11:23 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1137 Add highlighting in move list
1139 For now it is assumed the normal background will be white (for clearing
1142 2012-10-16 19:44:40 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1143 Make generic memo-event handler, and connect history callback
1145 Large text widgets can now define a user handler in their Option.choice
1146 field. If they do, agneric callback is added tothem, which catches mouse
1147 events. Button release and pointer motion pass their coordinate and type
1148 to the specified user routine. Button presses in addition retrieve
1149 the text from the widget, set the cursor in it to the clicked point,
1150 and convert it to a character position, also passed to the user.
1151 The user is responsible for ignoring events he is not interested in.
1153 2012-10-16 15:58:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1154 Add key-handler for ICS Input Box
1156 In contrast to the X11 code, all intercepted keys are now treated by
1157 the same callback. The ICS Input Box callback triggers on Up, Down and
1158 Return key, and refers to these symbolically.
1160 2012-10-16 15:05:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1161 Highlight Pause button
1164 2012-10-16 13:52:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1165 Better cleansing of xboard.c from X11 types
1167 The #includes for X11 files were still in there.
1169 2012-10-16 13:28:32 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1170 Add text insertion in engine-output memos
1173 2012-10-16 09:34:02 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1174 Append recent engines to engine menu
1176 This is now entirely moved to the back-end, by doing it in the table
1177 from which the menus are later generated. The special callback for engine
1178 items is abandoned, and the euProc for such items is left NULL to flag
1179 that RecentEngineEvent should be invoked with the applicable engine number.
1180 To calculate the latter a global variable firstEngineItem is dynamically
1181 set to the length of the regular engine menu.
1183 2012-10-15 22:17:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1184 Transfer more gtk-xt code, and add some new
1186 Add input-source handling
1187 Graft color picker (<Enter> callbeack in the text field is still missing!)
1188 Handle contents of label widgets (store handles in Option for access)
1189 Add printing of clocks
1190 Add printing of window title
1191 Pay attention to BORDER attribute of Label Options (pack in frame)
1192 Delete ReadBitmap code (also remove #including of bitmap files for icons)
1193 Fix layout of textviews (adapt to newer Option format, incl. wrap, scroll)
1194 Support vertical stacking in Break Option (no table widening when !SAME_ROW)
1195 Make default horizontal scroll policy automatic (for engine-output window)
1196 Fix disabling of unused spinners in TC dialog
1198 2012-10-15 20:47:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1199 Connect dialog Browse buttons to GTK browser
1202 2012-10-15 19:52:17 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1203 Implement menu checkmarking and enabling
1205 odes in the (later over-written) handle field specify which items
1206 are to be checkmarked, and by what style button.
1208 2012-10-15 16:18:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1209 Attach expose handler and connect to mouse events
1211 The GraphExposeProc is conected to the Graph widgets. A gdk draw routine
1212 is used to copy the buffer bitmap to the display. It is also connected
1213 to button and motion-notify events.
1214 In this version the board can be fully operated with the mouse.
1216 2012-10-14 22:00:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1217 Transfer most available gtk-xt code to xoptions.c
1219 GenericPopUp and PopDown are grafted from gtk-xt into gtk2.
1220 The version compiles, but segfaults before doing anything, with error
1221 messages about unexpected cases in GenericPopup for Graph and PopUp Options
1222 of the main board. The spin options need special treatment in GetWidgtText.
1224 2012-10-15 11:41:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1225 Give LoadListBox two extra parameters
1227 It often occurs that we just want to swap two elements, and reloading
1228 the entire listbox would be a very inefficient way to do this in widget
1229 sets that allow access to a single element.
1231 2012-10-14 20:36:34 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1232 Remove all X11 code by #ifdeffing it out
1234 With #ifdef TODO_GTK we disable all X11 code, in order to get a compiling
1235 X11-free version. The disabled sections can then be replaced by code
1236 for another widget set, the X11 version still showing what it was supposed
1239 2012-10-14 17:37:18 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1240 Move timer functions to new file xtimer.c
1242 The timers for the clocks, periodic analysis events and ScheduleDelayedEvent
1243 go into a separate file.
1245 2012-10-14 15:31:56 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1246 Make xevalgraph.c backend
1248 The only front-end stuff left in xevalgraph.c was an unnecessary reading
1249 of the window size (which could be obtained from the WindowPlaceent struct),
1250 and drawing (all cairo now). The drawing was moved to draw.c, and the
1251 remaining part renamed nevalgraph.c.
1253 An attempt to list them in a less chaotic way.
1255 2012-10-14 14:34:09 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1256 Cleanse back-end code of all references to X11 types
1258 When compiling for X11, common.h #included X11/Intrinsics.h so that
1259 X11-specific data types could still be used throughout the back-end part
1260 not shared with WinBoard. By temporarily disabling this, error messages
1261 could be generated on all such occurrences, and were then solved. This
1262 included the following:
1263 The InputSource struct is not uses in usystem.c at all, and its definition
1264 could be moved to xboard.c. InputSourceRef, which logically should heve been
1265 defined as (InputSource *), is in reality (void *), so the back-end can
1267 Some non-platform-dependent stuff of general interest had prototypes
1268 (or external vars) in xboard.h. This is now moved to a new header xboard2.h,
1269 to allow it to be shared without bringing in X11 dependence.
1270 The EngineOutputProc was defined inconsistently, but the header was not
1271 sufficiently shared to flag this error. This has been repaired now, by moving
1272 the template to menus.h.
1274 2012-10-14 13:39:47 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1275 Remove xedittags.c, .h from project
1277 The tiny bit of code that was left was absorbed in dialogs.c, the one
1278 prototype to menus.h.
1280 2012-10-14 12:53:20 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1281 Remove inclusion of frontend.h from backendz.h
1283 This did not seem to serve any purpose at all.
1285 2012-10-14 12:49:28 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1286 Split xhistory.c in front-end and middle-end part
1289 2012-10-14 12:21:09 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1290 Move MarkMenuItem to xoptions.c
1292 This to make xoptions.c completely independent from the inclusion of
1293 frontend.h. The prototype is moved to menus.h.
1294 Loose end: DrawPosition in board.c does not see the prototype.
1295 Very suspect that it wants to see it. Why would it have to correct the
1296 flipView setting??? Better se to it that it is correct to start with!
1298 2012-10-14 12:14:07 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1299 move testing for no options to back-end
1301 The test if an engine has options and display a note instead of
1302 the Engine Settings dialog when this is not the case is moved
1303 to outside of GenericPopUp, to make the later independent of calling
1306 2012-10-14 11:20:16 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1307 Remove some unnecessary header includes
1310 2012-10-14 10:47:21 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1311 Move ICS-engine analyze and AnalyzeGame code to shared back-end
1313 This code was still duplicated between WB and XB in the front-ends.
1314 Because of its incorporation in AnalyzeModeEvent the 'middle-end'
1315 function AnalyzeModeProc could be eliminated. AnalyzeModeEvent was made
1316 to return an int to flag its success, and keep the JAWS code based
1317 on it out of XBoard.
1318 The AnalyzeGame code is now incorporated in AnalyzeFileEvent().
1320 2012-10-26 10:28:59 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1321 Add configure switches for Xaw vs GTK.
1323 This patch is an adapted version of the one Arun made at the end of the
1324 gtk2 branch. It uses the exact same version of his configure.ac, but the
1325 Makefile.am is adapted to the situation in master at the beginning of it,
1326 after duplication of the X11 front-end files in the xaw directory for
1327 preserving them, while the versions that will be modified to GTK front-end
1328 are still in the xboard directory.
1330 2012-10-25 11:12:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1331 Prepare xoptions.c for middle-end changes
1333 Some changes that can be pre-empted, such as the splitting of Label
1334 into Label and Icon Option type, and some dummy wrappers are already
1335 implemented, so they can be used when needed by GTK.
1337 2012-10-25 09:20:03 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1338 Preserve copies of the X11 front-end in xboard directory
1340 The X11 front-end has been moved to the xaw directory, but copies
1341 are retained for modifying them to gtk versions.
1343 2012-10-24 08:55:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1344 Move X11 front-end to directory xaw
1347 2012-10-31 18:18:02 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
1348 Fix initial enables in TC dialog
1351 2012-10-30 14:47:24 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
1352 Fix image extension used for browsing to .pgn
1355 2012-10-28 21:39:19 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
1356 Fix WinBoard compile error on enum PEN
1359 2012-10-30 11:20:54 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
1360 Fix crash in promotion popup
1362 There were not enough entries for Capablanca Chess with legality-testing off,
1363 where King is also presented as a choice.
1365 2012-10-28 18:19:23 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
1366 Fix message in New Variant dialog
1368 Even in -ncp mode the message was referring to the 'current engine'.
1370 2012-10-28 18:16:20 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
1371 Fix crash on animation after resizing
1373 The animate buffers were still holding pointers to a discarded cairo surface.
1375 2012-10-21 14:49:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1376 Fix variant-dependent pieces
1378 The code to select the actually used piece images from the available ones
1379 (from InitDrawingSizes) is now made into a subroutine, and also called
1380 after resizing the pieces.
1382 2012-10-26 10:18:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1383 Replace marble texture pixmaps by png
1386 2012-10-26 10:13:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1387 Replace xiangqi board pixmaps by png images
1390 2012-10-26 10:08:44 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1391 Remove the texture pixmaps from project
1393 These were already replaced by png textures.
1395 2012-10-23 15:02:56 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1396 Fix re-rendering of svg on resize
1398 The previously prepared bitmaps were retained if we resized, rather then
1399 rendering the svg atthe new size.
1401 2012-10-21 15:48:30 -0700 Arun Persaud <arun@nubati.net>:
1405 2012-10-21 15:47:12 -0700 Arun Persaud <arun@nubati.net>:
1406 new version number for developer release
1409 2012-10-21 11:10:36 -0700 Arun Persaud <arun@nubati.net>:
1410 we still need a few bitmaps, so the directory needs to be included in Makefile.am
1412 make distcheck complained about this
1414 2012-10-21 15:56:43 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1415 Rename svg shogi pieces, so they become usable
1417 Only white pieces are present. For black they would have to be flipped.
1419 2012-10-21 15:54:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1420 Fix bug in resizing on variant switch
1422 The fix of the garbage pixels had unfortunately broken this.
1424 2012-10-21 15:15:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1425 Fix bug in fallback mechanism
1427 After failure to load a piece from a specified -pieceImageDirectory
1428 the default theme was not tried, because the cairo function to load
1429 from a pgn file returns a valid handle even if the file does not exist.
1431 2012-10-21 14:58:42 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1432 Get svg error message
1435 2012-10-21 14:49:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1436 Fix variant-dependent pieces
1438 The code to select the actually used piece images from the available ones
1439 (from InitDrawingSizes) is now made into a subroutine, and also called
1440 after resizing the pieces.
1442 2012-10-16 12:08:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1443 Remove caveat on available pieces fromNew Variant dialog
1445 In the cairo version all pieces are available at all board sizes.
1447 2012-10-21 11:41:11 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1448 Remove some unused images from png directory
1450 Currently only the three board texture files are used. But the piece
1451 images are still left, because they might be useful if we ever want
1452 to mae XBoard configurable for not using librsvg.
1454 2012-10-21 10:40:37 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1457 The nominal size of the window was not set in the correct Option struct.
1459 2012-10-21 09:58:23 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1460 Prevent odd-width line shift in length direction
1463 2012-10-21 09:48:29 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1464 Print missing-pieces error message to console
1466 The GUI might not yet be up at this point.In addition, suppress
1467 the rest of the code, because it could give segfaults.
1469 2012-10-21 09:30:26 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1470 Fix garbage pixels on the right of the board
1472 The extra pixel that is requested in sizing the board window back to
1473 an available size because we ofte get one less pixel than we ask for
1474 can lead to a line of garbage pixels next to the board. This is combatted
1475 by limiting expose events to the true board area, remembering that in the
1476 Graph Option rather than the actual window size, and suppressing resizing
1477 when the latter only exceeds the stored width by more than 1 pixel.
1479 2012-10-15 10:27:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1480 Trim board-window size
1482 The board window will sometimes be a pixel larger than requested.
1483 The ReSize routine will now reset the size values in the Graph Option
1484 to what they were supposed to be, to prevent expose events will
1485 draw nonsense in the extra space.
1487 2012-10-13 23:26:10 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1488 Adapt docs for svg/png in stead of bitmap/pixmap
1491 2012-10-13 09:35:31 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1492 Spontaeous changes in gettext stuff
1495 2012-10-13 08:03:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1496 Move Shogi svg pieces to own directory
1499 2012-10-13 07:57:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1500 Remove unnecessary Xt colors and call to MakeColors
1503 2012-10-13 07:50:56 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1504 Code cleanup: move expose redraw to draw.c
1507 2012-10-13 07:37:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1508 Suppress warning for InitDrawingHandle
1511 2012-10-13 07:33:15 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1512 Make fallbackPieceImageDirectory hardcoded
1515 2012-10-13 07:18:23 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1516 Increase drag delay too 200 msec
1518 On my slow laptop it can take more than 100 msec to reallocate bitmaps
1519 in the generic expose, with as a consequence that the DelayedDrag event
1520 is not processed before the timeout expires. The timeout event then triggers
1521 a redraw, which again takes so long that the timeout expires before the
1522 event to reset the timer could be processed, and this just perpetuates
1523 itself, leading to a large series of queued redraws, and a long waiting time
1524 for an image to appear after the sizing stops.
1526 2012-10-13 07:01:05 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1527 Fix segfault on faulty command-line option
1530 2012-10-12 14:42:26 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1531 Suppress anti-aliasing in -monoMode
1533 In the color-substitution code, always use bi-level alpha and color.
1535 2012-10-12 13:34:04 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1536 Remove piece pixmaps from project
1539 2012-10-12 11:47:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1540 Implement proper fallback cascade
1542 Try in order cached svg, cached bitmap, user png, user svg, default svg.
1544 2012-10-12 11:06:06 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1548 2012-10-12 10:45:29 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1549 Install svg pieces in themes/default
1551 The svg pieces are installed with the XBoard data in the directory
1552 .../xboard/themes/default . A new option -fallbackPieceImageDirectory
1553 is added, and is configured in the master settings file to point to
1554 these pieces. This options, which replaces -svgDirectory, is volatile,
1555 and the menu control to set it is removed. The -pngDirectory option
1556 is renamed to -pieceImageDirectory (-pid).
1558 2012-10-12 10:02:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1559 Remove bitmaps from project
1562 2012-10-12 09:55:07 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1563 Install the wood textures as png
1565 The xboard.conf has to be edited to set these as default textures,
1566 in stead of the .xpm files.
1568 2012-10-12 09:50:31 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1569 Add hatched board texture
1571 A png file with hatching is added, so it can be used for dark squares
1572 in a monochrome theme. It is installed in a new data directory
1573 .../xboard/themes/textures.
1575 2012-10-11 22:21:06 -0700 Arun Persaud <arun@nubati.net>:
1576 added a black and white theme to replace the mono option
1579 2012-10-11 20:56:42 -0700 Arun Persaud <arun@nubati.net>:
1580 added SVGs to dist files in automake
1583 2012-10-11 19:44:22 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1584 Fix exposure of atomic captures
1586 The grid lines had to be repaired too, so damage marker 2 had to be used.
1588 2012-10-11 19:13:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1589 Fix animation with textures off
1591 The blank square was not shifted to (0,0) when drawing the animation buffer.
1593 2012-10-11 19:08:49 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1594 Fix 1-pixel offset of grid lines on some cairo implementations
1597 2012-10-11 09:51:07 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1598 Solve odd lineGap problem
1600 Not all cairo versions seem to round the same when an odd-width line
1601 is to be drawn at integer coordinates. So now we explicitly ask it
1602 to be drawn centered on half-odd-integer coordinates.
1604 2012-10-09 18:52:43 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1605 Add -trueColors option
1608 2012-10-09 14:56:16 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1609 Always render svg pieces anew on size change
1611 The svg pieces are now unconditionally rendered to supply the pngPieceImage
1612 master source otherwise read from png file. This is then fed into the
1613 original png code (so that if for some reason it fails, we fall back on png
1614 pieces, and finally on built-in pixmaps).
1616 2012-10-09 14:06:47 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1617 Fix rsvg version in configure.ac
1620 2012-10-08 19:54:19 -0700 Arun Persaud <arun@nubati.net>:
1621 initial svg rendering
1624 2012-10-08 18:34:05 -0700 Arun Persaud <arun@nubati.net>:
1625 added cairo and librsvg to configure process
1628 2012-10-08 18:32:55 -0700 Arun Persaud <arun@nubati.net>:
1631 converted from inkscape SVG to plain SVG before adding
1633 2012-10-10 21:19:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1634 Adapt Eval Graph code to new drawing system
1636 The eval graph now triggers an expose after drawing, and gets its size
1637 from the Option fields.
1639 2012-10-10 20:37:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1640 Fix expose requests seek graph
1643 2012-10-10 20:07:53 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1644 Make draw handle for board globally available
1647 2012-10-10 19:45:39 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1648 Let expose requests pay proper attenton to widget
1650 So far, expose requests were always assumed to be for the board widget,
1651 preventing display of the labels.
1653 2012-10-10 18:45:59 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1654 Fix initial display of logos
1656 The logos were selected and printed during the initialization,
1657 before the main event loop was started. So the expose events during
1658 widget creation, which created the drawing surfaces, were only processed
1659 after the initial drawing of logos, so that there was nothing to draw on!
1661 2012-10-10 17:25:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1662 Fix alignment of highlight expose
1665 2012-10-10 17:19:52 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1669 2012-10-09 13:57:40 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1670 Make expose handler generic
1672 The Graph Option now returns two handles in hitherto unused fields of its
1673 Option struct: Option.choice is a cairo handle of a memory buffer the user
1674 must draw to, while Option.textValue is the handle to the widget.
1675 Expose events copy the memory buffer to the display for the exposed area.
1676 A routine DrawExpose() is supplied to let the user generate expose events.
1678 2012-10-06 21:30:59 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1679 Reload piece images when pngDirectory is changed
1681 The OK function of the board options dialog now tests for a change
1682 in pngDirectory and passes a parameter to InitDrawingParams to tell
1683 it to destroy the old images. This cause a reload on scaling the pieces.
1685 2012-10-06 20:16:54 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1686 Suppress redraw during sizing
1689 2012-10-06 20:10:18 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1690 Fix bug in resize trigger
1692 Even if the square size does not change, the window has to be shrunk
1693 back to fit the board.
1695 2012-10-06 19:54:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1696 Make Piececolor options work on png pieces
1698 The scaled, antialiased bitmaps are now colored according to the option
1699 settings. This is done by decomposing every pixel in a white, black and
1700 transparency component, which is possible because the opacity is
1701 directly give in the alpha channel, and black originally was a hard zero.
1702 So what you se in the red channel must be white (as the original white
1703 was #FFFFCC), and the rest of the opacity must be due to black.
1704 The color to be replaced (white for the white pieces, black for the black
1705 pieces) is then replaced by the original weight of this color times the
1706 color from the option.
1708 2012-10-06 17:53:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1709 Plug resource leak on rezising with pixmaps
1712 2012-10-06 16:19:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1713 Fall back on built-in pixmaps if png pieces unreadable
1716 2012-10-06 14:21:11 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1717 Do coordinate text alignment with cairo
1720 2012-10-06 13:40:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1724 2012-10-06 12:14:16 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1725 Clean up drawing code
1727 Now all routines only draw through cairo, the destination surface can
1728 be passed to them, making it possible to do the duplicate drawing
1729 to the memory board image in a cleaner way.
1731 2012-10-06 11:37:20 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1732 Check in draw.c, draw.h
1735 2012-10-06 11:26:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1736 Remove all bitmap & pixmap drawing
1738 All Xt code for drawing the board is now removed, as are the
1739 -pixmapDirectory and -bitmapdirectory option. This version is now
1740 completely dependent on cairo for handling of all graphics anywhere.
1741 (The build-in pixmaps are still left, though, for later use as an
1742 alterative cairo source when no png files are found.)
1744 2012-10-06 10:29:06 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1745 Separate off drawing routines from xboard.c
1747 A new source file draw.c is created to hold all code associated with
1748 board drawing. The routines for loading bitmaps and creating colors
1749 were left in xboard.c, though, as they are also used for handling
1750 icons and colors of widgets.
1752 2012-10-05 19:53:04 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1753 Fix erasing dots in seek graph
1755 The cairo dots were just a little bit bigger than the old ones, so they
1756 were not properly erased, but left a remnant.
1758 2012-10-05 19:25:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1759 Cleanup CairoOverlayPiece
1762 2012-10-05 19:22:34 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1763 Draw arrow also on backup image
1766 2012-10-05 19:16:30 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1767 Fix highlight clearing
1770 2012-10-05 18:59:30 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1771 Remove acceleration trick
1774 2012-10-05 18:54:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1775 Implement variant-dependent png piece symbols
1778 2012-10-05 18:42:51 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1779 Fix clearing of markers dots with promo popup
1782 2012-10-05 18:32:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1783 Also render coordinates to backup board
1786 2012-10-05 18:30:35 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1790 2012-10-05 18:29:13 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1791 Let cairo also do evenly colored squares.
1794 2012-10-05 17:56:43 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1795 Make dragged piece for excluding moves transparent
1798 2012-10-05 17:42:18 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1802 2012-10-05 17:40:55 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1803 Redo coordinate / piece-count printing ith cairo
1806 2012-10-05 15:40:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1807 Also use cairo on slave board
1809 With dual-board observing the drawing should be redirected to the
1810 slave board, so SwitchWindow should also switch the xlib-surface to
1811 one for the slave window.
1813 2012-10-05 15:12:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1814 Cure flashing of piece on from-square
1816 In a drag-drop move the piece was flashed on the from square after the
1817 user dropped it on the to-square, because highlights were set before the
1818 move had updated the board. And highlighting with arrow can cause a redraw
1819 of the last board. Same with setting or clearing marker dots.
1821 2012-10-05 14:20:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1822 Specify proper condition for using cairo animation
1825 2012-10-05 14:07:53 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1826 Allow resizing of board window
1828 In full png mode the size of the board window is no longer locked.
1829 After resizing, the square size is calculated as the largest one that
1830 would fit the window, and the window is then shrunk around it. To prevent
1831 excessive redrawing during sizing, the redraw is delayed by putting it
1834 2012-10-05 10:41:02 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1835 Switch to using 64x64 png images
1837 The bitmap scaling works better when the needed factors are not too large,
1838 as the svg rendering's anti-aliasing did not blur more than 1 pixel.
1839 So after shrinking too much the images are not effectively anti-aliased
1842 2012-10-05 10:16:47 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1843 Maintain in-memory copy of the board image
1845 As reading back from the xlib-surface proves incredibly slow (cairo probably
1846 converts the entire image from Xt format to cairo format when we set it
1847 as a source, even though we only want to read a few dozen pixels), we now
1848 keep an exact copy of the board image as a cairo bitmap in memory. This
1849 restores the speed of the animation, but unfortunately leads to awful code.
1851 2012-10-04 22:15:05 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1852 Do animation with cairo
1854 Unfortunately this is incredibly slow.
1856 2012-10-04 18:36:08 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1857 Allow back-texture files to be PNG, (drawn with cairo)
1860 2012-10-04 15:10:37 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1863 A new directory with 256x256 png piece images is added to the source tree.
1865 2012-10-04 15:01:05 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1866 Add mode to draw PNG piece images through cairo
1868 The PNG images have to be supplied as files in a -pngDirectory (a new
1869 option) with a 256x256 bitmap. They are then scaled by cairo to the
1870 desired square size. This does not work very well for the smaller sizes.
1872 2012-10-03 14:45:07 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1873 Redo marker dots with cairo
1876 2012-10-03 14:27:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1877 Redo highlights with cairo
1880 2012-10-03 14:07:37 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1881 Make convenience routine SetPen globally available
1883 The routine to set a pen as specified by a color string that was used
1884 in xevalgraph is moved to xboard.c, where there also is lots of demand
1885 for it. The arrow drawing now uses it for setting the highlightSquareColor.
1887 2012-10-03 12:28:30 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1888 Redo grid with cairo
1891 2012-10-03 12:00:07 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1892 Redo arrow highlighting with cairo
1895 2012-10-03 11:20:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1896 Redo seek graph with cairo
1898 New front-end services DrawSeekOpen() and DrawSeekClose() have been
1899 added, and are called from the back-end to enclose any drawing activity.
1900 In WinBoard these had to be defined as dummies.
1902 2012-10-02 15:31:26 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1903 Redo logos with cairo
1905 The logos must now be .png files, and are internally handled as their
1906 filenames. (So no preparation of a drawable from it at startup.)
1907 Cairo allows them to be scaled to the requested logoSize.
1909 2012-10-02 14:02:23 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1910 Fix Eval Graph resolution problems
1912 Anti-aliasing had to be switched off to get a crisp graph. A second problem
1913 was that the dashed lines were drawn in both directions, with interfering
1916 2012-10-02 10:54:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1917 Redo Eval Graph drawing with cairo
1920 2012-10-21 10:21:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1921 Fix button-border-width bug in monoMode
1923 The kludge of signalling we are dealing wih a button rather than a label
1924 was wrongly implemented in case of momoMode.
1926 2012-10-21 10:14:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1927 Reserve more space for button bar
1929 In some board sizes the button bar was wider than the code guessed,
1930 so the window width would be determined by the message + buttons row rather
1933 2012-10-21 11:24:18 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1934 Fix WinBoard compile errors
1937 2012-10-13 09:33:39 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1938 Fix non-NLS compile error for XFontStruct
1941 2012-10-12 12:04:17 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1942 Fix browsing for path
1944 A pathname was still prefixed with the cuurent directory.
1946 2012-10-07 21:00:10 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1947 Use Pause state in AnalyzeMode to imply move exclusion
1949 The pause state was not used in AnalyzeMode so far. Now it is used to
1950 imply all entered moves are for exclusion/inclusion.
1952 2012-09-30 18:55:13 -0700 Arun Persaud <arun@nubati.net>:
1953 new version number for developer release
1956 2012-09-30 22:16:14 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1957 Fix broken -ics and -cp options
1959 The patch to specify engines and ICS by nickame broke the use of the
1960 regular options to do this, because they could also reset them. Now
1961 this is fixed by only setting them (through |= in stead of =).
1963 2012-09-30 22:01:52 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1966 The description of exclude-moves, multi-game ananalysis and duo-analysis
1969 2012-09-30 10:07:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1970 Resolve conflict between -mps and -inc options
1972 The age-old problem that a persistent valid -inc value will cause -mps
1973 to be ignored is solved by the kludge of storing these two as a single
1974 option (-mps) in the settings file, and declaring the other (-inc) volatile.
1975 The range of negative numbers (invalid as -mps value) was available for
1976 that, and now is used to store the negated value of -inc in msec.
1977 For backward compatibility, specification of -inc causes interpretation
1978 of -mps in the old way. The forcing of -inc to -1 in the master settings file
1979 could be safely removed because of this change, so that the time increment
1980 now is a persistent option.
1982 2012-09-29 23:13:04 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1983 Allow entry of fractional increment in WB time-control dialog
1985 The numeric edit is changed to a general text edit, and code is added
1986 to convert the text it contains to and from float, with proper error check.
1988 2012-09-29 23:05:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1989 Preconfigure -icsNames in xboard.conf
1991 Although XBoard has no startup dialog with an ICS combobox, the -icsNames
1992 option is now used to select lines from with the -is option, and in
1993 interpretation of positional arguments. The most common ICS are configured
1994 together with a short nickname, so that commands like "xboard fics" will work.
1996 2012-09-29 22:58:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
1997 Allow ICS nickname as positional argument
1999 If an argument is encountered that is not preceded by an option name,
2000 it is now first checked if it corresponds to the nickname of an ICS
2001 in -icsNames. If so, it is assumed to be the value of an -is option,
2002 selecting -ics mode with that ICS and all the options installed with it.
2004 2012-09-28 20:28:05 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2005 Cure some sick behavior in XBoard Engine Output right-clicks
2007 When a PV-walk is in progress, the PV is highlighted by selecting it,
2008 and this focuses the attention of the scroll bar on it, so it remains in
2009 view. But after release, that line was kept in view, rather than scrolling
2010 back to the top of the window (where the header line bust be available
2013 2012-09-28 13:28:17 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2014 Allow Analyze Game to auto-step through entire game file
2016 If the game index is set to auto-increment (-lgi -1), the Analyze Game
2017 function will automatically load the next game of the current game file
2018 (starting to auto-play/annotate that) when the end of the current game is
2019 reached. This flushes the annotated game if auto-saving was set,
2020 so that eventually all games in the file will be annotatd and saved.
2021 The game index is automatically set to auto-increment when we load
2022 a file while in Analyze Game mode, but switching this mode on while a game
2023 is already loaded will stop at the end of that game, as usual (if -lgi was
2024 not explicitly set).
2026 2012-09-28 13:24:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2027 Let second engine move in lockstep during dual analysis
2029 When the second engine is also analysing (as indicated by its stat variable
2030 second.analyzing), we send all moves / undos / positions / in&excludes that
2031 go to the first engine also to second.
2033 2012-09-27 19:07:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2034 Allow second engine to analyze too
2036 Clicking the Analysis menu when analysis is already in progress will
2037 now toggle the secon engine to analyze the same position. For now,
2038 this lasts only until the position changes (or you leave analyze mode),
2039 after which the second engine is always switched off, and the Engine
2040 Output window returns to single pane. Each pane now has its own header
2041 line; the exclude header is suppressed in the second pane.
2043 2012-09-27 18:11:23 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2044 Add options -fe, -se, -is to load installed engines/ics from list
2046 The volatile string options -fe, -se ('first/second engine') load the first
2047 and second engine of the given nickname in the -firstChessProgramNames list,
2048 including all options that were installed with it (similar to when in
2049 WinBoard the that engine line had been selected through the Startup Dialog's
2050 combobox). The option -is is similarly used to retrieve the line for an
2051 ICS in the -icsNames list.
2053 2012-09-27 18:02:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2054 Add check on validity of tourney participants
2056 Before allowing OK of the Tournament Options dialog, it is now checked
2057 whether all participants (which are given as nicknames) can be found
2058 in the list of installed engines, so that no problems will occurr with
2059 non-existing engines during the tourney (if typos crept in after hand-
2062 2012-09-25 16:21:42 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2063 Implement --help option
2065 The list of options is printed before exiting. Some attempt is made
2066 to do it in a nice way.
2068 2012-09-23 20:10:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2069 Implement variant seirawan in -serverMoves option
2071 Write the gating moves such that the ChessLive! viewer will understand them.
2073 2012-09-23 20:05:07 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2074 Workaround for FICS bug
2076 FICS does not properly understand SAN, and thinks bxc3 can be a Bishop move.
2077 This broke 'Upload to examine', because that uploaded in SAN. In case the
2078 SAN starts with Bx or bx, it now uses long algebraic (with = before the
2081 2012-09-20 18:17:55 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2082 Define XOP mime type for XBoard
2084 Supply a white-knight icon for this mime type, called application/x-xboard-opt,
2085 and a sesktop file to associate it with running XBoard with this settings file.
2087 2012-09-20 17:24:29 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2088 Pay attention to extension of 'positional' arguments
2090 An argument without preceding option name was assumed to be an -lgf argument.
2091 This patch still does that by default, but if the argument ends in .fen, .epd,
2092 .trn, .ini or .xop it is considered an -lpf, -tf or -opt argument.
2093 In addition, an implied -lpf or -lgf argument also imply the option -viewer,
2094 which inserts the -viewerOptions string into the command line, and proesses it
2095 as options. A new option -tourneyOptions is similarly inserted for an implied
2096 -tf argument. These strings should contain all options needed to start XBoard
2097 fully configured as game viewer or tourney playing agent on the mentioned file.
2099 2012-09-20 15:29:42 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2100 Let windows stick to right display edge (WB)
2102 Auxiliary windows docked to the board window from below or to the right, which are
2103 pushed out of view when the board window resizes, will be trimmed to just touch the
2104 diplay edge (if sufficient width or height remains). When the board window shrinks,
2105 auxiliary windows touching the edge will be resized so they remain touching it.
2107 2012-09-20 15:20:36 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2108 Round board size to one where piece images available (WB)
2110 When using built-in bitmaps, in sizes where unorthodox pieces are needed, but not
2111 available, the size is temporarily rounded to one of the sizes where they are.
2113 2012-07-03 17:21:53 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2114 Fix bug in Edit Position
2116 Due to = in stead of == the variant was always set to S-Chess in
2119 2012-08-28 21:24:51 -0700 Daniel Macks <dmacks@netspace.org>:
2120 bug #37210: Mishandling of X11 -I flags (tiny change)
2122 AP: applied patch from bugtracker and added one missing 'save_cppflags="$CPPFLAGS"'
2124 2012-06-02 14:31:18 -0700 Arun Persaud <arun@nubati.net>:
2125 bug #36229: changed ICS_* from define to enum
2128 2012-05-28 13:58:00 -0700 Arun Persaud <arun@nubati.net>:
2129 bug #36229: changed STATE_* from define to enum
2131 enabling better compiler checks
2133 2012-05-28 13:50:50 -0700 Arun Persaud <arun@nubati.net>:
2134 bug #36229: changed PEN_* from define to enum
2136 This should allow better checks by the compiler
2138 2012-05-28 13:01:15 -0700 Arun Persaud <arun@nubati.net>:
2139 fix bug #36228: reserved identifier violation
2141 variables and macro names beginning with _ are renamed to XB_. More consistent naming of include guards.
2142 See link in bug report.
2144 2012-05-28 12:36:37 -0700 Arun Persaud <arun@nubati.net>:
2145 Updated German translation
2148 2012-04-30 20:06:00 -0700 Arun Persaud <arun@nubati.net>:
2149 new version number for developer release
2152 2012-04-24 11:23:04 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2153 Decapitalize promoChar in move parser
2156 2012-04-23 14:12:10 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2157 Keep track of virginity of back-rank pieces in variant seirawan
2159 The forelast rank of the Board array is now used in VariantSChess to
2160 contain flags that indicate virginity of the back-rank pieces, one bit
2161 for white, the other for black. Legality checking of gatings now makes
2162 use of this info. FENs mention all virgin pieces not implied by castling
2163 rights in the castling field, by printing the corresponding file IDs,
2164 as long as holdings are non-empty. The FEN reader now also understands
2165 this format. EditPositionDone fakes virginity for all pieces that are
2166 on their starting square.
2168 2012-04-17 19:49:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2169 Suppress clear-board message after pasting FEN
2171 The message field is now always cleared when you leave EditPosition mode.
2173 2012-04-17 19:45:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2174 Fix faking of castling rights after editing position with holdings
2176 The queen-side rook was always imagined at X=0, which is in the holdings
2177 when these exist, so that Q-side castling in such games was never allowed
2180 2012-04-20 10:29:36 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2181 Fix WB Engine Settings window
2183 The listbox patch has broken this window, by making it only list the
2184 first option of the engine, by switching to the next column based on a >=
2185 test rather than == test. Fixed by using 1000 as invalid value for the
2186 break point, rather than -1.
2188 2012-04-20 00:01:08 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2189 Fix key binding of DebugProc
2191 The name used for binding was DebugProc, while the ite was named Debug.
2193 2012-04-16 20:51:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2194 Fix ICS Text Menu popup
2196 The space for the option names needed to be allocated.
2198 2012-04-16 20:37:06 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2199 Fix disabling of Load Engine menu
2202 2012-04-15 22:53:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2203 Port chat boxes to XBoard
2205 A new menu item Open Chat Window is added to the View menu. It opens a
2206 window that can handle 5 chats. A row of buttons on top selects which is
2207 the foreground chat partner, to which we type, and whose incoming messages
2208 will be displayed in the memo. The leftmost 'button' is not really a button,
2209 but a text edit, and the active partner is displayed there (so it can be
2210 altered). Selecting another chat partner through a button, moves that partner
2211 to the text-edit, and reshuffles the buttons. Incoming messages in a chat
2212 that is not foreground make the corresponding button color orange.
2214 2012-04-16 20:27:08 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2215 Allow chaining of single-line text-edits to top
2217 For the benefit of the chat window, a text-edit plus leading description
2218 can now also be chained to the top edge of a dialog. The chaining of the
2219 (degenerate) multi-line ICS Input Box and Move Type-In was entirely to the
2220 bottom, which has now been corrected.
2222 2012-04-12 09:30:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2223 Add logo widgets in main board window
2225 New options -logoSize and -logoDir are added. The former enables logo display,
2226 when non-zero and not too big. The latter is used by -autoLogo. The options
2227 -firstLogo and -secondLogo also work. Problem is that the clock height
2228 is larger than the logo height, and for now a nasty trick in GenericPopUp
2229 is used to position the next element (message field) w.r.t. the clocks,
2230 rather than the last element of the row above (the logo): in case of a
2231 SAME_ROW Graph element, 'last' is kept at the previous element.
2233 2012-04-19 10:48:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2234 Fix crash on time forfeit with -st option
2236 When fixed time per move was set from the command line, the time-control
2237 strings were not set. This let to a crash when an engine forfeited.
2238 The GetTimeQuota function is now made resistant to a NULL pointer here.
2240 2012-04-19 10:39:12 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2241 Solve WinBoard name clashes, fix zippy-analyze menu graying
2243 Some of the function names used in the refactored X11 front-end collided
2244 with Windows system names from winboard.h, or with names of internal routines
2245 in WinBoard front-end files (so they could not be declared in frontend.h).
2246 These were renamed. Some prototypes in engineoutput.h contained X11 types,
2247 and they were moved to xboard.h.
2248 In addition, two menu-item names were corrected to two-part names.
2250 2012-04-18 12:00:43 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2251 Offer primitive paging in file browser
2253 If there are more than 1000 files that would have to be displayed,
2254 the number will be limited to 999, and a 'next page' entry will appear
2255 at the bottom. Clicking that will give you the next group.
2256 This is an emergency measure only, as it interferes with sorting
2257 (grouping is based on order inside the directory, i.e. kind of arbitrary,
2258 and sorting is only done within a group.) There is no such thing for the
2259 folder list yet. There is no way to go back to a previous page, other
2260 than closing and re-opening the browser, or selecting another file type.
2262 2012-04-18 11:16:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2263 Add pixmap as file type known to browser
2265 Users can browse for a pixmap to set the board texture.
2267 2012-04-17 15:45:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2268 Fix warning about signedness
2270 Note: the promoChar in ExcludeMoves was explicitly defined to make
2271 sure the kludge promoChar = -1 for indicating best move works. But it
2272 should be equivalent to casting the promoChar to (signed char) just
2273 before the comparison.
2275 2012-04-17 15:44:15 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2276 Fix warnings about character index
2279 2012-04-17 15:37:53 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2280 Move ManProc to xboard.c
2282 It calls ManInner, which requires X11 data types, even if the values are NULL.
2284 2012-04-17 15:27:21 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2285 Move FileNamePopUp to dialogs.c
2288 2012-04-17 15:15:03 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2289 Fix readout of numeric combobox
2291 As currently no numeric comboboxes are used, this bug was silent.
2293 2012-04-17 15:10:54 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2294 Shuffle prototypes to correct header, or add them there
2297 2012-04-17 14:15:15 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2300 This function could crash when called with ann argument that did not
2301 contain a period, while the idea was that it should handle this as if the
2302 item is in noMenu (for user-specified key binding to non-menu funtions).
2304 2012-04-16 19:43:03 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2305 Fix click-click under-promotion animation save
2308 2012-04-17 11:02:39 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2309 Define TOPLEVEL in winboard.c
2312 2012-04-17 10:59:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2313 Add two new strings to WinBoard language file
2316 2012-04-17 10:51:02 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2317 Fix second-engine variant test
2319 The test whether the second engine supports the selected variant took place
2320 before the second engine was loaded, thus always coming to the conclusion
2321 that the variant was not supported, and aborting the TwoMachines command.
2322 The test is now moved to after second-engine loading (but before its
2323 initialization, where non-supporting would become a fatal error).
2325 2012-04-16 12:11:09 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2326 Fix clearing of ICS input box after send
2329 2012-04-16 19:08:10 -0700 Arun Persaud <arun@nubati.net>:
2330 enable -Wall -Wno-parentheses for all compilers that understand them
2333 2012-04-16 13:18:37 +0200 Byrial Jensen <byrial@vip.cybercity.dk>:
2334 Remove 5 unused variables from zippy code
2337 2012-04-16 13:14:06 +0200 Byrial Jensen <byrial@vip.cybercity.dk>:
2338 Remove unused static function ShowTC
2341 2012-04-16 13:10:58 +0200 Byrial Jensen <byrial@vip.cybercity.dk>:
2342 Remove unused static function MenuBarSelect
2345 2012-04-16 13:07:01 +0200 Byrial Jensen <byrial@vip.cybercity.dk>:
2346 Remove unused variable first_entry from function find_key
2349 2012-04-16 13:01:09 +0200 Byrial Jensen <byrial@vip.cybercity.dk>:
2350 Remove unused variable tm from function SaveGamePGN
2353 2012-04-16 12:56:46 +0200 Byrial Jensen <byrial@vip.cybercity.dk>:
2354 Remove unused variable delayedKing from function QuickScan
2357 2012-04-16 12:52:57 +0200 Byrial Jensen <byrial@vip.cybercity.dk>:
2358 Remove unused variable pdown from function UserMoveEvent
2361 2012-04-15 04:25:59 +0200 Byrial Jensen <byrial@vip.cybercity.dk>:
2362 Change some double literals to floats.
2364 To avoid unnecessary implicit promotions of float variables to double.
2366 2012-04-15 11:12:02 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2370 2012-04-14 22:43:03 +0200 Byrial Jensen <byrial@vip.cybercity.dk>:
2371 Translate "NPS" also in engine output window
2374 2012-04-14 16:19:34 -0700 Arun Persaud <arun@nubati.net>:
2375 removed unused variables (-Wunused-variable)
2378 2012-04-14 15:37:05 -0700 Arun Persaud <arun@nubati.net>:
2379 added m4 directory to search path for aclocal. As suggested by Michel Van den Bergh
2382 2012-04-14 23:21:56 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2383 Fix Eval Graph scale in drop games
2386 2012-04-14 23:16:29 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2387 Fix ArrowDamage out-of-bounds access on drop moves
2390 2012-04-14 21:33:49 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2391 Implement automatic partner observe
2393 Starting a game, or starting to observe one, now automatically issues a
2394 'pobserve' command if dual-board is switched on, so that the partner game
2395 will pop up in the secondary board (assuming it is bughouse).
2396 The secondary board now displays the players in the title. (This (lightly)
2397 breaks WinBoard again.) When the primary game ends, the secondary board
2398 closes automatically. Initial sizing of the board is repaired, and now uses
2399 the actual current board size, rather than the initial size of the main board.
2401 2012-04-14 15:43:30 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2402 Fix crash due to empty PV
2404 Reception of a stat01 command before the first PV could cause a crash,
2405 as apparently the parser cannot handle this.
2407 2012-04-14 13:27:48 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2408 Suppress testing for availability in bughouse drops
2410 Give up on testing legality of bughouse drop moves; this only causes problems,
2411 because the move list sent by the ICS is not accompanied by holdings updates.
2412 So XBoard parses it thinking the holdings are empty, making every drop move
2413 an ImpossibleMove. Bughouse can only be played on ICS, and we might as well
2414 trust the ICS that it will only pass us legal moves. A user should not be
2415 able to enter illegal drops; unavailable pieces cannot be grabbed from the
2416 holdings, and typing is diverted to the ICS directly (which would reject the
2417 illegal drop without XBoard even knowing about it).
2418 Also improve switching to bh/zh, based on drop move in initial board.
2420 2012-04-14 09:11:22 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2421 Fix some compile errors / warnings
2424 2012-04-13 19:06:17 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2425 Fix promotionPopDown on new move entry
2427 The promotion popup is non-modal, and old XBoard versions popped it down
2428 as soon as the user clicked the board, so he could just enter a new move
2429 to abort the promotion. This was broken in the new version, because the code
2430 to do the PopDown and abort in HandleUserMove had not been ported.
2432 2012-04-13 18:38:51 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2433 Use in-place sweep-selection for click-click under-promotion
2435 With detour under-promotion a piece cycles through all possible choices
2436 during backwards dragging. But in a click-click move there is no dragging.
2437 This used to be solved by letting the second click start a drag event of
2438 the default promotion choice, which you could accept by immediately
2439 releasing the mouse button, or drag around to change it first.
2440 The dragging in this case seemed a little unnatural, because the to-square
2441 was already indicated by the down-click. So it has been changed now to the
2442 promo choice appearing on the down-clicked to-square, followed by
2443 EditPosition-like sweep-selection on that square when one wants to under-
2444 promote. The move is always accepted no matter where the up-click takes
2445 place, except when it takes place on the from-square (which offers a last-
2446 resort abort possibiliy).
2447 Note that click-click promotion is essential in variants where it is not
2448 obvious from the from-square alone that a promotion is imminent, but where
2449 it depends on the to-square. (Such as Shogi.) There drag-drop detour under-
2450 promotion is not possible.
2452 2012-04-13 16:05:16 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2453 Improve arrow drawing
2455 The arrow is now erased together with the border highlights, by marking
2456 the damage it did, and then doing a selected redraw of the board to let
2457 the damaged square be re-drawn. Highlights of a previous move are now
2458 cleared on the down-click that selects a new piece, so there never is an
2459 arrow to infavorably interact with animation of dragging.
2461 2012-04-13 14:57:15 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2462 Also do selective redraw with showTargetSquares on
2464 The XBoard DrawPosition now also keeps track of the previous marker state,
2465 and redraws squares for which thi shas changed. As a result, the routine
2466 MarkTargetSquares does no longer have to force to complete redraw.
2469 2012-04-13 00:33:28 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2470 Fix click-click sweep promotions to empty square
2472 These did not work, because DragPieceBegin would fail on an EmptySquare.
2474 2012-04-12 23:58:41 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2475 Move clearing of target squares to after drag end
2477 A dragged piece that would partly overshoot its destination into a square
2478 with a marker would effectively protect that marker from erasing, when the
2479 erasing was done before the piece was released, because redrawal after the
2480 move only would draw the target square. (Unlike erasing, which forces a full
2483 2012-04-12 23:49:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2484 Fix double promotion popup
2486 Only the up-click of a click-click move gives a promotion popup now.
2488 2012-04-12 23:32:28 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2491 The new GenericPopUp did not like it if the first button had 'SAME_ROW' set.
2493 2012-04-12 17:28:32 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2494 Allow clearing of marker dots in any mode
2496 There might already be dots when you change to a mode where there should
2497 be none, and you don't want them to stay on forever in that case...
2499 2012-04-12 17:00:55 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2500 Fix redraw of secondary board on flipping view
2503 2012-04-12 10:30:21 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2504 Let clocks of secondary board count down
2506 The back-end now remembers what is the active clock, and the time left on it.
2507 This is then decremented and updated together with the clocks of your own
2508 game, using the partnerUp flag to divert the clock display to the secondary.
2510 2012-04-12 09:47:43 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2511 Fix 3 forgotten symbolic widget references
2514 2012-04-11 19:24:36 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2515 Add sound files to browser menu
2518 2012-04-11 13:04:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2519 Add New Directory button to file browser
2522 2012-04-11 09:54:51 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2523 Detect engine exit during startup
2525 The case where engine startup failure does not result in a fatal protocol
2526 message, like "No such file", but where it simply exits, is now also covered.
2528 2012-04-10 22:55:07 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2529 Suppress popup for fatal error after tellusererror
2531 For cooperating better with Polyglot, and allowing more to-the-point
2532 error messaging, the (awful) default message will be suppressed if the
2533 dying engine already provided an explanation for its demise to the user.
2535 2012-04-10 20:28:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2536 Fix Engine Output icon heights in international versions
2538 The text in a label option could not be an empty string, or it would be
2539 'translated' to something of enormous size. So it is set to a space now.
2541 2012-04-10 20:21:56 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2542 Fix internationalization
2544 The internationalization was broken by moving the XtSetLanguageProc
2545 to behind 'bindtextdomain'.
2547 2012-04-10 20:03:46 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2548 Make reference to board widgets symbolic
2551 2012-04-10 18:39:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2552 Don't strip path from engine name if directory given
2555 2012-04-10 17:54:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2556 Fix vertical chaining of Buttons and browser ListBoxes
2559 2012-04-10 15:53:47 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2562 The 'narrow search' modification had broken auto-play, because all selected
2563 games were marked as matching position 0, so that they would all start in
2564 thr opening position.
2566 2012-04-10 13:30:44 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2567 updated po/pot files
2570 2012-04-10 11:54:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2571 new version number for developer release
2574 2012-04-10 13:22:40 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2578 2012-04-10 13:21:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2579 Fix Makefile EXTRA_DIST
2582 2012-04-02 17:53:40 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2583 Use Ctrl key in EditPosition mode to copy pieces
2586 2012-03-28 23:51:28 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2587 Fix bug in FRC castling for position search
2589 In FRC it is essential that both pieces are taken off the board before
2590 any of them is put back, lest they obliterate each other.
2592 2012-03-28 12:25:20 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2593 Fix bug on loading engine
2595 A newly loaded engine was put at the end of the game, rather than at the
2596 current position, (which is required in EditGame mode).
2598 2012-04-06 17:02:21 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2599 Add 'Narrow' function to position search
2602 2012-04-06 10:52:45 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2603 Reorganize main() a bit
2605 The font stuff goes into a separate routine, and the X11 stuff is
2606 moved backwards as far as possible.
2608 2012-04-04 21:55:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2609 Give the dual-board option a separate board window
2611 The second board window pops up whenever an alien board is received
2612 during your game. Moves in it are highlighted by an arrow, irrespective
2613 of the 'Highlight with Arrow' setting. The clocks are displayed, but do
2616 2012-04-05 11:23:03 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2617 Port engine grouping to Match Options dialog
2620 2012-04-05 15:18:25 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2621 Change default directory in Load Engine to "."
2624 2012-04-05 10:49:56 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2625 Port grouping to XBoard Load Engine Add highlight to Load Engine grouping
2628 2012-04-06 17:19:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2629 Fix default file types for browse buttons
2632 2012-04-03 09:14:44 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2635 Redo file browser with GenericPopUp
2637 This had to solve quite some problems, because it wanted to use a ComboBox
2638 option while a transient dialog could be up, was a non-engine dialog
2639 while an engine dialog is up, and XRaiseWindow does not work properly.
2640 Sorting is done alphabetically, or for digit groups by numeric value.
2642 2012-04-02 14:43:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2643 Use ListBox in stead of ComboBox in Match-Options dialog
2646 2012-04-02 14:09:15 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2647 Use ListBox in stead of ComboBox in Load Engine dialog
2649 Make Load Engine listbox sensitive to double-clicking
2651 2012-03-26 17:06:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2652 Add message about enabling in New Variant dialog
2655 2012-03-31 20:27:20 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2656 Move LoadGamePopUp to menus.c
2659 2012-03-31 20:25:22 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2660 Move DisplayMessage to dialogs.c
2662 Use the wrapper SetWidgetLabel to make it back-end.
2664 2012-03-31 15:23:30 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2665 Fix switching debug option during session.
2667 Switching on debug mode during the session did not create the requested
2670 2012-03-31 15:22:57 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2671 Correct texi file for use of .Xresources
2674 2012-04-02 19:19:30 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2675 Fix recent-engines menu
2677 A new primitive to create an item in a given menu was added to do this.
2679 2012-03-31 10:54:22 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2680 Switch back two two-part menu names
2682 The menu code is again completely changed; a handle field is added
2683 to the MenuItem tables to store the widget for the item, and this info
2684 is used to alter sensitivity or marking. MenuToNr is replaced by
2685 MenuNameToItem, which looks up the two-level name directly in the
2686 menu tables. Put all currently unused MenuProcs in noMenu table,
2687 so they are available for key binding through the new method.
2689 2012-03-24 18:36:44 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
2690 Redo main board window with generic popup
2692 Some of the improvements in GenericPopUp (committed earlier) were added
2693 especiall for this (menu and box Option types), and the commits that used
2694 them to make a fully functional board, listed below, were collapsed into
2697 This uses the new box and menu features of the Generic popup.
2698 Make option table shadow board consistent with refactor
2699 Do main menus in shadow board
2700 The board made by GenericPopUp now also has (functional) menus. The Expose
2701 callback now also uses the new format (passing coordinates).
2702 Use BoxEnd callback to decide about smallLayout
2703 The shadow board now dynamically decides whether it should use smallLayout
2704 positioning of the title-in-window widget, using a callback in the BoxEnd
2705 option for the menu bar: If no reasonable amount of space is left behind
2706 the menu bar, the title is forced under the clocks (smallLayout).
2707 Do some mouse handling on shadow board
2708 Only button 1 events for now. We have to keep track if the button is down!
2709 Connect button 3 to shadow board
2710 For now only for piece and PV manipulation: no context menus yet
2711 Symbolic reference in option formatting
2712 choice <-> textValue xboard.c
2713 Improve expose callback shadow board
2714 Implement context menus of shadow board
2715 This uses the new generic PopUp option
2717 Make mock-up board available through menu item
2718 Make clocks of shadow board sensitive to clicking
2719 Make button bar of shadow board operational
2720 The back-end Event functions are specified as user callbacks directly;
2721 this is not very clean, as they are parameterless, but called with an int
2722 argument. This should have no bad consequences, though.
2723 Switch to using shadow board as main board
2724 The menu marking and enabling had to b switched off for this, as it
2725 only worked on the old menus. Remove HandleUserMove.
2726 Deleting of unused shell variables, clocks to dialogs.c
2727 Move BoardPopUp to dialogs.c
2728 This required passing on fome front-end vars as parameters, and returning
2729 apointer to the option list, to make the handles available in xboard.c.
2730 Simplify InitDrawingSizes
2731 Now that all widgets of the main window are properly chained, there is
2732 no need to resize them when the board format changes: setting a new width
2733 for the shell suffices.
2734 Cleanup some unused Xt Args
2736 2012-03-31 10:53:46 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2737 Remove unnecessary menu unmarking for Edit Tags
2740 2012-03-29 19:09:34 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2741 Split sync-after options in Match dialog into checkbox + label
2743 Now the checkbox texts are highlighted on hovering, we don't want the
2744 explanatory text behind it to be highlighted with it.
2746 2012-03-26 17:12:33 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2747 Make variant-unsupported-by-second error non-fatal
2750 2012-03-23 20:06:15 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
2751 Redo Eval Graph with generic popup
2753 The Graph option of the GenericPopUp is used to implement the Eval Graph.
2754 Compared to the previous implementation, which was drawing directly in the
2755 form widget, the new one has one extra widget layer, but that did not
2756 affect the code anywhere. Adapt eval title to width of eval graph.
2758 2012-03-23 15:17:14 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
2759 Redo Engine Output window with generic popup
2761 A new file nengineoutput.c holds the X-independent code. This makes use
2762 of new capablities of GenerciPopup, for having Label widgets on same row,
2763 stacking panes after a Break, and chaining Label and Text widgets.
2765 2012-03-21 23:00:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
2766 Redo Game List with generic popup
2768 Check in ngamelist.c
2769 Redo Game List with generic popup
2770 The X-independent code (i.e. almost all) is moved to a new file
2772 Make button in Game List to pop up Game List Options
2773 Fix scrolling game list
2774 Fix popup of existing Game List after loading file
2775 Wheel-scroll game list
2776 Symbolic reference game list
2778 Put format flags with listbox options
2780 2012-03-21 17:58:27 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
2781 Redo Game List Options with generic popup
2784 2012-04-05 21:56:52 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2785 Add -dialogColor and -buttonColor options
2787 These only override system defaults if they are non-empty strings.
2789 2012-03-28 15:52:01 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
2790 Add -topLevel option
2792 This persistent Boolean option determines if the auxiliary windows
2793 (Game List, Move List, Engine Output, Eval Graph, Tags and Comment)
2794 use top-level shells (with their own icon on the task bar, and
2795 independently closable). Other dialogs will always use transient shells.
2796 (Also he modal Error and Promotion dialogs, for which the modality
2797 presumably only serves to pop them down without special attention.)
2798 A control for this was added in the General Options dialog.
2800 2012-03-20 15:30:00 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
2801 Redo ErrorPopUp with generic dialog
2803 <Enter> keeps popping down error popup.Multiple Error popups remeain tricky;
2804 add comment to describe problem with multiple ErrorPopUps.
2806 2012-03-20 10:22:46 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
2807 Redo PromotionPopUp with generic dialog
2809 The dialog is no longer modal.
2811 2012-03-19 21:56:48 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
2812 Redo AskQuestion dialog with generic popup
2815 2012-03-19 21:55:58 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
2816 Major refactoring of GenericPopUp
2818 Allow more transient dialogs in GenericPopUp
2819 Remove grab from promotion popup
2820 Fix other generic popup over transient popup
2821 To use the generic dialog generator for 'asynchronous' popups (Ask Qustion
2822 or Error popup caused by engine), the currentOptions setting has to be
2823 restored for the combo and checkbox callbacks of the transient to still
2824 work after the asynchronous dialog returns. Note that only transient dialogs
2825 can have check and combo controls.
2826 Make generic calcel button suppressible
2827 Also #define some more symbols for Option.min flags,
2828 and move them to dialogs.h.
2829 Change TypeInProc to general OK handler
2830 The move type-in now has its own option list, to distinguish it from
2831 the ICS input box, and give it its own OK handler. Rather than having
2832 the translation for <Enter> on the text widget call TypeInEvent directly,
2833 we let it call GenericCallback, which calls GenericReadout, which calls
2834 the OK proc, which does the job.
2835 To be able to call GenericCallback from the TypeInProc, the recognition
2836 of OK and cancel buttons had to be changed. This because it was too difficult
2837 to arrange the calling widget had label OK or cancell. So these buttons are
2838 no longer recognized by name, but by the option number passed as client data.
2839 (This solves the problem that a user could not make buttons named 'cancel'
2841 Make Cancel button optional
2842 Fix closing multiple popups of same kind
2843 The GenericCallback figures out its own shell, so all buttons of
2844 multiple dialogs keep working. External calls to PopDown only work
2845 on the lastcreated instance of that kind, though (including those from
2846 the Delete Window button, which can do 'cross-closing'). shellUp is now
2847 a counter, and PopDowns are only prevented when it reaches 0 or the
2848 current shell does not exist. (To know this, PopDown now resets shells[n]
2849 to NULL when is shell is destroyed.
2850 Beware of double PopDowns (through OK procs); they wreck the system.
2851 Fix Delete Window button of multipe ErrorPopUps
2852 The action routine for handling the Delete Window now pays attention
2853 to the shell widget that the system passes to it, and temporarily
2854 replaces shells[n] by it to let PopDown act on the proper instance.
2855 Add ListBox dialog type to GenericPopUp
2856 Fix vert sizing of ListBox
2857 Put listbox widgets in viewport
2858 Put listbox in viewport
2859 Improved xoptions.c support for focussing and listboxes
2860 Fix OK-row button positioning
2861 Let GenericPopUp take parent and modality as arguments
2862 This makes the code a bit more explicit and less kludgy. It also becomes
2863 possible to call the same dialog (e.g. Load Options) from the main menu
2864 and from another dialog (e.g. the Game List).
2865 Support scroll function for generic popup listboxes
2867 Move HighlightWithScroll to xoptions.c
2868 Change scroll algorithm
2869 Add mouse-wheel scroll to generic list boxes
2870 Implement tabbing between text edits
2871 Implement same-row text labels in generic dialog
2872 Allow labels to specify their chaining in generic popup
2873 The opt.min variable is used to specify the chaining: 0xF0 are the bits
2874 for (left, right) chaining of the left side (0xC0) and right side (0x30).
2875 The 0xC bits determine top or bottom chaining of the entire label.
2876 Without anything spcified (0), the chaining is XtRubber.
2877 TextBox options can also specify top-chaining of their top. All this was
2878 needed to allow decent implementation of the Engine Output window with
2879 the generic popup. (Although tags and comment popup ca benefit from the
2881 Let GenericPopUp support a Graph option
2882 The Graph option results in an area where one can draw something. It is
2883 positioned / chained similar to Label options. A handler for expose events
2884 can be specified in the textValue field of the option.
2885 Implement box widgets and menu buttons in GenericPopup
2886 To enhance the capabilities of GenericPopUp such that it could create the
2887 main window, it needs to be able tha packaging of controls into a box widget
2888 (for mennu and button bar). Menu buttons are also required elements
2889 (although they do look a lot like comboboxes?) Option types BoxBegin and
2890 BoxEnd can now be used to bracket a group of controls that will be put
2891 in a box widget. (Cannot be used recursively!) The positioning of the box
2892 is similar to that of a Label, and is specified in the BogBegin option.
2893 The code to shrink the menu buttons to fit is also incorporated, to act
2894 on any box widget: if the BoxBegin option specifies a width, the elements
2895 in it are shrunk to meet the requirement. Otherwise the box just gets the
2896 size of the sum of its children (plus spacings).
2897 Label options can now specify a font, casted into their textValue field.
2898 (This is needed to get the proper size for the clock widgets.)
2899 Implement callback in BoxEnd options
2900 BoxEnd is a pseudo-option, to trigger packing the preceeding ones in
2901 an earlier-opened box widget. In the process it calculates the size of
2902 the box widget (and trims it if a size was specified for it in the
2903 corresponding BoxBegin). The Option.target field of BoxEnd is now
2904 interpreted as a callback, which can be use to take decisions based
2905 on the determined size for the remaining options in the list, before
2906 these are processed b GenericPopUp.
2908 Make a subroutine to set args shared by almost all widgets. Swap meaning
2909 of '1'-bit in option.min flag of Break option, to be consistent with
2910 SAME_ROW interpretation in other option types.
2911 Make option tables consistent with refactored GenericPopUp
2912 The flag for stacking in the Break option needed to be inverted, and
2913 the BoardPopUp needed to pass the font in another field. Better use was
2914 made of the improved chaining options too.
2915 Improve Graph-option event handling
2916 The user-supplied callback now gets 3 arguments passed: the event type
2917 (0 = pointer motion, 1...5 button press, -1...-5 release, 10 = expose),
2918 and two coordinates. For ouse events these are the pointer (x,y), while
2919 for expose events they are the window size (w,h). The callback is now
2920 specified in the option.target field of the Graph option.
2921 Store engine options in malloc'ed memory
2922 The Option.name field has been re-declared as (char*), from (char[MSG_SIZ]).
2923 There are still MSG_SIZ chars allocated irrespective of actual size, because
2924 the field is also supposed to store the textValue, which can be changed by
2925 the user. But at least it means that unused options of the generous list
2926 now don't waste much space. (And the prparated Option tables in dialogs.c
2927 will shrink by a large factor as well.)
2928 Improve GenericPopUp ComboBox handling.
2929 The dialog type is now passed to the combobox callback as well, and this is
2930 used to really figure out what option it is called for.
2931 Allow numeric comboboxes
2932 When no list of strings is given in Option.choice, the target is assumed
2933 to be (int), and the number of the slected entry is stored there. Also
2934 adapts the Label options that act as fillers to the new method for making
2935 dummies (namely NULL in the Option.name field).
2936 Put comboCallback in Option struct
2937 Rather than having a general comboCallback variable for the entire current
2938 dialog, each ComboBox option can now specify its own callback in the
2939 target field of the option: the COMBO_CALLBACK bit of Option.min indicates
2940 whether the target is a variable to be set or a callback. The callback can
2941 still fetch the choice from the values array.
2942 Allow generic CreateComboPopup also to do main menus
2943 An extra parameter to CreateComboPopup determines if the menu texts
2944 should be taken from a list of strings (the old method with engine-
2945 supplied choices), or from a menu table of MenuItems. It can now also
2946 recognize "----" as a menu break, and keeps margins (for the marking).
2947 Make subroutine for determining curren combo selection
2948 Various fixes to GenericPopUp
2949 Delete one border-width setting
2950 Fix max nr of args in GenerocPopUp
2951 Fix button release events of Graph options
2952 Fix generic Graph callback pointer motion coordinates
2953 Make all format referencing in Option tables symbolic
2954 Let Option.choice define menu texts, rather than Option.textValue
2955 This is more logical than ussing textValue for it, because choice already
2956 has the correct (char**) type, while textValue was (char*), and needed
2957 casting everywhere. Note that for engine options, the fields were the
2958 same anyway, so no back-end change was required. The textValue now
2959 contains the (casted) list of actual string values, where these are
2960 needed. (But for numeric and function menus they aren't.)
2961 Add PopUp Option type
2962 An new pseudo-Option is defined, to add a popup menu to a previous Graph
2963 option. The actual popping up is done by the expose handler.
2964 The function XUngrabPointer is the key to success here. A PopUp option
2965 specifies a callback for handling the selection from the menu, which will
2966 be called with the option number, exacty as with ComboBox options.
2967 Update option explanation in dialogs.h
2968 Make Spin and CheckBox callbacks pass dialog number
2969 No longer rely on 'currentOptions' for getting the option belonging to
2970 the callback, but get it out of the dialogOptions array indexed by dialog
2971 type. This way things cannot be messed up by an asynchrounous error popup.
2972 It also means that it is now save for non-modal dialogs to use these options.
2973 Use button widget for text behind checkbox
2974 Let listboxes use general formatting hints
2975 Let GenericPopUp option always finish last pane after Break
2976 Allow LisBox to specify select callback in Option.textValue
2977 Use double-click to trigger ListBox callback
2978 Make ListBox callback re-entrant
2979 Fix multi-line Label options
2980 Separate CreateMenuItem out from CreateComboPopup
2981 Chain checkbox texts entirely left
2982 Allow a user-specified callback to Label options
2983 This is needed to implement the clocks. Let the CheckBox callback handle
2984 it. For now ther is no distinction between different mouse buttons.
2986 2012-03-21 11:15:01 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
2987 Prevent double PopDowns
2989 Some DialogOK functions ordered an early PopDown themselves. This,
2990 however, resulted in PopDown being called twice when they returned TRUE.
2991 This interfered with the new system for allowing multiple instances of
2992 the same dialog. So these functions are now fixed to suppress the
2993 standard PopDown by always returning FALSE.
2995 2012-03-20 19:10:50 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
2996 Split usounds.c and usystem.c from xboard.c
2998 X-independent code was moved to separate files. The nef file usound.c
2999 contains the sound handling, which in XBoard is trivial, because it uses
3000 an external player, but could be replaced by a complex one on platforms
3001 that have to handle the sound themselves.
3002 The usystem.c file contains all non-X Unix-like stuff, such as fork,
3003 pipe, system, getenv. I also contains some color parsing for the xterm
3004 colors. This stuff could be useful on platforms that support Unix-like
3007 2012-03-26 19:03:19 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
3008 Make routine to probe shift keys
3010 The code to probe Alt keys was taken out of MoveTypeInProc, and extended
3011 to probing Ctrl and Shift keys too. These are now returned in the 6 LSB
3012 of an int by ShiftKeys().
3014 2012-03-19 13:15:11 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3015 Remove one level of indirection on ICSInputBoxPopUp
3018 2012-04-10 10:26:24 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
3021 Remove AskQuestionProc
3022 A bit of cleanup on xboard.c prototypes
3023 Remove dead file-browser code
3024 Delete vestigial jail code
3025 All the stuff about jailColor was deleted. Only one fishy thing remains:
3026 xpmJailSquare seems under some conditions used in BlankSquare to draw a
3027 'neutral' square. it is set to a copy of a light square image. But in the
3028 current design 'neutral' means blacked out between board and holdings,
3029 and even with image use, it should not resemble a light square...
3030 Remove registering of CommentPopDown and TagsPopDown
3031 Merge CopyGameSelection into CopyPositionSelection
3033 2012-03-19 11:38:17 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3034 Move some back-endish routines from xboard.c to dialogs.c
3036 Move ICS input-history handling to dialogs.c
3037 Move ICS Input Box text handling to dialogs.c
3038 Move DisplayXxxx routines to dialogs.c
3039 Move DisplayTitle to dialogs.c
3040 A wrapper SetWindowTitle remains in xboard.c.
3042 2012-03-18 20:10:35 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3043 Split back-endish part off xoptions.c, and move to dialogs.c
3045 Some MenuProcs for dialogs were also moved to dialogs.c from menus.c.
3046 MoveTypeInProc which is an event handler for the board widget,
3047 was moved to xboard.c, where it can be static.
3049 Identify dialogs by enum type
3050 A new header dialogs.h is created, which defines an enum type DialogClass
3051 that is now used to identify the various dialogs done by GenericPopUp.
3052 The prototypes for GenericPopUp/PopDown, and other globals shared by the
3053 dialogs code and other modules can go in here as well.
3054 Remove ClearTextWidget
3055 This did the same as SetWidgetText with an empty string.
3056 Split X-code from PutText
3057 Split back-end part from MoveTypeInProc
3058 Take set-title out of comment popup
3059 Sort MenuProcs in dialogs.c with their support functions
3060 Declare globals in dialogs.c with functions where they belong
3061 Add prototypes to dialogs.h
3062 Move prototypes and globals from xoptions.c to dialogs.h
3063 Make accessor DialogExists for dialog shells
3064 Add dialogs.c to makefile: compiles and runs!
3065 Combine 3 calls into front-end to InitDrawingParams
3066 Move EditCommentProc and ICSInputBoxProc to dialogs.c
3067 Pass option list as argument to GenericUpdate and GenericReadOut
3068 Shorten argument name from currentOption to opts
3069 This to prevent confusing it with the global variable of that name.
3071 2012-03-18 15:33:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3072 Declare some shared global variables in backend.h
3074 The vlobals twoBoards and partnerUp were only shared through an extern
3075 declaration in xboard.c
3077 2012-03-18 12:34:42 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3078 Split back-endish part off drawing code and move to board.c
3080 Split DrawSquare in front-end and back-end part
3081 Back-endize DrawHighlights and DrawPosition
3082 The already existing wrapper FlashDelay is used as a kludge to do an XSync.
3083 We now pass a code for the line color GC to the highight routine. New
3084 wrappers are DrawGrid() and DrawBorder().
3085 Back-endize atomic explosions
3086 Back-endize DrawArrow and DrawDragPiece
3087 DrawDragPiece now calls DrawOneSquare with argument EmptySquare in stead
3088 of the X-type referring BlankSquare. A new wrapper DrawPolygon fixes
3089 DrawArrowBetweenPoints.
3090 Move board-drawing logic to new file board.c
3091 All X-independent drawing logic (board, squares, arrows, highlights,
3092 some animation stuff) has been extracted from xboard.c, and moved to
3093 a new file board.c, which is back-end (but unshared with WinBoard).
3094 A new header board.h defines the cross-references (which of course
3095 required some functions to be no longer declared as static).
3096 A bit of code was moved from DragPieceBegin to BeginAnimation, which
3097 now has an extra argument to indicate which piece should appear from
3098 under a dragged piece. This makes DragPieceBegin free of XCopyArea calls,
3099 so it could be moved too.
3100 Make board.c truly back-end
3101 Get rid of all X data types. For this the AnimState struct had to be
3102 redefined: the GC and Pixmap was taken out and put in front-end arrays
3103 indexed by anim agent (game and player). For this indexing a new enum
3104 was defined. The XPoint type was also replaced by our own type of an
3105 int pair (which is nasty, because the int size could be different).
3106 Move more animation code to board.c
3108 2012-03-18 10:08:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3109 Contract some awful code replication
3111 The code for making an X-color was replicated 6 times, and is now made
3112 into a subroutine. The code for creating GCs was quite repetitive as well.
3114 2012-03-18 08:34:54 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3115 Move more back-endish menu-related stuff from xboard.c to menus.c
3117 Move menu enabling to menus.c
3118 Only the wrapper EnableMenuItem stays in xboard.c. A new wrapper
3119 EnableButtonBar was necessary, because Training mode wants to enable/disable
3121 Move all back-endish MenuProcs to menus.c
3122 Many if the MenuProcs that could not be eliminated by listing the
3123 corresponding back-end MenuEvent function as handler directly, are
3124 still completely plactform indpendent. (E.g. when the MenuEvent needs
3125 a parameter.) These are all moved to menus.c now.
3126 Convert all dead MenuProcs to using MarkMenuItem
3127 The MenuProcs for the option items that no longer exist were also
3128 converted for check-marking their item in the new way, because we
3129 might revive them for key binding.
3130 Move the dead MenuProcs also to menus.c
3131 Revive dead menu procs
3132 Move GreyRevert to menus.c
3133 Move ModeToWidgetName to menus.c
3134 Move initial menu marking to menus.c
3136 A new function InitMenuMarkers was split off from main() to do this.
3138 2012-03-18 08:17:53 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3139 Switch to use of short menu references
3141 The prefixes menuXxxx. for the item names are abolished. This made it
3142 necessary to also add a MarkMenuItem function that can handle short names
3143 for putting the xMarkPixmap on the items, as the names returned by
3144 ModeToWidgetName are used for both enabling and check-marking.
3145 Let MarkMenu use MarkMenuItem wrapper
3147 2012-03-17 10:47:04 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3148 Refactor menu code, and move it to menu.c
3150 Supply new method for key binding
3151 It is annoying that every menu item needs its X-specific handler routine,
3152 because this handler has to be registered to X for becoming eligible as
3153 a key binding. Another disadvantage of this method is that the user wanting
3154 to make the binding has to know the name under which the menu function
3155 is registered (e.g. FlipViewProc).
3156 A new method is now made available, which uses only a single (X-specific)
3157 routine, registered with X as "MenuItem", as generic key-binding handler.
3158 The bindings can then be made by the user specifying "MenuItem(FlipView)".
3159 This requires a new list of potential bindings, which should be filled
3160 by the menu-creation routines. (Currently only contains only a predeficed
3162 No longer register all MenuProcs with X
3163 The list with available menu procs is moved to the user-maintained
3164 menuItemList. Only QuitProc had to stay registered with X, because it is
3165 used in CatchDeleteWindow. (So it is in both lists now.) In the future,
3166 most of the list can be built automatically from the menu tables.
3167 Alter type of MenuProcs to void(void)
3168 By getting rid of the argument list with X-types, most menu procs can
3169 become back-end. In the cases of ManProc and QuitProc the original
3170 version had to be kept as well, because in ManProc the argument was
3171 actually used (with key binding), while QuitProc is used for delete window.
3172 Remove now unnecessary menu wrappers
3173 Now the MenuProc have an empty argument list, those that also call a
3174 single 'MenuEvent' without arguments have become completely redundant,
3175 and have been taken out of the loop by calling the corresponding MenuEvent
3177 Build menuItemList from menu tables
3178 Rather than having an initialized table of name-proc associations (which
3179 used to be the X registrations) for the menu items, we now build the list
3180 during menu cration from the menu tables. The menu "ref" is now used as
3181 proc name. This means the old MenuProc names used in the predefined
3182 key bindings had to be changed to conform to this. Note that the bindings
3183 would slice up names containing spaces in several parameters, so in the
3184 translations the spaces were squeezed out of the item names. This requires
3185 a hand-written comparison routine Equal() to identify the binding.
3186 Remove prototypes of deleted MenuProcs
3187 Move prototypes of platform-independent MenuProcs to menus.h
3188 Create a new header file for the menu stuff, so that we can move
3189 the corresponding handler routines out of xboard.c to a back-end file.
3190 Extract back-end code from menu creation
3191 The menu tables and code to interpret them is moved to a new file menu.c.
3192 Only basic fuctions for creating a pop-down list and for adding an item
3193 to it remain in xboard.c.
3195 2012-04-07 15:59:50 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
3196 Remove some unused (exclude-moves) variables
3199 2012-04-07 15:57:54 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
3200 Install engine within current group
3203 2012-04-07 15:53:29 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
3204 Switch to using listboxes for engine-selection in WinBoard
3207 2012-04-07 15:36:02 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
3208 Implement Narrow button in WB Game List
3211 2012-04-05 15:15:09 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
3212 Silence unjust warning
3215 2012-04-04 12:18:43 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
3216 Fix memory corruption through InitString and second-engine loading
3218 The InitString and ComputerString options were not swapped when replacing
3219 the second engine, so that the ChessProgramStates of the first engine
3220 could point to an invalid (already freed) init string. Also make sure
3221 that appData.directory contains its value in allocated memory, even
3222 when hand-loading engines.
3223 Some of the rare options were not swapped either, and would thus
3224 always be loaded for the first engine when -singleEngineList was true.
3225 They are now also all reset to their default, before engine load,
3226 to prevent options of one engine to linger on for a next that does
3227 not specify them. The intentional exception is -firstHost.
3229 2012-04-01 20:51:53 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
3230 Fix PV sorting during fail low
3232 When an engine reports a fail low as thinking output, and then re-searches
3233 the same move with larger window, it now gets a lower score. This line
3234 would then be sorted below the earlier fail low, because it was mistaken
3235 for a multi-PV line for an inferior move. This patch suppresses PVs
3236 overtaking each other if they start with the same move.
3238 2012-03-30 20:09:58 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
3239 Extend smallLayout regime up to size Medium
3241 Because of the increase number of menus, there is not enough space for a
3242 title next to the menu bar at smaller sizes. In fact it is questionable if
3243 the title should ever go on the same line as the menu bar.
3245 2012-03-30 10:38:27 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
3246 Fix parsing crazyhouse promotions with legality testing off
3248 With legality testing off, any promotion suffixes in a move are taken
3249 'on faith'. But in crazyhouse the piece ID for normal pieces is used as
3250 promotion suffix for promoted pieces, so this would Loop Chess rather than
3251 Crazyhouse. Now attention is payed to presence of ID-less promotion pieces
3252 (indicated by ~ in the pieceToCharTable), and if there are, these prevail
3253 ovr the specified type.
3255 2012-03-30 10:07:04 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
3256 Fix browsing for save file in WB
3258 The generic popup browse buttons used the wrong flavor of browser,
3259 which would only accept existing files. This was inconvenient when browsing
3260 for a save file. The other flavor of browser is now used by default (so that
3261 engine options also use it), and a new flag is added in the option.max field
3262 (which was already indicating file type) to request readonly browsing for a
3265 2012-04-02 10:18:37 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
3266 Let clicking on header line exclude moves
3268 The exclude header in the Engine-Output window can now be clicked, to
3269 toggle the exlusion of the listed move. Clicking on 'none' resets all
3270 exclusions, clicking on 'best' excludes the first move of the latest PV.
3271 The pseudo-move 'tail' represents all non-listed moves.
3273 2012-04-01 22:39:55 +0200 H.G. Muller <h.g.muller@hccnet.nl>:
3274 Keep list of excluded moves in Engine Output header
3276 As long as there is still space, excluded or included moves are added
3277 to a new header line in the Engine Output window (prefixed with + or -
3278 depending on whether they are currently excluded or included). Future
3279 in/exclusions of that same move then alter the prefix.
3281 2012-03-21 23:12:20 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3282 Fix focus of Game List
3284 After focus was transferred to the filter text-edit, it was impossible
3285 to get it back on the game list (to make the arrow keys working again).
3286 A translation to left down-click is now used to assign focus, just as
3287 it would for text edits. For unknown reason this only worked if the
3288 translations were instated by Overriding, rather than Augmenting,
3289 which again required the normal translation of downclick, Set(), which
3290 selects the clicked item, to be explicitly mentioned as well.
3292 2012-03-16 22:41:19 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3293 Fix taking effect of some option changes
3295 This fixes a bug reported at Ubuntu: when switching off move highlighting
3296 in Two Machines mode, the last move before the switch stayed highlighted.
3297 The GeneralOptionsOK() now clears any remaining highlights when highlighing
3298 is off. Similar problems with blind-fold mode and coordinates, which require
3299 a total board redraw to take effect, are now solved by also forcing such a
3300 redraw in GeneralOptionsOK() when they change.
3302 2012-03-16 21:58:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3303 Add exclude and setscore to protocol specs
3306 2012-03-16 14:47:25 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3307 Fix clock stop after dragging
3309 DelayedDrag always cancelled the previous drag timeout event, even when
3310 this was no longer pending because it had already taken place, and the
3311 event ID was resused by some other timeout (usually a clock tick).
3313 2012-03-14 21:06:28 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3314 Implement exclude moves
3316 Dragging a piece by double-clicking it on the from-square in analysis mode
3317 will not perform the entered move, but send an exclude or include command
3318 to the engine for that move (provided the engine enabled this with
3319 feature exclude=1), depending on if the move was already excluded or not.
3320 To this end a map of excluded moves is kept, and cleared when we move to
3321 another position through moving, undo, setboard or new. The user can see
3322 whether he included or excluded the move, as exclude uses premove highlights.
3323 Commands "exclude|include all" are sent when we throw a double-clicked
3324 piece off board (vertically or horizontally, respectively), but after
3325 exclude all the most recent PV move is included again.
3326 Remaining problem is that promotions can only be excluded.
3328 2012-03-14 15:13:18 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
3329 Mark new text "Click clock to clear board" for translation
3332 2012-03-13 21:46:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3333 More thorough switch to -ncp on engine failure
3335 The ProcRef and InputSource are now also cleared, and just to be sure there
3336 are no surviving adapters, the child is killed when engine startup fails.
3338 2012-03-13 21:25:22 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3339 Install engines as ./exefile in XBoard
3341 When a path name is split into directory and filename, the latter in Linux
3342 must be preceded by ./ in order to make it executable in the directory
3343 XBoard starts it in.
3345 2012-03-13 14:11:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3346 Inform user in EditPosition mode how to clear board
3348 With -pieceMenu false the board is cleared by clicking the clock, but
3349 since this is impossible to guess, it is now printed in the message field.
3351 2012-03-13 14:06:32 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3352 Fix fall-back on -ncp mode
3354 When the requested engine could not be started, the user still had to
3355 wait for the feature timeout to expire before the UI was re-enabled,
3356 and the now-useless loading action would continue. In stead we now
3357 cancel any scheduled continuation, thaw the UI immediately, and switch
3358 the menus and gameMode to ncp straight away.
3360 2012-03-10 18:55:24 -0800 Arun Persaud <arun@nubati.net>:
3361 updated po/pot files
3364 2012-03-10 18:54:32 -0800 Arun Persaud <arun@nubati.net>:
3365 new version number for developer release
3368 2012-03-06 16:37:02 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
3369 Fix typo (seach) in string. It is already fixed in branch v4.6.x
3372 2012-03-04 14:52:34 -0800 Arun Persaud <arun@nubati.net>:
3373 added some documentation about what's need to be done for a release and a bash-release script
3376 2012-02-28 21:09:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3377 Fix suspected bug in Makefile
3382 2012-02-26 18:55:10 -0800 Arun Persaud <arun@nubati.net>:
3383 add information about our webpage and were to report bugs into the help menu
3386 2012-02-26 18:40:27 -0800 Arun Persaud <arun@nubati.net>:
3387 fixed "make install-pdf": missing target for recursive make in po directory
3390 2012-02-26 23:06:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3391 Suppress recent-engines menu items in ICS mode
3394 2012-02-26 22:45:12 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3395 Fix 50-move counter in ICS mode
3397 Marking irreversible moves in the EP_STATUS did not work in ICS mode,
3398 as ApplyMove,which did that is never executed there. Only the boards
3399 sent by ICS are displayed,especially in observing mode. Now the status is
3400 derived from the ICS mov strings (x in the SAN move, or P in the long move.
3402 2012-02-26 17:18:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3403 Fix two 64-bit warnings
3405 Passing the engine number in a pointer variable to the callback needed
3408 2012-02-26 16:53:24 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3409 Fix piece symbols on switch back to variant normal
3411 Variant switches were not properly detected, meaning the variable pieces
3412 could keep a form belonging to a previous variant. (E.g. Queen remained
3413 a Lance image after switching from shogi to normal.)
3415 2012-02-26 14:07:50 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3416 Keep XBoard windows attached on resize
3418 Windows attached to bottom or right are displaced with the size increase.
3419 Their perpendicular dimension is also scaled, to keep their edges at the same
3420 fraction of the main window, unless they stick out. In the latter case the
3421 fraction is clipped to 1, so that edge moves with the full size increase.
3423 2012-02-25 22:40:56 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3424 Implement -stickyWindows in XBoard
3426 This makes the auxiliary windows move with the main window when they were
3427 touching, as in WinBoard. A control is added in the General Options dialog.
3429 2012-02-25 21:14:03 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3430 Use more reliable X-call for getting window position
3432 XtGetValues on XtNx, XtNy is unreliable. XGetWindowAttributes seems
3433 to give more reliable results, and automatically accounts for the width
3434 of window dressing. The -frameX/Y options are no longer needed bcause
3435 of this, and were removed.
3437 2012-02-25 11:55:19 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3438 Make frame width configurable in XB
3440 New persistent options -frameX, -frameY now can be used to specify
3441 the amount by which Xt lies about the window coordinates.
3443 2012-02-23 20:01:55 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3444 Use combobox line for recent engines when available
3446 The entry made in the -recentEngineList for the startup engine was
3447 derived from the -fcp value, but this would ignore a possible nickname.
3448 In WinBoard we now use the full combobox line to derive the entry.
3450 2012-02-23 09:29:17 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3451 Fix translation of EngineOutputTitle WB
3454 2012-02-23 01:34:12 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
3455 Updated Danish translation
3458 2012-02-23 00:59:36 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
3459 One missed translation of cps->which
3462 2012-02-22 19:58:41 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3463 Undo translation of cps->which = first/second
3465 The string in cps->which should not be translated, because it goes into
3466 the debug file to label engine I/O, and many tools for processing
3467 debug files (broadcasters, PGN extractors) rely on this being "first" or
3468 "second". In all contexts where "first" and "second" need to be translated,
3469 cps->which itself is already enclosed in _().
3471 2012-02-22 18:27:40 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3472 Implement -serverFile option
3474 This writs an extra debug file with only engine communiation on it,
3475 for the benifit of programs like TLCS.
3477 2012-02-22 17:46:16 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3478 Implement -autoCopyPV
3480 This option causes automatic copying of the last position of a PV walk
3483 2012-02-16 14:58:45 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3484 Delete some load-game debug printing
3486 The debug printing in Disambiguate was no longer needed. The printing
3487 of the started process in XBoard that went to stderr is now diverted
3488 to debugFP, so it ends up in the debug file.
3490 2012-02-16 14:41:43 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3491 Move change of debug file to before game load
3493 Loading a game from -lgf is done before TwoMachinesEvent is called,
3494 but logically belongs to the game. So the code to switch to the new
3495 debug file for the game is moved to NextMatchGame now.
3497 2012-02-16 14:09:54 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3498 Fix button grab for sweep selection
3500 The piece-menu initialization limited the grab of button events to those
3501 occurring inside the board window (presumably intended to limit them to
3502 the piece menu, but that does not pop up in sweep-selection mode).
3503 This is now suppressed when -pieceMenu is off, so that selection continues
3504 outside the the board. (Which is very convenient for pieces pu close to the
3507 2012-02-16 13:16:13 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3508 Don't leave piece selected after piece menu
3510 PieceMenuEvent left the just introduced piece selected, which is almost
3511 never what one wants, as it makes it jump to the next square when selects.
3512 Which is especially annoying if it captures the piece you wanted to grab...
3514 2012-02-16 12:57:47 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3515 Fix use of middle button for position setup
3517 With sweep selection the actual drop is made on releasing the button,
3518 and this event was not caught for button 2. Button-2 motion events were
3519 also not caught by the sweep-selection handler.
3521 2012-02-16 23:53:08 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
3522 Fix one more typo in the translator comments explaning "first" and "second"
3525 2012-02-16 23:39:32 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
3526 Fix typo in translator comments explaning "first" and "second"
3529 2012-02-16 23:23:20 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
3530 Add args.h to POTFILES.in and change the interface to ExitArgError() so msg is c format string
3532 Having msg as a format string will ease translations because then
3533 badArg doesn't have to come last.
3535 2012-02-16 22:51:44 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
3536 Mark the strings "first" and "sencond" for translation.
3538 ... and assign the translated strings to cps->which in function InitEngine()
3540 2012-02-16 18:42:10 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
3541 Use ngettext() instead of gettext() for a string to allow better translation.
3544 2012-02-16 00:19:59 -0800 Arun Persaud <arun@nubati.net>:
3545 translation: updated uk.po
3548 2012-02-15 20:59:09 -0800 Arun Persaud <arun@nubati.net>:
3549 modified configure and makefile for handling mimedb update
3551 the default configure will install them using the xdg commands (if they exist on the system)
3553 2012-02-13 22:29:48 -0800 Arun Persaud <arun@nubati.net>:
3554 add configure test for xdg-programs to install mime types; can be disabled for building of e.g. rpms
3556 in case the target system doesn't have the xdg-programs available, we test for them.
3557 Distributions often have their own macros to install these, so we add an enable option to configure
3559 2012-02-13 22:05:26 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3560 Remove a debug printf
3562 The parsePV debug printf becomes extremely verbose with -fSAN, -sSAN,
3565 2012-02-12 22:18:24 -0800 Arun Persaud <arun@nubati.net>:
3566 new developer release
3569 2012-02-12 22:19:37 -0800 Arun Persaud <arun@nubati.net>:
3570 updated po/pot files
3573 2012-02-12 22:17:03 -0800 Arun Persaud <arun@nubati.net>:
3574 updated Changelog, NEWS, etc.
3577 2012-02-12 07:52:54 -0800 Arun Persaud <arun@nubati.net>:
3578 translation: updated uk.po
3581 2012-02-12 11:38:30 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3582 Leave height of row that only contains buttons free
3584 All elements of the GenericPopUp are still scaled to the text height,
3585 including buttons appended behind them (browse or color buttons).
3586 But we now make an exception for a row that only contains buttons,
3587 as there is no harm in it being a little higher (and the buttons look
3590 2012-02-12 00:01:24 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3591 Fix OK button of error popup
3593 The error dialog popped up as a child of the board window, even when
3594 DisplayError was called from a dialog. Now it checks if a transient
3595 dialog is up, and if so, it pops up as a child of that, grabs focus,
3596 and suppresses the system popdown of the transient dialog through a flag
3597 dialogError until it is popped down itself.
3599 2012-02-11 20:07:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3603 2012-02-11 10:18:02 -0800 Arun Persaud <arun@nubati.net>:
3604 added some comments for translators
3607 2012-02-11 10:08:46 -0800 Arun Persaud <arun@nubati.net>:
3608 fixed comments for translators: comments starting with TRANSLATORS: are now copied to the po file
3611 2012-02-11 19:01:49 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3612 Also configure sweep selection
3614 To make sure this feature is tested, we set -pieceMenu false in the
3615 master settings file.
3617 2012-02-11 18:26:34 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3618 Fix date in copyright notice about-box
3621 2012-02-11 17:15:11 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3622 Fix switching animation masks on variant switch
3624 The masks for variant-dependent piees (E,H in Seirawan, promoted Golds
3625 in Shogi, the Gothic Chancellor) were no longer updated in InitDrawingSizes
3626 because of the patch to reduce X-server calls.
3628 2012-02-11 16:46:58 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3629 Configure wider game list
3631 The game list was by default too small, so that there was no room for the
3632 filter field. Now a width of 500 is specified, whcih works at -size 49
3635 2012-02-11 16:29:06 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3636 Fix button chaining and combo/textbox label height
3638 Previous patches forgot to specify the height for the text labels on
3639 -combo and -text options, so they were still too high. Buttons that go
3640 on the same line as the previous element should be chained right, not rubber.
3642 2012-02-11 15:52:52 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3643 Make -pgnNumberTag option setable from menu
3645 The Save Options dialog now containes a checkbox for this.
3647 2012-02-11 15:48:52 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3648 Configure some new features switched on
3650 The master settings file switches -showTargetSquares, -sweepPromotions
3651 and -seekGraph on, so that they will get more testing.
3653 2012-02-11 14:43:53 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3654 Fix heigth of multi-line labels
3656 The previous height patch overlooked that some labels are multi-line,
3657 and need more height.
3659 2012-02-11 14:10:21 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3660 Fix popdown seekgraph on forward-event XB
3662 Only the grid was drawn when the > or >> button were operated, because
3663 a full redraw was not forced by ForwardInner. The recent patch to take
3664 the seek graph down on such events did not account for that. (BackwardInner
3665 always seems to do full redraw, however?)
3667 2012-02-11 12:59:04 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3668 Put front-end support for -recentEngines in XBoard
3670 The engines are added to the menu. Problem is still that in XBoard
3671 startup engines are given by command, rather than selected by combobox,
3672 so the command rather than the nickname ends up in the menu. If this is
3673 then selected, it cannot be found in the list. To limit the damage,
3674 Fairy-Max is now pre-installed without nickname. -recentEngines is now
3677 2012-02-11 11:53:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3678 Better solution to button-height problem
3680 In stead of adapting the height of text widgets to that of buttons,
3681 (as represented by the message widget), we now do the opposite, and
3682 adapt the button & label heights. This is made safe by obtaining textHeight
3683 from the fontSet's max_logical_extent, though an XExtendsFontSet() call.
3684 Turns out the default height of text widgets is not exactly that, but
3685 4 pixels larger for borders and margin.
3686 The parameter XtNvertDistance is now used to align the checkboxes with
3687 the following text widget, and their size is derived from textHeight as
3689 The XtNvertDistance is set to -1 for the lower spin button, so that it
3690 its border coincides with that of the upper spin button. Their height is
3691 set to textHeight/2. This makes their combined height just 1 pixel more
3692 than that of the preceeding text widget. (Uh? 2 x tw/2 -1 > tw?), so for
3693 other buttons we use that too (i.e. textHeight = font_extent + 5).
3695 2012-02-10 22:39:08 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3698 Deleting debug printing had made a variable unused.
3700 2012-02-10 22:26:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3703 The text-edit-height patch introduced a bug that did not have any consquences
3704 (yet), as the extra arg erroneously included leftover from a previous
3705 SetValues call happened to be the same as one of the intended args.
3707 2012-02-10 20:51:41 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3708 Fix unloading of first engine on tourney start
3710 Because NextTourneyGame was loading a new engine before ReserveGame was
3711 called to unload it with dummy game nr = -1), the first engine proc kept
3714 2012-02-10 18:39:09 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3715 Remove some of the most verbose debug output
3718 2012-02-10 17:46:35 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3719 Delete some unused WinBoard bitmaps
3721 There waere up-side-down knight icons that apparently hid by mistake
3722 in the bitmaps directory: they were not part of WinBoard
3724 2012-02-10 17:39:48 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3725 Cosmetic: change 4.5 to 4.6 in xboard.conf comment
3728 2012-02-10 17:35:22 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3729 Fix crash on empty combobox menu XB
3731 XBoard crashed when a combobox without items was opened, as could easily
3732 happen in the Load Engine dialogs when -firstChessProgramNames contained
3733 no items, as it would without configuring. Now the creation of the popup
3734 menu is suppressed in that case.
3736 2012-02-10 17:13:36 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3737 Fix position of checkbox XB
3739 With the large height the widget get in internationalization, the
3740 checkboxes are position way too high above the text. To shift them down
3741 a dummy borderless label widget is drawn above them (when needed).
3743 2012-02-10 15:07:35 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3744 Fix heights in Engine Output window XB
3746 The icons did not fit in the space above the memos anymore, so the height
3747 of this area is now left free.
3749 2012-02-10 14:55:48 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3750 Derive height of text-edits in dialogs from message widget
3752 With internationalization the default height of buttons has inexpliquably
3753 inreased compared to that of text-edits, messing up the layout of the
3754 GenericPopUp. The message widget is now used as a emasure of how high
3755 the widgets should be.
3757 2012-02-10 14:21:37 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3758 Configure XBoard engines and textures
3760 The new -useBoardTexture option is needed in xboard.conf, as we want to
3761 distribute with the texture on, while the compiled-in default is off.
3762 A list of 4 engines has been configured (fairymax, fruit, crafty, gnuchess),
3763 as the Load Engine and Match Options checkboxes crash XBoard when the list
3764 is empty. The -recentEngines option is set to 0 to make sure the code
3765 associated with it is never executed: the code is still experimental,
3766 and the required front-end support is only present in WinBoard anyway.
3768 2012-02-10 13:30:58 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3769 Update Dutch WinBoard translation
3772 2012-02-10 13:18:48 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3773 Create room in some WB dialogs for translations
3776 2012-02-10 13:17:30 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3777 Add 5 missing strings to WinBoard translation template
3780 2012-02-09 23:03:58 -0800 Arun Persaud <arun@nubati.net>:
3781 new developer release
3784 2012-02-09 23:04:46 -0800 Arun Persaud <arun@nubati.net>:
3788 2012-02-09 22:59:05 -0800 Arun Persaud <arun@nubati.net>:
3789 updated Changelog, NEWS, etc.
3791 2012-02-09 22:44:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3792 Fix non-bug in WinBoard
3794 The IDM_RecentEngines was not used in symbolic form everywhere.
3796 2012-02-09 18:46:08 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3797 Fix MAXENGINES in WinBoard
3799 The front-end arrays for expanding the engine list measured 1000 entries,
3800 in stead of MAXENGINES, leading them to overflow.
3802 2012-02-09 13:05:42 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3803 Implement kludge to set options through Move Type-in
3805 A leading "!!! " will cause the rest of the line to be parsed as
3806 command line. Very dangerous, as an unknown option (e.g. because of a typo)
3807 will cause a fatal error, which makes XBoard exit.
3809 2012-02-09 13:04:44 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3810 Put move number in Eval Graph title
3813 2012-02-09 13:00:09 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3814 Implement -pgnNumberTag option
3816 A new (persistent) boolean option controls if the sequence number is to
3817 be written in saved tourney games as a Number tag, to make it easier
3818 to correlate games with debug files.
3820 2012-02-09 12:55:52 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3821 Create separate debug fil for each tourney game
3823 Users can now apecify a -debugfile with %d in its name, and this will
3824 be replaced by the sequence number of the game. TwoMachinesEvent then
3825 starts by opening a new file when the name has changed, so that each
3826 game will go to a different file, with recognizable name.
3828 2012-02-09 12:51:25 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3829 Fix bug in WB combobox readout
3831 The previous patch exposed a latent bug in the readout of the generic popup.
3833 2012-02-08 23:25:31 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3834 Allow grouping of engines in engine list
3836 Lines "# GROUPNAME" and "# end" enclose a group in -firstChessProgramNames.
3838 2012-02-08 17:47:46 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3841 A trailing .exe was not removed if the engine name was quoted.
3843 2012-02-08 17:45:42 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3844 Put recently used engines in WB menu
3846 A new option -recentEngines specifies how many engines should be listed.
3847 The list of nicknames is stored in the ettings file as -recentEngineList.
3848 The engines are appended to the Engine menu.
3850 2012-02-04 19:37:51 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3851 Fix registering of EditTagsProg
3853 This was registered with X as EditCommentProc!
3855 2012-02-07 23:04:49 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3856 Increase max nr of engines to 2000
3858 Move the #define for MAXENGINES also to common.h, so that both the
3859 Load and Tourney dialog use the same maximum.
3861 2012-01-19 23:01:20 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3862 Fix fix of switch to mono-mode
3864 The previous fix had == in stead of != for testing if mono-mode had changed.
3866 2012-01-19 22:21:38 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3867 Make New Variant dialog visible in mono-mode
3869 All colored buttons did get a black background, and also black text...
3870 Use timer background color in stead, which is white.
3872 2012-01-19 20:48:37 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3873 Incease size of WB array of translated items
3875 For the BoardOptions dialog 42 items are now needed
3877 2012-01-19 17:18:25 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3878 Implement Clone Tourney button XBoard
3880 This makes use of the new GenericUpdate().
3882 2012-01-19 16:34:13 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3883 Implement GenericUpdate function
3885 This does the opposite from GenericReadout: it copies the current
3886 parameter values into the dialog.
3888 2012-01-19 12:19:27 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3889 Fix arrow damage with highlightDragging XB
3891 With highlight dragging the highlights of the previous moves are cleared
3892 when lifting the piece. Logically, this should also clear the arrow, but
3893 to do that requires a board redraw, which is not done at this stage. (And
3894 even then this would only be effective after marking the arrow damage,
3895 which is not done yet either). As a temporary fix, we repair the arrow
3897 This patch has moved marking of the arrow damage from DrawArrowHighlight
3898 to a separate routine, so a future better fix can also call that when the
3899 arrow should be erased.
3901 2012-01-18 16:01:50 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3902 Prevent unnecessary loading of engines
3904 For engines that can be reused, the unloading at the end of a pairing
3905 is in some cases wasteful, as the same engine will be used in the next
3906 pairing as well. In simple gauntlets the gauntlet engine will always
3907 stay first engine, while in multi-gauntlets the oppent engine will stay
3908 the same for an entire round. In these cases unloading is now suppressed.
3910 2012-01-17 22:22:32 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3911 Reset protocol version before loading new engine
3913 The protocol version was not reset, so if the previous engine was v1,
3914 the newly loaded engine would not be sent a protover command, so
3915 that its features would remain unknown!
3917 2012-01-17 19:33:32 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3918 Give focus to board window after ICS login
3920 toprevent that the focus remains on any popped up chat boxes, it is
3921 explicitlly set otherwise. The board window is preferred over the
3922 ICS interaction window, because you can type from there to the ICS anyway,
3923 and it makes all accelerator keys available.
3925 2012-01-16 14:37:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3926 Fix seek-graph popup and popdown
3928 Clicking outside the board area in WB (e.g.on the clocks) would also
3929 trigger seek-graph 'popup'. This is now suppressed by testing for
3930 y-coord > 0. In addition, the seek graph is automaticaly taken down
3931 when we step to another position in the current game (using buttons,
3932 arrow keys or whatever).
3934 2012-01-15 21:29:11 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3935 Suppress empty lines when observing on VICS
3937 Capture of the engine kibitzes when observing an engine game with
3938 -autoKibitz on was still leaking a linefeed on the Variant ICS
3939 (but not FICS or ICC!?).
3941 2012-01-15 21:24:12 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3942 Fix printing non-numeric kibitz with -autoKibitz
3944 Messages that were not considered kibitzed engine PV info for lack of
3945 numeric content, were kibitzed as coming from "your opponent", which
3946 is nonsense if you were iobserving, and masked the source. Fortunately
3947 star_match[0] is still holding the original name, at that point.
3949 2012-01-11 17:33:29 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3953 2012-01-11 17:00:38 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3954 Use same translation of "vs." everywhere
3957 2012-01-11 17:08:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3958 Add new translations to WB language file
3961 2012-01-11 16:20:17 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3962 Fix re-allocation of PGN-cache memory
3964 It allocated 8 times too much!
3966 2012-01-11 12:47:38 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3967 Fix height board dialog
3970 2012-01-11 12:34:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3971 Enable WB time-control dialog even when no clock mode
3973 The dialog could be called from the tournament dialog to set a TCfor
3974 the tourney even when currently in game-viewer mode, so it'd better work.
3976 2012-01-11 12:28:43 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3977 Exempt variant seirawan from -disguisePromoted inheritance
3979 This is not a variant where promoted Pawns have to be distingushed
3980 from primordial pieces, as captured pieces do not go into the holdings.
3982 2012-01-09 21:23:52 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3983 Add control for overrideLineGap in WB Board dialog
3985 Make it a checkbox to choose between 0 and -1.
3987 2012-01-09 20:56:40 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3988 Add Ctrl-D as alternative to Ctrl+Alt+F12 in WinBoard
3990 The acellerator key Ctrl+Alt+F12 seems reserved on Windows 7.
3992 2012-01-09 20:52:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
3993 Fix seek graph for VICS
3995 The sought command on the open-source ICS code is ICC-like (no terminating
3996 line), although the server is FICS like. So also accept prompt as seek-graph
3999 2012-01-09 20:27:01 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4000 Open WB startup chat boxes only after logged on
4002 The init code for opening the chat boxes ismoved to DisplayIcsTitle().
4004 2012-01-07 20:31:34 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4005 Install mime types directly
4008 2012-01-07 20:29:10 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4009 Install desktop files directly
4012 2012-01-07 20:19:09 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4013 Install icons directly
4015 Rather than letting make-install copy the pixmaps to the XBoard data
4016 directory they are installed directly from the source files. The name
4017 of the TRN icon was also corrected and changed.
4019 2012-01-05 18:41:13 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4020 Update texi file and remove duplicate control
4022 Some missing option descriptions were added. The highlight-dragging
4023 control was removed from the General Options dialog, as it did the same
4024 as Show Target Squares. -highlightDragging wa changed to a volatile option
4025 with default value true, making it effectively disappear as an XBoard
4026 option. (In WinBoard it is still persistent.)
4028 2012-01-05 15:55:54 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4029 Remove the direct commands to the engines
4032 2012-01-05 21:15:11 -0800 Arun Persaud <arun@nubati.net>:
4033 forgot to list new desktop files in EXTRA_DIST section in Makefile.am
4036 2012-01-05 20:08:23 -0800 Arun Persaud <arun@nubati.net>:
4037 added some autogenerated po files to .gitignore
4040 2012-01-05 20:05:44 -0800 Arun Persaud <arun@nubati.net>:
4041 added desktop and mime-type association to autoconf install process
4043 This should install and uninstall the mime assocciation and also the icons.
4044 Also renamed the desktop files to avoid possible name collisions.
4046 2012-01-03 21:30:59 -0800 Arun Persaud <arun@nubati.net>:
4047 code cleanup: make function definition confirm to GNU coding style
4049 change everything in the main directory to
4052 funcname (int a, int b)
4056 2012-01-03 18:43:18 -0800 Arun Persaud <arun@nubati.net>:
4057 Updated copyright notice to 2012
4060 2012-01-03 21:32:04 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4061 Implement -viewerOptions
4063 A mechanism is added to allow the user to configure persistently if the
4064 game viewer that starts on clicking PGN files will use -ncp mode, or
4065 load an egine for analysis (or, in fact, do anything). This by introducing
4066 a persistent string option -viewerOptions, which will be parsed as a
4067 command line after the real command line when the option -viewer was present.
4069 2012-01-03 11:29:00 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4070 Fix crash in auto-comment
4072 Trailing linefeeds in AppendComment were not properly stripped off,
4073 leading to a mismatch between the allocted and used memory, and thus
4074 possible buffer overruns.
4076 2012-01-02 23:46:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4077 Fix crash at match end
4079 The -afterTourney option had broken old-style matches, because the ranking
4080 string that was tested for "busy" is not set there at all, and remains a
4081 NULL pointer, which strcmp doesn't like.
4083 2012-01-01 19:56:58 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4084 Add desktop files for PGN viewer and tournament player
4086 The desktop files define startup commands for handling PGN, FEN and
4087 tourney files, calling xboard with the proper command-line options.
4089 2012-01-01 19:53:02 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4090 Add xml file for defining mime types
4092 The file xboard.xml defines application/x-chess-pgn, aplication/x-chess-fen
4093 and application/x-xboard-trn as mime types for *.pgn, *.fen and *.trn files,
4094 so these files can be associated with XBoard in various modes.
4096 2012-01-01 19:41:39 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4097 Add icons for PGN and tourney files
4099 Icons are provided in two sizes: 32x32 and 48x48.
4101 2011-12-29 19:55:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4102 Clear square markers on new game
4104 Now that the markers can stay on after a first click, they need to be
4105 explicitly cleared when moving to another board, including a new game.
4107 2011-12-29 15:51:18 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4108 Abandon single-letter menus in tinyLayout
4110 Now that the items on the main menu bar are clipped, it iso longer
4111 necessary to abbreviate them.
4113 2011-12-29 15:38:46 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4114 Implement peeking previous position in WinBoard
4116 The backspace key is used to temporarily display the previous position.
4118 2011-12-29 15:32:20 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4119 Fix parsing of faulty PGN tags
4121 A closing bracket could be missed in a malformed tag
4123 2011-12-29 15:29:00 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4124 Fix parser for variant seirawan
4126 The new parser didnot understand gating suffixes with /, and did not
4127 allow any suffix at all on SAN castling moves.
4129 2011-12-28 22:32:38 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4130 Try to not confuse ICS rating adustments as shouts
4132 An explicit pattern match for the rating adjustment is added before
4133 matching the shouts.
4135 2011-12-28 22:21:54 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4136 Describe -overrideLineGap option in texi file
4139 2011-12-28 22:03:30 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4140 Use <Enter> in stead of Ctrl+. for peeking last move
4142 I commented out the explicit detection of the Ctrl key, as this
4143 is not needed when there are no 'unnatural' Ctrl keystrokes used
4146 2011-12-28 19:37:49 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4147 Next try for menu-bar sizing
4149 This time request the width needed to just fit everything, and then start
4150 shaving off pixels from the currently largest until the entire thing fits.
4152 2011-12-28 15:17:49 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4153 Clip texts on menu bar
4155 The width of the items on the main menu bar is restricted so the bar
4156 will never exceed board width.
4158 2011-12-28 14:01:53 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4159 Fix format in temporary timing printf
4162 2011-12-28 13:38:59 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4163 Don't test drops as mate evasions in variant seirawan
4166 2011-12-28 13:36:23 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4167 Fix ICS castling rights
4169 Copying the castling rights together with CopyBoard seems to have
4170 broken handling of ICS rights, where ParseBoard12 prepares a board
4171 in a local variable, an copies it before parsing the rights.
4173 2011-12-28 13:35:10 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4174 Fix initial holdings ICS seirawan games
4177 2011-12-27 18:31:05 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4178 Fix sending of S-Chess gating moves to ICS
4180 Normal moves did not get the gating suffix sent.
4182 2011-12-27 17:56:07 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4183 Fix menu grayout after illegal move
4185 TheThinkingEnables were not reset to user state after the engine rejected
4186 the entered move as illegal.
4188 2011-12-27 13:26:36 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4189 Allow setting of holdings with edit command
4191 For the benefit of Fairy-Max' Seirawan Chess implementation, the edit command
4192 no also sends holdings contents (if the engine sent feature xedit=1), encoded
4193 as pieceType + '@' + holdingsCount (if the count is non-zero).
4195 2011-12-24 17:54:16 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4196 Fix out-of-bounds access in check test
4198 Thepath to make the check test work with drops had broken the test
4199 after null move (both have rf<0), which led to corruption of the high
4200 word of the black clock.
4202 2011-12-24 17:51:22 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4203 Fix legality of Spartan promotion to king
4205 In the check test promotion to King is only allowed if there are not
4208 2011-12-21 22:17:01 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4209 Fix switching back from mono-mode XB
4211 Suppressing unnecesary X-server calls in InitDrawingSizes had broken
4212 switching back from monoMode, because the animVars have to be recreated
4213 for that, and this was only done when the variant changed.
4215 2011-12-21 22:09:02 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4216 Fix showTargetSquares in mono-mode XB
4218 Make the marker dots black (captures) and white, and draw a circle
4219 in the opposite color around them in monoMode.
4221 2011-12-21 22:00:26 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4222 Fix arrow highlighting in mono-mode XB
4224 Draw a line around it in darkSquare color in monoMode.
4226 2011-12-21 17:48:33 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4227 Fix alignment of generic browse button XBoard
4229 The width ofthe browse button is now read back after creating it,
4230 and subtracted from the preceding text edit.
4232 2011-12-21 14:41:31 +0100 H.G. Muller <h.g.muller@hccnet.nl>:
4233 Add -afterTourney option
4235 Only the instance pinting the tourney result will execute this.
4237 2011-12-22 21:01:43 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
4238 Fix buffer possible overflow when writings tags
4240 PGNTagsStatic() could overflow its buffer and is removed. PGNTags() do the work instead of calling it.
4241 It starts by calculation the required buffer size and then allocate the buffer.
4242 PrintPGNTags() now prints directly to the file without having a buffer.
4244 2011-12-22 15:01:31 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
4245 One more string marked for translation
4247 And it is moved inside the if statement that uses it.
4249 2011-12-22 14:30:08 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
4250 Fix checking of return value from snprintf()
4252 snprintf() returns the needed space excluding the trailing 0 byte, so
4253 it has truncated if the returned valued is greater than or EQUAL TO the buffersize
4255 2011-12-19 16:49:31 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
4256 Fix unportable memory initialisation
4258 Memory sat to zero by calloc() cannot safely be assumed to have the pointer value NULL
4260 2011-12-19 13:16:58 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
4261 Add 2 strings for translation
4264 2011-12-19 11:25:11 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
4265 Remove the last 2 compile warnings in gamelist.h
4268 2011-12-19 11:17:48 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
4269 Add #include "moves.h" to gamelist.c for def. of CopyBoard()
4272 2011-12-19 11:11:34 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
4273 Definition of TimeMark moved from 3 c files to backend.h
4276 2011-12-19 01:21:46 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
4277 Transfer a pointer to the promoChar from PromotionPopUp() to PromotionCallback(). Fixes #34980
4280 2011-12-18 17:24:07 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
4281 Duh! Initialise the argument to sscanf() inside the loop, so it always gets a known value when sscanf() fails.
4284 2011-12-18 17:18:12 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
4285 Give numeric options the value 0 if a non-numeric text is entered (one more place). Before the value ended up undefined.
4288 2011-12-18 17:08:46 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
4289 Give numeric options the value 0 if a non-numeric text is entered. Before the value ended up undefined.
4292 2011-12-18 15:41:46 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
4293 Fix possible crash on 64-bit systems when copying game or position
4295 The two convertproc's for X selections caused reads out of bounds on 64-bit systems.
4296 I hope that this is the right solution. I am not experienced with X stuff, but it
4297 follows that I have seen in other programs, testing shows that copying still works,
4298 and the reading out of bounds have disappearinged with this patch.
4300 2011-12-18 13:26:20 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
4301 Fix a possible crash in the file browser
4303 If the OK button was selected in the file browser when no file was selected
4304 there was a read out of bounds which could crash xboard
4306 2011-12-17 22:54:34 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
4307 Fix a memory leak in Sound Options
4310 2011-12-16 02:57:20 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
4311 Fix crash when selecting user soundfile due to free() of not malloc()'ed memory
4314 2011-12-16 02:32:37 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
4315 Make GenericPopUp() more readable by using more named flags instead of numerals
4317 Defines the flags SAME_ROW (value 1) and NO_OK (value 2) for use with buttons and endmarks.
4318 There should no functional change.
4319 Also add a code comment where a condition depends on an uninitialised value. There is no direct harm, as both
4320 branches do the same (that is nothing) when the value is uninitialised.
4322 2011-12-15 02:51:36 +0100 Byrial Jensen <byrial@vip.cybercity.dk>:
4323 Add NO_GETTEXT flag for combobox. Fix bug #34991
4325 Define NO_GETTEXT flag to avoid calling gettext() for comboboxes, and define COMBO_CALLBACK
4326 flag to call comboCallback() when an item is selected in a combobox (no new code for this,
4327 just a symbolic value instead of a number). The flags are used for the min field of struct Option.
4328 NO_GETTEXT is used for the Select engine combobixes in the Match Options and Load engine windows.
4330 2011-12-13 19:48:37 -0800 Arun Persaud <arun@nubati.net>:
4331 only translate entries in CreateComboPopup if strlen>0; fixes #34991
4334 2011-12-12 19:06:26 -0800 Byrial Jensen <byrial@vip.cybercity.dk>:
4335 fix for repeating key issue, with this allissues this bug should be closed; fixes #35000
4338 2011-12-12 18:45:05 -0800 Arun Persaud <arun@nubati.net>:
4339 also don't translate selection in ComboSelect; fixes #34991
4342 2011-12-12 18:40:23 -0800 Arun Persaud <arun@nubati.net>:
4343 make entries in CreateComboPopup not translateable; fixes #34991
4346 2011-12-10 16:06:47 -0800 Arun Persaud <arun@nubati.net>:
4347 fix translation for engine list; fixes #34991
4349 * click on browse button should be recognized in translated versions
4350 * width of button should auto-scale
4352 2011-12-10 11:04:17 -0800 Arun Persaud <arun@nubati.net>:
4353 change keybindings that don't use ctrl, make MoveTypeInProc ctrl aware; fixes #35000
4355 two keybindings were using keys without modifiers, adjusted these to use the ctrl key.
4356 Furthermore when typing in moves we need to check if ctrl was pressed and ignore those inputs.
4358 Also added documentation for these keybindings.
4360 2011-12-10 10:51:18 -0800 Arun Persaud <arun@nubati.net>:
4361 replaced unicode character for "'" in xboard.texi
4364 2011-12-10 10:08:48 -0800 Arun Persaud <arun@nubati.net>:
4365 removed Iconify function. Should be handled by the window manager.
4368 2011-12-08 20:53:13 -0800 Arun Persaud <arun@nubati.net>:
4369 marked an error messages for translation
4372 2011-12-08 20:33:29 -0800 Arun Persaud <arun@nubati.net>:
4373 translation: updated uk.po
4376 2011-12-03 17:52:23 -0800 Arun Persaud <arun@nubati.net>:
4377 fixed size of XBoard icon to 48x48
4379 the icon gets installed in the 48x48 directory, but was >200 pixel wide. This gave a warning during rpm creation.
4381 2011-12-03 08:07:32 -0800 Arun Persaud <arun@nubati.net>:
4384 marked a lot of new strings for translation
4386 2011-12-03 08:06:42 -0800 Arun Persaud <arun@nubati.net>:
4387 added new files to po/POTFILES.in
4390 2011-12-02 22:13:36 -0800 Arun Persaud <arun@nubati.net>: