History log of /haiku/src/apps/showimage/ShowImageApp.h
Revision Date Author Comments
# be63ec85 07-Apr-2015 Janus <janus2@ymail.com>

Showimage: Wait for loader threads on exit.

* Uses find_thread to wait for loader threads.
(better solutions are welcome)
* As suggested by Axel the cache isn't static anymore.
* Fixes 8902.


# 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


# 5b76e505 19-Feb-2011 Stephan Aßmus <superstippi@gmx.de>

Two unrelated features mangled into one commit:
* Added a Rating menu to the ShowImage window, to easily
give the current image a rating (uses same attribute as other
types of media, i.e. MediaPlayer).
* ShowImage no longer tries to adapt the window size of newly
opened windows to the image that is loaded into them. I've found
that the most annoying ShowImage misbehavior. I don't know why
this was thought to be a good idea, maybe it was useful in
BeOS presentations when you select 20 images in a folder and
make them pop up all at once. I however use ShowImage mainly
to view at fotos, all of which are larger than my screen, so
ShowImage would basically _aÃlways_cover up everything, even
though there is the fullscreen mode for that. Now, ShowImage
remembers the last used window position, new windows will open
at an offset. In another words, you can now have a Tracker
folder of images open, view one, close the window, view another,
ShowImage will open at the previous location, all very convenient
and expected.


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


# 3b693801 19-Feb-2011 Stephan Aßmus <superstippi@gmx.de>

Small cleanups, no functional change.


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


# e2069723 14-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Removed the "shrink to window" option. Instead, there is now a "Fit to window"
menu item that just does that. Additionally, the image is always fit to the
window size when first shown, or if the full screen mode switches.
That also fixes #6765, and #6810.
* The ImageCache now also passes a referenced BitmapOwner object, and bitmaps
are now actually freed when it's allowed to.
* Pressing the zoom button will cause ShowImage to enter full screen again. For
some reason this has been removed as part of r19540.
* The progress window is now visible again, although not that often, as you will
only see it for images that were not in the queue already. The window is now
known to the ShowImageWindow instead of the ShowImageView.
* Moved most constants out of ShowImageConstants.h to where they belong.
* Dropping an image now opens it in another window.
* Removed EntryMenuItem as it's no longer used anywhere.
* Minor other cleanup.


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


# ba3217ee 03-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Moved the Tracker navigation logic into its own class, TrackerNavigation.
* Added a new class FolderNavigation that implements the same for folders
without a Tracker window.
* ImageFileNavigator is now using either one depending on whether it got a
valid tracker messenger.
* Removed some unused/unneeded methods.
* Made entry_ref a reference at some more methods, as it's not really optional.


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


# 745226bd 03-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Got rid of the useless fTrackerMessenger field.
* Ordered the methods in declaration order. Ordered BWindow hooks in "run"
order.
* Renamed private methods to have the '_' prefix.


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


# 1ed4535f 22-Mar-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by mt. Localization and conversion to use the layout API with coding style
fixes along the way. Thanks a lot! Fixes #5563.


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


# 8c1ad886 13-Aug-2009 Ryan Leavengood <leavengood@gmail.com>

- Cleanup to match coding guidelines. The header cleanup might have been
overkill.
- Updating some copyright years.
- ResizerWindow.h was not self-contained.

Some of the other files were skipped due to complexity and planned code changes.



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


# a8df1e64 12-Feb-2006 Jérôme Duval <korli@users.berlios.de>

hopefully fixed build and warnings for bug #142


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


# efa8b4f3 06-Feb-2006 Axel Dörfler <axeld@pinc-software.de>

Fixed various issues:
* ArgvReceived() did not work with relative paths.
* Simplified quitting (no more CanQuit() and overriding BWindow::Quit()).
* Updated signature.
* Cleanup.


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


# 134d6076 20-Jan-2004 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Use Tracker Scripting to find next/previous image.


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


# a8fc7138 25-Nov-2003 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

- Implemented Floyd Steinberg dithering algorithm.
- Remembers "orientation" state (rotated, mirrored or inverted) in file attribute of image.
- Update recent documents menu every time the menu is opened.
- Bug fix and optimization in Filter.cpp.
- Moved image manipulation code from ShowImageView.cpp to Filter.cpp. So it can take advantage of multiple CPUs.
- Experimental: Write/remove thumbnail to/from file icons.


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


# d3046f7d 19-Nov-2003 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

- Made some settings persistent: Slide Show Delay, Scale Bilinear, Shrink/Zoom to Window, Show Caption in Full Screen Mode and PrintOptions persistent.


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


# 402c09e5 18-Nov-2003 Matthew Wilber <mwilber@nowhere.fake>

Added code to enable / disable the Edit->Paste menu item when the contents of the clipboard change


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


# d10d5947 09-Nov-2003 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

- added recent documents sub menu
- added resize window to image size when file is opened
- added drag and drop selection
- added copy selection to clipboard


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


# ad13f387 06-Nov-2003 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

- added full screen mode
- added dia show
- added rotate image clockwise, anti-clockwise, mirror image vertical or -horiztonal and invert image
- added myself to about dialog and copyright holders


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


# 7eca0987 04-Nov-2003 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

- added option resize image to window size
- added show next/previous file using Command + Cursor Up/Down key
- rewrote selection code
- added marching ants
- renamed member variables to start with capital letter after field prefix


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


# cdb89ebb 02-Aug-2003 Matthew Wilber <mwilber@nowhere.fake>

Change to have a more consistent coding style, eliminated unused / unessecary code, added MIT license notice, prevented image window from closing when a save panel is open, prevented the user from opening multiple save panels for a single image window, etc.


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


# 07caaa8e 02-Aug-2003 Matthew Wilber <mwilber@nowhere.fake>

Simplified / cleaned up code, fixed close window behavior, changed status view text to show identify string


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


# 13afa642 22-Jul-2002 Phil Greenway <sikosis@gmail.com>

Initial Checkin. Coded by Fernando Francisco de Oliveira.


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


# be63ec85a81119bc21734d0c4dc7f2b150433ed3 07-Apr-2015 Janus <janus2@ymail.com>

Showimage: Wait for loader threads on exit.

* Uses find_thread to wait for loader threads.
(better solutions are welcome)
* As suggested by Axel the cache isn't static anymore.
* Fixes 8902.


# 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


# 5b76e505e566ce5eeff43dea561e94f787a230e6 19-Feb-2011 Stephan Aßmus <superstippi@gmx.de>

Two unrelated features mangled into one commit:
* Added a Rating menu to the ShowImage window, to easily
give the current image a rating (uses same attribute as other
types of media, i.e. MediaPlayer).
* ShowImage no longer tries to adapt the window size of newly
opened windows to the image that is loaded into them. I've found
that the most annoying ShowImage misbehavior. I don't know why
this was thought to be a good idea, maybe it was useful in
BeOS presentations when you select 20 images in a folder and
make them pop up all at once. I however use ShowImage mainly
to view at fotos, all of which are larger than my screen, so
ShowImage would basically _aÃlways_cover up everything, even
though there is the fullscreen mode for that. Now, ShowImage
remembers the last used window position, new windows will open
at an offset. In another words, you can now have a Tracker
folder of images open, view one, close the window, view another,
ShowImage will open at the previous location, all very convenient
and expected.


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


# 3b693801a9221564c8780c9823cc3289b266030f 19-Feb-2011 Stephan Aßmus <superstippi@gmx.de>

Small cleanups, no functional change.


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


# e2069723097dcded429323414605cd250207d2c0 14-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Removed the "shrink to window" option. Instead, there is now a "Fit to window"
menu item that just does that. Additionally, the image is always fit to the
window size when first shown, or if the full screen mode switches.
That also fixes #6765, and #6810.
* The ImageCache now also passes a referenced BitmapOwner object, and bitmaps
are now actually freed when it's allowed to.
* Pressing the zoom button will cause ShowImage to enter full screen again. For
some reason this has been removed as part of r19540.
* The progress window is now visible again, although not that often, as you will
only see it for images that were not in the queue already. The window is now
known to the ShowImageWindow instead of the ShowImageView.
* Moved most constants out of ShowImageConstants.h to where they belong.
* Dropping an image now opens it in another window.
* Removed EntryMenuItem as it's no longer used anywhere.
* Minor other cleanup.


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


# ba3217eee8fd8e9db38d873d8c0d0225917d681f 03-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Moved the Tracker navigation logic into its own class, TrackerNavigation.
* Added a new class FolderNavigation that implements the same for folders
without a Tracker window.
* ImageFileNavigator is now using either one depending on whether it got a
valid tracker messenger.
* Removed some unused/unneeded methods.
* Made entry_ref a reference at some more methods, as it's not really optional.


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


# 745226bd2f8e0ac95bccec67eff6476c3d2ed060 03-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Got rid of the useless fTrackerMessenger field.
* Ordered the methods in declaration order. Ordered BWindow hooks in "run"
order.
* Renamed private methods to have the '_' prefix.


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


# 1ed4535f34076e9bba9ac8d3be534a96371def58 22-Mar-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by mt. Localization and conversion to use the layout API with coding style
fixes along the way. Thanks a lot! Fixes #5563.


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


# 8c1ad886ee4b203883119c567543a653a8d86627 13-Aug-2009 Ryan Leavengood <leavengood@gmail.com>

- Cleanup to match coding guidelines. The header cleanup might have been
overkill.
- Updating some copyright years.
- ResizerWindow.h was not self-contained.

Some of the other files were skipped due to complexity and planned code changes.



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


# a8df1e64944c87c4d3ff74e5a56bbeb1a113793e 12-Feb-2006 Jérôme Duval <korli@users.berlios.de>

hopefully fixed build and warnings for bug #142


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


# efa8b4f3922f0ff26c80078e6d51ebe52cba9735 06-Feb-2006 Axel Dörfler <axeld@pinc-software.de>

Fixed various issues:
* ArgvReceived() did not work with relative paths.
* Simplified quitting (no more CanQuit() and overriding BWindow::Quit()).
* Updated signature.
* Cleanup.


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


# 134d60764764350d5bf693fcbbc49b190426a4ca 20-Jan-2004 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

Use Tracker Scripting to find next/previous image.


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


# a8fc713847bb28899eca54d19c581895ec324edd 25-Nov-2003 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

- Implemented Floyd Steinberg dithering algorithm.
- Remembers "orientation" state (rotated, mirrored or inverted) in file attribute of image.
- Update recent documents menu every time the menu is opened.
- Bug fix and optimization in Filter.cpp.
- Moved image manipulation code from ShowImageView.cpp to Filter.cpp. So it can take advantage of multiple CPUs.
- Experimental: Write/remove thumbnail to/from file icons.


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


# d3046f7d46f0a7e9ceb022b01d62975abfea2b5d 19-Nov-2003 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

- Made some settings persistent: Slide Show Delay, Scale Bilinear, Shrink/Zoom to Window, Show Caption in Full Screen Mode and PrintOptions persistent.


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


# 402c09e582a3ffb8e1e51cebc473f3e02256ea2f 18-Nov-2003 Matthew Wilber <mwilber@nowhere.fake>

Added code to enable / disable the Edit->Paste menu item when the contents of the clipboard change


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


# d10d59475c9216c2d639424014cefcf98bde7271 09-Nov-2003 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

- added recent documents sub menu
- added resize window to image size when file is opened
- added drag and drop selection
- added copy selection to clipboard


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


# ad13f387f9a6989fa4ef067983a51b2d6af8f6e1 06-Nov-2003 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

- added full screen mode
- added dia show
- added rotate image clockwise, anti-clockwise, mirror image vertical or -horiztonal and invert image
- added myself to about dialog and copyright holders


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


# 7eca09874bd34b14ac63e3f28ec455fab810cc77 04-Nov-2003 Michael Pfeiffer <michael.w.pfeiffer@gmail.com>

- added option resize image to window size
- added show next/previous file using Command + Cursor Up/Down key
- rewrote selection code
- added marching ants
- renamed member variables to start with capital letter after field prefix


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


# cdb89ebbeb5e8a69e54dee9b3daad63f77d9f782 02-Aug-2003 Matthew Wilber <mwilber@nowhere.fake>

Change to have a more consistent coding style, eliminated unused / unessecary code, added MIT license notice, prevented image window from closing when a save panel is open, prevented the user from opening multiple save panels for a single image window, etc.


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


# 07caaa8e88f971a4d184d6b1bf1c14768821e8bb 02-Aug-2003 Matthew Wilber <mwilber@nowhere.fake>

Simplified / cleaned up code, fixed close window behavior, changed status view text to show identify string


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


# 13afa64231695bfa50edd375d99fa850ece3a156 22-Jul-2002 Phil Greenway <sikosis@gmail.com>

Initial Checkin. Coded by Fernando Francisco de Oliveira.


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