miniature:p1xells-miniature.git
7 years agoAdded end-game UI and a "game menu" that can always be opened dashboard
Michael Hasselmann [Thu, 4 Feb 2010 21:41:54 +0000 (22:41 +0100)]
Added end-game UI and a "game menu" that can always be opened

7 years agoAdapt MBoardView to the fullscreen mode of local games
Michael Hasselmann [Thu, 4 Feb 2010 21:40:58 +0000 (22:40 +0100)]
Adapt MBoardView to the fullscreen mode of local games

7 years agoFixed racy top-level window creation
Michael Hasselmann [Thu, 4 Feb 2010 20:13:32 +0000 (21:13 +0100)]
Fixed racy top-level window creation

7 years agoFix broken master: remove blur hint
Michael Hasselmann [Wed, 3 Feb 2010 00:23:55 +0000 (01:23 +0100)]
Fix broken master: remove blur hint

7 years agoAdded blur effect hint for cancellation of dialogs
Michael Hasselmann [Tue, 2 Feb 2010 23:59:20 +0000 (00:59 +0100)]
Added blur effect hint for cancellation of dialogs

7 years agoFixed an event/signal emission race
Michael Hasselmann [Tue, 2 Feb 2010 21:58:15 +0000 (22:58 +0100)]
Fixed an event/signal emission race

7 years agoConnected new dashboard actions
Michael Hasselmann [Tue, 2 Feb 2010 16:28:44 +0000 (17:28 +0100)]
Connected new dashboard actions

7 years agoActivated adjourn and resign buttons
Michael Hasselmann [Tue, 2 Feb 2010 16:28:10 +0000 (17:28 +0100)]
Activated adjourn and resign buttons

7 years agoAdded draw-a-game negotiation
Michael Hasselmann [Tue, 2 Feb 2010 01:41:53 +0000 (02:41 +0100)]
Added draw-a-game negotiation

7 years agoAdded dialogs for offer/accept draw protocol
Michael Hasselmann [Tue, 2 Feb 2010 01:21:26 +0000 (02:21 +0100)]
Added dialogs for offer/accept draw protocol

7 years agoMoved MIconicButton into separate file
Michael Hasselmann [Tue, 2 Feb 2010 00:32:58 +0000 (01:32 +0100)]
Moved MIconicButton into separate file

7 years agoRemoved Miniature UI file, since there is no real QGV support in Qt's designer
Michael Hasselmann [Tue, 2 Feb 2010 00:19:05 +0000 (01:19 +0100)]
Removed Miniature UI file, since there is no real QGV support in Qt's designer

7 years agoFixed fullscreen activation
Michael Hasselmann [Fri, 29 Jan 2010 01:27:07 +0000 (02:27 +0100)]
Fixed fullscreen activation

7 years agoFixed a signal connection
Michael Hasselmann [Fri, 29 Jan 2010 01:24:17 +0000 (02:24 +0100)]
Fixed a signal connection

7 years agoAdapt to new MPreGame controller
Michael Hasselmann [Fri, 29 Jan 2010 01:19:57 +0000 (02:19 +0100)]
Adapt to new MPreGame controller

7 years agoAdapt Maemo5-specific MMainWindow to new MPreGame controller
Michael Hasselmann [Fri, 29 Jan 2010 01:19:16 +0000 (02:19 +0100)]
Adapt Maemo5-specific MMainWindow to new MPreGame controller

7 years agoAdded a pre-game controller that handles the start screen
Michael Hasselmann [Fri, 29 Jan 2010 01:18:41 +0000 (02:18 +0100)]
Added a pre-game controller that handles the start screen

7 years agoFixed about dialog, but links won't work (b.m.o #8557)
Michael Hasselmann [Tue, 26 Jan 2010 20:39:31 +0000 (21:39 +0100)]
Fixed about dialog, but links won't work (b.m.o #8557)

7 years agoUpdate player status again
Michael Hasselmann [Tue, 26 Jan 2010 15:33:13 +0000 (16:33 +0100)]
Update player status again

7 years agoAdded a status label and mockup for last moves
Michael Hasselmann [Tue, 26 Jan 2010 15:32:29 +0000 (16:32 +0100)]
Added a status label and mockup for last moves

7 years agoMoved the about dialog into code. Not worth to keep the extra file for it
Michael Hasselmann [Tue, 26 Jan 2010 15:31:08 +0000 (16:31 +0100)]
Moved the about dialog into code. Not worth to keep the extra file for it

7 years agoKilled the rotation animation, as most people found it ugly
Michael Hasselmann [Tue, 26 Jan 2010 01:18:54 +0000 (02:18 +0100)]
Killed the rotation animation, as most people found it ugly

7 years agoFixed scrollable viewport issues when scene started to grow its extent
Michael Hasselmann [Mon, 25 Jan 2010 23:47:13 +0000 (00:47 +0100)]
Fixed scrollable viewport issues when scene started to grow its extent

* src/board_view.cc: A QGraphicsScene has the interesting property to grow to
the largest bounding box whenever items are added (it'll never shrink). Now it
can grow also while performing rotations, probably due to how transformation
matrices work when used via convenciene API. In this case, the rotation around
the center of an item needs 4x the item's extent, therefore growing the scene's
bounding box.  Now the view tries to adapt by making the viewable scene
scrollable. This commit sets the scene's viewable area to a fixed size. Fixes
b.m.o bug #8413.

7 years agoAdded a "modal" stop resolution menu
Michael Hasselmann [Mon, 25 Jan 2010 22:12:27 +0000 (23:12 +0100)]
Added a "modal" stop resolution menu

7 years agoAdapt to new MScene
Michael Hasselmann [Mon, 25 Jan 2010 22:11:42 +0000 (23:11 +0100)]
Adapt to new MScene

7 years agoAdded a QGraphicsScene specialisation for "modal" graphic items
Michael Hasselmann [Mon, 25 Jan 2010 22:10:42 +0000 (23:10 +0100)]
Added a QGraphicsScene specialisation for "modal" graphic items

7 years agoAdd flashing of dashboard buttons for invalid moves
Michael Hasselmann [Mon, 25 Jan 2010 16:25:58 +0000 (17:25 +0100)]
Add flashing of dashboard buttons for invalid moves

7 years agoFixed header includes
Michael Hasselmann [Mon, 25 Jan 2010 13:30:15 +0000 (14:30 +0100)]
Fixed header includes

7 years agoFixed state transition bugs w.r.t. valid moves and active confirm buttons
Michael Hasselmann [Mon, 25 Jan 2010 13:10:28 +0000 (14:10 +0100)]
Fixed state transition bugs w.r.t. valid moves and active confirm buttons

7 years agoAdded a check for undo requests predicate
Michael Hasselmann [Mon, 25 Jan 2010 13:09:53 +0000 (14:09 +0100)]
Added a check for undo requests predicate

7 years agoAdded a fullscreen button and test entries for the game resolution menu
Michael Hasselmann [Mon, 25 Jan 2010 11:02:16 +0000 (12:02 +0100)]
Added a fullscreen button and test entries for the game resolution menu

7 years agoAdded Maemo 5 dependency to Qt libs
Michael Hasselmann [Mon, 25 Jan 2010 11:00:03 +0000 (12:00 +0100)]
Added Maemo 5 dependency to Qt libs

7 years agoMoved doc files to docs
Michael Hasselmann [Thu, 21 Jan 2010 22:48:56 +0000 (23:48 +0100)]
Moved doc files to docs

7 years agoFixed another confirm button bug (was still enabled after cancelling)
Michael Hasselmann [Thu, 21 Jan 2010 00:50:29 +0000 (01:50 +0100)]
Fixed another confirm button bug (was still enabled after cancelling)

7 years agoAdded a mockup avatar, to fill the emptiness
Michael Hasselmann [Thu, 21 Jan 2010 00:44:38 +0000 (01:44 +0100)]
Added a mockup avatar, to fill the emptiness

7 years agoKilled off MActionAreas, which are replaced by MDashboardItems
Michael Hasselmann [Thu, 21 Jan 2010 00:34:04 +0000 (01:34 +0100)]
Killed off MActionAreas, which are replaced by MDashboardItems

7 years agoFixed bug regarding confirm button activation before first move
Michael Hasselmann [Thu, 21 Jan 2010 00:14:10 +0000 (01:14 +0100)]
Fixed bug regarding confirm button activation before first move

7 years agoConnected MGame controller to dashboard confirm button, in a crude way
Michael Hasselmann [Thu, 21 Jan 2010 00:06:57 +0000 (01:06 +0100)]
Connected MGame controller to dashboard confirm button, in a crude way

7 years agoAdded accessors for both dashboard items
Michael Hasselmann [Wed, 20 Jan 2010 23:46:31 +0000 (00:46 +0100)]
Added accessors for both dashboard items

7 years agoCreated a custom dashboard button widg^Witem
Michael Hasselmann [Wed, 20 Jan 2010 23:41:31 +0000 (00:41 +0100)]
Created a custom dashboard button widg^Witem

7 years agoAdded media player icons for our main buttons
Michael Hasselmann [Wed, 20 Jan 2010 00:42:03 +0000 (01:42 +0100)]
Added media player icons for our main buttons

7 years agoDeactivate action areas, use MDashboardItems instead
Michael Hasselmann [Wed, 20 Jan 2010 00:41:26 +0000 (01:41 +0100)]
Deactivate action areas, use MDashboardItems instead

7 years agoChanged main view minimum size in order to fit two MDashboardItems into it
Michael Hasselmann [Wed, 20 Jan 2010 00:39:23 +0000 (01:39 +0100)]
Changed main view minimum size in order to fit two MDashboardItems into it

7 years agoAdded a dashboard item (empty, for now) for each player
Michael Hasselmann [Tue, 19 Jan 2010 01:12:19 +0000 (02:12 +0100)]
Added a dashboard item (empty, for now) for each player

7 years agoAdded a close-to-default Doxyfile for code documentation
Michael Hasselmann [Mon, 18 Jan 2010 23:54:36 +0000 (00:54 +0100)]
Added a close-to-default Doxyfile for code documentation

7 years agoRemove unneeded Q_OBJECT from header
Michael Hasselmann [Mon, 18 Jan 2010 23:15:06 +0000 (00:15 +0100)]
Remove unneeded Q_OBJECT from header

7 years agoAdapted build files to the renaming of src/platforms/*
Michael Hasselmann [Mon, 18 Jan 2010 23:08:56 +0000 (00:08 +0100)]
Adapted build files to the renaming of src/platforms/*

7 years agoMove src/platforms/* to distinct folders, since we expect more files to come
Michael Hasselmann [Mon, 18 Jan 2010 22:38:29 +0000 (23:38 +0100)]
Move src/platforms/* to distinct folders, since we expect more files to come

7 years agoAdd conditional sources for src/platforms/* infrastructure
Michael Hasselmann [Mon, 18 Jan 2010 20:18:21 +0000 (21:18 +0100)]
Add conditional sources for src/platforms/* infrastructure

7 years agoAdd doxygen comments and adapt for src/platforms/* infrastructure
Michael Hasselmann [Mon, 18 Jan 2010 20:17:35 +0000 (21:17 +0100)]
Add doxygen comments and adapt for src/platforms/* infrastructure

7 years agoAdd folder to allow platform-specific MMainWindow implementation
Michael Hasselmann [Mon, 18 Jan 2010 20:12:33 +0000 (21:12 +0100)]
Add folder to allow platform-specific MMainWindow implementation

* src/platforms/[maemo5|maemo6|others].cc: The idea is to have one of the
platform sources be linked together with src/miniature.[h|cc]. It should
remove the need for #ifdefs, although it also means more duplicated code, for
now.

7 years agoCancel piece selection when a selected piece is clicked again
Michael Hasselmann [Wed, 13 Jan 2010 02:38:07 +0000 (03:38 +0100)]
Cancel piece selection when a selected piece is clicked again

* src/game.cc, src/half_move.[h|cc]: Refined piece handling and added cleaner
checks. The user can now deselect a piece (although there is no real use case
for that) when clicking it again. Fixes b.m.o bug #7868.

7 years agoJust pretend we never heard of event filtering
Michael Hasselmann [Wed, 13 Jan 2010 02:29:53 +0000 (03:29 +0100)]
Just pretend we never heard of event filtering

* src/graphics_board_item.[h|cc], src/pieces/piece.[h|cc]: Qt's scene event
propagation does not propagate all mouse events correctly when used with event
filtering. That's why we fallback to the default event propagation
implementation (child handles event or propagates to parent) and use signals
instead to decide whether a piece or an empty cell was clicked on the board.

7 years agoEnable Qt's debug and fixed assertions
Michael Hasselmann [Wed, 13 Jan 2010 00:22:14 +0000 (01:22 +0100)]
Enable Qt's debug and fixed assertions

7 years agoPrepare 0.1.6 release
Mathias Hasselmann [Mon, 11 Jan 2010 20:30:56 +0000 (21:30 +0100)]
Prepare 0.1.6 release

7 years agoAdded a changelog entry for the upcoming release
Michael Hasselmann [Mon, 11 Jan 2010 15:59:08 +0000 (16:59 +0100)]
Added a changelog entry for the upcoming release

7 years agoFixes previous commit which invalidated the last double move too often
Michael Hasselmann [Mon, 11 Jan 2010 15:49:14 +0000 (16:49 +0100)]
Fixes previous commit which invalidated the last double move too often

7 years agoInvalidate last pawn double move correctly
Michael Hasselmann [Mon, 11 Jan 2010 15:41:22 +0000 (16:41 +0100)]
Invalidate last pawn double move correctly

7 years agoAdd en-passant capture of pawns (with undo)
Michael Hasselmann [Mon, 11 Jan 2010 13:42:27 +0000 (14:42 +0100)]
Add en-passant capture of pawns (with undo)

7 years agoRemember pawn double moves in MPosition, boundary check for store()
Michael Hasselmann [Mon, 11 Jan 2010 13:40:37 +0000 (14:40 +0100)]
Remember pawn double moves in MPosition, boundary check for store()

7 years agoAdded undo for castling
Michael Hasselmann [Mon, 11 Jan 2010 02:40:09 +0000 (03:40 +0100)]
Added undo for castling

7 years agoAdded ugly flags hack to logic analyzer to discover real castlings
Michael Hasselmann [Mon, 11 Jan 2010 02:38:27 +0000 (03:38 +0100)]
Added ugly flags hack to logic analyzer to discover real castlings

7 years agoClean half move data also after confirmation
Michael Hasselmann [Mon, 11 Jan 2010 02:37:50 +0000 (03:37 +0100)]
Clean half move data also after confirmation

7 years agoAdded castling support, undo is missing though
Michael Hasselmann [Mon, 11 Jan 2010 01:26:30 +0000 (02:26 +0100)]
Added castling support, undo is missing though

7 years agoFixed checks by pawns
Michael Hasselmann [Mon, 11 Jan 2010 00:06:34 +0000 (01:06 +0100)]
Fixed checks by pawns

7 years agoAdded print functionality and boundary checks for position vector
Michael Hasselmann [Mon, 11 Jan 2010 00:04:55 +0000 (01:04 +0100)]
Added print functionality and boundary checks for position vector

7 years agoFixed piece selection bug when navigating positions
Michael Hasselmann [Sun, 10 Jan 2010 22:16:44 +0000 (23:16 +0100)]
Fixed piece selection bug when navigating positions

7 years agoFixed min distance bug for kings
Michael Hasselmann [Sun, 10 Jan 2010 22:16:27 +0000 (23:16 +0100)]
Fixed min distance bug for kings

7 years agoRewrote cellUnderAttack logic
Michael Hasselmann [Sun, 10 Jan 2010 21:44:41 +0000 (22:44 +0100)]
Rewrote cellUnderAttack logic

7 years agoFix checks after promotion
Michael Hasselmann [Sun, 10 Jan 2010 20:32:25 +0000 (21:32 +0100)]
Fix checks after promotion

7 years agoHandle view updates for pieces in mHalfMove
Michael Hasselmann [Sun, 10 Jan 2010 20:31:31 +0000 (21:31 +0100)]
Handle view updates for pieces in mHalfMove

7 years agoDisable view updates from within MPosition
Michael Hasselmann [Sun, 10 Jan 2010 20:30:51 +0000 (21:30 +0100)]
Disable view updates from within MPosition

7 years agoMoved colour switching after move from MGame to mHalfMove
Michael Hasselmann [Sun, 10 Jan 2010 19:23:26 +0000 (20:23 +0100)]
Moved colour switching after move from MGame to mHalfMove

7 years agoSplit up the logic analyzer validation
Michael Hasselmann [Sun, 10 Jan 2010 19:16:16 +0000 (20:16 +0100)]
Split up the logic analyzer validation

* src/logic_analyzer.[h|cc]: Looking into the check-after-promotion bug #7251
it became clear that there is a dynamic validation ("Is this move valid?")
and static validation ("Is this position in check?"). This commit addresses
that and also fixes some const issues in the API.

* src/half_move.cc: Adapt to changed flags.

7 years agoFixed crash when selecting a piece after undo transitions-rewrite
Michael Hasselmann [Sun, 10 Jan 2010 16:41:43 +0000 (17:41 +0100)]
Fixed crash when selecting a piece after undo

7 years agoImproved MPosition's transition support slightly
Michael Hasselmann [Sun, 10 Jan 2010 15:32:24 +0000 (16:32 +0100)]
Improved MPosition's transition support slightly

7 years agoCode cleanup
Michael Hasselmann [Sun, 10 Jan 2010 15:32:01 +0000 (16:32 +0100)]
Code cleanup

7 years agoRemoved position transition handling from MGame
Michael Hasselmann [Sun, 10 Jan 2010 15:28:50 +0000 (16:28 +0100)]
Removed position transition handling from MGame

7 years agoMoved position transition code into mHalfMove class
Michael Hasselmann [Sun, 10 Jan 2010 15:25:02 +0000 (16:25 +0100)]
Moved position transition code into mHalfMove class

* src/half_move.[h|cc]: Stores all data necessary to a) apply a move to a
position p, obtaining p', and b) undo a position p' to option p. Since the
transition handling for MBoardView is different from the transition handling
for MPosition this is quite fragile code.

7 years agoRemoved spurious comma from configure.ac
Michael Hasselmann [Thu, 24 Dec 2009 00:51:13 +0000 (01:51 +0100)]
Removed spurious comma from configure.ac

7 years agoSwitched from application-wide OpenGL rendering to raster backend
Michael Hasselmann [Tue, 22 Dec 2009 17:53:45 +0000 (18:53 +0100)]
Switched from application-wide OpenGL rendering to raster backend

7 years agoCleaned up MPiece ctor
Michael Hasselmann [Tue, 22 Dec 2009 14:17:22 +0000 (15:17 +0100)]
Cleaned up MPiece ctor

7 years agoAllow piece rotation to be disabled (requested by korius)
Michael Hasselmann [Tue, 22 Dec 2009 01:48:26 +0000 (02:48 +0100)]
Allow piece rotation to be disabled (requested by korius)

7 years agoInitialize shadow pixmap correctly
Michael Hasselmann [Mon, 21 Dec 2009 21:08:15 +0000 (22:08 +0100)]
Initialize shadow pixmap correctly

7 years agoPrepare 0.1.5 fremantle/0.1.5-1
Mathias Hasselmann [Mon, 21 Dec 2009 21:35:33 +0000 (22:35 +0100)]
Prepare 0.1.5

7 years agoReplaced the QGraphicsDropShadowEffect (slow) with a poor man's shadow effect (fast)
Michael Hasselmann [Mon, 21 Dec 2009 20:47:31 +0000 (21:47 +0100)]
Replaced the QGraphicsDropShadowEffect (slow) with a poor man's shadow effect (fast)

7 years agoAdded drop shadow during piece rotation (slows down piece rotation)
Michael Hasselmann [Mon, 21 Dec 2009 18:56:20 +0000 (19:56 +0100)]
Added drop shadow during piece rotation (slows down piece rotation)

7 years agoEnable OpenGL rendering for debian packaging
Michael Hasselmann [Mon, 21 Dec 2009 18:50:49 +0000 (19:50 +0100)]
Enable OpenGL rendering for debian packaging

7 years agoAdded a configure option to enable OpenGL rendering
Michael Hasselmann [Mon, 21 Dec 2009 18:24:28 +0000 (19:24 +0100)]
Added a configure option to enable OpenGL rendering

7 years agoAdded a ghost image for each piece as cancel indicator
Michael Hasselmann [Mon, 21 Dec 2009 18:03:28 +0000 (19:03 +0100)]
Added a ghost image for each piece as cancel indicator

7 years agoAdded AA rendering hints for the QGV
Michael Hasselmann [Sun, 20 Dec 2009 18:42:10 +0000 (19:42 +0100)]
Added AA rendering hints for the QGV

7 years agoPrepare 0.1.4 fremantle/0.1.4-1
Mathias Hasselmann [Mon, 21 Dec 2009 19:10:41 +0000 (20:10 +0100)]
Prepare 0.1.4

7 years agoEnable rotation on turn signals
Michael Hasselmann [Sun, 20 Dec 2009 01:50:03 +0000 (02:50 +0100)]
Enable rotation on turn signals

7 years agoAdded rotation API to pieces
Michael Hasselmann [Sun, 20 Dec 2009 01:48:17 +0000 (02:48 +0100)]
Added rotation API to pieces

7 years agoAdd rotation API for action areas
Michael Hasselmann [Sun, 20 Dec 2009 01:47:35 +0000 (02:47 +0100)]
Add rotation API for action areas

7 years agoActivated OpenGL rendering for the QGV
Michael Hasselmann [Sat, 19 Dec 2009 22:05:59 +0000 (23:05 +0100)]
Activated OpenGL rendering for the QGV

7 years agoAdded OpenGL dependency
Michael Hasselmann [Sat, 19 Dec 2009 22:05:39 +0000 (23:05 +0100)]
Added OpenGL dependency

7 years agoDeselect piece when cancelling a move
Michael Hasselmann [Sat, 19 Dec 2009 17:55:20 +0000 (18:55 +0100)]
Deselect piece when cancelling a move

7 years agoImplemented rotation for the action area's proxy widget
Michael Hasselmann [Sat, 19 Dec 2009 17:52:20 +0000 (18:52 +0100)]
Implemented rotation for the action area's proxy widget

7 years agoSet QGV's background colour explicitly, even for Maemo5
Michael Hasselmann [Sat, 19 Dec 2009 17:28:22 +0000 (18:28 +0100)]
Set QGV's background colour explicitly, even for Maemo5