History log of /haiku/src/apps/sudoku/SudokuWindow.cpp
Revision Date Author Comments
# 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.


# 4df20b63 14-Sep-2015 Axel Dörfler <axeld@pinc-software.de>

Sudoku: improve initial window size, and position.

* By making it scale with the font size, and by using
BWindow::MoveOnScreen().


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


# aed35104 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


# 546208a5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 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


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

Use resource definition files instead of DoCatalogs rule. Rename B_TRANSLATE_APP_NAME and related macros to the more generic B_TRANSLATE_SYSTEM_NAME, to also fits add-ons, folders, etc, and make 'System name' its standard context. Change CodyCam and PoorMan's app signatures to match the overall x-vnd.Haiku-App pattern. Some clean-up. Make SlideShowSaver build again.

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


# 71302e7c 16-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Further localization. Making use of B_TRANSLATE_APP_NAME, AboutWindow. Cleanups. Please review/test changes in Terminal.

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


# 7b2d2670 08-Mar-2011 Axel Dörfler <axeld@pinc-software.de>

* Fixed style violations introduced with the previous patch, and a few more
that were already present.
* Removed one more case of excessive translating that I missed before.


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


# 15301dc4 08-Mar-2011 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by Karvjorm that localizes Sudoku - thanks!
* I removed translating the debug output, though. Style fixes come in the next
commit with the hope for improvement in future patches.


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


# 2b9ec0a9 19-Feb-2010 Axel Dörfler <axeld@pinc-software.de>

* Added SudokuField::IsEmpty() method.
* The window now automatically generates a new sudoku if empty on start.
* Made SudokuField::IsSolved() const.


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


# 3d2b15cd 14-Feb-2010 Axel Dörfler <axeld@pinc-software.de>

* Reorganized the new/generate menus a bit; the last level will now be
remembered, and a "new" will just continue in this level.


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


# 7974d3dc 13-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Humdinger:
Updated Haiku apps to use sentence-case. What a huge undertaking...
The files where I had to apply the patch manually (for mysterious
reasons) have also gotten a whitespace cleanup. I've proof-read
everything so hopefully there should be no problems.

This should be the final part of #5169.


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


# fb3e35fc 22-Jan-2009 Michael Lotz <mmlr@mlotz.ch>

Fixing all headers/namespaces/name lookup problems that hinder a GCC 4.3.2
build. I sure hope that this doesn't break the build for anyone else.


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


# 5d029ca0 16-Nov-2008 Axel Dörfler <axeld@pinc-software.de>

* Renamed settings file (removed the "pinc" part of it).
* Removed BeOS compatible flag from the subdir.


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


# 61fc0bb6 15-Oct-2008 Axel Dörfler <axeld@pinc-software.de>

* Adjusted the difficulty levels a bit to fit better with what you likely get.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28131 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


# 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


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

Now allows you to store a state of the current puzzle, and to restore it later on.


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


# 77468469 01-Oct-2007 Axel Dörfler <axeld@pinc-software.de>

* The ProgressWindow now starts centered over the reference window on every
open.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22393 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


# 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


# 4df20b63c0886c4d31fd28bc5fa4bcba81071a8e 14-Sep-2015 Axel Dörfler <axeld@pinc-software.de>

Sudoku: improve initial window size, and position.

* By making it scale with the font size, and by using
BWindow::MoveOnScreen().


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


# aed35104852941f0f6f3d1dcc5338b5f337d0a3c 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


# 546208a53940a26c6379c48a7854ade1a8250fc5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 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


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

Use resource definition files instead of DoCatalogs rule. Rename B_TRANSLATE_APP_NAME and related macros to the more generic B_TRANSLATE_SYSTEM_NAME, to also fits add-ons, folders, etc, and make 'System name' its standard context. Change CodyCam and PoorMan's app signatures to match the overall x-vnd.Haiku-App pattern. Some clean-up. Make SlideShowSaver build again.

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


# 71302e7c6dbf98040eb000175a2545d0de63fdc8 16-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Further localization. Making use of B_TRANSLATE_APP_NAME, AboutWindow. Cleanups. Please review/test changes in Terminal.

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


# 7b2d26701f40213586957359f2671c179a2a692e 08-Mar-2011 Axel Dörfler <axeld@pinc-software.de>

* Fixed style violations introduced with the previous patch, and a few more
that were already present.
* Removed one more case of excessive translating that I missed before.


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


# 15301dc49b5596b4e4f485f1d5e5b86dab596e11 08-Mar-2011 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by Karvjorm that localizes Sudoku - thanks!
* I removed translating the debug output, though. Style fixes come in the next
commit with the hope for improvement in future patches.


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


# 2b9ec0a9aaf5bf0f6cfcbe69d27b4c853809b8f7 19-Feb-2010 Axel Dörfler <axeld@pinc-software.de>

* Added SudokuField::IsEmpty() method.
* The window now automatically generates a new sudoku if empty on start.
* Made SudokuField::IsSolved() const.


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


# 3d2b15cdf9a4ad036e978f68a37cb1f09e7dda17 14-Feb-2010 Axel Dörfler <axeld@pinc-software.de>

* Reorganized the new/generate menus a bit; the last level will now be
remembered, and a "new" will just continue in this level.


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


# 7974d3dcf39ce78e5885b481eee12e561ad6e096 13-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Humdinger:
Updated Haiku apps to use sentence-case. What a huge undertaking...
The files where I had to apply the patch manually (for mysterious
reasons) have also gotten a whitespace cleanup. I've proof-read
everything so hopefully there should be no problems.

This should be the final part of #5169.


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


# fb3e35fcec1ef41b413b3b121764509f436dee4d 22-Jan-2009 Michael Lotz <mmlr@mlotz.ch>

Fixing all headers/namespaces/name lookup problems that hinder a GCC 4.3.2
build. I sure hope that this doesn't break the build for anyone else.


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


# 5d029ca0bd87f25658f57916cd7d8454cdb43072 16-Nov-2008 Axel Dörfler <axeld@pinc-software.de>

* Renamed settings file (removed the "pinc" part of it).
* Removed BeOS compatible flag from the subdir.


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


# 61fc0bb6be70f55e2cdd4331b4d9750878a09450 15-Oct-2008 Axel Dörfler <axeld@pinc-software.de>

* Adjusted the difficulty levels a bit to fit better with what you likely get.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28131 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


# 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


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

Now allows you to store a state of the current puzzle, and to restore it later on.


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


# 7746846941ab2a2fdc5492daabd785032c7f8a2a 01-Oct-2007 Axel Dörfler <axeld@pinc-software.de>

* The ProgressWindow now starts centered over the reference window on every
open.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22393 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


# 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