Commit Graph

17956 Commits

Author SHA1 Message Date
Michael Lotz
5dc45eb4fe * Unified handling of different BMessage formats into MessageAdapter.cpp
* Removed r5_message.cpp and dano_message.cpp accordingly
* Also moved out KMessage handling from Message.cpp to MessageAdapter.cpp
* Fixed some minor style issues in Message.cpp

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21514 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-27 20:22:53 +00:00
Axel Dörfler
c5812d39a5 * no longer reschedule after releasing the bits lock.
* LockBits() now fails with B_BUSY in case the current buffer is NULL.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21513 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-27 12:10:46 +00:00
Axel Dörfler
117b384e5e * Implemented the overlay suspend/resume protocol on mode changes; not really tested
yet. Also, BBitmap::LockBits() should probably fail when the Bits() are NULL.
* The downside is that many more classes now know of each other.
* Cleaned up the work divided between the BitmapManager and the Overlay class.
* Fixed a memory leak in AS_CREATE_BITMAP in case the bitmap could not be added to
  the ServerApp's bitmap list.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21512 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-27 11:29:20 +00:00
Stefano Ceccherini
c57ff65839 Avoid scrolling vertically if scrolling area is outside the text rect. Pin parameters in Select() before doing other checks on them (reported by Marc Flerackers)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-27 10:43:48 +00:00
Axel Dörfler
d56eb9cf5d * LockBits() now returns B_OK for non-overlay bitmaps, as that makes much more sense.
* Added TODO about the possible use of the state parameter (would be nice to be compatible
  with R5 here, of course).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21510 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-26 23:20:44 +00:00
Axel Dörfler
eeb608e1c7 * StringFromStream() did not work correctly for empty strings (messed up the stream
position).
* StringFromStream() called BString::LockBuffer() with "length", but touched "length + 1"
  bytes.
* Prepared for the new "display as" FileTypes feature.
* The "DefaultQueryTemplate" folder now adds the MIME type of the folder to the
  attribute menu for simplified editing (before, you had to move a file with a
  matching file type into that folder to be able to add the attributes you likely
  wanted to see).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21509 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-26 17:43:55 +00:00
Axel Dörfler
985d6b5437 DiskProbe now also allows you to open directories; even though you can't access their
stream, you can still see and change their attributes (same for symlinks which were
already allowed before).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21508 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-26 16:09:08 +00:00
Axel Dörfler
cba2053487 Style changes courtesy of Vasilis Kaoutsis - thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21507 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-26 14:13:05 +00:00
Axel Dörfler
d2d8f91af5 Fixed copy&paste bug, thanks Stippi for noticing!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21506 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-25 23:48:47 +00:00
Axel Dörfler
b418398455 * Removed _GetWindowList()
* _WindowAt() and _CountWindows() now have an individual version of that
  code which should be magnitudes faster.
* _WindowQuitLoop() no longer handles hidden windows specially - instead,
  it now walks the window list in the correct direction which should fix
  the issues.
* Also, it now uses WindowAt() and thus has an up-to-date view of the
  window list (it will no longer ignore new windows).
* And finally, it will no longer dereference an unsafe pointer (for
  BWindow::IsFilePanel()).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21505 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-25 23:38:45 +00:00
Stephan Aßmus
880e4292a1 * implemented an xvid based decoder plugin
-> It is currently disabled, because it won't link.
   I would need to add xvid to the tree, but that would add nasm
   as a build dependency. I need to talk this over with Ingo. However,
   it is quite easy to build xvid yourself and link the decoder, should
   you want to test it. It works fine under ZETA when compiled to use
   the undocumented R5 Decoder API.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-25 21:11:55 +00:00
Michael Lotz
ac9d119566 Commiting patch by Salvatore Benedetto. This adds isochronous handling to the USB bus manager and enables inbound isochronous support in the UHCI driver. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21503 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-25 19:51:12 +00:00
Stephan Aßmus
0f5e6b41e7 * remove QuitRequested() implementation again, because the bug that MediaPlayer
didn't quit was really in BApplication (the fix there also fixes other apps
  not quitting, like Icon-O-Matic and probably others)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21502 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-24 11:45:50 +00:00
Stephan Aßmus
82d0e2c2b5 * do not ask hidden windows if they want to quit (not to be confused with
minimized windows, those need to be asked of course)
* added some comments about why this code is a little flawed but works anyways

NOTE: I really wonder wether traversing the window list in reverse is correct


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21501 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-24 11:43:48 +00:00
Ryan Leavengood
82fc8592fc Fixed bug #1281, which I logged. MediaPlayer was not behaving properly when being asked to quit.
The default BApplication::QuitRequested was not playing well with the other quitting logic in 
MediaPlayer (like in the windows.)

This simple "return true" QuitRequested seems to do the trick.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21500 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-24 04:58:42 +00:00
Marcus Overhagen
cbd5957241 disable the per frame debug output
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21499 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-23 23:36:47 +00:00
Marcus Overhagen
935522a3ae better error handling
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21498 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-23 23:35:26 +00:00
Marcus Overhagen
be5f5c2d14 ck a dull boy All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull
boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a dull boy. All work and no play makes Jack a 
dull boy. All work and no play makes Jack a


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21497 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-23 23:17:57 +00:00
Michael Lotz
16c1a4e653 Uncomment signature and flags of FileType add-on to fix bug #1280.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21496 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-23 21:48:34 +00:00
Ingo Weinhold
ff39fef2a4 * ceilf() both font ascent and descent individually before adding them up to
compute the vertical space requirement of the label.
* Use a better algorithm for vertically aligning the label. The menu bar (or
item) seems to use another algorithm. So, ATM the label is not necessarily
aligned with the menu bar text.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21495 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-22 21:52:53 +00:00
Jérôme Duval
20bda75303 exit with 1 when an error occurs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21494 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-22 16:23:51 +00:00
Axel Dörfler
ca13bd31a7 * The Deskbar tray icon menu "Check Mail" and the status window "Check Now" button
are now only enabled if there are any inbound accounts.
* BMailSettings::StatusWindowFrame() now returns some useful defaults.
* Minor cleanup.
* The MDR kit needs some serious overhaul before it can be part of R1.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21493 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-22 00:15:17 +00:00
Axel Dörfler
4976138306 * Korli renamed the driver, but forgot to let the driver ask for the new accelerant name.
* Added a TRACE_S3SAVAGE macro that turns on debug output - should be set conditionally
  if DEBUG is defined (see DriverInterface.h), but is currently always on, as requested
  by Gerald.
* Some minor style fixes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21492 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-21 23:38:53 +00:00
Axel Dörfler
b9c1e099e2 The Workspaces layer will now also be updated when the window hidden/shown is not on
the current workspace - this fixes bug #1191.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21491 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-21 22:42:39 +00:00
Axel Dörfler
66dae31027 * The AM/PM value wasn't correctly shown when it was 12 o'clock. This fixes bug #1184.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21490 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-21 22:38:16 +00:00
Stephan Aßmus
6af4da5dcb * added MediaConverter, the improved version by Jun Suzuki, to the source tree
* I completely rearranged the source and fixed a few bugs, one of which
  prevented me to use this tool to convert some XViD encoded AVIs that had
  sound to PJPEG encoding.
* it is currently agreed to have this in the source, but not on the image yet,
  the MediaKit doesn't support writing anyways as of now


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21489 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-21 22:19:02 +00:00
Stephan Aßmus
b69827d9b5 * fixed ScrollView framework to support data rects with negative left/top
coordinate correctly


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21488 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-21 22:14:44 +00:00
Stefano Ceccherini
cf76d671df I *think* I've fixed the problem of menu fields not being opened when
the user clicks on the part which has been resized...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21487 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-21 20:47:19 +00:00
Stefano Ceccherini
80d75f15df Fixed problems with try/catch, hopefully. Thanks Axel for pointing them
out.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21486 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-21 20:25:08 +00:00
Axel Dörfler
245aecda8a Got rid of vnode_id and mount_id, replaced with ino_t and dev_t.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21485 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-21 19:50:57 +00:00
Jérôme Duval
29cb39c4ff actually exit with an error when it happens
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21484 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-21 18:40:33 +00:00
Axel Dörfler
0cb94db539 Ingo and I fixed a couple of VM bugs in a late night debugging session:
* vm_copy_on_write_area() now does no longer overwrite the ref_count, but keeps
  it's reference to the cache until it has unlocked it.
* It now also locks its reference from the start, preventing any other thread
  to interfere.
* vm_cache_remove_consumer() now detects if it has to remove a foreign busy
  page itself in order to preserve a mapped page.
* vm_soft_fault() now keeps a reference to the cache that owns the page to be
  mapped until it has actually mapped it.
* vm_unmap_pages() removed the mappings of all pages of the area instead of only
  those that are within the requested range.
* Kept (disabled) debug output for convenience.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21482 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-21 13:57:46 +00:00
Axel Dörfler
8491616029 Putting an unused block will now trigger a panic.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21481 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-21 12:35:39 +00:00
Axel Dörfler
4c7e2a45fa * Fixed a bug in CachedBlock::Unset() that would call block_cache_put() on the same
block everytime it's called - that caused negative reference counts in the block
  cache, causing all sorts of problems once they were flushed.
* Changed order of includes in system_dependencies.h to what I prefer: descending from
  private to public (resp. from most specific to most generic) headers.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21480 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-21 12:34:28 +00:00
Axel Dörfler
efd98f31b2 The "show shared volumes on Desktop" setting now defaults to true.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21479 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-21 12:29:48 +00:00
Axel Dörfler
210cbb4bd1 * Removed the old LICENSE files of the previous S3 Savage driver as suggested by
Gerald.
* Added Gerald Zajac and Jan Kloetzke to the list of contributors.
* Added the s3savage driver and accelerant to the image.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21478 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-21 10:14:11 +00:00
Travis Geiselbrecht
c9788912f0 re-enable kernel asserts.
Disabled by default, but all kernel devs are *highly* recommended to turn them on for your builds and see if it trips anything, and then fix it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21477 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-21 05:37:46 +00:00
Travis Geiselbrecht
554fdaa33a Fix a bug that was tripping an assert in the kernel module code.
When iterating through modules, the iterator was loading the module file, inserting it into the module image hash. Then, the first time get_module() was called on a module contained in the image, it was trying to load the image again. It probably actually was. Changed the logic to call get_module_image() which checks to see if it's already loaded.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21476 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-21 05:07:14 +00:00
Jérôme Duval
bb36f69fd0 gPeriodicUpdatePoses is already declared extern in the header
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21474 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-20 21:40:43 +00:00
Jérôme Duval
61433d8459 missing comment token
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21473 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-20 21:32:51 +00:00
Axel Dörfler
268403d4cc Fixed the build of the boot loader test application.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21470 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-20 01:09:00 +00:00
Axel Dörfler
ee76fc8f16 The SimpleTest rule is now using the Haiku glue code - so it should better be 100% compatible; turns out _init_c_library_() gets the arguments and environment as parameters (in case you wondered why __libc_argv and __libc_argc wouldn't work anymore for these apps all of a sudden).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21469 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-20 01:06:48 +00:00
Axel Dörfler
8ba7bc695a * Calms down a superfluous GCC 2 warning.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21468 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-20 00:51:20 +00:00
Ingo Weinhold
de83ade240 Added test for BMenuField.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21467 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-19 23:39:10 +00:00
Ingo Weinhold
b321303cf9 * Implemented Min/Max/PreferredSize().
* Reworked the internal layout. _ValidateLayoutData() computes and caches the
  layout related data and all other methods just use those values. Now, in
  layout-aware mode the class should properly work not only when using the
  layout items. And when using layout items, the class does actually do
  internal layout; it was basically good luck that it worked in the tests,
  before. Vertical resizing is supported, too. 
* We do a few mean tricks to get the probably mostly preferred layout behavior:
  By default our own explicit max width and that of the menu bar layout item is
  set to unlimited and the horizontal menu bar alignment to left aligned. This
  allows to horizontally resize a BMenuField beyond its preferred size,
  although both label and menu bar have a limited max width. The user can, of
  course, override those explicit sizes/alignments to get a different behavior,
  if desired.
* Fixed invalidation in SetDivider(). When having the focus, the left and top
  border of the blue frame were not invalidated.
* The label is no longer drawn at vertical position font ascent + descent
  + leading + 2 (not sure how this calculation was supposed to work), but
  vertically centers the label around the ascent. With big fonts the label is
  shown a bit too far to the bottom. Not sure how to fix this in a generic way.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21466 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-19 23:38:00 +00:00
Ingo Weinhold
ec592aa9e5 Implement _BMCMenuBar_::MaxSize() to override BMenuBar::MaxSize() and limit
the maximum width. The latter supports unlimited maximum width. The
_BMCMenuBar_ draws fine when resized wider than its min/preferred width, but
not the complete "button" area will cause the menu to open when being pressed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21465 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-19 23:09:01 +00:00
Ingo Weinhold
23b9a91178 Also override MinSize() and PreferredSize().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21464 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-19 23:02:34 +00:00
Stephan Aßmus
45f929b494 * added BCommandPipe class (currently private API) kindly provided by
Ramshankar
* adopted to Haiku coding style


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21463 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-19 12:38:29 +00:00
Michael Lotz
687e327bac Reworked the handling of periodically updated poses (currently only ones with a volume space bar):
* Addad global list where poses that need periodic updates can be registered with a callback
* Use this mechanism for poses with a volume space bar
* Create only one BVolume when the BPose is created for a volume, instead of every time the free space is calculated
* On Pulse() the global list is used to update all of the registered periodic update poses
* As the poses know their volume, it is no longer necessary to use a BVolumeRoster to loop through each volume on each Pulse()
* Removed the now superfluous SendNotices() mechanism
* Removed corresponding watching / handling of these notices in BPoseView

The BPoseView did a linear search for each volume pose on each Pulse() before. What's more it did this once for each mounted volume as it did get one individual notice for each of them. To get these volumes a BVolumeRoster was used to loop through the volumes, but then the BPose did still create a new BVolume to actually calculate the free space! I'm surprised that it did not suck away more performance with this method...

Anyway, this should bring down BVolume construction and update overhead down to a minimum and hopefully fix ticket #1247.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21462 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-19 09:33:29 +00:00
Axel Dörfler
5de78b2cdb Added some temporary means to ease debugging block caches - at least the list
of all caches should be removed at a later point.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21461 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-18 23:58:15 +00:00
Ingo Weinhold
5680c33e48 Style changes by Vasilis Kaoutsis.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21460 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-18 17:35:48 +00:00
Stefano Ceccherini
ffcd67bc82 moved duplicate code to a common location.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21459 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-18 14:30:56 +00:00
Stefano Ceccherini
ac2284ed8b Moved ZombieReplicantView.h to src/kits/interface
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21457 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-18 13:38:14 +00:00
Stefano Ceccherini
fab61b6237 Moved TextInput.h to src/kits/interface as it's only used there.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21455 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-18 13:31:46 +00:00
Stefano Ceccherini
a24a5156f9 splitted SetActiveState() into 2 methods, since it was very messy
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21454 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-18 13:15:58 +00:00
Axel Dörfler
c9c97da195 Print only the tool name instead of the full path.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21453 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-18 12:49:37 +00:00
Stefano Ceccherini
99851ad6db free() the modelist as it's allocated using malloc. A forgotten printf -> fprintf. minor other stuff.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21452 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-18 12:44:58 +00:00
Stefano Ceccherini
d53469036b CanControlFrameBuffer() returns false with the vmware driver, but
ParticlesII doesn't need to do special things with it


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21451 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-18 12:36:30 +00:00
Stefano Ceccherini
6a45488dd9 Used exceptions to handle errors on InitData(). I hope I didn't made
stupid errors, since I don't use exceptions usually. Feel free to beat 
me on this. Moved uninitialization to _DisposeData(). Corrected some 
styling issues pointed out by axel. Used fprintf instead of printf.
Turned off debugging.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21450 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-18 09:53:36 +00:00
Stephan Aßmus
13526fae69 * compile fix provided by Michael Berg
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21449 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-18 08:39:37 +00:00
Stephan Aßmus
2cb637f4b9 * compile fix provided by Michael Berg
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21448 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-18 08:38:01 +00:00
Stephan Aßmus
033bb29d51 * compile fix provided by Michael Berg
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21447 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-18 08:35:50 +00:00
Stephan Aßmus
8ec143c887 * compile fix provided by Michael Berg
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21446 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-18 08:34:20 +00:00
Stephan Aßmus
dba332c353 * compile fix provided by Michael Berg
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21445 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-18 08:32:11 +00:00
Marcus Overhagen
84371c1446 revert the part of the previous checkin that completely broke video seeking (however, the current state is hardly working at all)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21444 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-17 21:02:50 +00:00
Marcus Overhagen
beb89275f5 Synchronize even at begin of the file, some avi files contain garbage at the beginning
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-17 20:14:00 +00:00
Marcus Overhagen
56853d6ff1 Use separate waiting semaphores for audio and video, later to be used for seeking
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21442 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-17 20:12:21 +00:00
Marcus Overhagen
d85ccec96a This fixes most audio seeking problems with AVI files, but
still needs some work. The sync code was never executed, as
if (len < chunkSize) (len = signed, chunkSize = unsigned) 
was compiled into an unsigned compare and thus always false
for len=-1.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21441 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-17 19:38:59 +00:00
Marcus Overhagen
2087d23365 always sync to frame begin after a seek
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21439 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-17 15:54:08 +00:00
Ingo Weinhold
baade5580e Typo. Fixes menus (bug #1276).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-17 13:24:42 +00:00
Jérôme Duval
308771ff5d reverted to use __x86_64__ as it seems BeOSHostCompatibility header is not included for fs_shell
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-17 13:17:03 +00:00
Marcus Overhagen
6c1def1920 truncate chunks first and then check for zero size
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21435 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-17 12:55:46 +00:00
Marcus Overhagen
f4eb963104 Added an additional check before calculating maxsize to avoid overflows.
Ignore empty 'strn' chunks instead of treating them as an error. This
also fixes loading of the "The party at the end of the earth.divx" file.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21434 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-17 12:44:33 +00:00
Jérôme Duval
d205506439 we use C for the ppc build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21433 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-17 12:15:30 +00:00
Jérôme Duval
9cc679bb80 replaced uint32_t by fssh_addr_t. Obviously, the cookie should be managed differently.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-17 11:57:25 +00:00
Jérôme Duval
913f680ea2 followed Ingo's suggestion and introduced HAIKU_HOST_PLATFORM_64_BIT macro
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21431 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-17 11:51:49 +00:00
Jérôme Duval
a3ca7ebc40 x86_64 changes :
added atomic*64() functions
use int32 instead of long


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21430 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-17 10:50:18 +00:00
Ingo Weinhold
d08caee0a5 Added tests for BMenu and BMenuBar. The former is pretty useless, though,
since the menu resizes the window to an unusable size.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21429 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-17 01:21:19 +00:00
Ingo Weinhold
44ca72c8ca Use layout-friendly constructor.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21428 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-17 01:18:34 +00:00
Ingo Weinhold
8000c5e973 * Added layout-friendly constructor.
* Fixed invalidation in FrameResized().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21427 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-17 01:17:49 +00:00
Ingo Weinhold
4fa167e12d * Added layout-related methods (Min/Max/PreferredSize(), InvalidateLayout(),
DoLayout()).
* Don't resize the view and the window anymore, when fResizeToFit is not
  set.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21426 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-17 01:15:05 +00:00
Ingo Weinhold
05e3a10655 Rather use B_SIZE_UNSET for fPreferredSize.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21425 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-17 01:11:08 +00:00
Travis Geiselbrecht
4a9059fb38 some make system work to get x86-64 linux compiles working:
-The biggest problem with linking host libraries (libbe_build and libroot_build) was not having the source files compiled with the -fPIC flag. As far as I can tell, we want to do this on all of the other host platforms as well, so hacked the jam files a bit to add it. 
Forgive me if I've committed more Jamfile sins.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21423 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-16 19:43:53 +00:00
Jérôme Duval
5acd132fa4 replaced uint32 by addr_t where it applies to please gcc on x86_64
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21422 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-16 11:33:42 +00:00
Jérôme Duval
de050c6029 incorporated savage driver sources from Gerald Zajac. I hope it's the good place for this.
fixed warnings and code style. Please, from now on, provide *patches* to this version.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21421 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-15 21:02:08 +00:00
Jonas Sundström
60b8b10331 Draw icon with transparency.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21420 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-15 20:28:07 +00:00
Ingo Weinhold
48295d4ba7 libshared.a doesn't deserve a src/ subdirectory. Moved to
src/kits/shared.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21419 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-15 18:32:50 +00:00
Ingo Weinhold
57ab8f6b30 Just go with the portable code.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21418 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-15 18:23:28 +00:00
Ingo Weinhold
3447ec446c Aesthetical change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21417 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-15 18:17:18 +00:00
Ingo Weinhold
ee074918de Mostly aesthetical change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21416 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-15 18:13:39 +00:00
Ryan Leavengood
962e985f39 Small change to make the shared library buildable for BeOS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21414 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-15 01:17:12 +00:00
Axel Dörfler
1504b0a77d Apparently, BONE's management ioctl's only work on datagram sockets...
This should be retested on R5 to make sure it'll still work there.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-14 17:15:09 +00:00
Axel Dörfler
c7cdb67a8a NetAddress::IsLocal() did not work under BONE - we now work around this by using
the route table to determine if an address is local or not (BONE incorrectly allows
you to bind against non-existing and non-local interfaces).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-14 16:54:04 +00:00
Stefano Ceccherini
fd651c0701 Particles II, which uses BWindowScreen
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21411 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-14 14:43:45 +00:00
Stefano Ceccherini
8b7987023f Implemented needed methods to be able to clone the accelerant.
Implemented SetIndexedColors hook, although not really correct.
I don't know why the driver's 8 bit mode were disabled. They seem to 
work fine. I had to enable at least 640x480x8 to be able to test 
WindowScreen. There are some TODOs in the code. I'll look into them 
later.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21410 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-14 14:41:45 +00:00
Stephan Aßmus
3227f93fb2 with Ingo's help:
* fixed the build of netfs under BONE/Dano by using
  the already existing build system defines instead of wrong checks
  for wether to use BONE headers
* the client tried to bind to a non existing address for receiving
  broadcasts from the server (but the broadcasts are still not received,
  which will be worked on next)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21409 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-14 14:40:58 +00:00
Stefano Ceccherini
f09ba8ea46 Call get_clone_info and get_clone_info_size instead of using the
driver's path. More correct. Now we could remove the app_server's 
command to retrieve the driver's path.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21408 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-14 10:25:14 +00:00
Travis Geiselbrecht
b9a5b9a6ee fix the build on darwin:
-fs_shell was using weak aliases, which is apparently not supported on the darwin toolchain 
	(or it's supported in some different way)
-remove building strl* routines for some of the host tools, since that already exists in libSystem


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21407 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-14 05:17:59 +00:00
Axel Dörfler
93c2088983 * Removed all user paths from the default runtime_loader paths.
* $PATH is now set differently when booted in safe mode (just like LIBRARY_PATH,
  and ADDON_PATH already were).
* This closes ticket #1103.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21406 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-13 23:12:00 +00:00
Jonas Sundström
4963ddd8fa Jamfile edit/addition for libshared.a
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21405 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-13 16:20:18 +00:00
Ryan Leavengood
2660d61ad6 As I said I would:
1. Deleted headers/shared/
2. Added a Jamfile to src/shared to build it into a static library libshared.a.
3. Removed my changes in the build/jam directory.
4. Have ShowImage include libshared.a.

I forgot to add AboutWindow.h to headers/private/shared. I will do that next.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21402 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-13 02:35:29 +00:00
Marcus Overhagen
1b842f776a Moved some functionality from avi_reader into OpenDMLParser.
Added basic seeking support.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21401 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-12 20:44:45 +00:00
DarkWyrm
e5c4c7b679 Updated button bitmaps to the Haiku-like style agreed upon quite some time ago.
Made some layout tweaks to handle the different size bitmaps.
Sorry I took so long in getting around to this. ;-/


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21400 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-12 17:00:00 +00:00
Marcus Overhagen
b991dadc45 small coding style cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21399 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-12 16:12:57 +00:00
Stefano Ceccherini
cca1217c5b fixed the colors of the shift modifier bitmap to be consistent with the others. Actually, though, I'm not sure which one is better
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21398 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-12 14:47:33 +00:00
Stefano Ceccherini
20e85f1c09 Use BBitmap::ImportBits() to get rid of the padded bitmaps
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21397 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-12 14:35:36 +00:00
Stefano Ceccherini
af03527240 Changed the loop to compute the column layout: Now the space for
modifiers is added after we've calculated the maximum width. This way we 
don't get overlapping between the menu content and the modifiers bitmaps 
themselves. TBR.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21396 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-12 13:16:39 +00:00
Stefano Ceccherini
37ddfd14ab Shortcut characters are aligned even if there's a submenu, like
discussed in the thread in haiku-development. I added a fSubmenus member 
to BMenu, to be able to tell from BMenuItem if there are other items 
with a submenu (maintained in BMenuItem::SetSuper()). If you don't like 
this solution, let's just revert.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21395 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-12 12:28:06 +00:00
Stefano Ceccherini
fbe2f227ca Some work on menu layouts:
- Menus are generally a bit wider (BeIDE ones didn't look nice)
- The modifiers bitmap are drawn more centered vertically
- Splitted BMenu::ComputeLayout() into three methods
- Various minor changes.
The menuitems still don't look nice with bigger font sizes, but we'll 
try to fix this...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21394 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-12 09:10:08 +00:00
Ryan Leavengood
c233a5b78d Remove debugging printf.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-12 04:05:13 +00:00
Ryan Leavengood
c9f7b3b7d3 The zoom level needed to be reset to 1.0 after loading an image, otherwise it
would keep the zoom level of the previous image in some cases.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21392 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-12 04:02:50 +00:00
Ryan Leavengood
5a1210fbef Moved the BAboutWindow implementation to the shared source directory, which
despite being talked about repeatedly, does not currently exist.

Adding this required adding some new Jam rules to deal with this shared source
directory and headers. I had some fun figuring this out. Despite writing
articles about Jam in the Haiku newsletter a few years ago I still find Jam to
be a PITA at times.

But my solution seems to work pretty well. Basically you just call the rule
UseSharedSource and pass the name of the shared source file you want to use.
This rule sets up the header directories and the right Jam variables for the
source file. You then add the source file to the source list in the Application
rule like any other source file.

I also made the authors list sent to the about window constructor null
terminated instead of passing the size of the array, as suggested by Hugo.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21391 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-12 03:54:07 +00:00
Axel Dörfler
31d4291174 Fixed overlay distortions on Radeon cards introduced with r20277.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21390 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-11 19:11:48 +00:00
Ryan Leavengood
a8a83855b0 Initial implementation of the common BAboutWindow class. Of course I just
realized that calling it a window may not be strictly correct since it isn't a
decendent of BWindow, but just uses a BAlert. Oh well, it can be changed if
need be.

I'm also checking in the first use of it, in ShowImage. Since ShowImage can
still be compiled for R5 I've added a #ifdef around the new BAboutWindow
related code.

I'm open for suggestions for the interface for this class, well mostly the
constructor. I'm not a big fan of having to specify the number of authors.

For now I'm making the header private, but I don't think it would be a big deal
to expose it publically.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21389 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-11 00:14:32 +00:00
Marcus Overhagen
59ab99e7c6 Preparation of seek support. Put AVI index handling into different files. Preload the full idx1 (standard) index during file opening.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21388 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-10 23:13:28 +00:00
Stephan Aßmus
e31380534b * GCC4 compile fix by Fredrik Ekdahl
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21387 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-10 20:29:44 +00:00
Stephan Aßmus
a9c2d6b320 * compile fix, thanks to Fredrik Ekdahl
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-10 20:24:48 +00:00
Stephan Aßmus
f32e3a29b0 * implemented default buttons
* window size limits are correctly set
* one can now chose between horizontal and vertical layout
  (brilliantly simple with the new layout system :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21385 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-10 19:58:16 +00:00
Ingo Weinhold
a938e3222a Used the names of the tested classes as the test names.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21384 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-10 17:30:42 +00:00
Ingo Weinhold
651a825f3e Added static factory method to all test classes and improved the program
invocation (e.g. it list what tests are available now).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21383 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-10 17:27:34 +00:00
Ingo Weinhold
aa9303f41e Moved tests into a subdirectory.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21382 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-10 17:02:33 +00:00
Ingo Weinhold
657c013bb0 Added a test for BListView. There's little layout related to test, though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-10 16:54:49 +00:00
Ingo Weinhold
9eae7400a4 Implemented layout-friendly constructors. Also added MaxSize(), though it
only invokes the BView version. Didn't know what to do with MinSize() and
PreferredSize(). ATM they return fixed, hard-coded values. It might make
sense to compute something depending on the font size, for instance.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21380 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-10 16:52:42 +00:00
Jonas Sundström
f0a98802e4 Removed code for using Pulse's colors. Minor changes to About window. Renamed menuitems Launch Tracker/Deskbar to Restart Tracker/Deskbar.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-10 14:15:09 +00:00
Jonas Sundström
11f685ec2b Listview deselection fix. Edit button added. Open in Tracker renamed Show in Tracker.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 23:08:30 +00:00
Jonas Sundström
8093755eb6 Fix two consequtive BSeparatorItems when Deskbar isn't running. This was due to the removal of "Use Pulse's Settings for Colors".
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21377 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 16:39:47 +00:00
Jonas Sundström
9eb8022e0c Keeping track of versions of preferences is overkill for simple applications IMO, but the logic in PCApplication::ReadyToRun() needs this, or else the BAlert pops up on every launch. I think this could be rewritten/simplified.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21376 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 16:23:22 +00:00
DarkWyrm
ff6ef6d397 Proofreading fixes for the last half of the document
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21375 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 12:19:05 +00:00
Stephan Aßmus
25648ff020 * added LaunchBox, an application launcher with drag&drop support
* it has been rewritten from using liblayout to use the new Haiku
  layout framework
* TODO: it should come with default settings
* TODO: the minimum window size is not yet set by the layout framework (?)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21373 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 12:01:39 +00:00
Jérôme Duval
35169c9564 updated to tzdata2007f
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21372 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 12:00:06 +00:00
Stephan Aßmus
a5a90db701 * move include of SupportDefs.h to header, since the types are used there
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21371 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 11:58:59 +00:00
Stephan Aßmus
333a5985cf * vector icon, work mostly by zuMi and tweaks myself
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21370 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 11:58:08 +00:00
Stephan Aßmus
8812976dce * implemented icon size and layout to depend on the system plain font size
(currently, a font size above 16pt will make the icon 64x64, TODO: some
  of the other insets could depend on that value too)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21369 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 11:37:13 +00:00
Ingo Weinhold
da3addea5f Removed incorrect parameter validation in ResizeBy(). Resizing a view to a
negative size is perfectly fine.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 11:21:17 +00:00
Jérôme Duval
53fa6fbc76 updated libpng to 1.2.18, thanks Fredrik!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21367 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 10:59:46 +00:00
Ingo Weinhold
e652af1f63 * Pulled most of the implementation of ButtonTest into a new super class
ControlTest.
* Added a test for BCheckBox.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21366 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 10:55:32 +00:00
Ingo Weinhold
c594b2f5f2 Added layout-friendly constructors and implemented Min/Max/PreferredSize().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21365 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 10:52:36 +00:00
Ingo Weinhold
6bef4a07d6 * Added default value for message in two arguments constructor.
* Removed resizing to minimum height in layout-friendly constructors.
* Cache preferred size.
* Implemented all of Min/Max/PreferredSize().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 10:51:15 +00:00
Ingo Weinhold
a2c9eeee87 Added layout-friendly constructor.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21363 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 10:47:05 +00:00
DarkWyrm
d43de0207a Proofreading fixes for about the first half of the document
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21362 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-09 04:15:27 +00:00
Ingo Weinhold
fa635377e0 Extended the BBox test. One can now play with label and child view.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 23:48:08 +00:00
Ingo Weinhold
4ac1c030e2 New helper class TestView.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 23:46:25 +00:00
Ingo Weinhold
691d242ba1 Override BView::InvalidateLayout() as well to avoid stupid compiler warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 23:45:25 +00:00
Ingo Weinhold
21156fc9e0 Aesthetical changes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 23:43:42 +00:00
Ingo Weinhold
4b5e868dcd Fixed header guard.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 23:42:50 +00:00
Ingo Weinhold
caf8aba2c9 * Added layout-friendly constructors and implemented Min/Max/PreferredSize(),
and DoLayout(). When the B_SUPPORTS_LAYOUT view flag is set (as is by
  default when using one of the new constructors) the BBox completely manages
  one true child (the first child that is not the label view).
* Centralized the layout related computation in new method
  _ValidateLayoutData(). The computed infos are cached in a new private
  LayoutData structure.
* GetPreferredSize() was broken in several respects. It does now return the
  same result as PreferredSize(). If B_SUPPORTS_LAYOUT is not set, these are
  the sums of the insets induces by the frame and the label. I.e. those values
  can for instance be added to the child's preferred size to compute the
  preferred size of the compound.

Not sure, if the Haiku-only TopBorderOffset() and InnerFrame() functions still
make sense. With layout management they're actually superfluous.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21356 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 23:40:16 +00:00
Ingo Weinhold
d432839022 * Set the _RESIZE_MASK_ macro to 0xffff. It was the bitwise inverse of the
disjunction of all view flags before, and the new layout related flags were
  missing. I suppose there was not striking reason for previous method.
* Made InvalidateLayout() virtual. When implementing layout management
  directly in a derived class instead of a separate BLayout, one needs to
  override it to know when to discard cashed layout infos.
* Added a ResizeTo(BSize) method.
* Avoided ugly multi-line strings in PrintToStream().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 23:24:38 +00:00
Ingo Weinhold
dd5ac13b5f * Added FixSizeConstraints() functions, which adjust the elements of a (min,
max, preferred) size triple so that they are compatible with each other.
* Implemented AlignInFrame(BView*, BRect).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21353 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 23:14:48 +00:00
Jérôme Duval
428d4d161b updated mesa to 6.5.3
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 23:00:44 +00:00
Jérôme Duval
583b66bf18 added trunc, truncf (and truncl on x86) from glibc
should help on bug #1260


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 18:33:02 +00:00
Stefano Ceccherini
d9be8bc0fe Got rid of a global, hope no one minds
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 09:44:13 +00:00
Ryan Leavengood
96493dcae9 Better name: result becomes lines.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21348 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 05:04:33 +00:00
Ryan Leavengood
26c1085f1b Inspired by Daniel Sandler's Mac OS X recreation of Message, I've added a
little rounded box on the bottom with the full message in it.

Given that currently this version only uses fortune to get it's message this
allows maximum enjoyment of the little anecdotes and jokes provided by fortune.
Though after testing this 60+ times today I'm starting to get sick of fortunes.

I've implemented everything myself here, including breaking the string up on
newlines and drawing each line of text with the right vertical spacing. I
suppose some clever use of BTextView would have been better. But this works
fine and wasn't that much code.

I'm not sure if this was the most productive use of the last 5 hours, but I
learned quite a bit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-08 04:59:14 +00:00
Marcus Overhagen
27cc6d1f0f check for scale==0
parse strn chunk
fix spelling errors
prepare for INFO list parsing


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-07 22:03:11 +00:00
Marcus Overhagen
f44764386f code cleanup: replaced bool results with status_t
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-07 20:15:34 +00:00
François Revol
fc362b8ad7 handle api_version exported from driver.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-07 12:46:20 +00:00
Ingo Weinhold
0ce9bc6895 * Pulled generic button code out of CheckBox into a new base class
AbstractButton.
* Added RadioButton and RadioButtonGroup.
* In the BBox test the border style can be switched now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-07 04:11:17 +00:00
Ingo Weinhold
3ff21b6bf7 libasdrawing.a was including a plethora of libraries. Not sure, what ar
made of this.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-07 01:50:50 +00:00
Ingo Weinhold
4ee595e300 Fix the build. IMHO it's really ugly to use syscalls without even including
<syscalls.h>.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-07 01:38:58 +00:00
Ingo Weinhold
3111f163b5 Fixed libbe_test build of app server:
* Added <safemode.h> headers.
* Added a failing _kern_get_safemode_option() to libhaikucompat.a.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-06 19:29:41 +00:00
Ingo Weinhold
9e0276b75d Also include <syscalls.h> where _kern_get_safemode_option() is declared.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-06 19:24:20 +00:00
Stefano Ceccherini
77974ff171 some forgotten fVariable -> sVariable renaming
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-06 13:20:50 +00:00
Jonas Sundström
6677ea8715 Makes Switcher icons draw with alpha transparency from the start as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-06 01:12:19 +00:00
Axel Dörfler
96726e7e24 * Applied Stefano's patch to fix bug #1241; BScrollBar::SetValue() did not work
correctly for out of bounds values.
* BView::ScrollBy() now limits itself to what eventually attached scroll bars allow;
  this fixes the problem Stefano was observing after having applied his patch.
* Reenabled the limit check in BScrollBar::SetProportion(); after the above fix, I
  could not see any misbehaviour of Tracker anymore; IOW Tracker did not rely on
  this before, it was just hiding another bug :)
* Minor cleanup in ScrollBar.cpp


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 23:58:21 +00:00
Stephan Aßmus
2a72b9fead * re-enabled the InfoWin
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 23:23:44 +00:00
Jérôme Duval
1068e2caf5 fixed app signature
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 19:24:28 +00:00
Axel Dörfler
021ebd611a Fixed a warning when compiling Tracker for BeOS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 17:54:47 +00:00
Axel Dörfler
618b37dc46 Fixed various incorrect uses of the erase() method of several STL containers I introduced before. Thanks to Stefano for the hint!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 17:45:02 +00:00
Stefano Ceccherini
2f03d0e0ed Changed the loops in BHandler::_SendNotices() and ::_ValidateHandlers().
See also r20183.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 13:15:45 +00:00
Stefano Ceccherini
bfab6b7394 Added some code to fix bug #953. If the mouse moves a bit while the
buttons are down, the popup menu won't become sticky.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 13:05:14 +00:00
Stefano Ceccherini
059ca4bd97 Some other changes, make sure we delete all resources on destruction
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 12:10:44 +00:00
Jonas Sundström
75159db429 The menubar icon at the top-right of Tracker folder windows now uses the view color of its parent view. This fixes bug #551.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 12:09:44 +00:00
Stefano Ceccherini
cf5948ae6c BMenuFrame overlapped partially with a BMenuScroller. This fixes the
spurious lines drawn over the menu. Thanks to Stephan for making me 
notice this!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 11:50:15 +00:00
Stefano Ceccherini
3616859a05 Changed the interaction between BMenuFrame, BMenuScroller and
BMenuWindow. BMenuScroller now is just the scroller button, and it's a 
child of BMenuWindow. This simplifies attaching/detaching the 
scrollers, and it's also a bit cleaner. 
The lower scroller wasn't shown anymore for some reason, and this commit also fixes this problem.
A drawing bug shows up now, though: when scrolling the menu UP, some 
spurious lines are drawn over the menu. I wonder if this is an 
app_server bug or what.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-05 10:20:06 +00:00
Axel Dörfler
b851137be0 * Now replaces the first argument with the actual function name as find_command()
also works for partial matches (which for example broke "running" and "ready"
  when you only entered a part of it).
* Renamed the global args pointer to sArguments.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21324 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-04 22:31:24 +00:00
Axel Dörfler
694b9a7778 Fixed build under Dano; doesn't work there, though, but hangs on start in some endless loop.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21323 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-04 18:21:44 +00:00
Axel Dörfler
7aced0c776 * The second open will now fail, too, in case the hardware could not be initialized
correctly.
* Got rid of this superfluous cookie stuff - either the VFS behaves correctly, or
  we're screwed anyway.
* Made adding debugger commands optional depending on if DEBUG_COMMANDS is defined
  or not.
* Minor other cleanup.  


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21322 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-04 16:04:05 +00:00
Axel Dörfler
3bac9ea19a * Work in progress to support the i965 chipset as well; still works on i865, but
doesn't work on i965 yet.
* B_GET_DISPLAY_MODE now returns the mode actually configured in the chip instead
  of the last mode set; while this isn't really necessary, it allows to check what
  mode was used during startup.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21321 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-04 15:32:01 +00:00
Stefano Ceccherini
189360b5d8 Initialize all variables in the constructor
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21320 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-04 14:09:16 +00:00
Stefano Ceccherini
1c86f4892b Renamed a couple of variables, for easier reading...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21319 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-04 12:20:58 +00:00
Stephan Aßmus
415ef601df * probably fixed the build, did I forget some files before?
* implemented full undo/redo for any playlist operations


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21317 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-04 01:00:03 +00:00
Axel Dörfler
8d1317e1b6 get_next_loaded_module_name() now uses the same (inefficient) mechanism read_next_module_name() is using thanks to Siarzhuk - the previous mechanism was completely unsafe.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-03 23:09:59 +00:00
Axel Dörfler
65c61fbf2d * Applied a patch by Siarzhuk Zharski that allows open_module_list() to be
used during early boot. Thanks!
* Fixed open_module_list() so that it can deal with a NULL prefix.
* Added a note that get_next_loaded_module_name() is implemented incorrectly.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21315 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-03 22:55:09 +00:00
Axel Dörfler
564c60d830 Fixed an initialization problem of the ReadWriteLock pointed out by geist, also added a comment on how the ownership is used when doing read locking. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21314 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-03 21:52:11 +00:00
Axel Dörfler
4fc538a920 No longer allow the shutdown window being closed using the shortcut. Patch by Jonas Sundstrom, thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-03 21:43:20 +00:00
Stephan Aßmus
cc2fbed22d * implemented infrastructure for undo/redo of playlist operations,
everything regarding playlist modification is now tunneled through
  the playlist window


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-03 21:24:47 +00:00
Axel Dörfler
1e651d5b4f Modal windows no longer install the 'Q' shortcut anymore. This fixes bug #1256.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21311 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-03 20:33:56 +00:00
Axel Dörfler
b2ed0e7acf Implemented "fail_safe_video_mode" boot option; if you're using it, the app_server
will not load any graphics driver (other than VESA).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-03 20:20:19 +00:00
Stephan Aßmus
7d7550a04b * by popular request, you have to hold shift down in the playlist window
when you want to replace the playlist by the stuff you are dragging,
  the default behaviour is now to insert/append it to the existing items



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21309 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-03 20:18:55 +00:00
Axel Dörfler
288e17885a Implemented B_CLOSE_ON_ESCAPE as mentioned on the mailing list.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21308 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-03 19:23:03 +00:00
Stephan Aßmus
708491da60 * fix stupid bug that prevented the playlist to be seen at all in Haiku
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21306 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-03 15:18:31 +00:00
Stephan Aßmus
09464bc90b * extraced PlaylistListView into it's own files
* lots of changes, besically these make the Playlist window usable
  - drag sorting works (hold shift to copy instead of move items)
  - removing items with the delete key works
  - dragging files/folders from Tracker works (hold shift to insert
    them in the existing playlist, othewise the new files replace
    the playlist)
* some refactoring and bug fixes in previously unused functionality
* Playlist can now be locked (needed to be), and is in ControllerView,
  MainWin and PlaylistListView


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-03 14:35:48 +00:00
Axel Dörfler
c1dac92abf Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21304 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-03 12:36:39 +00:00
Stephan Aßmus
1ad1713ad2 * applied patch by Jonas Sundström,
makes the Escape key cancel the restart/shutdown dialog


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21303 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-03 08:18:34 +00:00
Stephan Aßmus
0d9c65d558 * applied patch by Jonas Sundström, the draggable icon in the Find window
will be drawn with alpha channel


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21302 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-03 08:16:13 +00:00
François Revol
0f609eb290 Fix some warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21301 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-03 00:45:56 +00:00
Stephan Aßmus
d329f1d6c1 * cleanup in MainWin, better grouping of functions in .h and
moved functions in .cpp accordingly, prepended private methods with _
* disabled InfoWin, because it accessed members of MainWin directly, 
  will be reimplemented with notification mechanism
* fixed the bug with the multiple error alerts for an unsupported file,
  the window should use the current file index from the notification
  itself


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21300 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-02 23:22:30 +00:00
Marcus Overhagen
9e448b6224 cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-02 23:16:54 +00:00
Stephan Aßmus
b2d0e81723 * as an observer, the view needs to handle all observer notification messages,
or else these messages end up in the window MessageReceived()
  (since the MainWindow was observing the same notifier, it received some
  notifications twice, which was part of the reason that unrecognized files
  produced multiple error messages as reported by Marcus)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21298 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-02 22:53:09 +00:00
Marcus Overhagen
f56bdbb994 build fix
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21297 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-02 21:01:38 +00:00
Marcus Overhagen
1d18292953 Moved creating and destroying of Reader and Decoder plugins into the PluginManager class.
Removed deferred initialization from BMediaDecoder. 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21296 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-02 20:00:48 +00:00
Stephan Aßmus
1518e4101b * Icon-O-Matic prepends a magic number when writing native files, this way
we can associate these native files with Icon-O-Matic (they also get their
  own mime type)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21295 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-02 18:35:29 +00:00
Marcus Overhagen
81fb129880 put InitCheck back
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21294 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-02 16:49:37 +00:00
Stephan Aßmus
b52415cc2e * added Ithamar R. Adema to the list of active developers
* moved Siarzhuk Zharski and François Revol from contributors
  to the list of active developers
* moved Thomas Kurschel to the list of contributors
* added Michele aka zuMi to the list of contributors
Disclaimer:
* I might have forgotten someone who should be in active developers
* I didn't mean to discourage anyone
* I am against having three separate lists anyways... :-)
* Please take it as what this is: I wanted to put Ithamar and zuMi in there
  and did some cleanup along the way...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21293 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-02 11:17:38 +00:00
Stephan Aßmus
7a883ee67a * new video icon, based very much on icon submitted by zuMi
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21292 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-02 11:05:57 +00:00
Stephan Aßmus
1dde2ccb3e * added bookmark and volume mimetimes, don't know about bookmark, but I think
it should be reused by whatever browser we end up with



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21291 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-01 21:32:50 +00:00
Ingo Weinhold
46f4d84912 * Got rid of sLoadingImages. It was always empty.
* The previous symbol resolution code was incorrect. It would search all
  loaded images in the order they had been loaded. Thus an add-on would
  possibly see a symbol of an earlier loaded add-on. Now we search
  recursively starting with the respective root image (executable or
  add-on).
* Added BeOS style symbol resolution and made it the default. A symbol
  undefined in an image is only searched in its direct dependencies.
  Fixes bug #889 (BeOS apps crashing under Haiku when opening a file
  panel).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21290 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-01 18:09:32 +00:00
Stephan Aßmus
b31d4c4373 * messed up the build... ICON->VICN
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21289 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-01 17:32:55 +00:00
Stephan Aßmus
6bcb391782 * added icons for Devices, Joystick and Printers
-> done by zuMi with very minor modifications by myself


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21288 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-01 16:37:03 +00:00
Stephan Aßmus
9f566fb9c2 * added modem icon done by zuMi
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21287 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-01 16:32:30 +00:00
Stephan Aßmus
df50d6f79d * added query, query-template, printer, generic printer, floppy and bookmark icons.
-> all done by zuMi sometimes with minor modifications by myself


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21286 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-01 16:28:39 +00:00
Stephan Aßmus
61e7b772ea * added the symlink type, icon is also based on work by zuMi
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21285 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-01 16:26:04 +00:00
Stephan Aßmus
fe2d08af25 * added mimetypes for query and query-template
-> icons were done by zuMi, thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-01 16:23:07 +00:00
Ingo Weinhold
0c0fea5de2 elf.c -> elf.cpp
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21283 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-06-01 06:46:57 +00:00
Axel Dörfler
d6f8cacab9 Moved the (currently very simplistic) code to check if a display_mode is valid into
it's own (static) method. In case setting the display mode fails, the returned mode
is now checked for validity as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21282 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-31 22:39:16 +00:00
Axel Dörfler
c15a5012ef The team monitor now shows the large icon correctly, thanks to Jonas Sundstrom.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21281 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-31 22:12:07 +00:00
Axel Dörfler
176f0604ed Continuing from the kernel debugger did not work on SMP machines, as SMP_MSG_CPU_HALT was
a one way ticket. It now works as expected.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21280 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-31 22:09:39 +00:00
Axel Dörfler
9b39fc10cb Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21279 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-31 22:05:57 +00:00
Stephan Aßmus
8c113568ce * fixed GCC 4 build, thanks Fredrik Ekdahl
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21278 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-30 17:39:26 +00:00
Stephan Aßmus
5fa5e5fea7 * added notification support to Playlist and Controller
* added AbstractLOAdapter by Ingo Weinhold which makes
  notifications asynchronous
* removed "Player" interface/concept, replaced it by
  the notification mechanism (window loads new file
  when "current" ref index changes in Playlist)
* removed some cross classes dependencies
* the wind buttons are not displayed anymore for now
* lots of changes to the Controller
  - the decoder/player threads are kept running for the
    entire lifetime of the Controller object (in essence, makes
    it possible to playback seamless)
  - abstracted BMediaTrack usage into "Video-" and "AudioSupplier"
    objects (the BMediaTrack pointers are only still there, because
    I have not gotten around to fix the messy/hacky InfoWindow)
  - reaching the end of the stream will trigger a notification,
    so that the next file from the playlist is played
  - fSoundOutput is managed by the Controller
  - tried to make seeking seem more controlled (slider doesn't
    jump back to previous position)
  - playback position is correctly updated in GUI
  - volume is maintained independend of SoundOutput so
    that it can be transfered from one to the next output
  - performance time is maintained correctly (?) even if
    no audio stream is present
* work in progress Playlist window (drag sorting does not work yet!)
* rearranged menus a bit
* rearranged overlay code in the VideoView, but it cannot work
  like it is currently designed, since the buffers need to be
  switched all at once, which the video decoding thread
  is not doing yet
* dragging files into the main window with shift held down
  appends to the existing playlist
* dropping folders adds files recursively
* pressing space toggles playback (instead of changing some
  settings of the GUI)
* fixed some more minor issues or unimplemented stuff in the UI


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21276 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-29 22:29:50 +00:00
Stephan Aßmus
406228de63 * don't turn off anti-aliasing
* use B_OP_OVER in order to do anti-aliasing with the real background



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21275 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-29 21:17:37 +00:00
Stephan Aßmus
7ce678aa5f * implement conversion of absolute mouse coordinates (0..1) in device
messages to normal screen coordinates



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21274 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-29 20:21:33 +00:00
Stephan Aßmus
9249ebc02b * added icon for bzip2 file type
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21273 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-29 20:11:11 +00:00
Stephan Aßmus
7fc7e14b31 * removed left-over include
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21272 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-29 19:50:26 +00:00
Stephan Aßmus
13eaf8fa00 * fixed one potential leak
* truncated lines to 80 chars


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21271 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-29 19:49:23 +00:00
Stephan Aßmus
fb9a2a52bb * slight modifications to the original zuMi icons
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21269 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-29 19:30:35 +00:00
Stephan Aßmus
71cb68083c * same tweak as to ProcessController, I would suppose...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21268 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-29 19:27:50 +00:00
Stephan Aßmus
4e49f8ff2b * small tweak
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21267 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-29 19:15:14 +00:00
Stephan Aßmus
b5116faced * cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21266 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-29 19:12:14 +00:00
Ingo Weinhold
ae585f87af Removed Jorge at his own urgent request.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21265 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-29 16:04:37 +00:00
Ingo Weinhold
e200a8e9b9 Unknown variable referred to in DEBUG build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21263 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-28 15:23:03 +00:00
Axel Dörfler
f415aa28be * create_vnode() now panicks when it could not find the freshly created vnode
in the vnode hash; that's a bug in the FS that shouldn't be ignored that way.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21262 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-28 14:17:18 +00:00
Axel Dörfler
aac3ed8c03 * Reverted r21199 (and therefore r21254) - it actually did work correctly initially,
see bug #1248.
* Closing a pipe now also removes it from the public namespace and marks it for
  deletion, and thus, there are no more left-overs after using a pipe.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21261 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-28 14:12:43 +00:00
François Revol
a046c487d0 Never trust someone else's patch until you built it...
Sorry guy, reverted that part, breaks the build here.
Either fix the types everywhere or don't fix at all.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21260 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-28 12:52:13 +00:00
François Revol
f6bdd7b4a9 Patch by Salvatore Benedetto:
Code readability; portability fixes.
Added unimplemented SubmitIsochronous().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21259 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-28 12:36:02 +00:00
Hugo Santos
1002cfa0bb tcp: we should send an ACK for at least each two received segments. Jerome helped debug this one.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21255 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-27 22:30:18 +00:00
Jérôme Duval
6015e60ecc fixed bug #1248
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21254 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-27 19:57:09 +00:00
Ingo Weinhold
02f49ce1ec * Beginnings of a BBox test.
* The test to be run can be chosen via command line argument ("box" or
  "button" ATM).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21253 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-27 16:18:44 +00:00
Ingo Weinhold
d198c3b202 Use layout-friendly constructor.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21252 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-27 15:52:22 +00:00
Ingo Weinhold
93c4bf98f1 Reverted r21191. The one who calls BView::SetFont() is responsible for
also calling InvalidateLayout() and Invalidate(), if necessary.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21251 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-27 15:02:05 +00:00
Jérôme Duval
b5f602a702 added a missing newline, dunno why this message is displayed :)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21250 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-27 14:25:49 +00:00
Michael Pfeiffer
d445cb68d3 Fixed bug ticket #1007. The icon of the default printer was not
displayed. The icon of Printers preflet is reused for that. Changed mime
type of Printers preflet to match the one used by the preflet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21249 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-27 14:18:29 +00:00
Hugo Santos
34c53bacf4 tcp: fixed an issue where the socket could be waken from ReadData() even when no new data was added to the queue (due to lost packets). Also make sure we only break from the receive loop where there is at least a byte of data to be consumed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21248 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-27 03:38:22 +00:00
Ingo Weinhold
cad7120f0c __attribute__(constructor) doesn't seem to work with gcc 2.95.3, so we
invoke driver_settings_init() manually now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21247 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-26 14:32:40 +00:00
François Revol
a0e5dc7ab5 Export api_version.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21246 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-26 00:47:12 +00:00
François Revol
e58b9aef62 export api_version even though we don't support select() in them.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21245 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-26 00:45:44 +00:00
François Revol
b9a0731d88 Indent with tabs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21244 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-26 00:32:35 +00:00
François Revol
a85d740cc0 Remove the symlink trick, just publish /dev/mem the regular way.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21243 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-26 00:31:25 +00:00
François Revol
cd6fd30f63 More tracing in ohci. Hmm, existing isn't totally consistent (prefix, ...). Oh well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21242 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-25 20:25:07 +00:00
François Revol
b0341b286b Revert r21231 as it's supposedly not possible. Someone implement OHCI then pleazzze!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21241 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-05-25 19:23:14 +00:00