Olivier Teulière
e77923674f
Arbitration: a click on the master move previews it on the board
2012-03-18 01:00:25 +01:00
Olivier Teulière
35acc7b7a3
New misc_helpers files to group some utility classes
...
Currently, it contains only the KeyEventFilter class, and a new
ClickableLabel class (not used yet).
2012-03-18 00:37:57 +01:00
Olivier Teulière
96c0497f7b
Arbitraion: the rack can be modified only at the last turn
2012-03-17 23:53:40 +01:00
Olivier Teulière
f3b2442cc0
Arbitration: improved the refresh of search results
2012-03-17 23:53:40 +01:00
Olivier Teulière
3a8ac20a0a
Arbitration: allow ending the turn even if some players have no assigned move
2012-03-17 23:53:31 +01:00
Olivier Teulière
0fa7bc91c6
Arbitration mode: allow editing the rack manually
2012-03-11 00:24:29 +01:00
Olivier Teulière
25a36ec9cd
Arbitration mode: allow setting the rack randomly
2012-03-11 00:24:21 +01:00
Olivier Teulière
ff21e64a7f
Recreate the preferences dialog every time, to avoid displaying unsaved changes
2012-03-10 18:06:41 +01:00
Olivier Teulière
9160e6bc99
New preference to save the search results limit in arbitration mode
2012-03-10 18:06:41 +01:00
Olivier Teulière
05a51101db
New arbitration mode, dedicate to arbitration of duplicate games.
...
It is mostly working, but many things are still missing.
In particular:
- ability to enter (or change) moves for a past turn
- ability to change the rack (manually, or randomly)
- ability to add/remove players during the game
- support for solos, warnings, penalties
- support for table number
- more ergonomic interface
- non regression tests
- ... and probably bugs to fix
2012-03-10 18:06:41 +01:00
Olivier Teulière
51622a0012
Make sure the tooltip for the "show definition" menu entry is displayed
2012-03-04 23:02:32 +01:00
Olivier Teulière
ce5f2b2a8c
Move the rack and the timer above the external board (useful when displayed with a projector)
2012-03-04 23:02:28 +01:00
Olivier Teulière
22fd6484f3
Correctly retrieve the game rack
2012-02-25 23:51:30 +01:00
Olivier Teulière
4077a25fa0
Use the GameMoveCmd command
2012-02-25 23:25:40 +01:00
Olivier Teulière
6ac6849bf8
Remove status bar messages automatically after 2s
2012-02-25 21:56:41 +01:00
Olivier Teulière
7195f3415c
Warn when loading a game, if there is already an existing game
2012-02-25 21:56:41 +01:00
Olivier Teulière
cae5f38af5
Allow saving the results of a regular expression search into a file
2012-02-25 21:56:41 +01:00
Olivier Teulière
746abef2cf
Added search buttons to the "plus 1" and "regexp" tools
2012-02-25 21:56:41 +01:00
Olivier Teulière
efb5fddf58
Reset the timer when the current turn changes
2012-02-21 08:22:33 +01:00
Olivier Teulière
0d45fc6227
When showing a preview on the board, do not hijack the normal internal data
2012-02-21 08:22:32 +01:00
Olivier Teulière
bf42c49850
Added loggers to most classes
2012-02-19 13:07:29 +01:00
Olivier Teulière
a1c6a917a4
Get rid of the UI file for the favourite players: the same can be done with a few lines of code
2012-02-18 01:20:55 +01:00
Olivier Teulière
d45ad3325c
Simplify the New Game dialog by removing various controls
2012-02-18 01:19:24 +01:00
Olivier Teulière
9d987974cd
If the added fav player already exists, generate a new name
2012-02-18 01:19:24 +01:00
Olivier Teulière
33814ef058
Start editing the name directly after adding a player
2012-02-18 01:19:24 +01:00
Olivier Teulière
03f20dd7be
Allow deleting players with the Del key only if there is a corresponding popup menu entry
2012-02-18 01:19:24 +01:00
Olivier Teulière
0daa773268
Do not allow duplicate entries in the players tables
2012-02-18 01:19:24 +01:00
Olivier Teulière
37715c1411
Extract PlayerDef from the PlayerTableHelper class
2012-02-18 01:19:24 +01:00
Olivier Teulière
b02d25dee7
New action, to mark a player as favourite
2012-02-18 01:19:24 +01:00
Olivier Teulière
987ff4c15f
NewGame: new button to add favourite players. Also added a popup menu to delete players more easily.
2012-02-18 01:19:24 +01:00
Olivier Teulière
2cf5e29347
New dialog to define the favourite players
2012-02-18 01:19:24 +01:00
Olivier Teulière
323344a674
New helper class to help dealing with a players table
2012-02-16 22:17:26 +01:00
Olivier Teulière
c231cd4b5d
Remove all the selected players, not only the first one
2012-02-16 22:17:26 +01:00
Olivier Teulière
a3084bc8b3
Use a QTableWidget instead of a QTreeView. This simplifies the code a little.
2012-02-16 22:17:26 +01:00
Olivier Teulière
e86d71626c
Do not repeat the application name and organization name everywhere
2012-02-16 22:17:23 +01:00
Olivier Teulière
a3b8b9872a
Removed (old) debugging code
2012-01-30 08:27:27 +01:00
Olivier Teulière
ea4b4396a8
Add auto-completion on the dictionary path
2012-01-29 23:40:02 +01:00
Olivier Teulière
84c4937d8d
The external board now also contains a rack and a timer
2012-01-29 22:47:51 +01:00
Olivier Teulière
0e7880dbbe
New Rack widget
2012-01-29 22:47:51 +01:00
Olivier Teulière
54700f71de
Added an option to highlight the tiles in the rack, accessible via the context menu
2012-01-29 22:47:51 +01:00
Olivier Teulière
8bbbf32e8f
Added an option to show/hide the played tiles, accessible via the context menu
2012-01-29 22:47:51 +01:00
Olivier Teulière
8d9eaf3f3d
Use the "visual" bag widget instead of the old one
2012-01-29 22:47:51 +01:00
Olivier Teulière
85e79e0294
TileWidget: change the prototype of tileChanged() and improve the possible states
2012-01-29 22:47:51 +01:00
Olivier Teulière
00a98a7c31
TileWidget: rename some constants to be more explicit
2012-01-29 22:47:51 +01:00
Olivier Teulière
ebea504aa7
TileWidget: avoid a lot of useless repaintings
2012-01-29 22:47:51 +01:00
Olivier Teulière
f6d7661367
TileWidget: get rid of BasicTileWidget and TileWidgetDecorator.
...
TileWidget now supports all these functionalities, with a much simpler code.
2012-01-29 22:47:51 +01:00
Olivier Teulière
5d62711789
TileWidget: do not display anything on a joker tile that has not yet been played
2012-01-29 22:47:51 +01:00
Olivier Teulière
3aab437022
TileLayout: simplify code using the inherited "spacing" property
2012-01-29 22:47:51 +01:00
Olivier Teulière
c11de9eed5
TileLayout: proper sizeHint() implementation
2012-01-29 22:47:51 +01:00
Olivier Teulière
61f75894da
TileLayout: fix the computation of the minimum size
2012-01-29 22:47:51 +01:00
Olivier Teulière
95211525a5
TileLayout: allow forcing the number of lines instead of the number of columns
2012-01-29 22:47:50 +01:00
Olivier Teulière
b45d113157
TileLayout: fix the clear() method
2012-01-29 22:47:50 +01:00
Olivier Teulière
6411b1975d
TileLayout: fix a layout bug in "static" mode
2012-01-29 22:47:50 +01:00
Olivier Teulière
51d6a3bc8b
Added logging macros
2012-01-29 20:34:48 +01:00
Olivier Teulière
afe54e9785
Set a minimum size to the timer
2012-01-29 20:05:22 +01:00
Olivier Teulière
9d00f873a3
Changed the shortcut to change the dictionary, as it is already used for copy-paste...
2012-01-29 20:05:22 +01:00
Olivier Teulière
f0c7c9ce23
Fixed a potential division by zero.
2012-01-26 22:04:00 +01:00
Olivier Teulière
a7ef1f0f8c
Added preferences to configure the time
2012-01-26 20:57:43 +01:00
Olivier Teulière
8b33f45dca
New column in the players history: "Game %", percentage of the game total
2012-01-26 20:12:47 +01:00
Olivier Teulière
b158266acb
Added an option to hide the signs (arrow and word preview) on the board.
...
This is used for the external board, which now shows only the played
words.
2012-01-22 23:55:44 +01:00
Olivier Teulière
2294bcbc80
Added an auxiliary window with the timer
2012-01-21 11:13:26 +01:00
Olivier Teulière
5cc5a9942f
Introduced a TimerModel, to be able to synchronize various timers
2012-01-21 11:13:22 +01:00
Olivier Teulière
00e9ca0365
New timer widget (not used yet).
2012-01-21 11:13:02 +01:00
Olivier Teulière
5535717ff4
Moved MainWindow::requestConfirmation() to the QtCommon class
2012-01-20 18:08:12 +01:00
Olivier Teulière
fff127333a
Added a column for the total score of the player
2012-01-20 13:41:17 +01:00
Olivier Teulière
c8db48c1f0
Make the URL clickable in the About dialog
2012-01-20 13:41:17 +01:00
Olivier Teulière
765b57b781
Fixed initialization of the scores widget
2012-01-20 13:41:17 +01:00
Olivier Teulière
22f4341bdd
Display information on the remaining letters in the status bar
2012-01-19 23:49:56 +01:00
Olivier Teulière
65501aad44
Display the current turn number in the status bar
2012-01-19 23:49:56 +01:00
Olivier Teulière
54736b211a
Moved some code to static methods, so that it can be reused more easily.
2012-01-19 21:20:03 +01:00
Olivier Teulière
cfdf5a928d
Group all the custom validators in a factory class.
...
This will make it easier to factorize and reuse this code.
2012-01-19 15:19:11 +01:00
Olivier Teulière
855718c6b8
Factorized code
2012-01-19 13:17:08 +01:00
Olivier Teulière
eadac39a09
Removed a useless include
2012-01-19 11:47:39 +01:00
Olivier Teulière
a899df5e46
The Training widget is not in a tab anymore
2012-01-19 11:18:23 +01:00
Olivier Teulière
50b55fb7f0
Create the players and scores widgets only when a new game is started.
2012-01-19 10:43:31 +01:00
Olivier Teulière
fbb34d795c
The history now shows the "Player" column only in FreeGame mode.
...
It doesn't really make sense (or it is useless) in the other modes.
2012-01-17 21:45:31 +01:00
Olivier Teulière
7fd8a245f8
Do not refresh the coordinates for a non-visible player.
...
This fixes a focus bug, and makes it easier to enter moves for several
human players.
2012-01-17 10:48:36 +01:00
Olivier Teulière
c81df46b5e
Added a new type of move: NO_MOVE
2012-01-17 00:56:02 +01:00
Olivier Teulière
482b5d674f
Previewing a Round is now possible in all the game types.
...
It was only possible in Training mode. This change will be useful for
the future arbitration mdoe.
2012-01-17 00:43:19 +01:00
Olivier Teulière
219b99192d
Warn before exiting Eliot when a game is started
2012-01-05 21:08:54 +01:00
Olivier Teulière
7883aab6b5
Removed a useless name
2012-01-05 20:44:44 +01:00
Olivier Teulière
5dc491d887
New preference to define a default AI level
2011-12-30 19:33:48 +01:00
Olivier Teulière
9dfed9c51d
Fixed a dictionary creation bug on Win32 with input files containing a BOM.
...
The bug was not showing on Wine, only on Windows itself.
2011-12-30 15:12:26 +01:00
Olivier Teulière
9aea22d968
Use an enum for the variants
2011-08-28 19:25:26 +02:00
Olivier Teulière
56b66fea28
Added setters to GameParams, to simplify the code a little
2011-08-28 19:25:26 +02:00
Olivier Teulière
17bdd27899
Moved the dictionary to the GameParams class
2011-08-28 19:25:26 +02:00
Olivier Teulière
408c92df42
Moved the game mode to the GameParams class
2011-08-28 19:25:26 +02:00
Olivier Teulière
d6fbd6bef1
Allow combining several variants in a single game
2011-08-28 18:47:25 +02:00
Olivier Teulière
e9a49a87ab
Use radio buttons for the game type instead of a combo box
2011-08-27 21:55:49 +02:00
Olivier Teulière
fdc29871e5
New GameParams class to wrap a few game characteristics.
...
These characteristics will not change during the game.
2011-08-27 21:55:49 +02:00
Olivier Teulière
f9a7307898
Added a unit test for all the string conversions
2011-07-30 19:49:29 +00:00
Olivier Teulière
03d93c9360
Renamed the string conversion macros, to make chaining more natural.
2011-07-30 19:45:18 +00:00
Olivier Teulière
cbaad7ff6c
Compilation fixes for the Windows build
2011-07-30 13:15:52 +00:00
Olivier Teulière
08516b07d7
Added support for definitions, using an external website
2011-07-28 20:55:48 +00:00
Olivier Teulière
c8305a0b10
Allow very thin columns
2011-07-17 09:16:52 +00:00
Olivier Teulière
77827bee1a
Added a context menu to the tree header in training mode, to disable automatic resizing of the columns
2011-07-17 09:09:47 +00:00
Olivier Teulière
424fd3af32
Display the points of the word entered by the player before validating it.
2011-07-16 23:31:17 +00:00
Olivier Teulière
23771f3f71
Indicate the end of the game
2011-01-30 00:23:45 +00:00
Olivier Teulière
0c76b9d781
Simplified the looging macros, and added logs in various key places.
2011-01-29 23:47:20 +00:00
Olivier Teulière
e175a6d8bc
Added a new (optional) dependency on log4cxx, to enable logging.
...
If disabled (the default), everything is compiled away.
2011-01-16 21:30:30 +00:00