History log of /haiku/src/apps/sudoku/SudokuView.cpp
Revision Date Author Comments
# e2c0896a 22-Mar-2020 X512 <danger_mail@list.ru>

Sudoku: 64 bit fix

Pointed by clang.

Change-Id: I996454dcee8484716946d08d3318daf8d815b7cf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2402
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# 5ab027fd 21-Oct-2015 Axel Dörfler <axeld@pinc-software.de>

Sudoku: use the layout API.

* This removes the CenteredViewContainer class, as it is no longer
being used.
* However, it also removes its functionality, ie. the Sudoku view now
fills the complete window (even without any borders), again.


# cefd7c49 24-Jun-2015 Axel Dörfler <axeld@pinc-software.de>

Sudoku: Improved value hint.

* Removed toggling its visibility on click - it's now always visible
once it's there.
* Also update and show it when changing a value or hint.


# aeb121ec 13-Jan-2015 Axel Dörfler <axeld@pinc-software.de>

Sudoku: consolidated set value code paths.

* Renamed _ToggleValue() to _SetValue(), and only let it do that.
* It's now called from _InsertKey(), and _SolveSingle() as well which
results in a correct visual update (ie. completed values, and the
value hints are updated correctly).
* _SolveSingle() would also not test for a completed game.


# e3debc9e 08-Jan-2015 Axel Dörfler <axeld@pinc-software.de>

Sudoku: remove hints when setting a value.

* When you set a value, all then superfluous hints are removed
automatically now.


# fc64ef86 08-Jan-2015 Axel Dörfler <axeld@pinc-software.de>

Sudoku: reordered SudokuView's methods.

* Their declaration order now matches their implementation order.


# 50e33476 08-Jan-2015 Axel Dörfler <axeld@pinc-software.de>

Sudoku: minor refactoring.

* Pulled _Toggle[Hint]Value() methods out of MouseDown().


# 7ccbecc0 29-Dec-2014 Axel Dörfler <axeld@pinc-software.de>

Sudoku: added "set all hints" help item.

* Sets all the hints for all the fields.


# 907046dc 26-Sep-2014 Lioncash <mathew1800@gmail.com>

SudokuView: Check array index before the data array in _FilterString


# 332cc6bc 30-Nov-2012 Axel Dörfler <axeld@pinc-software.de>

64 bit fixes for libmedia.so, ActivityMonitor, and Sudoku.

* Alex, I feel your pain :-)


# baeb048b 23-Sep-2012 Axel Dörfler <axeld@pinc-software.de>

Don't start showing the hint for each solved number.

* Instead, only keep it visible when the user made it visible.
* Minor cleanup.


# 90f51090 16-Jun-2012 Axel Dörfler <axeld@pinc-software.de>

When the value hint mode is active, keep it active.

* Ie. when a different value is pressed, the hint is now being shown for
the new value instead of turning of the value hints.


# 2996f648 05-Jun-2012 Axel Dörfler <axeld@pinc-software.de>

Implemented a value hint, changed colors.

* When you press on a value, that value will be shown with a
highlighted background across the board until another value is set.
* Changed the colors to those from the Haiku logo rather than the BeOS
logo. This makes it a bit more colorful which one might need to get
used to -- comments welcome.


# d6e44c9c 15-May-2012 Axel Dörfler <axeld@pinc-software.de>

If all fields for a specific value are set, mark it.

* In this case, the value is drawn a bit less intense than incomplete values.
* Make the keyboard focus background color depend on the actual background
color.
* No longer allow to drag remove random hint values after removing a value
from a field.


# 11c7ff53 25-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Removing most About windows and menu items as discussed here
http://www.freelists.org/post/haiku-commits/r40968-in-haikutrunksrcapps-activitymonitor-bootmanager-charactermap-codycam-deskbar,3
Leaving them for now in replicants, and in Terminal, according to (my interpretation of) the instructions here
http://dev.haiku-os.org/browser/haiku/trunk/src/apps/terminal/README.GPL_to_OBOS#L70
Some sporadic cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41108 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fd43517b 13-Jun-2010 Axel Dörfler <axeld@pinc-software.de>

* Renamed "mio" to mallocIO.
* Don't define status in CopyToClipboard() before it's actually used.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37124 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ef0522d2 12-Jun-2010 Stephan Aßmus <superstippi@gmx.de>

* Fixed coding style violations in CopyToClipboard.
* Fixed compiler warnings.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37122 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 70b0ca39 12-Jun-2010 Stephan Aßmus <superstippi@gmx.de>

ShowImage no longer uses the weird direct bitmap storage in the clipboard.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37121 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bc72ab05 30-May-2009 Stephan Aßmus <superstippi@gmx.de>

I messed up the patch from ticket #3971, because I thought I could simplify it.
Sorry about that! This is now like in the original patch and fixes the ticket
for real.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30926 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 97566384 30-May-2009 Stephan Aßmus <superstippi@gmx.de>

Applied patch by Stef Busking: Adjust the current keyboard focus field along
with the mouse, so that switching between using the keyboard and mouse is more
fluent. Fixes ticket #3971.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30918 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dde69dae 22-Sep-2008 Michael Lotz <mmlr@mlotz.ch>

Also close the input file in case of success. Fixes CID 935.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27694 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 14cc9629 09-May-2008 Axel Dörfler <axeld@pinc-software.de>

* Turned off replicant handle for the time being; it's not really usable as
a replicant yet.
* Improved CSS producing code.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25417 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 173dd626 08-May-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Cast B_OK to (uint32) to solve an overloading ambiguity (I don't agree
with the compiler, though :-)), I'm about to introduce.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25384 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0fbe0299 07-May-2008 François Revol <revol@free.fr>

BPicture is obviously not text data, should be image/ supertype!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25371 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7bf86529 03-Feb-2008 François Revol <revol@free.fr>

Fix gcc4 build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23859 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 570e1312 03-Feb-2008 François Revol <revol@free.fr>

Move the about box to a static so the replicant can use it as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23858 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c09b3a97 03-Feb-2008 François Revol <revol@free.fr>

Move the dragger back to its corner on resize.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23857 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0abb35c2 03-Feb-2008 François Revol <revol@free.fr>

It's now replicable. The dragger doesn't move correctly on resize though. And it needs a better menu.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23856 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bb00cd45 03-Feb-2008 François Revol <revol@free.fr>

* Reindent & style fix.
* Added copy-to-clipboard.
* Added picture and bitmap clipboard formats.
Now you can just paste into either a text or graphics app. Even Gobe uses the text in word processor and bitmap in picture editor :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23855 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fb3fcd87 03-Feb-2008 François Revol <revol@free.fr>

Fix Haiku build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23853 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6a4bb556 03-Feb-2008 François Revol <revol@free.fr>

* HTML now looks ok.
* Inlcude headers for clipboard too, one might want the css code also.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23852 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 495bcef7 03-Feb-2008 François Revol <revol@free.fr>

* Better looking html.
* Set mime type when exporting to file.
* disable netpositive stuff (only css).
* export only the table when not saving to file (clipboard).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23850 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dc6e60ec 03-Feb-2008 François Revol <revol@free.fr>

* Quit on window close.
* Added HTML export, and provision for more formats and clipboard export.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23848 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3b54b5c4 24-Nov-2007 Axel Dörfler <axeld@pinc-software.de>

* Renamed "Store Current" to "Snapshot Current", and "Restore Saved" to
"Restore Snapshot".
* Implemented a simple undo/redo.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22987 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 647c0044 19-Nov-2007 Axel Dörfler <axeld@pinc-software.de>

The "drag&duplicate value" feature was not working reliably when removing hints
after a value was set, as fLastField was not updated.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22952 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 91adcde6 17-Nov-2007 Axel Dörfler <axeld@pinc-software.de>

When having set/removed a value or hint, you can duplicate that action (or
remove the hint for that value) by dragging the mouse over other fields with
the mouse button held.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22937 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a425a5ae 07-Nov-2007 Axel Dörfler <axeld@pinc-software.de>

Keyboard navigation only worked after the first field was set.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22851 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cff9bca4 09-Sep-2007 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Ceneter SudokuView and keep it square. Avoid flickering when resizing. R5 build fixes.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22212 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 451cbc4a 29-Aug-2007 Axel Dörfler <axeld@pinc-software.de>

* SudokuSolver::ComputeSolutions() can now be called more than once without
doubling the solution list.
* ComputeSolutions() will now check if solving the Sudoku is affordable for
this algorithm (at least 1/6th of the fields must be known). This fixes
one part of bug #1435.
* SudokuView now checks if the Sudoku is already solved before trying to
fill in a value from the solution (and then it did not find a free spot,
surprisingly). This fixes the other part of bug #1435.
* SudokuView now beeps if there was no solution.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22110 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d578543a 25-Aug-2007 Axel Dörfler <axeld@pinc-software.de>

* Added a first game to the image: Sudoku. It comes with a solver and generator
for three different levels (from "Very Easy" to "Hard"). Have fun!
* Feel free to do a nicer icon!
* Stack.h is actually verbatim copy of a kernel header which we might want
to move to a more public place (like shared).
* ProgressWindow is taken from ShowImage, but adapted to suit different
needs.
* It seems to trigger a bug in the interface kit or app_server: when moving
the mouse around, the right border of a field is sometimes lost. This
does not happen in BeOS, and there is actually no code that looks responsible
for this - it might be an off by one error in the region code, though?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22056 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cefd7c496d93fbb34496ecb651219aac5c076db4 24-Jun-2015 Axel Dörfler <axeld@pinc-software.de>

Sudoku: Improved value hint.

* Removed toggling its visibility on click - it's now always visible
once it's there.
* Also update and show it when changing a value or hint.


# aeb121ec03aaf91a3e46f7e50b393a2786af4776 13-Jan-2015 Axel Dörfler <axeld@pinc-software.de>

Sudoku: consolidated set value code paths.

* Renamed _ToggleValue() to _SetValue(), and only let it do that.
* It's now called from _InsertKey(), and _SolveSingle() as well which
results in a correct visual update (ie. completed values, and the
value hints are updated correctly).
* _SolveSingle() would also not test for a completed game.


# e3debc9e26e313edfda1e502045ce6b9a1878143 08-Jan-2015 Axel Dörfler <axeld@pinc-software.de>

Sudoku: remove hints when setting a value.

* When you set a value, all then superfluous hints are removed
automatically now.


# fc64ef86ff1b21aa6ddd5542796c96a22d0a2410 08-Jan-2015 Axel Dörfler <axeld@pinc-software.de>

Sudoku: reordered SudokuView's methods.

* Their declaration order now matches their implementation order.


# 50e3347692855f10d9daa834f1dbeeaddcc5cec8 08-Jan-2015 Axel Dörfler <axeld@pinc-software.de>

Sudoku: minor refactoring.

* Pulled _Toggle[Hint]Value() methods out of MouseDown().


# 7ccbecc0567d8c0ce7e140774a77a92f379ad878 29-Dec-2014 Axel Dörfler <axeld@pinc-software.de>

Sudoku: added "set all hints" help item.

* Sets all the hints for all the fields.


# 907046dc4d8271b1026cf2b4f2486008aa5f02d1 26-Sep-2014 Lioncash <mathew1800@gmail.com>

SudokuView: Check array index before the data array in _FilterString


# 332cc6bc3b696473169bb9e43340b69a0a3fc4f1 30-Nov-2012 Axel Dörfler <axeld@pinc-software.de>

64 bit fixes for libmedia.so, ActivityMonitor, and Sudoku.

* Alex, I feel your pain :-)


# baeb048bd1acc5e0519c405b98a04ba45121f217 23-Sep-2012 Axel Dörfler <axeld@pinc-software.de>

Don't start showing the hint for each solved number.

* Instead, only keep it visible when the user made it visible.
* Minor cleanup.


# 90f510906d5cda45f8580a5cfbcb8b8dc19fd47c 16-Jun-2012 Axel Dörfler <axeld@pinc-software.de>

When the value hint mode is active, keep it active.

* Ie. when a different value is pressed, the hint is now being shown for
the new value instead of turning of the value hints.


# 2996f648811ca6080e109ac744709ef294eb1598 05-Jun-2012 Axel Dörfler <axeld@pinc-software.de>

Implemented a value hint, changed colors.

* When you press on a value, that value will be shown with a
highlighted background across the board until another value is set.
* Changed the colors to those from the Haiku logo rather than the BeOS
logo. This makes it a bit more colorful which one might need to get
used to -- comments welcome.


# d6e44c9c822d666923f1af3e30cd63e65a64e61c 15-May-2012 Axel Dörfler <axeld@pinc-software.de>

If all fields for a specific value are set, mark it.

* In this case, the value is drawn a bit less intense than incomplete values.
* Make the keyboard focus background color depend on the actual background
color.
* No longer allow to drag remove random hint values after removing a value
from a field.


# 11c7ff531a01b64773d8a8f0e02c1c7c9f27ca29 25-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Removing most About windows and menu items as discussed here
http://www.freelists.org/post/haiku-commits/r40968-in-haikutrunksrcapps-activitymonitor-bootmanager-charactermap-codycam-deskbar,3
Leaving them for now in replicants, and in Terminal, according to (my interpretation of) the instructions here
http://dev.haiku-os.org/browser/haiku/trunk/src/apps/terminal/README.GPL_to_OBOS#L70
Some sporadic cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41108 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fd43517b2c021a8f8fa7d3b2fdee46180de38213 13-Jun-2010 Axel Dörfler <axeld@pinc-software.de>

* Renamed "mio" to mallocIO.
* Don't define status in CopyToClipboard() before it's actually used.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37124 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ef0522d296288de16446439a76420c4f451f63dd 12-Jun-2010 Stephan Aßmus <superstippi@gmx.de>

* Fixed coding style violations in CopyToClipboard.
* Fixed compiler warnings.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37122 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 70b0ca391013bb7d5af0279c6e78902476bf898a 12-Jun-2010 Stephan Aßmus <superstippi@gmx.de>

ShowImage no longer uses the weird direct bitmap storage in the clipboard.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37121 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bc72ab054b4633a0cecc5f8474efa1e1a5ed89b9 30-May-2009 Stephan Aßmus <superstippi@gmx.de>

I messed up the patch from ticket #3971, because I thought I could simplify it.
Sorry about that! This is now like in the original patch and fixes the ticket
for real.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30926 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 97566384f77bf27f6c25f9868f4728b034d5b3d0 30-May-2009 Stephan Aßmus <superstippi@gmx.de>

Applied patch by Stef Busking: Adjust the current keyboard focus field along
with the mouse, so that switching between using the keyboard and mouse is more
fluent. Fixes ticket #3971.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30918 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dde69daea30f108e88de8449982e348c520146e5 22-Sep-2008 Michael Lotz <mmlr@mlotz.ch>

Also close the input file in case of success. Fixes CID 935.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27694 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 14cc96293c35fc76117bca9b526dd2d1113dfab7 09-May-2008 Axel Dörfler <axeld@pinc-software.de>

* Turned off replicant handle for the time being; it's not really usable as
a replicant yet.
* Improved CSS producing code.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25417 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 173dd626bf4104f859e1e941f3bb0e162549d26f 08-May-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Cast B_OK to (uint32) to solve an overloading ambiguity (I don't agree
with the compiler, though :-)), I'm about to introduce.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25384 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0fbe0299d32c78d68e7ee1ad213d6bf70b87dc08 07-May-2008 François Revol <revol@free.fr>

BPicture is obviously not text data, should be image/ supertype!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25371 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7bf865298421b051e7e70e1ccea010456da3783d 03-Feb-2008 François Revol <revol@free.fr>

Fix gcc4 build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23859 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 570e1312b5b15c8e46deb13156da8c11ed61fd05 03-Feb-2008 François Revol <revol@free.fr>

Move the about box to a static so the replicant can use it as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23858 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c09b3a97dc4237c98a02fe6d6dc50a27c046912a 03-Feb-2008 François Revol <revol@free.fr>

Move the dragger back to its corner on resize.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23857 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0abb35c2fc32044a42977509836ed80a6113d4af 03-Feb-2008 François Revol <revol@free.fr>

It's now replicable. The dragger doesn't move correctly on resize though. And it needs a better menu.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23856 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bb00cd45edee92eadbc72f3f154fcda7b8013cde 03-Feb-2008 François Revol <revol@free.fr>

* Reindent & style fix.
* Added copy-to-clipboard.
* Added picture and bitmap clipboard formats.
Now you can just paste into either a text or graphics app. Even Gobe uses the text in word processor and bitmap in picture editor :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23855 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fb3fcd8754b5078163dbf1613fe6da0b19f6faf5 03-Feb-2008 François Revol <revol@free.fr>

Fix Haiku build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23853 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6a4bb556c1c3491173d8fac57b0e0b754950ba42 03-Feb-2008 François Revol <revol@free.fr>

* HTML now looks ok.
* Inlcude headers for clipboard too, one might want the css code also.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23852 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 495bcef7a8adff1b63e9569dd021ac4d7cfa8e7b 03-Feb-2008 François Revol <revol@free.fr>

* Better looking html.
* Set mime type when exporting to file.
* disable netpositive stuff (only css).
* export only the table when not saving to file (clipboard).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23850 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dc6e60ec931609fb9439f812378a7ad2dc9434c6 03-Feb-2008 François Revol <revol@free.fr>

* Quit on window close.
* Added HTML export, and provision for more formats and clipboard export.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23848 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3b54b5c49e0b0937d9eae2da56817328ec3e8095 24-Nov-2007 Axel Dörfler <axeld@pinc-software.de>

* Renamed "Store Current" to "Snapshot Current", and "Restore Saved" to
"Restore Snapshot".
* Implemented a simple undo/redo.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22987 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 647c0044ff1073524d275aaabe4e5a555a676678 19-Nov-2007 Axel Dörfler <axeld@pinc-software.de>

The "drag&duplicate value" feature was not working reliably when removing hints
after a value was set, as fLastField was not updated.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22952 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 91adcde60f9ef5cfb7f75483344bf8f07be4da13 17-Nov-2007 Axel Dörfler <axeld@pinc-software.de>

When having set/removed a value or hint, you can duplicate that action (or
remove the hint for that value) by dragging the mouse over other fields with
the mouse button held.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22937 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a425a5ae4d1d4879ca5ca789a8b4d7f9432c27eb 07-Nov-2007 Axel Dörfler <axeld@pinc-software.de>

Keyboard navigation only worked after the first field was set.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22851 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cff9bca41ccedf0603a87af9a3299254832c3cf3 09-Sep-2007 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Ceneter SudokuView and keep it square. Avoid flickering when resizing. R5 build fixes.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22212 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 451cbc4a94f85e8eb1d8923358a409f738d01c17 29-Aug-2007 Axel Dörfler <axeld@pinc-software.de>

* SudokuSolver::ComputeSolutions() can now be called more than once without
doubling the solution list.
* ComputeSolutions() will now check if solving the Sudoku is affordable for
this algorithm (at least 1/6th of the fields must be known). This fixes
one part of bug #1435.
* SudokuView now checks if the Sudoku is already solved before trying to
fill in a value from the solution (and then it did not find a free spot,
surprisingly). This fixes the other part of bug #1435.
* SudokuView now beeps if there was no solution.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22110 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d578543aa6da5eda36934f512fb9ef272d6cb34e 25-Aug-2007 Axel Dörfler <axeld@pinc-software.de>

* Added a first game to the image: Sudoku. It comes with a solver and generator
for three different levels (from "Very Easy" to "Hard"). Have fun!
* Feel free to do a nicer icon!
* Stack.h is actually verbatim copy of a kernel header which we might want
to move to a more public place (like shared).
* ProgressWindow is taken from ShowImage, but adapted to suit different
needs.
* It seems to trigger a bug in the interface kit or app_server: when moving
the mouse around, the right border of a field is sometimes lost. This
does not happen in BeOS, and there is actually no code that looks responsible
for this - it might be an off by one error in the region code, though?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22056 a95241bf-73f2-0310-859d-f6bbb57e9c96