History log of /haiku/src/apps/screenshot/Screenshot.cpp
Revision Date Author Comments
# 644c29d0 07-Jan-2022 Augustin Cavalier <waddlesplash@gmail.com>

Adjust all in-tree applications after BBitmap::ImportBits API changes.

Change-Id: If3a06f35c01089cdbb696de479984f2b59fce7a0


# bcd52c65 31-Mar-2016 John Scipione <jscipione@gmail.com>

Screenshot: Don't take screenshot of open menu

...take screenshot of window with the menu open instead.

menus are windows, this is an implementation detail.


# b2a0b632 25-Jul-2015 Jérôme Duval <jerome.duval@gmail.com>

screenshot: fixed parenthesis warning on not operator...

* "logical not is only applied to the left hand side of comparison"
* found with GCC6


# 3aeed660 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# cc946437 30-Jan-2014 Axel Dörfler <axeld@pinc-software.de>

Screenshot: fixed alpha channel handling.

* Screenshot always used B_RGBA32 color space, but did not care about the
alpha channel at all. Now it only uses that space when "includeBorder"
is used.
* Utility::_MakeTabSpaceTransparent() now also makes sure that the rest
of the bitmap has the correct alpha channel set. This fixes bug #10491.
* Minor cleanup.


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


# e414da37 16-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

CID 1584 : NULL dereference on low memory situations (get_window_info does a malloc that may fail)


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


# be8fa2fb 02-Jul-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Update all applications in tree to use the new localizing system
* Remove the old one from the locale librairy, with some cleanup
Known regressions :
* readonlybootprompt will no longer update the locale settings : the
method used messed with internal undocumented things
* external localized apps (webpositive for example) will not run
anymore.


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


# 0c9f5a02 25-Jun-2010 Wim van der Meer <wpjvandermeer@gmail.com>

* Modified PtrScr key behaviour:
- No modifiers: take a screenshot with zero delay and launch the GUI
- Shift-PrtScr: Silent screenshot using the saved GUI settings
- Ctrl-PrtScr: Take a screenshot using the saved GUI settings and copy the
screenshot to the system clipboard
* A few locale related changes (I am not sure how this works when a class is
shared between two applications, I hope I got everything right)



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


# fc0d4948 10-Jun-2010 Wim van der Meer <wpjvandermeer@gmail.com>

Forgot to change the application signature in one location

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


# 3417d2a9 08-Jun-2010 Wim van der Meer <wpjvandermeer@gmail.com>

* Rename "ScreenshotApp" to "Screenshot", rename its signature from
"application/x-vnd.haiku-screenshotapp" to "application/x-vnd.haiku-screenshot"
* Rename "Screenshot" to "screenshot", rename its signature from
"application/x-vnd.haiku-screenshot" to "application/x-vnd.haiku-screenshot-cli"
* Move screenshot from /system/apps to /bin


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


# 2ec6b3cf 05-Jun-2010 Wim van der Meer <wpjvandermeer@gmail.com>

Screenshot application enhancements:
- Remove the options panel, and the "-o, --options" switch, put all options
inside the main panel as discussed in ticket #3831.
- Add a "Copy to clipboard" button, as discussed in ticket #3831.
- Add a "-c, --clipboard" switch to quickly copy a screenshot to the clipboard
without launching the GUI.
- All settings apply directly to the current schreenshot as well as new
Screenshots, as discussed in ticket #4100.
- Separate executables for the CLI (Screenshot) and GUI (ScreenshotApp).
When "Screenshot" is launched it runs in the background, and launches the
GUI (if not run with the -s or -c switch) before quiting itself. When a new
screenshot is requested through the ScreenshotApp GUI interface,
ScreenshotApp launches Screenshot before quiting itself, after which
Screenshot re-launches ScreenshotApp. This fixes ticket #4100.
Note that because of this change the deskbar entry will show "ScreenshotApp"
and not "Screenshot" as might be expected. I am not sure if this is a
problem.
- Fixed the code that determines the active window because it was just finding
the top most window. This change fixes tickets #3112, #4878, and #4423.
- Hide the cursor by calling BApplication::HideCursor().
This fixes ticket #2988 (but *not* #2997).


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


# c9ec9c72 19-Apr-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by augiedoggie: Remove the hardcoded translator_id values from Screenshot.
Fixes ticket #5733. Thanks a lot! (Note: small coding style fixes by myself,
so expect merge conflicts.)


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


# 362b036d 15-Apr-2010 Axel Dörfler <axeld@pinc-software.de>

* Applied a slightly edited patch by Christophe Huriaux, as part of ticket
#5724: this adds a settable filename for the silent invocation, thanks!


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


# e5b2296d 18-Feb-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Localization of Screenshot app, done by mt. Thanks !


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


# 689b99a7 19-Nov-2009 Fredrik Modeen <fredrik@modeen.se>

Additional CLI parameters for Screeshot (Ticket #3816) and some cleanup (I hope), using Translator kit now instead of own PNG when using CLI. More changes will follow.

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


# f3f9e93a 18-Aug-2009 Ryan Leavengood <leavengood@gmail.com>

Some application MIME signature fixing.

We really should come up with a way to avoid the duplication between the rdef
and source code...


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


# fcafc3a5 15-Aug-2009 Philippe Saint-Pierre <stpere@gmail.com>

Screenshot command line arguments :
* make Screenshot exit gracefully if no argument is given in combination of -d parameter
* honor the delay parameter when also used with the --silent parameter



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


# 05f5d734 26-Apr-2009 Joachim Seemer <humdingerb@googlemail.com>

Corrections to strings in Screenshot app. See #3817.

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


# aeaeba65 25-Apr-2009 Joachim Seemer <humdingerb@googlemail.com>

* Changed a few strings in Screenshot's interface and related function names.
Closes ticket #3817.


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


# ef52eb17 30-Sep-2008 Karsten Heimrich <host.haiku@gmx.de>

* make sure we close the app on ESCAPE
* do not launch a second window in case of RefsReceived



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


# 4ae1ed90 19-Sep-2008 Karsten Heimrich <host.haiku@gmx.de>

use whitespaces instead of dots



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


# 9b4277bd 19-Sep-2008 Karsten Heimrich <host.haiku@gmx.de>

* typos


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


# 9f07ffa3 19-Sep-2008 Karsten Heimrich <host.haiku@gmx.de>

* reorganize options
* implement silent mode using the existing BWindow code



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


# a75264d3 17-Sep-2008 Karsten Heimrich <host.haiku@gmx.de>

* small screenshot app that was once discussed
* misses a proper icon and does not save atm...



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


# b2a0b6323e67b7285efd1767a0e0a439853e8bf5 25-Jul-2015 Jérôme Duval <jerome.duval@gmail.com>

screenshot: fixed parenthesis warning on not operator...

* "logical not is only applied to the left hand side of comparison"
* found with GCC6


# 3aeed6607cd07762c0e709633c012b3a632dbad9 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# cc9464372450658c8cb898b2f8b3b91fbd3a0834 30-Jan-2014 Axel Dörfler <axeld@pinc-software.de>

Screenshot: fixed alpha channel handling.

* Screenshot always used B_RGBA32 color space, but did not care about the
alpha channel at all. Now it only uses that space when "includeBorder"
is used.
* Utility::_MakeTabSpaceTransparent() now also makes sure that the rest
of the bitmap has the correct alpha channel set. This fixes bug #10491.
* Minor cleanup.


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


# e414da37a116f76dcd35a50569050da9dc0024fa 16-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

CID 1584 : NULL dereference on low memory situations (get_window_info does a malloc that may fail)


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


# be8fa2fb3088ab1921612b60f352dd9334b40b3d 02-Jul-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Update all applications in tree to use the new localizing system
* Remove the old one from the locale librairy, with some cleanup
Known regressions :
* readonlybootprompt will no longer update the locale settings : the
method used messed with internal undocumented things
* external localized apps (webpositive for example) will not run
anymore.


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


# 0c9f5a026f4ccc18b4e8e51b8d907818e3cafa3b 25-Jun-2010 Wim van der Meer <wpjvandermeer@gmail.com>

* Modified PtrScr key behaviour:
- No modifiers: take a screenshot with zero delay and launch the GUI
- Shift-PrtScr: Silent screenshot using the saved GUI settings
- Ctrl-PrtScr: Take a screenshot using the saved GUI settings and copy the
screenshot to the system clipboard
* A few locale related changes (I am not sure how this works when a class is
shared between two applications, I hope I got everything right)



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


# fc0d49483eb8436427d450dbceb310f0581123c5 10-Jun-2010 Wim van der Meer <wpjvandermeer@gmail.com>

Forgot to change the application signature in one location

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


# 3417d2a90ffb7003567e39ae83924364283929f1 08-Jun-2010 Wim van der Meer <wpjvandermeer@gmail.com>

* Rename "ScreenshotApp" to "Screenshot", rename its signature from
"application/x-vnd.haiku-screenshotapp" to "application/x-vnd.haiku-screenshot"
* Rename "Screenshot" to "screenshot", rename its signature from
"application/x-vnd.haiku-screenshot" to "application/x-vnd.haiku-screenshot-cli"
* Move screenshot from /system/apps to /bin


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


# 2ec6b3cf5dd9cd47c57249233320603251df47b3 05-Jun-2010 Wim van der Meer <wpjvandermeer@gmail.com>

Screenshot application enhancements:
- Remove the options panel, and the "-o, --options" switch, put all options
inside the main panel as discussed in ticket #3831.
- Add a "Copy to clipboard" button, as discussed in ticket #3831.
- Add a "-c, --clipboard" switch to quickly copy a screenshot to the clipboard
without launching the GUI.
- All settings apply directly to the current schreenshot as well as new
Screenshots, as discussed in ticket #4100.
- Separate executables for the CLI (Screenshot) and GUI (ScreenshotApp).
When "Screenshot" is launched it runs in the background, and launches the
GUI (if not run with the -s or -c switch) before quiting itself. When a new
screenshot is requested through the ScreenshotApp GUI interface,
ScreenshotApp launches Screenshot before quiting itself, after which
Screenshot re-launches ScreenshotApp. This fixes ticket #4100.
Note that because of this change the deskbar entry will show "ScreenshotApp"
and not "Screenshot" as might be expected. I am not sure if this is a
problem.
- Fixed the code that determines the active window because it was just finding
the top most window. This change fixes tickets #3112, #4878, and #4423.
- Hide the cursor by calling BApplication::HideCursor().
This fixes ticket #2988 (but *not* #2997).


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


# c9ec9c7211c873a4798ffbb6d0ccb9b9770551fa 19-Apr-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by augiedoggie: Remove the hardcoded translator_id values from Screenshot.
Fixes ticket #5733. Thanks a lot! (Note: small coding style fixes by myself,
so expect merge conflicts.)


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


# 362b036d1a2032318cb99a8404fb86d67e2d8bbf 15-Apr-2010 Axel Dörfler <axeld@pinc-software.de>

* Applied a slightly edited patch by Christophe Huriaux, as part of ticket
#5724: this adds a settable filename for the silent invocation, thanks!


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


# e5b2296d483e9475547f6334183166e6d5ed10e4 18-Feb-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Localization of Screenshot app, done by mt. Thanks !


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


# 689b99a74c8ae7dc1d93b19d4a8671948dab1a88 19-Nov-2009 Fredrik Modeen <fredrik@modeen.se>

Additional CLI parameters for Screeshot (Ticket #3816) and some cleanup (I hope), using Translator kit now instead of own PNG when using CLI. More changes will follow.

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


# f3f9e93a0c3c7f559ad21a203bc65628fc6a0e62 18-Aug-2009 Ryan Leavengood <leavengood@gmail.com>

Some application MIME signature fixing.

We really should come up with a way to avoid the duplication between the rdef
and source code...


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


# fcafc3a5bbc03d127e703daddd8f4aadf74c7835 15-Aug-2009 Philippe Saint-Pierre <stpere@gmail.com>

Screenshot command line arguments :
* make Screenshot exit gracefully if no argument is given in combination of -d parameter
* honor the delay parameter when also used with the --silent parameter



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


# 05f5d7346eee34734127649aeba7c080cdc97eb2 26-Apr-2009 Joachim Seemer <humdingerb@googlemail.com>

Corrections to strings in Screenshot app. See #3817.

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


# aeaeba65e9ca4e28d3836f5694e1a0c771219aed 25-Apr-2009 Joachim Seemer <humdingerb@googlemail.com>

* Changed a few strings in Screenshot's interface and related function names.
Closes ticket #3817.


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


# ef52eb17eaf4a736103f48e278d3dcc2af948b9e 30-Sep-2008 Karsten Heimrich <host.haiku@gmx.de>

* make sure we close the app on ESCAPE
* do not launch a second window in case of RefsReceived



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


# 4ae1ed90b834aa3ba289c57798ae5fd6fef9f4d1 19-Sep-2008 Karsten Heimrich <host.haiku@gmx.de>

use whitespaces instead of dots



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


# 9b4277bd7584ff95556c8c8e181078716a7dc0c5 19-Sep-2008 Karsten Heimrich <host.haiku@gmx.de>

* typos


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


# 9f07ffa384d19bcc4ca0f232015bbfa8325d1d1b 19-Sep-2008 Karsten Heimrich <host.haiku@gmx.de>

* reorganize options
* implement silent mode using the existing BWindow code



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


# a75264d3f6fdda0f26b0d6b20357209d72c9660a 17-Sep-2008 Karsten Heimrich <host.haiku@gmx.de>

* small screenshot app that was once discussed
* misses a proper icon and does not save atm...



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