Commit Graph
100 Commits
Author SHA1 Message Date
Philippe Houdoin 91077c485a /bin/shutdown: fixed bug, was returning non zero even on shutdown
success. Spotted by mcandre, thanks!
2018-05-03 12:22:45 +02:00
Philippe Houdoin a54feb0e89 TextSearch: fix bug with filenames containing ' or " or \
* Style policy
* Add more error checking
* Increase default directories stack depth
2017-11-07 17:58:52 +01:00
Philippe Houdoin 77b2cdba88 TextSearch: fix build 2017-11-07 14:42:48 +01:00
Philippe Houdoin ce04a43add TextSearch: avoid calling ChangesIterator's method when null
Fixes #9874
2017-11-07 14:35:25 +01:00
Philippe Houdoin 653c767602 TextSearch: several small improvements
* Wakeup periodically search thread, cancelling should be
  more responsive now...
* Show Lines setting is now saved too
* Fix a bug, current file is display again while searching.
* Always pass line number, if any, to invoked app.
  Works with StyledEdit as with Pe.

Partially fix #13289.
Another change will add "open with" context menu and remove "Open with Pe".
2017-11-07 10:37:21 +01:00
Philippe Houdoin 6487273924 userguide: fixes link to repositories pref page. 2017-11-06 19:13:07 +01:00
Philippe Houdoin 8aab3a0d5e docs: promote SoftwareUpdater as easy tool to update Haiku.
The welcome page was still saying the only way to update Haiku
is per command line. Not as much welcoming as one could expect
since SoftwareUpdater is now available.

Add SoftwareUpdater to the list of Haiku's applications in User Guide.
2017-11-06 19:06:48 +01:00
Philippe Houdoin 359b82e26a TextSearch: unbreak 32bits builds 2017-11-06 18:08:35 +01:00
Philippe Houdoin 33d4c8a62e TextSearch: way speeder by using xargs + grep
* Previously, each file was starting a shell to run grep
  command on it. Very suboptimal performance, big overhead.
* Now a thread write each file path to xargs input,
  while another start xargs, let it distribute files on
  grep processes (one per cpu) and collect results asap.
* This bring results way faster than previously.
* Rename Escape Text setting into Regular Expression, as
  name was more after shell workaround than after function.
* While it doesn't use a native text searching, by
  reusing both grep and xargs power, it answer the main
  issue with #9529.
2017-11-06 16:31:17 +00:00
Philippe Houdoin c64b6fc967 WebPTranslator: use libwebp to identify.
Previous hardcoded checks were only aware of VP8 lossy chunk format,
leading to rejecting lossless or newer extended WebP images, while
the libwebp bellow could have handle them fine.

Fix #13712.
2017-11-02 17:30:22 +00:00
Philippe Houdoin 22b7e29bc6 libroot: mktemp.c: use rand_r() and set seed only on first call
This avoid to break caller's own srand() and having the same seed
if called twice very quickly.
Thanks david.given for a better fix for #13660.
2017-08-10 10:33:41 +00:00
Philippe Houdoin c7a3a80cc6 libroot: make mktemp() more random
... by seeding rand() with process id, user id and current time.
This fix #13660
2017-08-09 19:33:36 +00:00
Philippe Houdoin 9854a9d3d6 virtio_net: set/get actual frame size
works OK under VirtualBox now, but no robustness and performance
tests were made yet.
2017-08-07 18:12:21 +00:00
Philippe Houdoin 2a081b42a9 fifo: revert broken fix 2017-08-03 16:53:17 +00:00
Philippe Houdoin 4a531db1f2 networkstatus: test explicit boolean expression 2017-08-03 16:53:17 +00:00
Philippe Houdoin cb7833c724 networkstatus: add no NoLink and LinkNoConfig status
An interface that fail to configure due to link lost will be
reported to have "No Link" instead of to be still "Configuring...",
which was not the actual state.
2017-08-03 14:40:48 +00:00
Philippe Houdoin 65abebfaa7 fifo: wakeup readers not checking POLLHUP/B_SELECT_DISCONNECTED
For readers waiting in select() or simply in read(),
B_SELECT_DISCONNECTED notification didn't wake them anymore.
Now, cascade notifications to be sure to wake them, either
on POLLHUP, POOLERR/B_SELECT_ERROR or, at worst, from read().

See #7859 for details.
2017-08-03 11:48:02 +00:00
Philippe Houdoin 57b87ea9c3 virtio_net: add rx & tx support
Rx see lots of errors, though, but at least DHCP works now and
the interface goes up.
2017-08-03 09:17:46 +00:00
Philippe Houdoin 12b5c184b2 kernel: add fifo polling test from #7859 2017-08-01 18:50:36 +00:00
Philippe Houdoin 17f88a29db Fix x86_64 build 2017-08-01 18:37:39 +00:00
Philippe Houdoin 216574f371 fifo: fix #7859 2017-08-01 18:37:38 +00:00
Philippe Houdoin f1cc99789b Add PatchBay to default image's demos 2013-08-08 22:45:20 +02:00
Philippe Houdoin 8683f5d4ee Quick style polishing... 2013-05-24 10:11:53 +02:00
Philippe Houdoin 415962e25f Add an unittest for if_nameindex to network kit tests pool 2013-05-24 09:44:41 +02:00
Philippe Houdoin 89e83cf613 Style cleanup and fix a possible endless loop 2013-05-15 19:46:30 +02:00
Philippe Houdoin 44908fe8c5 if_nameindex() wasn't retrieving interface index. Fixed #9770 2013-05-15 08:40:31 +02:00
Philippe Houdoin 1a84d6b362 Skip timeout computation in is_syscall_restarted case. 2013-05-04 11:27:04 +02:00
Philippe Houdoin ca4f3ba33c Patch by Pete Goodeve fixing #9311. Thanks.
* Respect device's declared max packet size.
  This improve support of USB midi controlers which don't support
  arbitrary bulk read size, like iCON ones.
* Fix an logic inversion regarding O_RDONLY/O_WRONLY
  and output or input ports only devices.
2013-05-02 09:06:20 +02:00
Philippe Houdoin 9058801fe2 Fixing my own mess introduced in r41274. Fix #9446. 2013-04-18 02:06:20 +02:00
Philippe Houdoin 1e77e4f852 Tokenize directly in team_info.args buffer. 2013-04-18 00:20:10 +02:00
Philippe Houdoin cc2c83fa5c Applied patch by Prasad Joshi to add kill by process name support. Thanks. Closed #1944. 2013-04-18 00:20:05 +02:00
Philippe Houdoin 184fada4e9 Connecting an UDP endpoint was resetting a previously bound local port. Fix #9678 2013-04-17 22:23:27 +02:00
Philippe Houdoin b292f6936a Fix typo, spotted by ttcoder. Thanks. 2012-08-06 21:53:25 +02:00
Philippe Houdoin 47b44bbedb Fix SerialConnect gcc4 build. 2012-07-26 23:55:39 +02:00
Philippe Houdoin a3b73ff9d1 Fix insets 2012-07-26 23:31:57 +02:00
Philippe Houdoin ca741c4835 Merge branch 'master' of ssh://git.haiku-os.org/haiku 2012-07-19 23:48:23 +02:00
Philippe Houdoin 9be0c9b03c Improve SVG image identification (close #8653)
* add a sniff rule
* until we have an image translator for SVG, and since Web+ is not
  included by default in Haiku images, made Web+ preferred app for SVG images.

Note that for compressed SVGZ (*.svgz), the sniff rule will still fail miserably.
Our sniffer will need decompression support before being able to do that...
2012-07-19 23:46:26 +02:00
Philippe Houdoin 427e96598c Revert back my change as its broken.
I will take some rest as obviously I should not allwed to commit anything rigth now.
Sorry guys.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42908 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-25 06:46:40 +00:00
Philippe Houdoin cc6dd72fbb Update B_USB_RAW_COMMAND_GET_DESCRIPTOR to support retrieving
up to total_length a configuration descriptor.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42907 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-25 06:19:49 +00:00
Philippe Houdoin 1ce29039cd Revert r42812. As pointed by Michael, one can use
BUSBDevice::GetDescriptor() to retrieve whatever descriptor, including a 
complete configuration descriptor.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42905 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-24 21:02:14 +00:00
Philippe Houdoin d41559757e Expand usb_raw ioctl to support retrieving full usb configuration descriptor from userland, not only the header part.
I try to keep UBSConfiguration binary compatibility, but proofreading is welcome.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42812 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-09 15:15:15 +00:00
Philippe Houdoin 13cb2a2930 Code cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42811 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-09 15:12:05 +00:00
Philippe Houdoin 7a931c68e8 Do an explicit row's update when it's needed.
This should close #7988 this time, hopefully.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42756 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-16 19:31:02 +00:00
Philippe Houdoin 909c526903 Pass up-to-date team_info to TeamRow, so we can detect when a team app image has changed after
an exec() syscall, and update team's fields, icon included. 
This fix #7988.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42755 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-15 22:14:00 +00:00
Philippe Houdoin d230708bcf * Expand kernel_args addresses ranges size, 8 is somewhat too small, leading
to a panic at boot.
* Make the panic message more explicit when there is no more room left.

This should hopefully fix #7869.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42715 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-05 10:49:32 +00:00
Philippe Houdoin 2bd5013756 Remove last usage of hardcoded k_app_mini old BeOS generic app icon.
That should gracefully close #7219.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42706 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-02 06:02:36 +00:00
Philippe Houdoin a46e462db9 * Fix the "USB USB Webcam" name: now generic UVC USB webcam will be named, well, that:
Generic UVC USB Webcam.
* Added my own Logitech HD Pro C910, which publish a compound device class, not an UVC class.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42693 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-27 05:54:55 +00:00
Philippe Houdoin 20cc5ae73c Update WebPositive package, new build was needed due to the
new ICU 4.8.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42692 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-26 22:16:24 +00:00
Philippe Houdoin c3688b17e9 Fix gcc 4.5.2 build (unused static function is now an error).
No functional change, sorry.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42661 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-21 14:02:58 +00:00
Philippe Houdoin d90bbcc813 Fixed in ProcessController the same icon issue than in Debugger's running teams window.
Also get right of the ugly raster default app icon that was still used and visible in
memory & teams/threads submenus.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42660 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-21 13:34:50 +00:00
Philippe Houdoin dd537d13a8 Followed Ingo's suggestion: use private get_app_ref(). This reduce code duplication.
Thanks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42659 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-21 13:00:21 +00:00
Philippe Houdoin 727c05a5df Now always retrieve the team icon from the first B_APP_IMAGE image entry_ref.
Using team_info.args as before was not safe: when truncated, the 
entry_ref could be an intermediate folder, which display a folder 
icon as team's icon!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42653 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-21 09:36:19 +00:00
Philippe Houdoin 6a80f55b25 Small changes resting on my working copy.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42209 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-16 18:07:57 +00:00
Philippe Houdoin 45667a941b No space was made for Hat(s) value(s) in variable_joystick.
Would explain why hat shown by StickIt was always static neutral...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42208 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-16 16:01:32 +00:00
Philippe Houdoin fccb048765 Fixed gcc2 build (sorry).
Plus one forgotten small style fix.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41877 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-03 12:39:51 +00:00
Philippe Houdoin 1291377a6e Applied patch by Pete Goodeve, which adds multi-ports support to usb_midi driver.
Fixed some coding style and a few sanity checks where it make sense.

This driver code is not in a good shape and needs a wide cleanup.
unfortunatly, I still don't have any device to test with, so I can't do that anytime soon.
Intead of letting his patch collecting dust since 3 months (my bad),
I think it's better the multi-port support gets at least more exposure than
just Pete's hardware.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41874 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-03 10:30:03 +00:00
Philippe Houdoin 258cffcde2 Fix gcc4 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41867 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-02 08:13:31 +00:00
Philippe Houdoin d28b0b06d0 Of course, when incomptability kick in, it's never limited only to
option string: FreeBSD's stat command line don't use  %s format specifier for
file size. Instead, %s specifier is unused at all and they goes with %z.
For file Zize, I guess...



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41830 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-05-30 13:31:56 +00:00
Philippe Houdoin c3510ace83 When building floppy boot image on FreeBSD, the stat command line fail on
the -c/--format option which is unsupported on this platform.
Add a fallback, which should fix #7613.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41829 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-05-30 09:52:08 +00:00
Philippe Houdoin b6ba1daaac There is no point trying to request back from DHCP a link-local
auto-configured address...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41538 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-05-16 16:00:18 +00:00
Philippe Houdoin d7a82feb5c Added a few Radeon HD 48xx devices IDs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41537 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-05-16 15:19:02 +00:00
Philippe Houdoin 0f6581066d Remove "Parallel Port" print transport add-on from image: until we've a /dev/parallel driver to
actually support it, it make no point to let people think a parallel printer *may* be supported.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-05-16 14:50:26 +00:00
Philippe Houdoin 48315186a8 Remove reference to SVN, now that revision is a VCS-agnostic string...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41394 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-05-09 11:49:03 +00:00
Philippe Houdoin 0892800f69 Implemented INIT-REBOOT DHCP state: as required per DHCP specs,
we now request the last address we got from DHCP server, and only on failure
we fallback on the whole INIT state (discover, collect offer, etc).
This should fix people losing their IP address at each renewal, or far worse,
after the link goes up again.
Closed #7346.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41285 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-04-27 15:04:55 +00:00
Philippe Houdoin e65843e8c9 Revert files that were commit by mistake in previous commit. Sorry.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41279 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-04-23 01:56:02 +00:00
Philippe Houdoin 9ff5266f3a Avoid deadlock.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41278 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-04-23 01:52:16 +00:00
Philippe Houdoin 302a7082ba Quit AutoconfigLooper when switching to static configuration.
Before, DHCP will still run after a link down & up event, which could 
leads to break the user-defined static configuration.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41277 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-04-23 01:02:02 +00:00
Philippe Houdoin 84fdf2c3ca Made _AddressToString() static methods.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41276 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-04-23 00:48:11 +00:00
Philippe Houdoin 03f6ab7fd1 Add dhcp_message::FindOption(), to retrieve a specific option.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41275 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-04-22 21:52:15 +00:00
Philippe Houdoin 6d5ad15714 Check node monitoring messages to handle them only when it make sense.
Before, the "interfaces" settings file creation/removal notification was 
leading to a attempt to configure/remove an interface named 
"/boot/common/settings/network/interfaces"!
Could help fixing issue #7475.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41274 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-04-22 21:33:43 +00:00
Philippe Houdoin d09c1f8e8d Made message retransmission delay +1/-1 randomized as required per RFC2131
spec (see paragraph 4.1)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41273 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-04-22 20:45:34 +00:00
Philippe Houdoin ec2878c3cf Patch by SHINTA: add MediaPlayer cover image/artwork support.
This implemented #7430 enhancement.
Arigato gozaimasu!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41271 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-04-20 17:58:07 +00:00
Philippe Houdoin 6e5af4cdc4 Check a menu item is actually marked, just to be safe.
Remove leftover commented code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41267 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-04-19 10:03:02 +00:00
Philippe Houdoin 8859d46e56 Patch by Sean "jalopeura" Healy: save and restore account and encoding of draft mails.
This fix #4789. Thanks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41266 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-04-19 09:38:37 +00:00
Philippe Houdoin 9c87cb1b9f Moved the whole testpage into its own (offscreen) window, and
print from this window's looper.

There is two majors bugs raised by the test page feature, which sports both
gradiants and vector drawing (leaf, gradiant colors):
- radiants are not recorded/handled in BPicture
color gradiants presents in the test page
- scale is not correctly recorded or handled in BPicture, as seen when zooming on
the leaf drawing in Preview window...
I will investigate how to fix both.

Anyway, an incomplete test page is better than none.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41067 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-21 12:14:37 +00:00
Philippe Houdoin 89aa6cbe13 Fix #7300:
* When saving, the internal bitmap wasn't detached from stream, which then
deleted it, paving the road to a crash at next bitmap access.
* When saved, notify PictureView that current and original pictures are
the same.

Also, add support for bitmap paste (needs more improvement) and
to avoid reloading picture on B_STAT_CHANGED after our own save operation.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41066 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-21 11:39:54 +00:00
Philippe Houdoin 61698f2dad Audio clips are also concerned with backgroup volume level settings, so actually
"clips" was valid. Also adds a missing : after menu labels.
Thanks Humdinger for proofreading and suggestion.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40924 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-12 13:06:08 +00:00
Philippe Houdoin b17cf6ff58 The "movies" term was used everywhere else, for coherency use it instead of "clips".
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40923 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-12 10:41:02 +00:00
Philippe Houdoin 26b61bd984 Clean wrong spacing, as spotted by Jerome.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40872 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-08 16:17:22 +00:00
Philippe Houdoin 0ceae11007 Remove leftovers
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40871 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-08 15:49:31 +00:00
Philippe Houdoin 9f76097f9e Add WebP write support.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40869 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-08 15:27:33 +00:00
Philippe Houdoin 463c0d1e8d Upgrade to latest libwebp.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40868 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-08 15:26:16 +00:00
Philippe Houdoin b70b735dca Fix error message formating.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40857 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-07 14:25:32 +00:00
Philippe Houdoin 7703b15314 Those should have been part of r40791. Sorry.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40793 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-03 14:07:57 +00:00
Philippe Houdoin 662c94f6c4 Reorganized to follow libwebp source layout.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40791 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-03 13:27:41 +00:00
Philippe Houdoin 552c44608f Change a bit the tooltip text, per Axel suggestion.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40781 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-02 17:37:02 +00:00
Philippe Houdoin a559946f03 Use string_for_size() to format and localize sizes in a consistent way.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40780 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-02 16:08:24 +00:00
Philippe Houdoin d25cab17b0 * Check data size before trying to translate it into a picture image
* Remove leftover debug traces


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40778 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-02 15:28:09 +00:00
Philippe Houdoin 372bd6a113 Use be_control_look to draw the progressbar. The previously hardcoded one was
following the BeOS look, not our.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-02 11:17:19 +00:00
Philippe Houdoin e5dca0c2c0 * Scale down a bit the picture view, now using the same ration than
official (passport, ID card) photos
* Add a tooltip to give user some hints on the picture "field"


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-02 09:54:30 +00:00
Philippe Houdoin f22fe14c4c * Implement "Load Image" popup menu.
* Implement B_COPY_TARGET drop event. People is not (yet) ready to
  to be itself such target (copying a person picture to another one),
  though.
* Remember the source type and MIME and use them to save the picture in same
  format when possible.
* Avoid flickering when only focus is changing.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40740 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-28 19:37:16 +00:00
Philippe Houdoin fede04962c Remove "priority" from the mask to allow free localization.
--This line, and those below, 
will be ignored--

M    processcontroller/PriorityMenu.cpp


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-26 20:06:24 +00:00
Philippe Houdoin 3d1ed0fb56 Fix ShowImage crash when image loading fail: we don't have a CacheEntry then, but still
should notify our listener (of the error, in such case).
Closes #6842.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40692 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-26 01:37:44 +00:00
Philippe Houdoin 30a498f4a6 Localized priority submenu.
Closes #7283.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40691 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-26 00:10:36 +00:00
Philippe Houdoin 55535ac178 Adapt after IconUtils.h being made public header.
Forgot to add PictureView.cpp to localization.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40684 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-25 13:47:16 +00:00
Philippe Houdoin 589d9759a4 Since _SetToRet() check previous value of fRef, an sane initial value must be
set at construction.
Closes #7264.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40683 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-25 13:45:43 +00:00
Philippe Houdoin ea56573776 Localized Shutdown process.
Closes #7281.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40682 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-25 13:16:04 +00:00
Philippe Houdoin 8cf55acfff When update the original image, we can't set it directly as its address has changed,
and _SetPicture() will then delete it behind our back.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40671 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-24 18:52:07 +00:00
Philippe Houdoin 433dc78379 As spotted by Stephan, pulled out items enabling/disabling of the if block,
as menu items must be updated even when the focus is not a text view!
Thanks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40670 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-24 18:23:46 +00:00
Philippe Houdoin e23bbaff47 Factorize a bit more.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40669 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-24 18:14:08 +00:00