26971 Commits

Author SHA1 Message Date
Stephan Aßmus
531bc71bf9 Use the parent's low color, not view color for the icon background and frame
base color. Fixes the frame looking much too strong.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28097 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28097
2008-10-14 18:36:07 +00:00
Stephan Aßmus
a6099ca9e5 * Implemented changing the icons size (several ones are supported from
16 x 16 to 64 x 64).
* Changed the layout code to have dynamic padding depending on main icon size.
* Fixed a problem with the "Auto Raise" feature where, when the pad was along
  the bottom, you had to tip the top of the screen with the mouse for the pad
  to raise...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28096 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28096
2008-10-14 18:32:31 +00:00
Stephan Aßmus
8eeb005f20 ... actually, "unnest" the rest of the file as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28095 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28095
2008-10-14 17:25:42 +00:00
Stephan Aßmus
80e1925251 * Reworded MouseDown() to avoid all these nested conditions...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28094 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28094
2008-10-14 17:23:00 +00:00
Axel Dörfler
700de23e38 * Added assigning an UUID to the image written; you can either pass one via the
new '-u' option, or let it generate one automatically (by building a hash over
  the full path of the image).
* This is allows you to use our images in VirtualBox without having to readd
  the hard drive with every rebuild.
* Enlarged the description section to 1024 bytes - this also prevents VirtualBox
  from writing data beyond the description size.
* Added '-d' option to just dump info about an existing vmdk image file (only
  monolithic mode is supported, though).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28093 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28093
2008-10-14 17:14:29 +00:00
Stephan Aßmus
5604c88c81 Created an icon for Playground.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28092 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28092
2008-10-14 16:16:20 +00:00
Michael Lotz
4476b88f81 * More cleanup, made the coding style mostly Haiku compliant, replaced space
by tab indents everywhere.
* Remove special handling in map_physical_memory to handle page offset and
  length. Opposed to BeOS, Haiku does both automatically.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28091 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28091
2008-10-14 15:20:03 +00:00
Michael Lotz
1627a0251e * Fix syslog output, dprintf doesn't take a va_list. This caused junk to be
written on load of the ACPI module.
* Fix waiting for a semaphore. It didn't ever use the timeout because it missed
  the B_RELATIVE_TIMEOUT and the timeout value would've been wrong as well
  since it didn't convert from milli- to microseconds.
* Do away with the hack of not actually using spinlocks because it apparently
  didn't work on Dano. Now normal spinlocks are used.
* Also remove the atomic test and set function that was used for locking.
* Panic in case an interrupt handler is removed, because it cannot (yet) work.
* Use system_time() to instead of using gettimeofday() and converting.
* Fix reading PCI config, the width was used wrongly so nothing was returned.
* The physical memory read/write function didn't actually do anything or would
  at worst have accessed unmapped memory. It now uses a bit of private VM
  functionallity to actually implement reading and writing physical memory.
* Some style cleanup, more to come in the next commit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28090 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28090
2008-10-14 15:17:58 +00:00
Alexandre Deckner
e400b7d395 * DeskWindow wasn't checking if the context menu for the trash was already open and showing. We do it like in ContainerWindow now. Fixes #353
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28089 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28089
2008-10-14 14:46:47 +00:00
Stephan Aßmus
b2ade57dd9 * Improve indentation.
* Use layout friendly constructor of BView.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28088 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28088
2008-10-14 13:39:55 +00:00
Stephan Aßmus
a96cedf6ef Improve indentation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28087 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28087
2008-10-14 13:29:28 +00:00
Stephan Aßmus
caf9808615 Added a TODO, because I spotted a problem when moving partitions.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28086 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28086
2008-10-14 13:26:45 +00:00
Stephan Aßmus
3f2f8b4c9a Fix some char/line limit and naming problems. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28085 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28085
2008-10-14 13:25:14 +00:00
Stephan Aßmus
eeb00d5abc Small indentation improvement...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28084 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28084
2008-10-14 13:21:43 +00:00
Stephan Aßmus
e385b2434f * Added clarifying comment.
* When the consumer does not want to consume a glyph, make
  sure the advance values are being reset before breaking out of the
  loop. These are used one more time after the loop.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28083 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28083
2008-10-14 13:20:29 +00:00
Stephan Aßmus
47ddcdba73 Removed superfluous parenthesis.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28082 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28082
2008-10-14 13:19:15 +00:00
Stephan Aßmus
d3cfdf5740 Updated copyright.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28081 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28081
2008-10-14 13:17:24 +00:00
Stephan Aßmus
ed3215ee21 Save one check in certain situations.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28080 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28080
2008-10-14 13:16:44 +00:00
David McPaul
6babeb8545 get MetaData from infoBuffer parameter
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28079 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28079
2008-10-14 12:55:23 +00:00
David McPaul
6df521300a turn off debug
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28078 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28078
2008-10-14 12:54:02 +00:00
David McPaul
f4be1422f2 pass a wave structure as meta data. avcodec needs it
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28077 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev28077
2008-10-14 12:53:20 +00:00
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
hrev28076
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
hrev28075
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
hrev28074
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
hrev28073
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
hrev28072
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
hrev28071
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
hrev28070
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
hrev28069
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
hrev28068
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
hrev28067
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
hrev28066
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
hrev28065
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
hrev28064
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
hrev28063
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
hrev28062
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
hrev28061
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
hrev28060
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
hrev28059
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
hrev28058
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
hrev28057
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
hrev28056
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
hrev28055
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
hrev28054
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
hrev28053
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
hrev28052
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
hrev28051
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
hrev28050
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
hrev28049
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
hrev28048
2008-10-13 20:19:11 +00:00