History log of /haiku/src/apps/people/PictureView.cpp
Revision Date Author Comments
# db6fcb75 23-Sep-2019 Humdinger <humdingerb@gmail.com>

People: fix aspect ratio for square images

If you dropped a square image onto the image well, it was
squashed horizontally.

Change-Id: Ie5637fc242a1c5b7313234a87822bc43556cbe4d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1886
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


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


# fccd8899 02-Jan-2012 Philippe Saint-Pierre <stpere@gmail.com>

People: memory leak fix. CID 10694.


# 89aa6cbe 21-Mar-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Fix #7300:
* When saving, the internal bitmap wasn't detached from stream, which then
deleted it, paving the road to a crash at next bitmap access.
* When saved, notify PictureView that current and original pictures are
the same.

Also, add support for bitmap paste (needs more improvement) and
to avoid reloading picture on B_STAT_CHANGED after our own save operation.


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


# b70b735d 07-Mar-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Fix error message formating.


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


# 552c4460 02-Mar-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Change a bit the tooltip text, per Axel suggestion.


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


# d25cab17 02-Mar-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

* Check data size before trying to translate it into a picture image
* Remove leftover debug traces


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


# e5dca0c2 02-Mar-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

* Scale down a bit the picture view, now using the same ration than
official (passport, ID card) photos
* Add a tooltip to give user some hints on the picture "field"


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


# f22fe14c 28-Feb-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

* Implement "Load Image" popup menu.
* Implement B_COPY_TARGET drop event. People is not (yet) ready to
to be itself such target (copying a person picture to another one),
though.
* Remember the source type and MIME and use them to save the picture in same
format when possible.
* Avoid flickering when only focus is changing.



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


# 8cf55acf 24-Feb-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

When update the original image, we can't set it directly as its address has changed,
and _SetPicture() will then delete it behind our back.


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


# e23bbaff 24-Feb-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Factorize a bit more.


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


# bb0416a2 24-Feb-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

* PictureView is now keyboard navigable
* Alpha transparency of image is now respected
* Add a popup menu to load an image or remove the current one.
* The current picture can also be removed by pressing Delete key
* ... or by dragging the image to desktop's Trash


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


# 7a9ea6df 23-Feb-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Now center the picture in the frame.
Don't keep any storage reference, user should now called Update(entry_ref) when it changes.


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


# 435492ae 08-Feb-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

WIP to display/change/store in People files a picture.
Not yet integrated in the app as it needs a bit of work to give
him some place in the window without breaking too much
its visual appareance.


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


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


# fccd8899fcb583bfb73c5c26c9fcd714b963959b 02-Jan-2012 Philippe Saint-Pierre <stpere@gmail.com>

People: memory leak fix. CID 10694.


# 89aa6cbe13fc6e078cfc6046e1ca7893d903222c 21-Mar-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Fix #7300:
* When saving, the internal bitmap wasn't detached from stream, which then
deleted it, paving the road to a crash at next bitmap access.
* When saved, notify PictureView that current and original pictures are
the same.

Also, add support for bitmap paste (needs more improvement) and
to avoid reloading picture on B_STAT_CHANGED after our own save operation.


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


# b70b735dca68d2dc56931623c06983e1c7c02105 07-Mar-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Fix error message formating.


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


# 552c44608f3179fd36b3247f493de6a5668a98b8 02-Mar-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Change a bit the tooltip text, per Axel suggestion.


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


# d25cab17b0e251e9c6ffc2e4169c6434a175f793 02-Mar-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

* Check data size before trying to translate it into a picture image
* Remove leftover debug traces


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


# e5dca0c2c0d01d85b61762fb110c81ea06612707 02-Mar-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

* Scale down a bit the picture view, now using the same ration than
official (passport, ID card) photos
* Add a tooltip to give user some hints on the picture "field"


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


# f22fe14c4c6596df63b7bd811da69923d8c84972 28-Feb-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

* Implement "Load Image" popup menu.
* Implement B_COPY_TARGET drop event. People is not (yet) ready to
to be itself such target (copying a person picture to another one),
though.
* Remember the source type and MIME and use them to save the picture in same
format when possible.
* Avoid flickering when only focus is changing.



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


# 8cf55acfffbfa3caea2fbc4d25a6425dbffbeef5 24-Feb-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

When update the original image, we can't set it directly as its address has changed,
and _SetPicture() will then delete it behind our back.


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


# e23bbaff47e34f7beda8198012c59522e61aa971 24-Feb-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Factorize a bit more.


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


# bb0416a246118b535e761fa6a3462ee0a31a38c6 24-Feb-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

* PictureView is now keyboard navigable
* Alpha transparency of image is now respected
* Add a popup menu to load an image or remove the current one.
* The current picture can also be removed by pressing Delete key
* ... or by dragging the image to desktop's Trash


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


# 7a9ea6df3b05e159b07257021418945b51cf52ed 23-Feb-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Now center the picture in the frame.
Don't keep any storage reference, user should now called Update(entry_ref) when it changes.


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


# 435492aefc1389c23104399ff323404edd7070d6 08-Feb-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

WIP to display/change/store in People files a picture.
Not yet integrated in the app as it needs a bit of work to give
him some place in the window without breaking too much
its visual appareance.


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