Commit Graph

26154 Commits

Author SHA1 Message Date
Stefano Ceccherini
5dcbba3155 gcc4 complains on missing declaration of exit()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 13:26:36 +00:00
Stephan Aßmus
a4def7bd0f Node monitoring changes:
* In the ChangesIterator, just remove removed files from the HashMap, regardless
  if they could be considered "temporary" or not.
* If a file is removed, we can directly remove it from the results list. This
  makes removing files from the result list more robust and quicker if this
  was the only thing that happened with regards to node monitoring (the grep
  process does not need to be run again).
* Refactored removing result items from the list on result notifications.
* Beginnings of supporting moving files within the watched folder hierarchy.
  If they were just moved, the new location should update in the list.
  (not well tested)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27377 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 11:31:06 +00:00
Stephan Aßmus
f0d8b55fe6 Add method to remove all subitems of a result item, and optionally also the
item itself.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27376 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 11:25:57 +00:00
Stephan Aßmus
e74f2e8388 * Small cleanup
* Mention the fact that the same code is used in DiskUsage.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27375 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 11:24:59 +00:00
Stephan Aßmus
24094896b0 Change prefs file name to just "TextSearch". No reason to append "Settings"
if this file is to be found in the "settings" folder...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27374 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 11:24:24 +00:00
Stephan Aßmus
7c9d86d7c1 Change default settings to "Invoke in Pe" if Pe is installed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27373 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 11:23:40 +00:00
Stephan Aßmus
61490d4560 Add DiskUsage to the build and also integrate it as a Tracker add-on.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27372 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 11:04:39 +00:00
Stephan Aßmus
de23995a7f * Full integration as a Tracker add-on. Code taken from TextSearch.
* Fixed settings file saving when the settings file didn't exist yet.
* Fixed problem with launching DiskUsage with refs. In that case, ReadyToRun()
  is called later than RefsReceived(). I remember the same thing happens on
  BeOS.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27371 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 11:02:39 +00:00
Michael Lotz
92ada5d30c Make the installer window not minimizable, as without a Deskbar loaded, minimizing makes things a bit difficult...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27370 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 08:36:38 +00:00
Michael Lotz
57665c6ef2 Respect B_NOT_MINIMIZABLE in the default decorator. Maybe we should recheck all the flags in the window code though instead of relying fully on the decorator.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27369 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 08:33:49 +00:00
Stefano Ceccherini
7d2739a00f argument was missing from the TRACE call
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 08:31:57 +00:00
Ingo Weinhold
b41928bf48 Use the new entry cache.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27367 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 05:09:13 +00:00
Ingo Weinhold
ee1a1571a2 Implemented a simple directory entry cache to speed up path resolution.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27366 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 05:08:37 +00:00
Rene Gollent
204737b832 Patch by Dustin Howett: Add i945GME to the supported devices list (caveat: no overlay).
Thanks!



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27365 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 02:45:14 +00:00
Ingo Weinhold
91e9d17c3f Small test program timing our path resolution. Which sucks badly...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 00:50:27 +00:00
Jérôme Duval
b0b788ce0c fixed Atom id. Thanks katisu!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27363 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 20:59:30 +00:00
Jérôme Duval
f0a85f978d * I misunderstood what means 24 bits B_AUDIO_INT (more than 2 years ago!): as audio data is left justified in a 32 bits container, we don't care much and convert as usual
32 bits data
* Echo audio driver doesn't support 24 bits in a 32 bits container as proposed by the media kit. We just manage 24 bits as 32 bits samples.
* The main benefit of this change is that the hda driver is now working with 24 bits samples (and 192khz).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27362 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 16:36:10 +00:00
Jérôme Duval
c991159a1b added missing 20bit case
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 16:26:44 +00:00
Ingo Weinhold
b27c9bd52f * env.c -> env.cpp
* Squashed TODO: Use a benaphore for locking to improve performance.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 15:28:39 +00:00
Ingo Weinhold
3c529bf7fe * Retry in benaphore_lock() when interrupted.
* Added TODO in benaphore_lock_etc().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 15:27:14 +00:00
Ingo Weinhold
61713fc607 * More verbose usage text.
* Parse the command line options posixly correct. Running command lines
  that contained options was broken before.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 14:22:53 +00:00
Stephan Aßmus
f75a7bf508 Imported the nice disk usage tool "Guido" into the repo as "DiskUsage". Guido
was originally written by Mike Steed. The code was freely available from his
website at one point, which I am no longer able to find. I believe the license
was a kind of public domain, at least compatible with our MIT/X11 license.

The original code was well written with it's own coding style which was not
very far from the Haiku coding style. I have hopefully adopted it completely
to our coding style. While I did this, I came across several places with
comments for a minor bug which I was able to resolve all. I also found ways
to simplify certain places and I elliminated all non-necessary "inter-class
knowledge" which was used to directly access members of other classes which
should have been private.

All in all, this should be a nice little addition, a useful tool which I found
handy a lot of times. If I should not have added this without first consulting
everyone, please voice your disagreement, and it can be removed it again. It
is not part of the image yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 14:18:01 +00:00
Ingo Weinhold
c909ca65bf Patch by Zhao Shuai: Updated documentation regarding the use of the
radix tree.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27356 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 13:58:49 +00:00
Ingo Weinhold
dcadb2ba8d Patch by Zhao Shuai:
* Imported radix bitmap tree implementation from FreeBSD and adjusted it
  for Haiku.
* Make use of the radix tree in the swap support implementation instead
  of using simple bitmaps. This will allow for faster swap slot
  allocations. ATM Haiku doesn't benefit that much, since we always
  allocate single pages, but that will change eventually.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 13:57:25 +00:00
Stephan Aßmus
fc75bbd740 * The analysis for how DriveSetup works on BeOS is no longer relevant and
Haiku's own DriveSetup works differently.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 13:38:12 +00:00
Jérôme Duval
47a5fa5a32 fix typo
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27353 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 10:43:43 +00:00
Ingo Weinhold
c1deff9677 <malloc.h> is no standard header, use <stdlib.h> instead.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27352 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 01:08:30 +00:00
Ingo Weinhold
6d915a4d4c Translate ENOATTR properly. That seemed to be all that kept FreeBSD extattr support from working.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-07 01:07:45 +00:00
Ingo Weinhold
b360cc7f00 Refactored the BeOS attribute emulation using xattr a bit:
* Renamed fs_attr_xattr.cpp to libroot/fs_attr_untyped.cpp.
* Pulled the xattr specifics into a separate fs_attr_xattr.h.
* Added fs_attr_extattr.h, interfacing with FreeBSD's extattr support.
  Totally untested yet. Might not even compile.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-06 23:46:59 +00:00
Jérôme Duval
ab2b993da9 added nexttoward()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-06 15:00:33 +00:00
Jérôme Duval
bb97148298 added more posix functions
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27348 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-06 14:31:28 +00:00
Michael Pfeiffer
b3c05fb63e * Remember changing the color of an ui_color.
* Simplified code a lot when doing that and removed lots of unused code.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-06 13:57:17 +00:00
Jérôme Duval
a3c99d9dee print out unknown cpu types
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-06 13:00:19 +00:00
Michael Pfeiffer
ec4a55fdbf Removed wrong TODO.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-06 11:08:55 +00:00
Michael Pfeiffer
7b1c4ba38f * Always draw entire ColorWell to avoid flickering
* Moved ColorWell infront of ColorPicker. It was hidden behinde the attribute list.
* Made ColorWell and ColorPicker follow its parent frame bottom when resized.
* Made attribute list follows its parent frame top and bottom when resized. 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-06 09:13:16 +00:00
Stephan Aßmus
19a1d666b3 Improve the Read-Only mounting suggestion for additional volumes.
* Following a suggestion by BGA, even non-boot Haiku volumes will get the
  read-only popup, although with less emphasis in the wording.
* BPartition does inherit the read-only flag from it's parent device when
  not yet mounted. This is now checked and at least prevents the read-only
  popup for volumes on read-only media. If I understood everything correctly,
  there is no easy way to tell if a file system supports writing.
* Updated indentation style in the header.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-06 08:02:59 +00:00
Michael Pfeiffer
e53fa536eb Obviously the else block was missing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-06 07:37:12 +00:00
François Revol
af18effb0e No need to report an error on modules that aren't modules...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-06 00:57:24 +00:00
Rene Gollent
ddfa870bb5 Set native eol-style (CR/LF issues).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-05 23:34:16 +00:00
Jérôme Duval
2eb280d3a8 added a few more math functions, rearranged some functions in math.h
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-05 23:21:33 +00:00
Jérôme Duval
aaec7603ab added matherr, lroundl and roundl
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-05 20:58:03 +00:00
Rene Gollent
0f1d1fbe30 Temporarily disable this check in Invalidate() as requested by Stephan. This fixes the problem with redraws seen in FlattenPictureTest and a few other places.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-05 17:07:36 +00:00
Michael Pfeiffer
b5c0078dc0 * Used wrong argument order for pixelChunk and rowAlignment in get_pixel_size_for(), so bitmap comparison was wrong for a color spaces with bytes per pixel != 4.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-05 13:39:06 +00:00
Michael Pfeiffer
eaaafdc55f Fixed display artifacts when scrolling horizontally.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-05 13:33:13 +00:00
Stefano Ceccherini
cedb5266aa Removed PictureTest from the image since it's not that cool as a demo, and we have a better unit test anyway (FlattenPictureTest)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-05 09:10:24 +00:00
François Revol
68776e7d42 Sanitized version of my ATI IXP fix. This one checks for host bridge PCI ID so it shouldn't harm other machines. Works for me (cold boots ok). This should fix bug #2342. Please test.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-05 01:52:31 +00:00
Karsten Heimrich
b257bb85e7 * partly revert, we need to keep the initial width
dont overwrite with preferred, it needs to called explicit



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-04 23:44:04 +00:00
Salvatore Benedetto
b6cd7771e7 * Fix cast in user_memcpy
* Fix comparison

send and receive simple message seems to work now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-04 22:14:59 +00:00
Karsten Heimrich
1bdc2a5203 * ResizeToPreferred und GetPreferredSize now behave more closely to R5
this fixes mostly all windows containing TextControls in ArtPaint and
  should fix also ticket #2543

  ArtPaint was calling the BTextControl ctor with an empty rect, followed
  by ResizeToPreferred, which made in the best case the TextInput visible
  but it did not take the label into account. Should help more R5 apps.

  Some more tests on R5 have shown that even if you pass an extra large
  width, a call to ResizeToPreferred will not respect the passed width.
  Also the _BTextInput_ seems to grow with the length of the passed label.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-04 22:05:40 +00:00
Michael Pfeiffer
e5f1745701 Removed debug output, it is not required anymore, as scrolling horizontally should work now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-04 20:32:31 +00:00