Commit Graph

17422 Commits

Author SHA1 Message Date
Ingo Weinhold
b0634f6510 Resource definition files (*.rdef) are now piped through the C preprocessor.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-06 12:38:30 +00:00
Jérôme Duval
bc19ead830 added a settings file for auich
there is now an option for laptops for which no interrupt is available (ie stippi's one) : use_thread
even when use_thread is active, it could be needed to use a higher value for buffer_frames (ie 512)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18406 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-05 20:10:48 +00:00
Jérôme Duval
cd270b7da8 added microsoft usage page
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18405 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-05 17:45:33 +00:00
Stephan Aßmus
4122cbb09a * copied code from BNodeInfo over to BIconUtils
* implemented a simple "GetIcon" function which loads whatever
  icon fits most depending on the available icons and the
  colorspace/size of the pre-allocated bitmap passed to the function


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18404 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-05 16:06:09 +00:00
Stephan Aßmus
6b422a8c22 * added a little documentation to BIconUtils in the header
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18401 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-05 13:53:54 +00:00
Stephan Aßmus
70f4b8c0ae * cleanup for consistency in FlatIconFormat.h
* used Axels proposals for vector icon attribute name
* added a BIconUtils class, currently only dealing with vector icons,
  it will render a vector icon from either a BNode attribute or a flat
  buffer in memory into a provided bitmap. The bitmap needs to be of
  B_RGBA32 colorspace, the size of the bitmap determines the scaling
  of the vector icon, width and height should currently be the same
  (square bitmap)
* TODO:
  - add reading of "old" BeOS icons / move icon reading from other
    places (BMimeType?) into BIconUtils
  - add reading icons from resources?
  - suggestions?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18400 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-05 13:12:43 +00:00
Jérôme Duval
faa8b41dac added locking around ring_buffer_user_read as suggested by axeld. locking is already around ring_buffer_write
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18399 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-05 12:33:03 +00:00
Stephan Aßmus
38c71d13d7 * fixed build for PathContainer.cpp (stupid last minute change...)
* fixed crashing bug in Shape, it doesn't "own" the Style...
* fixed problem in Shape in for non Icon-O-Matic build, fNeedsUpdate
  still needs to be maintained.
  
Having a read-only version has definitely improved efficiency! The
icon import time must have dropped 50%. The overall penalty for
reading vector icons in Tracker seems to be 1.5 to 2 ms now, including
parsing and rendering at 32x32. 



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18398 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-05 00:24:12 +00:00
Stephan Aßmus
fb07ece069 * moved all the classes actually needed for reading a
vector icon to this place, #ifdef'd out all the editing
  features (listening, referencing, converting to
  PropertyObject... etc)
* TODO: put into BPrivate namespace...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18396 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-04 23:57:01 +00:00
Stephan Aßmus
fd493c239f simplified translation(), more robust too
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18395 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-04 23:49:14 +00:00
Oliver Tappe
b07b33c4ec * fixed access of deleted value in free_hook() that I introduced myself a couple
of months ago
* cleanup, improved styleguide conformance at least to some extent...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-04 19:34:43 +00:00
Jérôme Duval
78f9905a57 usb_hid now uses our kernel ring_buffer implementation even on BeOS
fixes bug #722


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18392 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-04 19:24:08 +00:00
Jérôme Duval
6a6c43798f have ring_buffer built on non-haiku platforms
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18391 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-04 19:20:01 +00:00
Axel Dörfler
b526381437 Removed unused header as pointed out by Korli.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18384 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-03 22:24:03 +00:00
Axel Dörfler
1d9d47fc72 Started a libbsd.so with some useful stuff for porting applications.
Very limited right now, but might even be enough. We might want to move arc4random.c
from traceroute over, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18382 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-03 21:28:46 +00:00
DarkWyrm
b6ee50dd11 Style cleanups
Fixed the header to mention the authors on this app on each file
Made the prefs app font sensitive


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-03 20:50:40 +00:00
DarkWyrm
53108d8ba3 Removed B_REDO definition - it's actually not needed under R5 now
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-03 18:34:22 +00:00
DarkWyrm
374fa7fc08 Moved Haiku-specific defs for the Translation Kit to the proper file
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18377 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-03 18:28:52 +00:00
DarkWyrm
57cbc95a2f Need to actually *build* libhaikucompat on non-Haiku platforms. :D
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18376 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-03 18:25:26 +00:00
Ingo Weinhold
6e7c6fe567 Applied patch by mathewblack@ntlworld.com (bug #723) to support spaces
in the path to the Haiku working dir.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18375 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-03 17:57:34 +00:00
DarkWyrm
6c0e9c8097 Moved Haiku-dependent command line apps to just Haiku build targets
Added an include to dstcheck to build for R5.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18374 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-03 17:53:43 +00:00
Ingo Weinhold
5abaa7ebb1 We do now include HaikuBuildCompatibility.h and link against libhaikucompat.a
automatically for all BeOS compatible target platforms but Haiku. This should
allow more Haiku code to build for BeOS.

Disclaimer: I couldn't really test it, since my BeOS working tree is switched
to my layout branch and under Linux I obviously can't test building for BeOS.
So, if you have complaints, keep them to yourself and just fix the problem.
;-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18372 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-03 17:50:19 +00:00
DarkWyrm
9cb421d375 Confined a couple of Haiku-only command-line apps to just Haiku builds
Tweaked a cast in listarea to permit R5 building


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18370 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-03 16:37:48 +00:00
DarkWyrm
146cf2137b Added a fix for DiskProbe under R5
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18369 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-03 15:56:12 +00:00
DarkWyrm
2583a5828f Fix build under R5
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18367 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-03 15:01:38 +00:00
DarkWyrm
19e5578eff License updates
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18365 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-03 14:29:55 +00:00
DarkWyrm
0f7ce5276a Fixed build for non-Haiku targets
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-03 14:23:24 +00:00
Stefano Ceccherini
ea4eba9f14 Simplified a bit a part of FindLineBreak. Removed a now useless comment
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-03 13:12:54 +00:00
Axel Dörfler
f1d0add2ca _AddReplicant() now calls CanAcceptReplicantView(), too, which fixes the incorrect
replicant positioning upon add, a.k.a. bug #639: Deskbar relied on that method
being called to add positioning information to the replicant.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-02 20:47:27 +00:00
Jérôme Duval
772abce732 factored driver name
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-02 18:38:03 +00:00
Axel Dörfler
4fec945a03 Stefano's investigations did the trick: added MenusBeginning()/MenusEnded() in
the shortcut evaluation.
This fixes bug #531.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-02 10:16:10 +00:00
Jérôme Duval
9cd5adb2a5 fixed some oddities with accent dead keys, this should fix bug #719 :
dead keys are now available through option key
diaeresis and acute are now presented with diaeresis and acute characters (instead of double-quote and quote characters)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-01 16:47:26 +00:00
Axel Dörfler
21470984c8 Added utimes() implementation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-01 11:02:32 +00:00
Stefano Ceccherini
0354c3c2d5 Added missing return statement
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-01 09:30:17 +00:00
Axel Dörfler
0dd2e9c328 * Changed Insert() to not only compile but also work differently in that it
inserts the item before, and not after the given element (that's probably
  what you expected anyway).
* Added ReverseIterators.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18307 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-29 17:58:17 +00:00
Axel Dörfler
3ef31db042 * Obviously, the i9xx family has changed the order of the PCI mappings, so we need
to take that into account.
* Introduced INTEL_TYPE_FAMILY_MASK and INTEL_TYPE_GROUP_MASK to better
  differentiate the device type.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18293 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-27 08:32:36 +00:00
DarkWyrm
f30d1a521a Some initial revisions for the first 11 chapters or so
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18292 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-27 01:30:57 +00:00
DarkWyrm
6fd4020e03 Finished Chapter 12 and all of 13. Now comes proofreading and revising. *heh*
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18290 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-26 20:37:13 +00:00
Axel Dörfler
82bb1bb302 * The driver needs to register itself with the correct name in order to be reloaded
on demand - device detection should now work as expected (not yet tested, as I
  didn't want to reboot yet :-)).
* Some more cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18283 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-26 17:29:33 +00:00
Axel Dörfler
05c0dde554 Uh, the reason why ping did only work once, was because set_alarm() did not call
the existing syscall...
The second ping now ends in a kernel panic, though 8-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18277 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-26 13:19:52 +00:00
DarkWyrm
34a892a1c1 Miscellaneous cleanups, slight restructuring of chapters, Chapter 10 is finished and Chapter 11 is well on its way
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18274 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-25 22:51:56 +00:00
Oliver Tappe
b66ae2c9c8 - moved dumpBlock() into debug.c, renamed it to dump_block() and added it
to kernel-exports.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18268 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-25 19:46:36 +00:00
DarkWyrm
375837b47b Finished Chapter 10 and started Chapter 11, including how to properly use a BAlert
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18261 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-25 14:14:11 +00:00
Axel Dörfler
eaf9428ba1 * Keyboard repeat is no longer crashing, in fact it's just working now :-)
* More minor cleanup.
* All that's missing is to make the keyboard repeat delay/rate configurable,
  but that can be done later (and is pretty simple, too).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18260 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-25 00:47:02 +00:00
Bruno G. Albuquerque
bcf475ec65 Made our version of is_computer_on_fire() behave like the BeOS one.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18259 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-25 00:26:03 +00:00
Axel Dörfler
69c9a73ef1 * First go at implementing key repeat support - not yet tested, though.
* Fixed some potential crashing bugs: an assert() is no replacement for
  checking the result of an allocation!!!
* More minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18258 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-25 00:16:48 +00:00
Axel Dörfler
1526fa19b6 Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18257 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-24 23:37:00 +00:00
Bruno G. Albuquerque
92c6f0417b How could we live without this?
Added B_DONT_DO_THAT error define.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18256 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-24 22:52:56 +00:00
Axel Dörfler
e48655c17f The driver can now be built again for R5.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18252 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-24 19:39:03 +00:00
Michael Lotz
8ba81a767e Continuing work on the USB stack and UHCI driver.
* Moved the transfer descriptor management into the UHCI class
* Added locking to the driver and the queues
* Added service thread for finished transfers (to be implemented correctly)
* Cleaned up some headers and added myself as author

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18245 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-23 22:21:34 +00:00