Commit graph

127 commits

Author SHA1 Message Date
Olivier Teulière
afc791dd73 MainWindow: no frame is needed for labels in the status bar 2013-01-20 20:31:33 +01:00
Olivier Teulière
b5a473a2af RackWidget: set small margins and draw a border 2013-01-20 19:18:16 +01:00
Olivier Teulière
272867c3ad MainWindow: try to reduce screen flicker when (re)starting a game 2013-01-20 19:18:16 +01:00
Olivier Teulière
ff4b91459e MainWindow: do not show the visual rack until a game is started 2013-01-20 19:18:16 +01:00
Olivier Teulière
c8c0548828 Some confirmations are useless when the game is finished 2013-01-19 23:41:26 +01:00
Olivier Teulière
2c95f890ef Check for new versions, about once a week.
This can be deactivated in the preferences.
2013-01-19 00:36:08 +01:00
Olivier Teulière
c1c3f3b48b Bag: rename a method 2013-01-17 17:14:38 +01:00
Olivier Teulière
0ea56cc442 Add a "Print preview" menu entry 2013-01-14 17:13:48 +01:00
Olivier Teulière
8cd3157842 Topping: remove the ScoreWidget and add a TimerWidget 2013-01-11 11:06:57 +01:00
Olivier Teulière
4111afc04c RackWidget: after a drag & drop, notify the game that the rack has changed.
This allows synchronizing all the controls displaying the player rack
(visual and textual ones).
2013-01-09 18:56:25 +01:00
Olivier Teulière
59b739d292 GameSignals: new signal emitted when the rack of the current player changes.
We connect this signal to the RackWidget, which allows a more intuitive
behaviour (in particular, the visual rack is now updated when the
Shuffle button is clicked).
2013-01-09 18:52:11 +01:00
Olivier Teulière
b48f8c17d7 MainWindow: fix bugs introduced in 99e7628fed 2013-01-09 17:12:37 +01:00
Olivier Teulière
c285e37354 RackWidget: update the visual rack only when the game rack changes.
This avoids losing the state when any unrelated update happens in the
game (for example when clicking on the board to set the coordinates).
2013-01-09 16:39:10 +01:00
Olivier Teulière
99e7628fed Move game-related signals out of MainWindow, into the new dedicated class GameSignals 2013-01-09 16:23:33 +01:00
Olivier Teulière
b5d175fc5b Topping: use a different method to play the move.
This allows providing additional time information
2013-01-08 16:04:23 +01:00
Olivier Teulière
686b896396 PlayModel: new signal to indicate that a move is played.
This allows moving the logic out of PlayWordMediator (it will make it
easier to have a different behaviour for different mode types).
2013-01-08 16:04:23 +01:00
Olivier Teulière
76fefdf71d New "master game" feature.
When a master game is defined, the racks and moves played from the
current game will be the same as in the master game. This can be
practical to replay a game in a different mode, or to replay at home a
duplicate game played in a club, for example.
2012-12-30 16:38:07 +01:00
Olivier Teulière
ac0abba535 Topping: new widget dedicated to topping mode.
It is currently very ugly, and quite buggy...
2012-12-29 19:36:38 +01:00
Olivier Teulière
681a7b28cb New topping mode (very beginning) 2012-12-29 17:51:16 +01:00
Olivier Teulière
c775682881 RackWidget: hide tiles of the word being played.
This gives the nice impression that tiles are moved from the rack to the
board.
2012-12-29 17:48:15 +01:00
Olivier Teulière
8d85df630b PlayModel now uses a Move internally 2012-12-29 17:46:18 +01:00
Olivier Teulière
d2b39b3a0a Add a visual rack below the main board 2012-12-29 17:46:17 +01:00
Olivier Teulière
655169fda6 Remove a useless include 2012-12-29 17:45:44 +01:00
Olivier Teulière
71b0a61547 Fix a typo 2012-12-29 17:44:39 +01:00
Olivier Teulière
c1332760d7 Rename CoordModel as PlayModel 2012-12-18 00:48:14 +01:00
Olivier Teulière
b0a9f44ab7 Fix a window placement bug.
Placing Eliot on a secondary monitor, and restarting it later when the
monitor is unplugged, made the window invisible (it was still at the
old position, thus off screen).
2012-11-13 12:38:27 +01:00
Olivier Teulière
f267b045b6 New option to start the timer automatically when the rack changes 2012-11-13 12:38:27 +01:00
Olivier Teulière
e355acc4fb Reset the timer automatically when a new turn starts 2012-11-13 12:38:27 +01:00
Olivier Teulière
f131fa9050 Fix a timer bug 2012-11-13 12:38:26 +01:00
Olivier Teulière
7f31fe8b0e Fix a visual glitch on the status bar 2012-11-13 12:38:26 +01:00
Olivier Teulière
02249c214e Various fixes for problems detected by Coverity.
Most of them where not actual problems, though.
2012-10-13 13:49:40 +02:00
Olivier Teulière
c5591da9e5 Fix various strings 2012-10-06 22:17:43 +02:00
Olivier Teulière
43471a52ac BagWidget: merge the 2 implementations in a single file.
Note that only BagWidget2 is used at the moment. In the future, the
other one will probably disappear.
2012-10-06 17:49:36 +02:00
Olivier Teulière
e55f05e325 Arbitration: fix a focus problem 2012-10-06 17:49:36 +02:00
Olivier Teulière
471dcf90e1 Rename Turn into TurnData (step 2) 2012-10-06 17:49:35 +02:00
Olivier Teulière
fa345a9f7b Rename Turn into TurnData (step 1) 2012-10-06 17:49:35 +02:00
Olivier Teulière
e4f9c03ca7 Training: define key accelerators for the main buttons 2012-10-05 16:10:41 +02:00
Olivier Teulière
4c76ffe8bc Moved the "Favorite players" window to a dedicated file, and added CSV import/export 2012-06-04 23:04:06 +02:00
Olivier Teulière
a4d5709d16 Catch exceptions during the auto-save 2012-06-04 23:04:06 +02:00
Olivier Teulière
a07d39fc22 New statistics window, still quite unpolished. 2012-05-06 23:31:49 +02:00
Olivier Teulière
f7a7eab3a3 Arbitration: when a player is selected, automatically switch to the corresponding history tab 2012-05-06 23:23:52 +02:00
Olivier Teulière
0095302b88 Use dedicated getters for the Move type: this is simpler to use and more readable 2012-05-05 19:45:44 +02:00
Olivier Teulière
6c16f203a5 Warn on game creation before showing the new game dialog, not after 2012-04-29 10:31:30 +02:00
Olivier Teulière
4b4b715a41 New options to desactivate the confirmation dialogs, and rework of the preferences window. 2012-04-29 01:58:43 +02:00
Olivier Teulière
f83b397549 Removed the now useless preference about the default AI level 2012-04-28 15:34:39 +02:00
Olivier Teulière
eaf536b3ba Favorite players: new "Default" column, for automatic inclusion in a new game 2012-04-28 15:34:39 +02:00
Olivier Teulière
094af979c7 Create the new game dialog every time, instead of reusing it 2012-04-28 15:34:39 +02:00
Olivier Teulière
81dfee8e55 Emit a beep when the timer reaches the alert level or expires 2012-04-28 15:34:38 +02:00
Olivier Teulière
de5783d51a Auto-save the current game regularly, to reduce the loss in case of crash 2012-04-28 15:34:37 +02:00
Olivier Teulière
f3f2d916bb Fixed a few memory leaks 2012-04-28 15:34:37 +02:00