History log of /haiku/src/apps/pairs/PairsView.cpp
Revision Date Author Comments
# d179e1fb 26-Jun-2016 Murai Takashi <tmurai01@gmail.com>

PairsView.cpp: Fix mismatching alloc and dealloc

Fixes #12834

Signed-off-by: John Scipione <jscipione@gmail.com>


# fa19dd44 10-Dec-2015 looncraz <looncraz@looncraz.net>

apps: Convert to using Set*UIColor.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0045-0075, 0077-0087 from looncraz, unmodified.


# e646703a 27-Jan-2014 John Scipione <jscipione@gmail.com>

Pairs: Fix gcc4 build some more, include stdlib.h


# fdc05529 27-Jan-2014 John Scipione <jscipione@gmail.com>

IconSaver: add authors to authors list

…already in copyright statements


# 97e1b053 27-Jan-2014 John Scipione <jscipione@gmail.com>

Pairs: store vector icons, new size menu

* Search for vector icons from MIME database once at start,
limit to application super-type, this fulfills a TODO in the code
* Use a std::map keyed by a hash to avoid duplicate icons
eliminating _HasBitmap()
* Store the vector representation and then only build bitmaps
when needed
* Convert uses of int to int32
* Convert from using BList to BObjectList, simplified cleanup
* Rename variables and methods to not abbreviate/be more clear
e.g. fPosX, fPosY => fPositionX, fPositionY
e.g. _GenerateCardPos() => _GenerateCardPositions()
* Renamed PairsTopButton to PairsButton
* Integrate Size submenu into New menu item.
Size menu item goes away, you can select New to get a new game at
the current difficulty, or, you can drill down in the New menu to
choose from Beginner, Intermediate, or Expert.
* Add new Size menu to set the icon size: Small (32x32), Medium (64x64),
or Large (128x128). Default is medium
* Rename MENU_SIZE message constant to MENU_DIFFICULTY for clarity
* Eliminate PairsGlobal.h, distribute constants to appropriate files.


# c6b0a589 21-Jan-2014 John Scipione <jscipione@gmail.com>

Pairs: Style fixes and update copyright headers.

Update long description in rdef


# 7f4d1af4 04-Jan-2013 Sergei Reznikov <diver@gelios.net>

Compilation fixes for x86_64.

Added quite a few missing components to image:

alert arp bc CortexAddOnHost

CDPlayer CharacterMap DeskCalc
Devices DiskUsage Expander LaunchBox MediaConverter NetworkStatus
PoorMan Pulse Screenshot ShowImage SoundRecorder TV Workspaces

DataTranslations Media Printers ScreenSaver

BSnow Cortex FontDemo OverlayImage Pairs

cddb_daemon midi_server power_daemon print_server print_addon_server

Canon LIPS3 Compatible Canon LIPS4 Compatible Gutenprint
PCL5 Compatible PCL6 Compatible PDF Writer PS Compatible

libgame.so libmedia.so

Signed-off-by: Alex Smith <alex@alex-smith.me.uk>


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


# 5b264395 30-Oct-2011 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by Karvjorm (#7348): localize Pairs application name.


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


# 4eb0cbb0 07-May-2010 Matt Madia <mattmadia@gmail.com>

Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.


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


# 99d126bd 06-May-2010 Matt Madia <mattmadia@gmail.com>

Updated to use B_TRANSLATE* macros. relates to #5408.

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


# 6977563b 05-May-2010 Stephan Aßmus <superstippi@gmx.de>

Fixed include order which slipped my attention when reviewing the patch,
thanks Jerome!


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


# 420557d0 06-May-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Jorma Karvonen with a fix by myself to remove string composition.
Add four missing localizations. Closes ticket #5484.


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


# 4c587ade 05-Apr-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Adam Smith. Extended the Pairs application to support arbitrary board
sizes. Thanks a lot! Fixes ticket #5615.


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


# 84df7867 27-Feb-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by stargater : localize pairs. Thanks !


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


# 2748e5b7 15-Oct-2008 Stephan Aßmus <superstippi@gmx.de>

patch by Artur Wyszynski:
Build fix.


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


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

* When adding new bitmaps, Pairs now checks if it already got it (in case two
apps are using the same icon).
* This fixes bug #2694.


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


# 0eb592d7 12-Aug-2008 Axel Dörfler <axeld@pinc-software.de>

* Fixed off by one error in the number of clicks to finish the game (it can
hardly be odd).
* Fixed spelling error Genarate -> Generate.
* Minor cleanup.


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


# cb2afe5c 28-Apr-2008 Stephan Aßmus <superstippi@gmx.de>

Patch by Ralf Schuelke with changes/fixes by myself:
* Pick 8 random icons from the application and preference folders
* Pick 8 different icons when the game starts again


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


# 69e62e48 23-Apr-2008 Stephan Aßmus <superstippi@gmx.de>

Added Pairs game contributed by Ralf Schuelke to the image! (Demo folder)
Thanks a lot, Ralf!


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


# e646703a6e626bf799901452ccc4a311cfe2ee3b 27-Jan-2014 John Scipione <jscipione@gmail.com>

Pairs: Fix gcc4 build some more, include stdlib.h


# fdc055299718951a44e0fcd2dce7cda075190eec 27-Jan-2014 John Scipione <jscipione@gmail.com>

IconSaver: add authors to authors list

…already in copyright statements


# 97e1b053b63ba10e037388a4e21bcb93a3220210 27-Jan-2014 John Scipione <jscipione@gmail.com>

Pairs: store vector icons, new size menu

* Search for vector icons from MIME database once at start,
limit to application super-type, this fulfills a TODO in the code
* Use a std::map keyed by a hash to avoid duplicate icons
eliminating _HasBitmap()
* Store the vector representation and then only build bitmaps
when needed
* Convert uses of int to int32
* Convert from using BList to BObjectList, simplified cleanup
* Rename variables and methods to not abbreviate/be more clear
e.g. fPosX, fPosY => fPositionX, fPositionY
e.g. _GenerateCardPos() => _GenerateCardPositions()
* Renamed PairsTopButton to PairsButton
* Integrate Size submenu into New menu item.
Size menu item goes away, you can select New to get a new game at
the current difficulty, or, you can drill down in the New menu to
choose from Beginner, Intermediate, or Expert.
* Add new Size menu to set the icon size: Small (32x32), Medium (64x64),
or Large (128x128). Default is medium
* Rename MENU_SIZE message constant to MENU_DIFFICULTY for clarity
* Eliminate PairsGlobal.h, distribute constants to appropriate files.


# c6b0a589df98b29405084ccb4a1d67dddd693648 21-Jan-2014 John Scipione <jscipione@gmail.com>

Pairs: Style fixes and update copyright headers.

Update long description in rdef


# 7f4d1af49dd1d67ecbf1d934eddd92cae7c4c558 04-Jan-2013 Sergei Reznikov <diver@gelios.net>

Compilation fixes for x86_64.

Added quite a few missing components to image:

alert arp bc CortexAddOnHost

CDPlayer CharacterMap DeskCalc
Devices DiskUsage Expander LaunchBox MediaConverter NetworkStatus
PoorMan Pulse Screenshot ShowImage SoundRecorder TV Workspaces

DataTranslations Media Printers ScreenSaver

BSnow Cortex FontDemo OverlayImage Pairs

cddb_daemon midi_server power_daemon print_server print_addon_server

Canon LIPS3 Compatible Canon LIPS4 Compatible Gutenprint
PCL5 Compatible PCL6 Compatible PDF Writer PS Compatible

libgame.so libmedia.so

Signed-off-by: Alex Smith <alex@alex-smith.me.uk>


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


# 5b264395c068fa5a9b22121bafc5ae58197710e6 30-Oct-2011 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by Karvjorm (#7348): localize Pairs application name.


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


# 4eb0cbb044cf538f18c0d252934a5bcaa33bfd34 07-May-2010 Matt Madia <mattmadia@gmail.com>

Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.


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


# 99d126bd7c6ec5cf4745677f6b50a34a67c7083e 06-May-2010 Matt Madia <mattmadia@gmail.com>

Updated to use B_TRANSLATE* macros. relates to #5408.

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


# 6977563bf89ccd1e744e2f2cf1a41e242d87f6a1 05-May-2010 Stephan Aßmus <superstippi@gmx.de>

Fixed include order which slipped my attention when reviewing the patch,
thanks Jerome!


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


# 420557d0ce8aa1b24644c172457c2ac3f10292b3 06-May-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Jorma Karvonen with a fix by myself to remove string composition.
Add four missing localizations. Closes ticket #5484.


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


# 4c587ade77bcb200752de38521ebcad77b37fee8 05-Apr-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Adam Smith. Extended the Pairs application to support arbitrary board
sizes. Thanks a lot! Fixes ticket #5615.


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


# 84df7867f804b4d4aa9a591bb078c2d1332242e3 27-Feb-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by stargater : localize pairs. Thanks !


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


# 2748e5b7f66ab5b511ef8c49af78423db9c041e9 15-Oct-2008 Stephan Aßmus <superstippi@gmx.de>

patch by Artur Wyszynski:
Build fix.


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


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

* When adding new bitmaps, Pairs now checks if it already got it (in case two
apps are using the same icon).
* This fixes bug #2694.


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


# 0eb592d7feea6c1c77f7b361823e5c66fb96079e 12-Aug-2008 Axel Dörfler <axeld@pinc-software.de>

* Fixed off by one error in the number of clicks to finish the game (it can
hardly be odd).
* Fixed spelling error Genarate -> Generate.
* Minor cleanup.


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


# cb2afe5cc76f0a40b2419ecf9e0f50eeab99f0fe 28-Apr-2008 Stephan Aßmus <superstippi@gmx.de>

Patch by Ralf Schuelke with changes/fixes by myself:
* Pick 8 random icons from the application and preference folders
* Pick 8 different icons when the game starts again


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


# 69e62e48b96dc6382c64b07cfd86106fa7953a2e 23-Apr-2008 Stephan Aßmus <superstippi@gmx.de>

Added Pairs game contributed by Ralf Schuelke to the image! (Demo folder)
Thanks a lot, Ralf!


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