miniature:p1xells-miniature.git
8 years agoCreated a stub for the next release in the debian changelog maebar
Michael Hasselmann [Wed, 2 Dec 2009 11:21:37 +0000 (12:21 +0100)]
Created a stub for the next release in the debian changelog

8 years agoMoved piece rotation handling into MGame, allowing cleanup of MBoardView
Michael Hasselmann [Wed, 2 Dec 2009 04:28:34 +0000 (05:28 +0100)]
Moved piece rotation handling into MGame, allowing cleanup of MBoardView

8 years agoAdded a MBoardView ref to MGame to allow better control over the view
Michael Hasselmann [Wed, 2 Dec 2009 04:11:31 +0000 (05:11 +0100)]
Added a MBoardView ref to MGame to allow better control over the view

8 years agoRe-added next/prev move, does not work correctly
Michael Hasselmann [Wed, 2 Dec 2009 03:49:05 +0000 (04:49 +0100)]
Re-added next/prev move, does not work correctly

8 years agoCleaned up UI, underline active player
Michael Hasselmann [Wed, 2 Dec 2009 02:48:56 +0000 (03:48 +0100)]
Cleaned up UI, underline active player

* See [1] for details.

[1] https://garage.maemo.org/pipermail/chess-developer/2009-November/000081.html

8 years agoLet MGame store a history of the current chess game
Michael Hasselmann [Wed, 2 Dec 2009 02:02:36 +0000 (03:02 +0100)]
Let MGame store a history of the current chess game

8 years agoReplaced raw pointers in MPosition with QSharedPointers
Michael Hasselmann [Wed, 2 Dec 2009 00:35:52 +0000 (01:35 +0100)]
Replaced raw pointers in MPosition with QSharedPointers

8 years agoAdded chess move notation, fixed memory leaks
Michael Hasselmann [Tue, 1 Dec 2009 00:57:55 +0000 (01:57 +0100)]
Added chess move notation, fixed memory leaks

* src/game.cc, src/position.[h|cc]: Changed store/restore API to take/release
ownership of the stored MPiece. Removed removePieceAt() and removed potential
memory leak in addPieceAt(). MPosition now cleans up after itself.

* src/position.[h|cc]: Added basic chess move notation.

* src/miniature.cc, src/board_view.[h|cc]: Reset the SVG cache between games.

8 years agoAdded a getLetter method for each piece, for chess move notations
Michael Hasselmann [Tue, 1 Dec 2009 00:46:43 +0000 (01:46 +0100)]
Added a getLetter method for each piece, for chess move notations

8 years agoAdded store/restore API to MPosition
Michael Hasselmann [Mon, 30 Nov 2009 23:14:29 +0000 (00:14 +0100)]
Added store/restore API to MPosition

* src/position.[h|cc]: Added a MStorage class which can store a piece and its
location on the board. Since this storage takes ownership of the piece it
allows a cleaner way to delete them from the board. The store/restore can make
use of that, but more importantly they allow simple undos without the need to
clone MPositions.

* src/game.cc, src/miniature.cc: Changed notations of move.

8 years agoLet Miniature start with the start position
Michael Hasselmann [Mon, 30 Nov 2009 18:48:19 +0000 (19:48 +0100)]
Let Miniature start with the start position

8 years agoMoved player info below board
Michael Hasselmann [Sun, 29 Nov 2009 19:33:23 +0000 (20:33 +0100)]
Moved player info below board

8 years agoAdded rotation of black pieces, for offline human vs human
Michael Hasselmann [Sun, 29 Nov 2009 18:53:39 +0000 (19:53 +0100)]
Added rotation of black pieces, for offline human vs human

8 years agoAdded about dialog
Michael Hasselmann [Sun, 29 Nov 2009 17:02:33 +0000 (18:02 +0100)]
Added about dialog

8 years agoIntegrated the move list view and enabled switching between views
Michael Hasselmann [Sun, 29 Nov 2009 14:17:50 +0000 (15:17 +0100)]
Integrated the move list view and enabled switching between views

8 years agoAdded move list view and show moves/show board buttons
Michael Hasselmann [Sun, 29 Nov 2009 13:39:42 +0000 (14:39 +0100)]
Added move list view and show moves/show board buttons

8 years agoAdded stacked windows
Michael Hasselmann [Sun, 29 Nov 2009 02:44:52 +0000 (03:44 +0100)]
Added stacked windows

8 years agoFixed bug #1
Michael Hasselmann [Sat, 28 Nov 2009 21:46:58 +0000 (22:46 +0100)]
Fixed bug #1

* see http://wiki.maemo.org/Image:Screenshot-Miniature-Bug1.png

8 years agoFixed a race condition
Michael Hasselmann [Sat, 28 Nov 2009 12:45:48 +0000 (13:45 +0100)]
Fixed a race condition

8 years agoFixed unused variable
Michael Hasselmann [Sat, 28 Nov 2009 12:43:37 +0000 (13:43 +0100)]
Fixed unused variable

8 years agoUpdate build dependencies fremantle/0.1.2-1
Mathias Hasselmann [Fri, 27 Nov 2009 11:10:58 +0000 (12:10 +0100)]
Update build dependencies

8 years agoBump version numbers
Mathias Hasselmann [Fri, 27 Nov 2009 10:40:48 +0000 (11:40 +0100)]
Bump version numbers

8 years agoDisable Qt Designer's auto connect feature
Michael Hasselmann [Fri, 27 Nov 2009 02:43:50 +0000 (03:43 +0100)]
Disable Qt Designer's auto connect feature

8 years agoFixed app termination on N900
Michael Hasselmann [Fri, 27 Nov 2009 02:35:51 +0000 (03:35 +0100)]
Fixed app termination on N900

8 years agoKill QWebPage instance once it rendered the board background for us
Michael Hasselmann [Thu, 26 Nov 2009 21:58:20 +0000 (22:58 +0100)]
Kill QWebPage instance once it rendered the board background for us

8 years agoUpdated debian changelog
Michael Hasselmann [Thu, 26 Nov 2009 01:27:24 +0000 (02:27 +0100)]
Updated debian changelog

8 years agoDisabled stdout debugging output
Michael Hasselmann [Thu, 26 Nov 2009 01:18:15 +0000 (02:18 +0100)]
Disabled stdout debugging output

8 years agoAdded clean newGame reset
Michael Hasselmann [Thu, 26 Nov 2009 01:14:22 +0000 (02:14 +0100)]
Added clean newGame reset

8 years agoAdded a hackish way to show which side has to move, hide debug window
Michael Hasselmann [Thu, 26 Nov 2009 00:54:50 +0000 (01:54 +0100)]
Added a hackish way to show which side has to move, hide debug window

8 years agoImplemented alternating move order
Michael Hasselmann [Thu, 26 Nov 2009 00:40:19 +0000 (01:40 +0100)]
Implemented alternating move order

8 years agoAdded auto-promotion to queens for pawns
Michael Hasselmann [Thu, 26 Nov 2009 00:01:42 +0000 (01:01 +0100)]
Added auto-promotion to queens for pawns

8 years agofix for the last commit
dennis [Thu, 26 Nov 2009 00:12:06 +0000 (01:12 +0100)]
fix for the last commit

8 years agoadded a flag that tracks the colour to move
dennis [Thu, 26 Nov 2009 00:03:00 +0000 (01:03 +0100)]
added a flag that tracks the colour to move

8 years agoand kore said: let the kings move!
dennis [Wed, 25 Nov 2009 23:20:47 +0000 (00:20 +0100)]
and kore said: let the kings move!

8 years agoMade the logic analyzer's verifyMove more expressive
Michael Hasselmann [Wed, 25 Nov 2009 22:31:07 +0000 (23:31 +0100)]
Made the logic analyzer's verifyMove more expressive

* Makefile.am: Removed moc dependency for MLogicAnalyzer.

* src/logic_analyzer.[h|cc], src/game.cc: Removed QObject dependency from
MLogicAnalyzer. Also, verifyMove now returns a MLogicAnalyzer::MStateFlags so
that it is easier to capture all states that are checked for during
verification.

8 years agocleaned up MKing and added it to the makefile
dennis [Wed, 25 Nov 2009 22:03:41 +0000 (23:03 +0100)]
cleaned up MKing and added it to the makefile

8 years agoimplemented the check check (a method that tests a given position for a players beein...
dennis [Wed, 25 Nov 2009 18:33:16 +0000 (19:33 +0100)]
implemented the check check (a method that tests a given position for a players beeing in check)

8 years agoRemoved portrait mode support for Qt 4.5, activated for Qt 4.6 again
Michael Hasselmann [Wed, 25 Nov 2009 00:44:16 +0000 (01:44 +0100)]
Removed portrait mode support for Qt 4.5, activated for Qt 4.6 again

8 years agoMade the board's background corners transparent again
Michael Hasselmann [Wed, 25 Nov 2009 00:30:37 +0000 (01:30 +0100)]
Made the board's background corners transparent again

8 years agoFixed null-pointer issue in piece type lookup, style changes
Michael Hasselmann [Tue, 24 Nov 2009 19:13:11 +0000 (20:13 +0100)]
Fixed null-pointer issue in piece type lookup, style changes

8 years agoUse QGraphicsView's background caching for the SVG board
Michael Hasselmann [Tue, 24 Nov 2009 18:47:57 +0000 (19:47 +0100)]
Use QGraphicsView's background caching for the SVG board

8 years agoRemoved Webkit rendering inside scene graph, it kills mouse events performance
Michael Hasselmann [Tue, 24 Nov 2009 17:00:22 +0000 (18:00 +0100)]
Removed Webkit rendering inside scene graph, it kills mouse events performance

8 years agomade MPosition remember the positions of the two kings
korius [Tue, 24 Nov 2009 18:24:31 +0000 (19:24 +0100)]
made MPosition remember the positions of the two kings

8 years agofixed a small bug which prevented pawns from moving
korius [Tue, 24 Nov 2009 17:20:27 +0000 (18:20 +0100)]
fixed a small bug which prevented pawns from moving

8 years agoIncluded MPawn in Makefile.am, fixed compile errors
Michael Hasselmann [Tue, 24 Nov 2009 16:37:03 +0000 (17:37 +0100)]
Included MPawn in Makefile.am, fixed compile errors

8 years agoAdded debug output to mouse event handling, turns out it is slow
Michael Hasselmann [Tue, 24 Nov 2009 13:36:11 +0000 (14:36 +0100)]
Added debug output to mouse event handling, turns out it is slow

8 years agoAdded SVG item caching in MBoardView
Michael Hasselmann [Tue, 24 Nov 2009 12:54:36 +0000 (13:54 +0100)]
Added SVG item caching in MBoardView

8 years agomade pawns move (doesn't build completely, i think the linker complains, but I dunno...
korius [Tue, 24 Nov 2009 15:13:04 +0000 (16:13 +0100)]
made pawns move (doesn't build completely, i think the linker complains, but I dunno why)

8 years agoallowed queens to move straight as well :)
korius [Tue, 24 Nov 2009 01:45:41 +0000 (02:45 +0100)]
allowed queens to move straight as well :)

8 years agoAdded bishops and queens to start position
Michael Hasselmann [Tue, 24 Nov 2009 01:29:18 +0000 (02:29 +0100)]
Added bishops and queens to start position

8 years agoDisabled terminal debug output
Michael Hasselmann [Tue, 24 Nov 2009 01:24:39 +0000 (02:24 +0100)]
Disabled terminal debug output

8 years agoRedirected MGame debug output to main window
Michael Hasselmann [Tue, 24 Nov 2009 01:10:52 +0000 (02:10 +0100)]
Redirected MGame debug output to main window

8 years agoAdded a generic debug output to main window, cleaned up menu
Michael Hasselmann [Tue, 24 Nov 2009 01:00:38 +0000 (02:00 +0100)]
Added a generic debug output to main window, cleaned up menu

8 years agoCleaned up MPosition, added piece captured check
Michael Hasselmann [Tue, 24 Nov 2009 00:17:37 +0000 (01:17 +0100)]
Cleaned up MPosition, added piece captured check

8 years agoadded the move list constraints for bishops and queens
korius [Tue, 24 Nov 2009 00:10:39 +0000 (01:10 +0100)]
added the move list constraints for bishops and queens

8 years agoadded the renderers to MQueen and MBishop
korius [Mon, 23 Nov 2009 23:20:40 +0000 (00:20 +0100)]
added the renderers to MQueen and MBishop

8 years agoCode cut: Killed MPiecesPool, MPiecesPoolManager and MGraphicsChessPieceItem
Michael Hasselmann [Mon, 23 Nov 2009 22:29:17 +0000 (23:29 +0100)]
Code cut: Killed MPiecesPool, MPiecesPoolManager and MGraphicsChessPieceItem

8 years agoRemoved MPiecesPoolManager, MGraphicsChessPieceItem dependencies for rendering
Michael Hasselmann [Mon, 23 Nov 2009 22:17:08 +0000 (23:17 +0100)]
Removed MPiecesPoolManager, MGraphicsChessPieceItem dependencies for rendering

* src/board_view.[h|cc], src/graphics_board_item.[h|cc] (addPiece,
removePieces): The MGraphicsBoardItem takes care of the pieces
(= QGraphicsSvgItem) we put on it so that cleaning the board does delete other
animation items by accident. Also, we do not need the MPiecesPoolManager
anymore for caching, QGraphicsSvgItem + shared SVG renderers does sufficient
caching.

* src/pieces/pieces.[h|cc], src/pieces/rook.[h|cc], src/pieces/knight.[h|cc]:
Chess pieces create SVG items of themselves, suitable for displaying them.
Removed the MGraphicsBoardItem depedency.

8 years agoAdded simple performance profiling to MGame
Michael Hasselmann [Mon, 23 Nov 2009 20:11:22 +0000 (21:11 +0100)]
Added simple performance profiling to MGame

8 years agoMoved rendering support into MPiece classes
Michael Hasselmann [Mon, 23 Nov 2009 20:00:07 +0000 (21:00 +0100)]
Moved rendering support into MPiece classes

* src/board_view.cc: The rendering now asks each piece for the SVG item to
place onto the board.

* src/pieces/piece.[h|cc]: Added support for cached SVG rendering.

* src/pieces/knight.[h|cc], src/pieces/rook.[h|cc]: Each concrete piece class
now has two renders (static class members). We have to lazy-initialize the SVG
renderers since we need to wait until the Qt resource system is up.

8 years agomade pieces/bishop.{h|cc} and src pieces/queen.{h|cc} compile
korius [Mon, 23 Nov 2009 20:38:37 +0000 (21:38 +0100)]
made pieces/bishop.{h|cc} and src pieces/queen.{h|cc} compile

8 years agofixed knight constraint from not beeing applied ^^
korius [Mon, 23 Nov 2009 02:59:31 +0000 (03:59 +0100)]
fixed knight constraint from not beeing applied ^^

8 years agoFixed MKnight and added knight rendering to MBoardView
Michael Hasselmann [Mon, 23 Nov 2009 02:47:11 +0000 (03:47 +0100)]
Fixed MKnight and added knight rendering to MBoardView

8 years agocleaned up knight.{c|hh}
korius [Mon, 23 Nov 2009 02:24:49 +0000 (03:24 +0100)]
cleaned up knight.{c|hh}

8 years agoadded the knight constraint
korius [Mon, 23 Nov 2009 02:12:55 +0000 (03:12 +0100)]
added the knight constraint

8 years agoExtended black rook test
Michael Hasselmann [Mon, 23 Nov 2009 01:27:31 +0000 (02:27 +0100)]
Extended black rook test

8 years agoquick fix of the last commit
korius [Mon, 23 Nov 2009 01:16:01 +0000 (02:16 +0100)]
quick fix of the last commit

8 years agoMade the logic analyzer compile again
Michael Hasselmann [Mon, 23 Nov 2009 00:47:12 +0000 (01:47 +0100)]
Made the logic analyzer compile again

8 years agogame logic - move analyzer
korius [Sun, 22 Nov 2009 23:21:59 +0000 (00:21 +0100)]
game logic - move analyzer

implemented the move list constraints for straight moves (e.g. rook)

8 years agoAdapted board rendering to new board model, added logic test for rook
Michael Hasselmann [Sun, 22 Nov 2009 13:13:46 +0000 (14:13 +0100)]
Adapted board rendering to new board model, added logic test for rook

* Makefile.am: Added MLogicAnalyzer dependencies.

* src/board_view.[h|cc], src/graphics_board_item.[h|cc]: Renamed pieceMoved
signal to pieceMoveRequest since MBoardView (more precisely,
MGraphicsBoardItem) is no longer allowed to move pieces on its own. Instead, it
sends a request to the MGame controller and patiently waits for a position
update. The rendering itself also changed: Instead of FEN string parsing the
MBoardView uses the MPiece stored in the MPosition directly.

* src/game.[h|cc], src/position.[h|cc]: Moved signals and slots from MPosition
to MGame, our controller. This makes MPosition a passive component again,
suited to be passed around much like a container. Also added a test slot
(blackRookTest) so that we test our new MLogicAnalyzer.

* src/logic_analyzer.[h|cc]: This new class performs move validation. It knows
about MPosition and MPiece so it has a full understanding of a static chess
position and can also check transitions from a current position to possible
next positions.

* src/pieces/piece.[h|cc], src/pieces/rook.[h|cc]: Cleanup. Also added some
debug info which hopefully goes away soon.

* src/miniature.[h|cc], src/miniature.ui: Rewired some signals. Also activated
the blackRookTest from the menu.

8 years agoMade the new internal model compile again
Michael Hasselmann [Sat, 21 Nov 2009 21:40:48 +0000 (22:40 +0100)]
Made the new internal model compile again

* src/game.cc: Disabled move logic for now.

* src/pieces/piece.[h|cc]: Cleaned up to allow better support for polymorphism.

* src/piece/rook.[h|cc]: Cleaned up to have one working example piece for the
board.

* src/position.[h|cc]: Cleaned up move validation.

8 years agogame logic - move analyzer
korius [Sat, 21 Nov 2009 01:13:14 +0000 (02:13 +0100)]
game logic - move analyzer

Rewrote the class 'MPiece' as interface for the different piece types.
Created a class for each piece type (e.g. MQueen) and implemented the move rules for each piece type. Each piece given its current position can now return a list of possible moves on an empty board.

8 years agogame logic - move analizer
korius [Thu, 19 Nov 2009 21:31:36 +0000 (22:31 +0100)]
game logic - move analizer

src/position.[h|cc]: prepared the files for implementing the move analizer

8 years agoMerge less glossy chess board
Mathias Hasselmann [Tue, 24 Nov 2009 09:41:56 +0000 (10:41 +0100)]
Merge less glossy chess board

8 years agoImplement OSSO D-Bus interface
Mathias Hasselmann [Tue, 24 Nov 2009 09:35:55 +0000 (10:35 +0100)]
Implement OSSO D-Bus interface

* configure.ac: Request D-Bus module.
* Makefile.am: Update MIME database after installation.
* data/miniature.desktop.in: Register PGN MIME type for Miniature.

* src/miniature.cc:
* src/miniature.h: Register D-Bus service to stop hildon-desktop from
killing Miniature. Also implement top_application and mime_open stub.

8 years agoAutomatically chose proper QT_PATH for Maemo 5
Mathias Hasselmann [Sat, 21 Nov 2009 21:53:48 +0000 (22:53 +0100)]
Automatically chose proper QT_PATH for Maemo 5

* build/miniature.m4:
* configure.ac: Introduce MINIATURE_CHECK_PLATFORM.

8 years agoCheck for proper Qt version
Mathias Hasselmann [Sat, 21 Nov 2009 21:27:49 +0000 (22:27 +0100)]
Check for proper Qt version

* build/autotroll.m4(AT_REQUIRE_QT_VERSION):
  Properly use AX_INSTEAD_IF when required Qt version not found.
* configure.ac: Explicitely require Qt 4.6.

8 years agoAdd Standards-Version field to Maemo packaging.
Mathias Hasselmann [Sat, 21 Nov 2009 21:30:43 +0000 (22:30 +0100)]
Add Standards-Version field to Maemo packaging.

8 years agoIntegrated QtWebkit SVG rendering
Mathias Hasselmann [Thu, 19 Nov 2009 00:36:46 +0000 (01:36 +0100)]
Integrated QtWebkit SVG rendering

* configure.ac: Added new dependencies for QtWebkit.

* src/board_view.[ħ|cc]: Changed MGraphicsBoardItem construction to load the
SVG board in a separate step.

* src/graphics_board_item.[h|cc]: This class has effectively become a QWebPage
proxy w.r.t SVG rendering. It also uses the QWebPage's main frame painter to
paint itself. By doing so, we got around the SVG bugs in QtSvg.  The proof of
concept was contributed by Mathias Hasselmann <mathias.hasselmann@maemo.org>.

8 years agoAdd missing postinst script. fremantle/0.1.1-1
Mathias Hasselmann [Tue, 17 Nov 2009 23:06:46 +0000 (00:06 +0100)]
Add missing postinst script.

* debian/miniature.postinst: Update icon cache after installation.

8 years agoPrepare 0.1.1 release.
Mathias Hasselmann [Tue, 17 Nov 2009 22:58:24 +0000 (23:58 +0100)]
Prepare 0.1.1 release.

* Makefile.am: Use proper path for icon files.
* configure.ac: Bump version. Link to homepage instead of ML.
* debian/changelog: Bump version.
* debian/control: Move to user/games sections. Shuffle attributes a
little bit for better readability.

8 years agoInstall application icons and specify them in the desktop file
David King [Tue, 17 Nov 2009 20:36:15 +0000 (21:36 +0100)]
Install application icons and specify them in the desktop file

* Makefile.am: Distribute icons to the relevant directories.

* data/data.qrc:
* data/icons/48x48/miniature.png:
* data/icons/scalable/miniature.svg: Move icons in source tree.

* data/miniature.desktop.in: Specify the application icon and correct
the Version field.

8 years agoCleaned up UI file
Michael Hasselmann [Tue, 17 Nov 2009 22:20:40 +0000 (23:20 +0100)]
Cleaned up UI file

* src/miniature.ui: Moved layouts into their parent widgets, to clean up the
element tree. Also fixed some spacing issues w.r.t. to big fonts and too small
QLabels.

8 years agoUse the common idiom for connecting Qt signals.
Mathias Hasselmann [Tue, 17 Nov 2009 18:54:41 +0000 (19:54 +0100)]
Use the common idiom for connecting Qt signals.

* src/board_view.cc:
* src/graphics_board_item.cc:
* src/miniature.cc: Just call connect() without any prefix like all Qt
expamples are demonstrating.

8 years agoAdd an application icon PNG and the source SVG
Ekaterina Gerasimova [Mon, 16 Nov 2009 21:52:33 +0000 (22:52 +0100)]
Add an application icon PNG and the source SVG

* data/miniature-48x48.png: 48x48 pixels application icon.

* data/miniature.svg: Source SVG for the application icon.

* data/data.qrc: Add both the icons to the resource file.

* debian/changelog: Bump the Debian package version.

* debian/control: Add a uuencoded application icon for Hildon
Application Manager.

8 years agoUpdated class diagram
Michael Hasselmann [Mon, 16 Nov 2009 19:21:34 +0000 (20:21 +0100)]
Updated class diagram

8 years agoUse short slogan for package description
Mathias Hasselmann [Mon, 16 Nov 2009 20:56:29 +0000 (21:56 +0100)]
Use short slogan for package description

8 years agoUpdated class diagram, this time with a PNG, too
Michael Hasselmann [Mon, 16 Nov 2009 19:08:25 +0000 (20:08 +0100)]
Updated class diagram, this time with a PNG, too

8 years agoUpdated class diagram
Michael Hasselmann [Mon, 16 Nov 2009 19:05:23 +0000 (20:05 +0100)]
Updated class diagram

8 years agoMerge branch 'master' of git@gitorious.org:miniature/miniature
Mathias Hasselmann [Mon, 16 Nov 2009 10:50:23 +0000 (11:50 +0100)]
Merge branch 'master' of git@gitorious.org:miniature/miniature

8 years agoCreated a more visible selection frame, refined move handling
Michael Hasselmann [Mon, 16 Nov 2009 10:37:45 +0000 (11:37 +0100)]
Created a more visible selection frame, refined move handling

8 years agoRelax launcher folder checks fremantle/0.1-1
Mathias Hasselmann [Mon, 16 Nov 2009 10:36:32 +0000 (11:36 +0100)]
Relax launcher folder checks

* configure.ac: Only check that the folder variables are not empty.
Otherwise hildon-desktop and stuff would have to be added to our build
dependencies.

8 years agoMade copyright notice in sources more standardized, hopefully
Michael Hasselmann [Sun, 15 Nov 2009 23:09:43 +0000 (00:09 +0100)]
Made copyright notice in sources more standardized, hopefully

8 years agoActivated portrait mode for Qt 4.6, too
Michael Hasselmann [Sun, 15 Nov 2009 22:10:42 +0000 (23:10 +0100)]
Activated portrait mode for Qt 4.6, too

8 years agoUpdate ignore file
Mathias Hasselmann [Sun, 15 Nov 2009 20:54:25 +0000 (21:54 +0100)]
Update ignore file

8 years agoAdd Debian packaging.
Mathias Hasselmann [Sun, 15 Nov 2009 20:56:01 +0000 (21:56 +0100)]
Add Debian packaging.

* debian/*: Provide initial Debian packaging.

8 years agoInstall launcher files at proper location
Mathias Hasselmann [Sun, 15 Nov 2009 20:49:46 +0000 (21:49 +0100)]
Install launcher files at proper location

* Makefile.am: Really install miniature in /usr/games. Install desktop
and D-Bus service file at its Maemo specific locations.

* configure.ac: Consult pkg-config to find Maemo specific locations for
desktop and D-Bus service files. Tell autoconf to substitute variables
in desktop and service files.

* data/miniature.desktop.in: Move to data folder and use valid
categories. Permit autoconf to substitute variables.

* data/org.maemo.miniature.service.in: Move to data folder and rename
the file to give D-Bus activation a change to actually find it. Permit
autoconf to substitute variables.

8 years agoAdded a cellSize property to MGraphicsBoardItem
Michael Hasselmann [Sun, 15 Nov 2009 20:05:12 +0000 (21:05 +0100)]
Added a cellSize property to MGraphicsBoardItem

8 years agoRemoved cyclic dependency between MBoardView and MGraphicsBoardItem
Michael Hasselmann [Sun, 15 Nov 2009 19:19:15 +0000 (20:19 +0100)]
Removed cyclic dependency between MBoardView and MGraphicsBoardItem

* Makefile.am: Added moc dependency for MGraphicsBoardItem.

* src/board_view.[h|cc], src/graphics_board_item.[h|cc]: The view aggregates
selected signals that come from inside the scene graph and re-emits them so
that other M* classes can easily connect to them without having any knowledge
of the scene graph itself.

8 years agoImplement basic mouse/fingertouch events for moving pieces
Michael Hasselmann [Sun, 15 Nov 2009 18:31:09 +0000 (19:31 +0100)]
Implement basic mouse/fingertouch events for moving pieces

* Makefile.am: Added dependencies for MChessPieceItem and MGraphicsBoardItem.

* src/board_view.[h|cc]: Adapted to new MGraphicsBoardItem, introduced
pieceMoved signal.

* src/pieces_pool.[h|cc], src/pieces_pool_manager.[h|cc]: Adapted to new
MGraphicsBoardItem.

* src/chess_piece_item.[h|cc]: Currently unused. Kept for later event handling.

* src/graphics_board_item.[h|cc]: Implemented simple click-from, click-to piece
move handling.