miniature:miniature.git
8 years agoBumped version and updated debian changelog for next release fremantle/0.1.8-1
Michael Hasselmann [Sat, 10 Apr 2010 17:04:16 +0000 (20:04 +0300)]
Bumped version and updated debian changelog for next release

8 years agoDon't put the time in front of FEN log items
Michael Hasselmann [Sat, 10 Apr 2010 13:46:47 +0000 (16:46 +0300)]
Don't put the time in front of FEN log items

8 years agoWith the MGameStore refactoring, elements should be inactive by default now
Michael Hasselmann [Sat, 10 Apr 2010 13:45:48 +0000 (16:45 +0300)]
With the MGameStore refactoring, elements should be inactive by default now

8 years agoFix some broken game logic and clean up code
Michael Hasselmann [Sat, 10 Apr 2010 17:00:55 +0000 (20:00 +0300)]
Fix some broken game logic and clean up code

8 years agoRemove non-UI related game parts from MGame
Michael Hasselmann [Wed, 7 Apr 2010 23:02:04 +0000 (02:02 +0300)]
Remove non-UI related game parts from MGame

8 years agoAdded MGameStore
Michael Hasselmann [Thu, 8 Apr 2010 23:19:07 +0000 (02:19 +0300)]
Added MGameStore

8 years agoMove non-UI related game parts into MGameStore
Michael Hasselmann [Wed, 7 Apr 2010 23:01:01 +0000 (02:01 +0300)]
Move non-UI related game parts into MGameStore

8 years agoAllow the board item to update itself from a given position
Michael Hasselmann [Sat, 10 Apr 2010 17:00:33 +0000 (20:00 +0300)]
Allow the board item to update itself from a given position

8 years agoStart using QGraphicsAnchorLayouts to manage the graphics items
Michael Hasselmann [Mon, 5 Apr 2010 14:36:06 +0000 (17:36 +0300)]
Start using QGraphicsAnchorLayouts to manage the graphics items

8 years agoRemove libqt4-maemo5 depedencies for Qt (PR 1.2)
Michael Hasselmann [Mon, 5 Apr 2010 00:37:40 +0000 (03:37 +0300)]
Remove libqt4-maemo5 depedencies for Qt (PR 1.2)

8 years agoSplit up game log into GAME and FEN, for easier game pasting
Michael Hasselmann [Mon, 5 Apr 2010 01:38:53 +0000 (04:38 +0300)]
Split up game log into GAME and FEN, for easier game pasting

8 years agoAdd FEN position pasting, for easier debugging
Michael Hasselmann [Mon, 5 Apr 2010 11:45:19 +0000 (14:45 +0300)]
Add FEN position pasting, for easier debugging

8 years agoRemoved xDim/yDim from MPiece and added a MPosition parameter where needed
Michael Hasselmann [Mon, 5 Apr 2010 01:47:33 +0000 (04:47 +0300)]
Removed xDim/yDim from MPiece and added a MPosition parameter where needed

8 years agoAdd support to create a MPosition from a FEN string (again)
Michael Hasselmann [Mon, 5 Apr 2010 01:48:50 +0000 (04:48 +0300)]
Add support to create a MPosition from a FEN string (again)

8 years agoMoved MDashboardButton into separate files
Michael Hasselmann [Sun, 4 Apr 2010 16:33:27 +0000 (19:33 +0300)]
Moved MDashboardButton into separate files

8 years agoChanged MDashboard and friends to use new icons
Michael Hasselmann [Sun, 4 Apr 2010 15:42:59 +0000 (18:42 +0300)]
Changed MDashboard and friends to use new icons

8 years agoAdded new icons for dashboard actions and updated license info
Michael Hasselmann [Sun, 4 Apr 2010 15:31:28 +0000 (18:31 +0300)]
Added new icons for dashboard actions and updated license info

8 years agoFixed FEN log entries
Michael Hasselmann [Wed, 31 Mar 2010 21:11:48 +0000 (00:11 +0300)]
Fixed FEN log entries

8 years agoRename log levels into log domains
Michael Hasselmann [Tue, 30 Mar 2010 23:01:45 +0000 (02:01 +0300)]
Rename log levels into log domains

* src/game_log.cc: Use log domains instead of log levels for the game log. The
idea is that we want to filter log entries by component, allowing us to
easily use the game log for the game chat, for example (and not just error
messages).

* src/game.cc, src/pregame.cc: Adapt to changes in MGameLog

8 years agoAdded half move to position logging fremantle/0.1.7-1
Michael Hasselmann [Tue, 2 Mar 2010 20:15:23 +0000 (22:15 +0200)]
Added half move to position logging

8 years agoInsert newline between log messages
Michael Hasselmann [Tue, 2 Mar 2010 00:32:50 +0000 (02:32 +0200)]
Insert newline between log messages

8 years agoAllow the game log to be shown during a game
Michael Hasselmann [Tue, 2 Mar 2010 00:22:02 +0000 (02:22 +0200)]
Allow the game log to be shown during a game

8 years agoPrevent MPreGame from calling MMainWindow's action setup methods explicitly
Michael Hasselmann [Mon, 1 Mar 2010 23:41:08 +0000 (01:41 +0200)]
Prevent MPreGame from calling MMainWindow's action setup methods explicitly

8 years agoQuick and dirty FEN conversion for MPosition
Michael Hasselmann [Tue, 2 Mar 2010 00:43:08 +0000 (02:43 +0200)]
Quick and dirty FEN conversion for MPosition

8 years agoIncluded new game log, at least for start screen
Michael Hasselmann [Thu, 25 Feb 2010 16:44:26 +0000 (17:44 +0100)]
Included new game log, at least for start screen

8 years agoAdded a nice game log
Michael Hasselmann [Thu, 25 Feb 2010 16:43:41 +0000 (17:43 +0100)]
Added a nice game log

8 years agoRemove version requirement
Michael Hasselmann [Mon, 22 Feb 2010 23:42:59 +0000 (00:42 +0100)]
Remove version requirement

8 years agoUse setEnabled() instead of hide() for breaking signal emission from buttons
Michael Hasselmann [Mon, 22 Feb 2010 15:16:08 +0000 (16:16 +0100)]
Use setEnabled() instead of hide() for breaking signal emission from buttons

8 years agoAdapt to the new window rotation attributes
Michael Hasselmann [Mon, 22 Feb 2010 15:15:40 +0000 (16:15 +0100)]
Adapt to the new window rotation attributes

8 years agoUpdated debian changelog
Michael Hasselmann [Mon, 8 Feb 2010 23:52:59 +0000 (00:52 +0100)]
Updated debian changelog

8 years agoPrevent P2P mode from even showing the board
Michael Hasselmann [Mon, 8 Feb 2010 23:45:06 +0000 (00:45 +0100)]
Prevent P2P mode from even showing the board

8 years agoAdded debian changelog stub for upcoming release
Michael Hasselmann [Thu, 4 Feb 2010 21:54:20 +0000 (22:54 +0100)]
Added debian changelog stub for upcoming release

8 years agoMerge branch 'dashboard'
Michael Hasselmann [Thu, 4 Feb 2010 21:44:00 +0000 (22:44 +0100)]
Merge branch 'dashboard'

8 years agoAdded end-game UI and a "game menu" that can always be opened
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

8 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

8 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

8 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

8 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

8 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

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

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

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

8 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

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

8 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

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

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

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

8 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

8 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

8 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)

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

8 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

8 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

8 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

8 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.

8 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

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

8 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

8 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

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

8 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

8 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

8 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

8 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

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

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

8 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)

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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

8 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/*

8 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

8 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

8 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

8 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.

8 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.

8 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.

8 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

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

8 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

8 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

8 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

8 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)

8 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()

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

8 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

8 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

8 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

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

8 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