Matthew Wilber
3a85b92372
Fixed page changing, simplified entry_ref usage in SetImage()
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11366 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-13 17:57:38 +00:00
Stephan Aßmus
0cd4ecd8b2
cosmetical improvements to status view, it also shows the image size now
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9113 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-29 19:47:18 +00:00
Matthew Wilber
2041038abe
Re-Added directory based Next/Previous file functionality. Now, if tracker scripting is unavailable, user will still be able to use Next/Previous file commands and the slideshow feature
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8067 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-19 17:37:10 +00:00
Matthew Wilber
efc10d5e6a
Implemented rewind functionality so that slide show no longer stops when it reaches the last file in the directory
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7453 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 23:25:11 +00:00
Matthew Wilber
92fd335690
Fixed to check if refs are directories and to error properly if they are
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6949 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-11 03:19:03 +00:00
Michael Pfeiffer
134d607647
Use Tracker Scripting to find next/previous image.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6203 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 19:46:45 +00:00
Matthew Wilber
a7e78e3b64
Fixed file saving code so that it is only in one place, (instead of two) and fixed File-->Save As so that it now writes out the type attribute
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6127 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 03:15:59 +00:00
Matthew Wilber
869e256d67
Added feature where a file dropped from the Tracker becomes the current selection
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 00:32:51 +00:00
Michael Pfeiffer
a8138a6e11
Bug fixed: ignore user zoom setting in automatic zoom modes.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6000 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-10 09:29:13 +00:00
Matthew Wilber
01c931e6cb
Fixed bug in FindNextImage where -1 is returned instead of false
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5895 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-04 04:22:23 +00:00
Matthew Wilber
64d3ef5ff2
Fixed bug which occured when the Next or Previous image command was used with an image that failed to translate. Changed Next/Previous image behavior to skip past images that fail to translate.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5894 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-03 21:25:05 +00:00
Michael Pfeiffer
491eb383e0
Fixed access to invalid bitmap bug.
...
Refactored code a little bit.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5746 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-24 10:14:28 +00:00
Matthew Wilber
6574ee0747
Removed some debug print statements, set the maximum allowed Zoom to 1600%
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5744 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-23 23:45:26 +00:00
Matthew Wilber
16b663b7ab
Disable the Invert menu item for B_CMAP8 bitmaps because they are currently unsupported by the invert algorithm.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5721 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-22 01:56:27 +00:00
Matthew Wilber
9f54b9718e
Cleared the Undo buffer when actions that are reversable are performed. Disabled Invert command for B_CMAP8 bitmaps, as they are not properly inverted
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5720 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-22 01:39:01 +00:00
Matthew Wilber
75238186d7
Fixed Edit-->Clear to leave behind a white box if the selection box is not moved after it is made, added Undo capability for Cut and Clear actions
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5719 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-21 19:44:13 +00:00
Matthew Wilber
7598450e4f
Added initial implementation of Undo for OBOS ShowImage! Now, users can Undo/Redo merge/paste operations. Still need to enhance Undo further so that other operations can be undone, also need to account for image rotations and similar operations.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5693 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-18 03:31:28 +00:00
Matthew Wilber
55f2e33b2d
Changed Paste/DragDrop code so that a clip does not have to be pasted entirely within the bounds of the background bitmap
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5654 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-12 04:26:52 +00:00
Matthew Wilber
169c19d6f7
Implemented drag/drop from one ShowImage window to another
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5653 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-12 03:39:21 +00:00
Matthew Wilber
664c5b6911
Removed unneeded calls to Invalidate(), changed minimum size for selection rectangle so that users can click in an empty section of the window to unselect the selection
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5641 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-11 01:33:50 +00:00
Matthew Wilber
bf84ef8841
Removed Keydown handler code that invoked the creation/removal of the thumbnail icons
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5495 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-29 04:22:04 +00:00
Matthew Wilber
ee7b4f3983
Added checking for modified document and prompt the user if they try to close a document without saving.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5492 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-28 20:35:52 +00:00
Michael Pfeiffer
a55095419c
- Fixed bug in conversion from image coordinates to view coordinates are vice versa.
...
- Change the size of the image being dragged to size of the selection in the view coordinate system.
- Experimental: delay start of filtering thread(s) for some tenth of a second. This allows faster update during resizing.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5491 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-27 18:35:54 +00:00
Matthew Wilber
1f62b22aa0
Changed Cut behavior to match Be's version so that if the user Cuts a selection before moving it, the selection is cut, and a white rectangle is left in its place. If the selection is dragged before the Cut command is used, a white rectangle is not drawn.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5489 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-27 15:00:07 +00:00
Michael Pfeiffer
a8fc713847
- 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
2003-11-25 17:03:14 +00:00
Michael Pfeiffer
5e427b6a85
- Made some settings persistent: Slide Show Delay, Scale Bilinear, Shrink/Zoom to Window, Show Caption in Full Screen Mode and PrintOptions.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5441 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-22 11:02:57 +00:00
Philippe Houdoin
1021ea1790
Rollback to original/way better constrated captions colors.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-21 23:07:03 +00:00
Philippe Houdoin
1967709a04
Ooops, forget to match caption rect size and position there too...
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5420 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-20 02:21:46 +00:00
Philippe Houdoin
c60a8d8cbb
Including Clipboard.h could help.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5419 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-20 02:18:57 +00:00
Michael Pfeiffer
d3046f7d46
- 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
2003-11-19 10:41:51 +00:00
Matthew Wilber
5196460539
Implemented Cut and Paste. Still need to implement Undo and check for a dirty document when the window or app is closed.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5414 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-19 03:38:21 +00:00
Michael Pfeiffer
19c76de4a0
- Rewrote bilinear scaling algorithm. The version that uses fixed point calculations is at least two times faster than the version that uses floating point calculations!
...
- Fixed off by one bugs.
- Replace "Fit to Window" with "Shrink to Window" and "Zoom to Window".
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5409 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-18 21:43:44 +00:00
Matthew Wilber
8ad30bcf80
Added code to merge selection with background image; removed Select None item, replaced it with Clear as Select None was behaving like Be ShowImage's Clear anyway; properly enabled/disabled Edit menu items when selection is made or cleared. Still no undo yet, but I'm planning to do that after Paste is implemented.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5403 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-18 02:48:53 +00:00
Matthew Wilber
9eec20bc4a
Changed fpBitmap to the more Be-ish notation of fBitmap, added code to allow the user to drag the bitmap selection around like in Be's ShowImage. However, no changes can be made yet to the underlying image. Need to resolve resize flickering of selected image and allow the user to modify the underlying image.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5392 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-16 23:23:50 +00:00
Matthew Wilber
0e93ae51e9
Drag selection code can now move the selection inside the view, fixed selection drag code so that unwanted MouseUps don't affect the selection box movement. Though, drag selection code is not done yet, it is not yet copying the bitmap from where the selection was dragged from, it is just moving the selection rectangle. Dragging a selection to outside of the window still works the same.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5391 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-16 20:39:27 +00:00
Matthew Wilber
d5be31007e
Fixed caption hiding method so that whenever any kind of scrolling is done, the caption is hidden in full screen mode. Previously, the caption would only hide during click-and-drag scrolling and using other scrolling would cause the caption to be painted in various places on top of the image.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5384 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-15 18:06:24 +00:00
Matthew Wilber
89d164def7
Added comments to MouseWheelChanged function which explains how B_MOUSE_WHEEL_CHANGED behaves.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5376 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-15 13:33:26 +00:00
Matthew Wilber
868de40a82
Fixed issue where view scrolls to the left when mouse wheel is used, changed to scroll faster if the wheel is scrolled multiple clicks per B_MOUSE_WHEEL_CHANGED message, increased the scroll speed
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5375 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-15 13:12:18 +00:00
Michael Pfeiffer
50d78f98e5
Bug fixed: virtual function must not be called in destructor.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5352 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 20:38:19 +00:00
Michael Pfeiffer
938629a7e2
Bug fixes.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 18:30:19 +00:00
Michael Pfeiffer
81b9c77691
- scale bilinear (experimental: scaled image is too small by one pixel)
...
- bug fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 06:54:48 +00:00
Michael Pfeiffer
da87390fc5
- Scrolling with mouse wheel
...
- Moving image with third mouse button pressed
- Added pop up menu with contents of View menu of menu bar
- Center image in full screen mode
- Added Select None menu item
- To avoid flickering, disabled caption during moving image with mouse- Added key bindings:
- Cursor keys: moves image
- Enter or space bar: next file
- Backspace: previous file
- Escape: Stops slide show
- SHIFT + first mouse button: simulate third mouse button
- CONTROL + first mouse button: simulates second mouse button
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5322 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 08:49:30 +00:00
Michael Pfeiffer
780d8a62d7
- added printing support
...
- added zoom in and out
- next/previous file sorts directory entries by itself; does not rely on file system
- added shortcuts to the first 10 menu items of Go To sub menu
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-10 17:38:35 +00:00
Matthew Wilber
6c3054116e
Added Go To Page submenu so the user can directly go to the page that they want. Also fixed a typo.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5290 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-09 14:10:26 +00:00
Michael Pfeiffer
e6a50d9c7b
- renamed and restructured menu bar
...
- show dialog box when image can not be opened
- added optional caption in full screen mode
- moved/removed code from ShowImageApp to ShowImageView
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5289 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-09 09:54:46 +00:00
Michael Pfeiffer
d10d59475c
- 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
2003-11-09 07:57:55 +00:00
Michael Pfeiffer
ad13f387f9
- 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
2003-11-06 20:57:04 +00:00
Michael Pfeiffer
7eca09874b
- 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
2003-11-04 23:22:01 +00:00
Matthew Wilber
0a3144ad6b
Changed selection box to use a checkered pattern, closer to what Be's ShowImage uses. Stopped using inversion to clear old selections, drawing the bitmap over them instead. Fixed the rect used in setting the view bitmap.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5090 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-19 01:56:01 +00:00
Matthew Wilber
af2002bf8c
Implemented preliminary selection box skeleton code. Need to add marching ants and connect selection box status to Edit menu.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5083 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-18 22:58:34 +00:00