History log of /haiku/src/apps/screenshot/ScreenshotWindow.h
Revision Date Author Comments
# b285b436 21-Jan-2017 Gabriel Maia <gbl08ma@gmail.com>

Screenshot: better error handling on save

Show error messages when saving fails, to enmake sure the user is not
confused by thinking the file saved when the window doesn't close.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes #12945


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

Screenshot: Ignore delay on Print Screen

The delay variable is only considered when you push the
"New screenshot" button as suggested by diver.

Fixes #11447


# 5ff76056 06-Dec-2013 Freeman Lou <freemanlou2430@Yahoo.com>

Screenshot: Alt-D/H/A/F s.cuts to select target folder

* Fixes #7987.

- GCI 2013


# 8522ef24 18-Jun-2012 Adam Hartford <adam.s.hartford@gmail.com>

Fixed minor UI issues in Screenshot (Ticket #8378)

Signed-off-by: Alex Wilson <yourpalal2@gmail.com>


# 7235f868 19-Jul-2010 Wim van der Meer <wpjvandermeer@gmail.com>

Prevent the 'Settings...' button from opening multiple windows

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


# ba7d3b37 02-Jul-2010 Wim van der Meer <wpjvandermeer@gmail.com>

Adding a settings button to change translator settings, refer to ticket #3813

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


# 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


# 08c7fa9d 25-Apr-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Wim van der Meer fixing ticket #3814 (saving settings of the screenshot
application). Thanks a bunch!


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


# 0d84b313 13-Apr-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Shisui: Automatic filename basename selection and "Save" as default
button for Screenshot. Fixes #5626. Thanks a lot!


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


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

Change back _FindValidFileName to use BString, don't know what I was thinking, thanks Jerome and Stephan.

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


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

Screenshot:

* Add extension to the filename. It gets the extension from the BMimeType related to the chosen translator.
* When you change the output format, the extension change accordingly.
* Some variable name change (variable_name -> variableName)

Ticket #3728


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


# 8f1c6951 10-Aug-2009 Jonas Sundström <jonas@kirilla.com>

Use BWindow TabFrame property to find where to apply transparency.

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


# b8fe3ff4 09-Aug-2009 Jonas Sundström <jonas@kirilla.com>

Working but somewhat dodgy tab space transparency - for humdinger as per request #3813. Enjoy!

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


# f3d5fb86 02-May-2009 Philippe Saint-Pierre <stpere@gmail.com>

Cosmetic change for the border around the screenshot preview, as suggested in #3367.


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


# bb6301b2 24-Apr-2009 Philippe Saint-Pierre <stpere@gmail.com>

Ask confirmation in case the application would try to overwrite an existing file.

This is fixing ticket #3815.


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


# ae1cc083 29-Sep-2008 Karsten Heimrich <host.haiku@gmx.de>

* save the last output location
* save the last used output format
* save the last 5 choosen locations
* don't do any window init in silent mode



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


# fc3bed05 20-Sep-2008 Karsten Heimrich <host.haiku@gmx.de>

* implement saving
* have png and home as default
* still misses some kind of settings...



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


# 5ff76056f7497120765c7d6b13e73e0b540a911c 06-Dec-2013 Freeman Lou <freemanlou2430@Yahoo.com>

Screenshot: Alt-D/H/A/F s.cuts to select target folder

* Fixes #7987.

- GCI 2013


# 8522ef247b89a52a01ddde1813911eb63108e7d9 18-Jun-2012 Adam Hartford <adam.s.hartford@gmail.com>

Fixed minor UI issues in Screenshot (Ticket #8378)

Signed-off-by: Alex Wilson <yourpalal2@gmail.com>


# 7235f8680cc96a52097059ce7d93fc974a7372c9 19-Jul-2010 Wim van der Meer <wpjvandermeer@gmail.com>

Prevent the 'Settings...' button from opening multiple windows

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


# ba7d3b37f9a7850086826bef843fdf0183a6a9aa 02-Jul-2010 Wim van der Meer <wpjvandermeer@gmail.com>

Adding a settings button to change translator settings, refer to ticket #3813

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


# 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


# 08c7fa9db4289d528e6040dcb106902c3908781f 25-Apr-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Wim van der Meer fixing ticket #3814 (saving settings of the screenshot
application). Thanks a bunch!


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


# 0d84b3133439c9c988fc33babd83781378200349 13-Apr-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Shisui: Automatic filename basename selection and "Save" as default
button for Screenshot. Fixes #5626. Thanks a lot!


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


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

Change back _FindValidFileName to use BString, don't know what I was thinking, thanks Jerome and Stephan.

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


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

Screenshot:

* Add extension to the filename. It gets the extension from the BMimeType related to the chosen translator.
* When you change the output format, the extension change accordingly.
* Some variable name change (variable_name -> variableName)

Ticket #3728


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


# 8f1c695124347ac6005f6df4081ee352962d7849 10-Aug-2009 Jonas Sundström <jonas@kirilla.com>

Use BWindow TabFrame property to find where to apply transparency.

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


# b8fe3ff480bb51b9f6dc79ef8222fed0bb0c0165 09-Aug-2009 Jonas Sundström <jonas@kirilla.com>

Working but somewhat dodgy tab space transparency - for humdinger as per request #3813. Enjoy!

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


# f3d5fb8624362f9e5fef84410239124ed04930b9 02-May-2009 Philippe Saint-Pierre <stpere@gmail.com>

Cosmetic change for the border around the screenshot preview, as suggested in #3367.


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


# bb6301b2644d3124534c12b5e2011e885fd203fc 24-Apr-2009 Philippe Saint-Pierre <stpere@gmail.com>

Ask confirmation in case the application would try to overwrite an existing file.

This is fixing ticket #3815.


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


# ae1cc0838510ffb31713e716e80ba0bb064ec7c6 29-Sep-2008 Karsten Heimrich <host.haiku@gmx.de>

* save the last output location
* save the last used output format
* save the last 5 choosen locations
* don't do any window init in silent mode



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


# fc3bed0577122204c91defdf8425b46d5a0df336 20-Sep-2008 Karsten Heimrich <host.haiku@gmx.de>

* implement saving
* have png and home as default
* still misses some kind of settings...



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