Stephan Aßmus
93d1b9f406
* quick fix for when fBitmap has been recomposed
...
partly, fDisplayBitmap is not correctly re-established...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15887 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-09 11:24:08 +00:00
Stephan Aßmus
37a3ed9263
* quick hack to hide the cursor in fullscreen
...
(TODO: do this after a time out)
* quick hack to display bitmaps containing an
alpha channel with a checker background
(TODO: rework filters to be alpha channel
aware and compose the checker background
independently of the filter)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15886 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-09 11:18:01 +00:00
Stephan Aßmus
c9a5153a00
fix building for BeOS
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15885 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-09 11:14:37 +00:00
Ingo Weinhold
758b1d0e05
Fixes that make Haiku build with gcc 4. Mainly out of the following
...
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
Otherwise the an inner class with that name is considered as friend.
gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-12 23:27:14 +00:00
Ingo Weinhold
338b8dc301
Merged changes from branch build_system_redesign at revision 14573.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-29 16:27:43 +00:00
Axel Dörfler
da7bead8c6
Minor cleanup.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13140 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-15 04:11:14 +00:00
Stephan Aßmus
fc5ca95d01
fixed alignment and image layout, esc exits fullscreen mode, black background for fullscreen, zooming window toggles fullscreen, can still browse even if current image has been deleted, space toggles slideshow, swapped next/previous menu items (more logical)
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13101 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-13 20:09:46 +00:00
Jérôme Duval
87763db72b
links against our libs
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12992 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 14:34:47 +00:00
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
Michael Pfeiffer
5eb50e4689
Fixed printing related bug. Image was offset by the left, top corner of the printable rectangle.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10606 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-07 17:02:23 +00:00
Philippe Houdoin
08130f16ce
Fix About Box project name.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9315 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 09:47:07 +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
Oliver Tappe
057ceb6137
- fixed issues when compiling with gcc-2.95.3.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8994 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-17 16:34:13 +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
Axel Dörfler
d2adccea19
Rotate what? Added degree symbol.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6638 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-18 16:05:11 +00:00
Axel Dörfler
e9dcd87490
Fixed calculation of the menu bar height and the position of the views below.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-09 03:05:49 +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
Matthew Wilber
147fecb0db
Fixed application signature inconsistency and fixed a typo
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6117 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-17 16:52:19 +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
Matthew Wilber
1de4129887
Shrunk initial window rectangle so that the scrolling operation performed in fImageView->FlushToLeftTop() will execute properly for certain small images.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5853 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-02 00:40:58 +00:00
Matthew Wilber
43ed8070bb
Removed ShowImage.rsrc. ShowImage.rdef should instead be used for ShowImage's resources.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5750 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-24 20:40:23 +00:00
Matthew Wilber
52c287f01b
Removed makefile, it was checked in by mistake. It has nothing to do with ShowImage.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5749 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-24 20:36:34 +00:00
Matthew Wilber
28b149e57c
Removed ShowImageX.proj BeIDE project file
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5748 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-24 20:31:07 +00:00
Matthew Wilber
0916ab535d
Adjusted menu bar, scrollbars and view frame so that there are no longer double borders
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5747 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-24 20:27:09 +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
mahlzeit
0e6141ba3b
Simplified app_flags.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5726 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-22 17:41:02 +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
16cb489052
Fixed default window location so that it now appears in the top left corner, like Be's ShowImage. Also, window is now properly aligned to the top left corner when it is zoomed.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5678 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-17 00:26:29 +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
187f0b8a33
Fixed bug where the close confirmation would still appear after a changed document was closed
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5640 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-10 22:47:10 +00:00
Matthew Wilber
30060f173a
Changed Full Screen menu item shortcut to Alt-F and added BWindow shortcut for Full Screen using Alt-Enter so that Windows users can use the familar Alt-Enter and Be users will be able to use the familar Alt-F (MoviePlayer, ImageViewer).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5498 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-29 14:37:43 +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
Axel Dörfler
0596f8f6a1
Removed obviously accidently added "ShowImageX" executable.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5482 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-25 22:09:12 +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
7c0bc4a231
Show small icons in recent document menu.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5444 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-22 19:52:31 +00:00