Commit Graph

26800 Commits

Author SHA1 Message Date
Michael Lotz
57f8452b78 Rather use UsePublicObjectHeaders instead of using USES_BE_API for the
gen_mattypes build tool, as the latter will try to use BeOS headers on BeOS
compatible host platforms and therefore breaks the build because of missing
files. This should work on all platforms, as with that the headers in the
repository are always used.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28076 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 11:08:08 +00:00
François Revol
9a1e8ef4ce - factor out code
- name color drops


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28075 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 10:11:28 +00:00
François Revol
456e89ccc2 - fix bezier points
- set names on objects
/me pets Humdinger


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28074 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 09:40:14 +00:00
Stefano Ceccherini
80fa95ad77 no need to use private libbe variables anymore
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28073 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 09:19:21 +00:00
François Revol
9842ea8fda - better handling of escapement, but still wrong
- handle line feeds
- warn when text is too long
- better control points, but it's still not correct


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28072 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 08:41:03 +00:00
Axel Dörfler
976eeb4da0 Squashed a TODO in the block allocator:
* BlockAllocator::AllocateBlocks() was implemented pretty crappy: instead of
  just remembering the best run on the first pass, it made a second pass through
  all allocation groups when it couldn't fulfill the maximum request.
* Even worse, it would then also only allocate the first run that satisied the
  minimum request. Now, it will always choose the best allocation, leading to
  less fragmentation, and an improved runtime.
* Now mmlr hopefully won't need to wait 10 minutes for the bloc allocator to
  create the swap file on his fragmented volume...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28071 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 08:38:33 +00:00
Stefano Ceccherini
adc7239906 also rename the device from 're' to 'rtl81xx'
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28070 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 07:32:46 +00:00
Axel Dörfler
670622943f * Added mounting of file devices by path (they are tried as a fallback when
mounting by name failed).
* Also left some TODO comments in the code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28069 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 23:50:51 +00:00
Axel Dörfler
260e077ff7 * Registering a file device now also normalizes the path now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28068 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 23:49:52 +00:00
Axel Dörfler
b16cba7bb5 * The Tracker now makes use of the new B_DISK_SYSTEM_SUPPORTS_WRITING flag,
and will only show the "mount me read-only?" dialog when the file system
  actually supports writing in the first place.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28067 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 23:49:10 +00:00
Axel Dörfler
c7cf50a4e5 * Added a handy BDiskSystem::SupportsWriting().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28066 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 23:47:30 +00:00
François Revol
ad5eea0a83 Fix Haiku build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28065 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 23:45:31 +00:00
François Revol
8457f71f08 - handle color drops as a new style
- handle dropped/pastes text as shapes with path (and style when with text_runs from StyledEdit)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28064 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 23:42:29 +00:00
Stephan Aßmus
249a4a187e zooey + stippi:
Reimplemented the drag message over the team entries dragging. The previous
implementation used the menu bar tracking by faking a B_MOUSE_DOWN event. The
problem was that in Haiku menus are always sticky and therefor the tracking
thread was not exited when the user released the mouse (which was supposed to
trigger the drop event in the Deskbar). The new implementation follows the
drag in the asynchronous mouse hooks and uses it's own selection state in
TTeamMenuItem to highlight the eventual drop targets.
Fixes #2771.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28063 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 23:31:19 +00:00
Rene Gollent
dfcc059e7b Fix build of tool version of makebootable on Haiku.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28062 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 23:27:50 +00:00
François Revol
5ad3245c2b Timer & RTC code
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28061 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 23:24:09 +00:00
François Revol
1fa01fe47a Fix the build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28060 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 23:23:14 +00:00
Stephan Aßmus
350b87c7d2 zooey + axeld + stippi:
Fixed a problem with dispatching B_MOUSE_MOVED messages to views which need
the transit event:
* If the app_server decided to send a B_MOUSE_MOVED to the previous mouse
  containing window, it forgot to add the _feed_focus flag, which was a problem
  if the message actually happened to contain tokens (views that registered
  for events.) On the client side, only those views would receive the message,
  while the regular last mouse moved view would not be notified at all.
* On the client side, never change fLastMouseMovedView if the message is not
  targeted at the preferred handler. In the above situation, any "registered
  for events views" would receive the message first, but viewUnderMouse would
  be NULL and then when the regular last mouse moved view received it, it
  resulted in the wrong transit (B_OUTSIDE_VIEW instead of B_EXITED_VIEW).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28059 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 23:16:30 +00:00
Stephan Aßmus
bfaa132f3f Also test what happens when there is a view with an event mask. (Currently
shows a bug in the app_server event dispatching which is going to be fixed
next.)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28058 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 23:08:53 +00:00
Stephan Aßmus
e0418bf91e Fixed wrong target name.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28057 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 23:07:50 +00:00
François Revol
5088b34272 Code to read and write the RTC, copied from the x86 version.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28056 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 23:04:49 +00:00
Axel Dörfler
057f999da6 * Added a flag B_DISK_SYSTEM_SUPPORTS_WRITING to determine whether or not a
file system can write to files before mounting.
* Set the flag for all file systems that actually can write.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28055 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 22:32:27 +00:00
Axel Dörfler
c7cf16883e * makebootable now checks if the partition/image/device is mounted via the
disk device API, and if that is the case, it will use the private
  BFS_IOCTL_UPDATE_BOOT_BLOCK ioctl to update the boot code.
* Fixed inconsistent naming of "Bootcode" vs. "BootCode".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28054 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 22:08:26 +00:00
Axel Dörfler
cfa4660b47 * Changed the way the BFS_IOCTL_UPDATE_BOOT_BLOCK ioctl works; it's a bit
more flexible to use now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28053 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 21:54:40 +00:00
Axel Dörfler
38bbc95758 * Made the use of file devices more convenient and complete by adding
the methods IsFile() and GetFilePath() to BDiskDevice, and
  BDiskDeviceRoster::GetFileDeviceForPath().
* Added new syscalls to implement this functionality.
* Added new flag B_DISK_DEVICE_IS_FILE.
* Fixed wrong operator precedence assumption in the BDiskDevice class at
  several places.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28052 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 21:51:43 +00:00
Jérôme Duval
42d02ade26 forgot to use HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28051 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 21:24:51 +00:00
Jérôme Duval
b9de80bbb8 * updated build opengl headers to 7.2
* added opengl to build be api headers
* define USES_BE_API for gen_matypes
this should fix the build for Linux which don't provide GL headers :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28050 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 21:10:52 +00:00
Rene Gollent
35cfb6a900 Adjust ata bus manager to compensate for r27979.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28049 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 20:57:37 +00:00
Jérôme Duval
ba859f07b2 update to tzdata2008g
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28048 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 20:19:11 +00:00
Jérôme Duval
99b5226b87 matypes.h is a generated header
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28047 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 20:11:27 +00:00
Jérôme Duval
a9d11d2365 updated mesa to 7.2
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28046 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 19:37:51 +00:00
Stephan Aßmus
010866b091 Meanwhile and zuMi both have send me an icon for the Mandelbrot demo. I have
made a new icon which should incorporate the best stuff from both icons. Thanks
a lot to both of you! The Mandelbrot_2 icon shows the fractal with the initial
color palette that the real Mandelbrot demo will use, but I like zuMi's colors
better. Just adding it for reference.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28043 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 16:06:00 +00:00
Stephan Aßmus
25b20cdaf6 Variation of the Expander icon with arrow - different color scheme.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28042 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 15:54:21 +00:00
Stephan Aßmus
18510f899b Added input_server icon by zuMi. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28041 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 15:52:05 +00:00
Stephan Aßmus
2c7f3ba5f6 * zuMi sent a nice icon for 7zip archives.
* Added 7zip mime type. (TODO: Add proper recognition rule.)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28040 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 15:46:00 +00:00
Oliver Tappe
adffb3bd7f * fixed build in DEBUG mode
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28039 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 15:30:24 +00:00
Stefano Ceccherini
b6e7f00598 sprintf -> snprintf. Also removed useless dprintf()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28038 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 14:41:33 +00:00
Stefano Ceccherini
88b98cbc2c also add a '\n' character, thanks to Francesco Piccinno for noticing
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28037 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 14:29:33 +00:00
Stefano Ceccherini
1125065dfa build fix for nongcc4 build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28036 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 14:24:19 +00:00
François Revol
9a787d297d ADd platform hooks to read RTC. platform code should mimic the PC CMOS chip.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28035 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 13:55:57 +00:00
Stefano Ceccherini
06679066a3 worked on the acpi namespace dumper: I kept the recursive implementation of the function, but I had to use a different thread, then, to read the data, without smashing the buffer passed by read(). It still doesnt' work correctly 100% (because I obviously made some stupid mistake, please review), but at least 'cat /dev/acpi/namespace' doesn't KDL anymore, and it even shows something.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28034 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 13:55:53 +00:00
Axel Dörfler
25174582be Fixed two problems recently introduced by korli and found by aldeck:
* When invalidating unused settings, we should remove the handle from the list
  before freeing it, or else the settings list will be corrupted.
* We should protect the safemode settings against being removed, or else they
  won't be availabe anymore after we mounted the boot device.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28033 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 13:38:01 +00:00
Axel Dörfler
0d5673573e * Symbols with templates are completely ignored for now (ie. they won't confuse
the demangler anymore).
* Functions with leading "__" won't confuse the demangler anymore either.
* Added a maximum argument count of 32 to reduce the risk of endless loops.
* Added protection against recursively calling get_next_argument_internal()
  more than once.
* Added detection for floats, and doubles (long doubles will currently make
  it reject the symbol).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28032 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 13:10:35 +00:00
François Revol
7d49488b80 - cleanup
- remove dead ppc code
- add support for probing hardware registers the way linux does (early, hook with VBR to trap faults)
- detect MFPs this way.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28031 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 12:56:16 +00:00
Stephan Aßmus
eaa9af9937 Never use the current menu UI color, but always the view color of any given
menu. Fixes #974.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28030 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 12:40:07 +00:00
Michael Lotz
ecb3d008d6 If a device reports no media is present, don't try to get the geometry anyway.
This confused some USB card readers, that would stop working if you still
requested the geometry when they reported no media.
Note the case that the B_GET_MEDIA_STATUS fails (because it's not implemented or
an error occured) is still handeld in _GetMediaStatus() and then we still try to
get the geometry to check for media presence.
This should fix that some USB card readers wouldn't work and should also remove
the wrongly reported size in DriveSetup for CD drives that don't actually contain
a media.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28029 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 12:34:44 +00:00
Stephan Aßmus
f3142445ae Fixed the layout/width of the search string text view.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28028 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 12:02:32 +00:00
Stephan Aßmus
cd88f4c042 Patch by Humdinger:
* Added the missing Team Monitor intro.
* Fixed navigation in the preceeding and following files.

Changes by myself:
* Removed the bottom navigation in the Twitcher intro, since the file is so
  short anyways.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28027 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 11:53:22 +00:00
David McPaul
735b87857b add additional tracing
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28026 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 10:45:49 +00:00
David McPaul
aef9c5249e rework seeking calculations
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28025 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 10:43:06 +00:00