Commit Graph

11338 Commits

Author SHA1 Message Date
Jérôme Duval
8c2e0879c3 fixes build for haiku
updated signature


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13482 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 09:40:28 +00:00
Axel Dörfler
c9299b3ce8 Instead of killing the ServerApps the hard way, the AppServer now quits
them if they didn't listen to B_QUIT_REQUESTED. This works much better
as how it was done before.
Now uses exit() instead of exit_thread() which makes sure no thread survives.
Note, there still is a race condition in case an application quits immediately
before shutting down the server - in that case, it doesn't participate in
the fShutdownSemaphore stuff, and therefore, the app_server could quit it
too early. Maybe I'll fix that one day, as well :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13481 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 04:57:57 +00:00
Axel Dörfler
b93d2480cc Now drops into the debugger if the window/looper is still locked in task_looper().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13480 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 04:52:58 +00:00
Axel Dörfler
4c3e1ace67 Fixed a bug in quit_all_windows(): we need to Unlock() the application
because BWindow::QuitRequested() must be allowed to lock it.
This fixes a deadlock when trying to quit Tracker.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13479 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 04:48:22 +00:00
Axel Dörfler
f87938dc2e It's now using setenv() under Haiku instead of its own stuff - and that will
now mimic setenv() instead of some strangely different thing :)
Rearranged and corrected the code that opens the PTY, and TTY.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13478 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 03:30:19 +00:00
Axel Dörfler
0b4ce825fb Fixed ComputeLayout(); it added 20 pixel for every item in the list in B_ITEMS_IN_COLUMN.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13477 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 03:20:31 +00:00
Axel Dörfler
c8e986230f Incorrectly used real_time_clock() instead of system_time() for the message time stamps
(change suggested by stippi).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13476 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 02:48:13 +00:00
Axel Dörfler
1b1b68919c Fixed CalcFrame(): it could be called with Superitem() and Supermenu() == NULL.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13475 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 02:22:22 +00:00
Stephan Aßmus
8ffa3fb9fa the official system palette also has the 0xff entry (B_TRANSPARENT_MAGIC_CMAP8) with alpha = 0
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13474 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 01:46:37 +00:00
Stephan Aßmus
53a3e62c74 quick hack for alpha = 0 in B_OP_OVER, needs review, but for now, drawing all those B_CMAP8 bitmaps which have B_TRANSPARENT_MAGIC_CMAP8 pixels is working fine... IAW, icons look cool.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13473 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 01:43:49 +00:00
Stephan Aßmus
c1ea105142 added alpha support for pixel types and stuff in order to support B_TRANSPARENT_MAGIC_CMAP8 in the system palette... might need review, maybe there is a smarter way. The 0xff entry in the palette has alpha = 0 now
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13472 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 01:41:43 +00:00
Axel Dörfler
508d8a847f Big cleanup, rewrote Shelf.h.
Fixed bug in BShelf::ReplicantAt() - it is supposed to test if any of
the variables passed in is NULL before writing to them.
Got rid of the _PR3_COMPATIBLE_ stuff - we definitely don't need that :)
Refactored the code a bit - moved the identical parts of the three
DeleteReplicant() variants into a separate method _DeleteReplicant(),
moved _rep_data_ code out of the class definition, replaced names like
"fView2" and "aBool" with something more meaningful.
Prefixed private methods with '_'.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13471 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 00:43:52 +00:00
Axel Dörfler
4da171eff7 CalcFrame() no longer returns the maximum frame, but the one that should be
used.
Changed CalcFrame() so that it tries to find the best on-screen location - works
already, though it might have to be improved.
Moved ScreenLocation() so that it's close to CalcFrame(). Changed the position
for B_ITEMS_IN_COLUMNS a bit (they now appear one pixel lower).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13470 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 23:14:01 +00:00
Axel Dörfler
5c228514df Made the border line darker for B_BORDERED_WINDOW_LOOK - menus look much better now
(but should still have their own look that includes the bevel, I think).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13469 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 23:10:08 +00:00
Jérôme Duval
948356def1 added a loop button
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13468 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 22:55:35 +00:00
Stephan Aßmus
21027896c8 the triangle thumb has 45 degree edges this was, which just look much cleaner
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13467 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 22:54:39 +00:00
Marcus Overhagen
65799d5bbf tiny debug code cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13466 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 21:40:57 +00:00
Marcus Overhagen
23f34657e1 This fix should prevent TimeSource control thread from using random semaphores,
by no longer using an uninitialized Blocker object.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13465 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 21:35:38 +00:00
Jérôme Duval
2a0bfa016d TrackSlider doesn't need pointer history
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13463 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 20:29:59 +00:00
Axel Dörfler
34ce0e42d4 As it turns out, window_info::type is really the window's "feel".
Basic support for the desktop window feel: WinBorder will now resize
a window with kDesktopWindowFeel to span over the whole screen.
Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13462 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 20:28:40 +00:00
Axel Dörfler
2b1246d968 Renamed AS_WINDOW_TITLE to AS_SET_WINDOW_TITLE.
Fixed handling in ServerWindow as stippi's latest commit broke it.
It's now properly done with a separate ServerWindow::SetTitle() method,
that will also take care to rename the window's thread.
Changed naming the window thread in the app_server to "w:<team>:<title>".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13461 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 19:20:19 +00:00
Jérôme Duval
7942339dee now count frames only once
release files and tracks


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13460 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 19:04:59 +00:00
Marcus Overhagen
366fdcdfbb Fixed build of libgame.so on TARGET_PLATFORM= dano or r5 so now
we can build MediaKit (which requires replacing libgame.so) for
targets haiku, r5 and dano. For building on Zeta, use platform dano.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13459 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 18:52:18 +00:00
Axel Dörfler
4902831aca Fixed the newly introduced hang when a menu item was selected (which was only one
of the consequences): a forgotten rootLayer->Lock()...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13458 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 18:46:59 +00:00
Axel Dörfler
0bb8508592 Stippi's commit accidently changed the initial screen size.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13457 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 18:38:12 +00:00
Axel Dörfler
0f8af9d8cb Removed extra version of find_directory() - it is supposed to live in libroot.so,
and in fact, already does it for quite some time :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13456 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 18:21:50 +00:00
Axel Dörfler
6a0a0a80da Implemented AS_GET_WINDOW_LIST and AS_GET_WINDOW_INFO.
Renamed Desktop::FindWinBorderByServerWindowTokenAndTeamID() to FindWinBorderByClientToken().
Every ServerWindow now gets a server token.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13455 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 18:14:24 +00:00
Marcus Overhagen
184dd027c3 adjusted media kit library dependencies to allow compiling for R5
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13454 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 18:05:01 +00:00
Axel Dörfler
d76e154b8b Implemented get_token_list() and get_window_info() client side.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13453 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 17:30:54 +00:00
Marcus Overhagen
38b7e756d2 spelling fix
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13452 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 17:26:52 +00:00
Axel Dörfler
ef571f678c Cleanup. Added BTokenSpace::GetList(), though it's probably not needed after all
(we can still remove it later if needed).
Added B_SERVER_TOKEN type.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13451 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 17:22:35 +00:00
Stephan Aßmus
2e6a5805ba MenuField layouts the menu bar better with respect to fDivider, it aligns better with other controls. fDivider in TextControl is an integer number now, small fix and small cleanup in Menu, Window::InitData takes an optional BBitmap token to construct an offscreen window, fixed PrivateScreen IndexForColor, View prevents being located at fractional coordinates as in R5, BBitmap unlocks its offscreen window since it is never Show()n and needs manual unlocking, fixed Slider offscreen window mode and improved triange thumb drawing, ScrollView would not crash when passing a NULL target just for kicks, the private MenuBar class now implements Draw to draw itself a little differently inside the BMenuField (dark right and bottom side) - though how it currently sets the clipping region prevents the text controls to draw in Playground, needs fixing
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13450 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 16:30:53 +00:00
Stephan Aßmus
b2086a9ba0 just in case someone continues in the debugger
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13449 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 16:19:15 +00:00
Stephan Aßmus
359c905c57 offscreen bitmaps work, tested on Haiku as well, supports all colorspaces that BBitmap::ImportBits() supports. It uses a fallback for non-B_RGB(A)32 bitmaps. Added support for B_SUB_PIXEL_PRECISION view flags, though it is a bit hacky, since I had to add it to LayerData, even though it is not a true part of stack data. Added Layer::SetFlags() to enforce code path and update fLayerData. Cleaned up DisplayDriverPainter and DisplayDriver API (changed some const BRect& rect to simply BRect rect in order to be able to reuse it in the code), moved Painter.h, the test environment only draws the changed part of the frame buffer again - this causes a lot less CPU overhead, Painter special cases stroke width of 1.0 to use square caps, which is similar to R5 implementation and removes a lot of problems with non-straight line drawing, ServerWindow uses the DisplayDriver from it's WinBorder instead of the one from the Desktop (needed for offscreen windows, which have their own DisplayDriverPainter), it also checks for GetRootLayer() == NULL, because offscreen layers are not attached to a RootLayer, there was a fix for scrolling which worked at least in the test environment, it is now defunced, because Adi moved _CopyBits to Layer... I need to reenable it later, LayerData has no more fEscapementDelta, also fixed fFontAliasing (which was thought to overriding the font flags, and now works as such again), Desktop initialises the menu_info and scroll_bar_info stuff, which makes ScrollBars work actually... hope I didn't forget something.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13448 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 16:17:16 +00:00
Stephan Aßmus
31a3ded6f0 small enhancement
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13447 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 15:43:28 +00:00
Stephan Aßmus
28f13d4629 small enhancement
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13446 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 15:42:54 +00:00
Stephan Aßmus
9d42e19f61 shows an animation in the bitmap to show off offscreen bitmap drawing
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13445 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 15:42:21 +00:00
Stephan Aßmus
8e05e376ac embedding ObjectView into a BScrollView to show off scrolling, drawing mode selection actually works, simplified States
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13444 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 15:40:59 +00:00
Axel Dörfler
f4b64fa6c8 GetToken() did not check for the correct token type.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 14:46:59 +00:00
Axel Dörfler
a84bd95ff7 Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13442 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 14:32:08 +00:00
Axel Dörfler
dfb4e6ff47 Fixed DrawBitmapAsync() rectangle variants.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13441 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 14:01:47 +00:00
Axel Dörfler
7da4596065 Removed execute property from source files.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13440 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 13:36:47 +00:00
Stefano Ceccherini
205f8b0720 I obviously broke the r5 build with the last commit. Fixed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13439 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 12:11:32 +00:00
Stefano Ceccherini
2323effaee Avoid calling ComputeLayout() if the menu is not attached to a BWindow. Small cleanups.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 11:53:03 +00:00
Stefano Ceccherini
715166d5b8 Fixed the build under haiku. Reported by Konrad.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 09:29:11 +00:00
Axel Dörfler
410e0ccdf7 Removed incorrectly set execute property.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 03:47:08 +00:00
Axel Dörfler
149a5ffcba Fixed build for target haiku.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13435 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 03:46:42 +00:00
Axel Dörfler
06fe6a428c The _menu_info_ptr_ is now initialized correctly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13434 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 01:42:56 +00:00
Axel Dörfler
f5d8fa6e60 AS_LAYER_GET_CLIP_REGION missed a Flush() in case the view was not hidden,
and that put apps that used it to sleep (for example, Tracker is using it).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13433 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 01:19:01 +00:00
Axel Dörfler
b1e04bcb5c The app_server now also quits fast in case there are no apps to quit... :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 01:02:32 +00:00
Axel Dörfler
ae8de5211d Fixed an obvious bug in _checksum_() that isn't triggered by its current use:
"temp" was added to "sum" in the loop, so that some int8 values were taken
into account more than once.
Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13431 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 00:59:27 +00:00
Axel Dörfler
b1e14283b4 The stream was reused later, so it was a dumb idea to not include the
magic in it (it was written twice then, later).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13430 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 00:57:33 +00:00
Axel Dörfler
749a772b97 Accidently broke BMessage::_SendFlattenedMessage() with the last commit;
the magic is not part of the header anymore when read from a stream (because
BDataIO does not support seeking, and we need to know the magic before actually
reading the header).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13429 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-05 00:03:18 +00:00
Axel Dörfler
dc9e836b35 *Very* basic read-only Dano/Zeta message support. Only briefly tested.
Not really suited for message sending/retrieval (because target stuff is
missing), but should work more or less with disk based messages.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13428 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-04 21:41:41 +00:00
Stefano Ceccherini
1ae414f3c6 Don't assume we have an owner. This fixes a crash in MenuWorld, but needs more investigation
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13427 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-04 21:31:03 +00:00
Stefano Ceccherini
7089b0e3dc If a filter was added to a handler which belonged to a looper, the filter's looper was never initialized. BHandler::SetLooper() now also sets the looper for every filter (moved from BLooper::AddHandler)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13426 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-04 21:05:53 +00:00
Ingo Weinhold
83291b44d0 Forget to check in this one. Sorry. shutdown should build again now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13425 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-04 20:39:40 +00:00
Rudolf Cornelissen
845faf5e8d added some comments about the NV18 speedfix and resetting registers on NV28.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13424 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-04 15:17:07 +00:00
Philippe Houdoin
4fa9fc3439 Added simple output support to Ethernet device(s) layer.
Forgot to commit this long ago...



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13423 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-04 13:43:35 +00:00
Stefano Ceccherini
6f4cf45183 The default version of BMessageFilter::Filter() doesn't do anything. Small style changes, removed a todo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13422 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-04 12:42:05 +00:00
Ingo Weinhold
687d231c5f Fixed the rc build. Sorry for the inconveniences.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13421 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-04 11:16:03 +00:00
Ingo Weinhold
2f903d78cf Removed the handling of B_QUIT_REQUESTED in BApplication::DispatchMessage().
It's already done in BLooper. Now we additionally send a reply to it, when
the message comes from the registrar on shutdown.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13419 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-04 10:30:38 +00:00
Stefano Ceccherini
1a02bff863 the menuitem wasn't deselected when you moved the mouse away from the menu window. Thanks to Axel for reporting.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13418 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-04 10:17:19 +00:00
Ingo Weinhold
553ea30124 * Moved TRoster out of the BPrivate namespace. It does no longer appear in
any public header.
* Replaced a good deal of the MessageDeliverer's DeliverMessage() versions
  by more general ones using the new interface MessagingTargetSet to represent
  a set of targets. This simplifies the usage in cases where the caller doesn't
  already have the targets in a supported representation.
* Implemented a first approximation of the shutdown process. There is no
  GUI yet. Only superficially tested under R5.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13417 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-03 17:17:40 +00:00
Ingo Weinhold
925d069d23 * Added BRoster::ShutDown().
* Adjusted the shutdown command to use BRoster::ShutDown(). Removed
  the alert.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13416 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-03 17:04:47 +00:00
Ingo Weinhold
9fac7d6cfc BServer now remembers whether the GUI context has already been initialized, so that InitGUIContext() can be invoked twice without harm.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13415 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-03 16:55:27 +00:00
Ingo Weinhold
a60ea28262 * Made BApplication::Private public. Should not have worked before (probably
a compiler bug).
* Don't try to cleanup the app server connection stuff, when compiled
  with RUN_WITHOUT_APP_SERVER.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13414 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-03 16:53:59 +00:00
Ingo Weinhold
a406236dc2 New error codes:
- B_SHUTDOWN_CANCELLED: The shutdown process was cancelled (most likely by
  the user).
- B_SHUTTING_DOWN: An operation cannot be performed, since the system is
  shutting down (e.g. BApplication creation).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-03 16:50:29 +00:00
Ingo Weinhold
ea6253d0ba rc is a build platform tool and should be built as such.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-03 16:47:26 +00:00
Ingo Weinhold
b6257a8b3c Fixed build with debugging enabled.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13411 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-03 16:46:35 +00:00
Stefano Ceccherini
96f6ef632c The bar and knob frame are now calculated. That way we god rid of some billions fPrivateData->fThumbFrame.OffsetBy() calls
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13410 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-03 07:42:24 +00:00
Stefano Ceccherini
f8b80b4ac7 Temporarily disabled auto scrolling as SetEventMask() doesn't work in haiku
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13409 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-03 05:11:35 +00:00
Stefano Ceccherini
862b0a4b4c Improved the look. Note that we still don't differentiate between enabled and disabled scrollbars
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13408 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-03 04:45:45 +00:00
Stefano Ceccherini
72f32ccaf8 Fixed two bugs: 1. one doubled arrow scrolled in the wrong direction. 2. When the mouse exited the view while scrolling, the scrollbar would stopped scrolling.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13407 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-02 17:00:44 +00:00
Stefano Ceccherini
3e054be14b removed debug printfs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13406 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-02 16:37:57 +00:00
Stefano Ceccherini
4e4f2dcb55 Huge cleanup. We use a BMessageRunner instead of a thread.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13405 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-02 16:36:22 +00:00
Stefano Ceccherini
7d71b63563 BScrollBar::SetValue() was called with the wrong values in BView::ScrollBy
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13404 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-02 16:35:37 +00:00
Stefano Ceccherini
7505732a0c Draw() -> Invalidate(). small color fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13403 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-02 14:30:49 +00:00
Stefano Ceccherini
0ee76eaf12 More work on scrollbars. Some refactoring.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13402 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-02 14:08:33 +00:00
Stefano Ceccherini
169425459f Avoid calling BMenu::_hide() when not needed
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13401 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-02 13:34:47 +00:00
Stefano Ceccherini
6834052234 The BRect version of ConvertTo/FromScreen were broken in case the view didn't have a parent, but was the child of a BWindow. This fixes a bug in menus (and probably other stuff too)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13400 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-02 13:16:17 +00:00
Adi Oanca
be2eea8cf9 implemented hooks for resizing and moving operations. BViews now resize corectly in Playground app. Ignore the Convert*() stuff.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13399 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-02 10:40:14 +00:00
Adi Oanca
4a9bbc7d20 addapted to new clipping code
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13398 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-02 10:37:53 +00:00
Adi Oanca
b72bef8630 Added Flags(), ResizeMode(), made virtuals be prototypes only.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13397 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-02 10:36:24 +00:00
Adi Oanca
173c6e9597 Fixed resizing/moving using the new clipping code. Stephan (I know I wrote about these changes in Layer.cpp) I saw the changes you did at how B_VIEW_RESIZE/MOVED are handled. This might break compatibility with R5. I think you guys should discuss this.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13396 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-02 10:09:35 +00:00
Stefano Ceccherini
6fc5bc53fa Fixed build. The 'nice' thing is that it worked on r5 (even with our app_server) as the function is present in the header (just not implemented in our libbe).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13395 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 23:14:53 +00:00
Stefano Ceccherini
29e998cec3 Some missing bits, removed small leftover
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13394 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 22:34:16 +00:00
Stefano Ceccherini
267b721430 Started integration of new drawing code. Still so much work to do. Simplified some parts of the code. Scrollbars are broken in many ways, need refactoring
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 22:13:10 +00:00
Axel Dörfler
bc1a7f9f09 Now prints out a message when the window title should be set.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13392 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 18:29:20 +00:00
Axel Dörfler
41c719936b Fixed SetLook() (is not implemented server-side, though).
Finally got the thread rename code right under R5 8-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13391 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 18:26:18 +00:00
Philippe Houdoin
5d25ad2cf0 Added a version resource to our libbe.so, for a better AboutHaiku's version field user experience ;-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13390 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 15:46:17 +00:00
Philippe Houdoin
41a84d9ccb Fixed a typo and try to make clearer image.h include issue.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13389 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 14:42:07 +00:00
Jérôme Duval
7289c3d491 patch from Stefano Ceccherini
added scrolling after 10 seconds of inactivity.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13388 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 13:35:38 +00:00
Axel Dörfler
1b36d9d743 The TEST_MODE and non-TEST_MODE code is now the same, only the modifiers/keys
are different. Therefore, workspace changes should work on real hardware as
well now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13387 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 11:22:58 +00:00
Axel Dörfler
0a7d4d9991 Moved the move-window-on-screen code into PulseWindow::MoveOnScreen().
When you change the appearance during runtime, the screen location is
now checked again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 11:03:43 +00:00
Axel Dörfler
c030c6fa68 As the comment says, deleting the cursor is not necessary.
But since every single cursor is owned by a team - why the cursor manager?
I must overlook something...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13385 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 10:13:50 +00:00
Axel Dörfler
3870c9f18f Improved quit mechanism (for the last time): if an application had open
windows that wouldn't quit on demand, the app_server would have gotten
the kShutdownServer message anyway already (as the last app was quit).
Since that one removed things like gDesktop/gBitmapManager, it liked
crashing.
Now, there is a semaphore that will be send to each app on quit. Only
when this semaphore can be acquired, the shutdown message will be sent.
Removed unused semaphores (decorator, active app).
Replaced fAppListLock with a BLocker (just calling acquire_sem() without
error checking is very unsafe in userland, and should never be done).

BTW the bug was triggered by broken menu code that only sometimes
really quit the window; it leaves a whole lot of zombies around - Stefano,
any quick idea? :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13384 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 10:09:11 +00:00
Jérôme Duval
40f44c2298 fixed jam build on R5, hopefully it's still working on Zeta ...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13383 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 10:00:39 +00:00
Axel Dörfler
37fa302a92 Also commented some unimplemented message handler to not break the reply mechanism.
The ServerWindow did not even have such a mechanism anyway... (it now has).
Minor cleanup, replaced some "delete" with "delete[]" where appropriate.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13382 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 08:50:45 +00:00
Axel Dörfler
1e1b96cdc1 Rather than a "case message: /* unimplemented */ break;", we should not
handle the case at all to give the server the possibility to send a
failure response - ifdef'd some code out.
Added comment to ServerApp::PingTarget(), because what it currently does
does not make any sense.
Minor cleanup (replaced fSignature.String() with Signature()).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 08:48:51 +00:00
Axel Dörfler
1786706696 You're not supposed to delete bitmaps yourself; you have to let the
bitmap manager do the job.
This fixes a possible crashing bug on quit, a giant memory hole, and
probably also a possible crash during runtime.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13380 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 08:10:42 +00:00
Axel Dörfler
5712a788a1 WorkspacesLayer now makes use of DisplayDriver::ConstrainClippingRegion() in
order to flicker less (which works, but it's not really that nice yet, as
it currently only works for the background).
The workspaces layer is now also invalidated if a new window appears on the
screen or goes away (also when this happens in another workspace).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 07:58:22 +00:00
Axel Dörfler
24a146d4f6 Small hack to get to know the code a bit better.
A view-only workspaces window support (with lots of drawing flicker) - this
means you see what happens in the workspaces, but it doesn't do anything if
you click on it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 06:53:07 +00:00
Axel Dörfler
86fa5942b1 Added a LinkReceiver::Code() method, that can be used to retrieve the
code of the current message.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13377 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 06:50:09 +00:00
Axel Dörfler
f598d348b1 A window thread is now called "w:<title>" instead of just "<title>".
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13376 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 06:44:39 +00:00
Axel Dörfler
0160c6fbda Fixed minor drawing problem of the on-screen KDL: in NO_CLEAN mode, the first two
lines would be left untouched instead of cleared before use.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13375 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 06:42:07 +00:00
DarkWyrm
8cc39dac67 I guess I forgot to add these to the repository last time. Oops. :D
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13374 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 00:58:57 +00:00
Axel Dörfler
b7a96f02fd Now fills in system_info::cpu_infos[] (ie. CPU activity) by looking at the active
time of the idle thread. IOW Pulse now works :-)
Renamed the idle thread/stack to start with 1 instead of 0 (first idle thread will
be called "idle thread 1").
Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13373 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-01 00:31:38 +00:00
Axel Dörfler
e970b839a0 Disabled B_USER_CLONEABLE_AREA for now - maybe this should be handled via kernel settings later.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13372 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-30 23:14:13 +00:00
Axel Dörfler
8bc4973900 Some cleanup and bug fixes: the length of the bits in BBitmap::SetBits()
was way too much, new[] was used, but not delete[].
The font size is now adapted to the processor/vendor strings, looking
much better now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13371 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-30 23:05:55 +00:00
Axel Dörfler
793b31c5fd Fixed BView::SetFontSize() - only the internal font state was changed,
no one told the app_server about it (ie. StringWidth() would work
correctly, but the app_server would ignore the font size).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13370 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-30 23:02:34 +00:00
Axel Dörfler
0b2dbe7d46 Someone wrote the argument parsing code that may set argv[i] to NULL...
Patch submitted by Philipp Schmid.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13369 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-30 20:42:35 +00:00
Axel Dörfler
1a3f15e929 Doh, it's Team Monitor - not Task Manager :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-30 17:46:34 +00:00
Axel Dörfler
c0614f3291 Ported r13366 back from the R5 BFS to the Haiku BFS: fixed bad bug in the journaling
code, the super block log data could have been wrong. Moved the doubly linked list
code to the kernel's util/DoublyLinkedList.h.
Also removed Journal::fCurrent, as it's not really used.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13367 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-30 16:38:37 +00:00
Axel Dörfler
2921880701 Fixed a bad bug in the journaling code: set_blocks_info() was called before
the super block was written back. This had a big race condition when all
blocks in the transaction were written back before the super block was
written. In that case, the log info part of the super block got out of
sync and was plain wrong (eventually causing the disk to be unmountable).
Also moved the list code over to the kernel's DoublyLinkedList.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13366 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-30 16:23:56 +00:00
Stefano Ceccherini
049818e016 Style changes, license change, added all the authors.
BTW, I forgot to say (in the previous commit) that the Button's label is also truncated if neede, so it doesn't go out of the button's bounds. If you don't like it, remove it.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-30 09:34:14 +00:00
Stefano Ceccherini
f939937950 Refactored BButton::Draw(), fixed some small glitches, visible when the focus was changing. Moved drawing of the focus line to its own method.
Patch contributed by Ivan Tonizza.

Note that BControl::IsFocusChanging() seems to always return false under haiku.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13362 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-30 09:11:59 +00:00
Marcus Overhagen
0d1adad317 Media Codec API just got a visit from the coding style police.
We now use "const" for the chunk buffer pointer returned by GetNextChunk,
because the buffer is not supposed to be modified by the codec.
size_t is used for the size where applicable. This matches BMediaDecoder.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-30 00:24:06 +00:00
Marcus Overhagen
77a63c75c4 fixed jam build on Zeta
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 23:51:45 +00:00
Michael Lotz
06500c3e58 The color index is multiplied by 3 because there are R, G and B values for each color in the palette. But uint8 can't hold these for any index above 256/3 obviously. Also fixed the 24-bit display. It works on real hardware but looks broken with bochs. I suppose bochs does not handle 24-bit VESA correctly though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 23:40:25 +00:00
Axel Dörfler
597aa5f24d No longer draws any lines over the thumb area in B_BLOCK_THUMB mode.
It's now completely flicker-free in that mode, all known drawing bugs are gone.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 23:08:57 +00:00
Axel Dörfler
9b030c1d2d Looks like I'm on a run: forgot to commit Jamfile :/
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 23:05:05 +00:00
Axel Dörfler
6355993de9 No wonder I had to remove the grist to make it build.... :-)
Thanks John!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13356 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 22:35:04 +00:00
Marcus Overhagen
eb1ee3240e made a few things const
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 22:12:31 +00:00
Philippe Houdoin
9672813d0d Fixed a bug that always report one processor even on SMP machine.
Colorized with Haiku theme the credits text, tell me what you think...
Enhanced the uptime text construction.
Added some resizable support, but I failed to see why the textview don't adjust, so it's still disable.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 22:11:48 +00:00
DarkWyrm
4f39b358ee Major internal code refactoring -- separated the actual SCSI-call interface with the CD drive from the rest of the app
CDEngine now uses the PlayList class to track which track to play - Shuffle and Loop now work properly
Track name is a little darker when the player is no longer active


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13353 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 18:42:22 +00:00
Axel Dörfler
a66e28b1ff B_BLOCK_THUMB style actually deletes the background, so it's safe to exclude
its region when clearing the background in Draw().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13352 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 15:53:46 +00:00
Axel Dörfler
6f54957024 The bar background was still drawing over some border lines which could cause flickering.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 15:46:16 +00:00
Axel Dörfler
39b86d2a8e The SliderTest now also uses our own BControl, as that doesn't invalidate the
whole frame in SetValue().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 15:28:41 +00:00
Axel Dörfler
d2f968ec96 Fixed build of ideinfo, moved it into its own subdirectory.
Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 15:14:08 +00:00
Axel Dörfler
f8f63bc7eb Buidl fix, courtesy of John Drinkwater.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13348 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 14:57:29 +00:00
Axel Dörfler
002af7f9c0 Fixed build of usb_hid, partially by John Drinkwater.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 14:52:47 +00:00
Axel Dörfler
ce98205af5 Build fixes, mostly by John Drinkwater - looks like he's cleaning up behind me :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 14:48:13 +00:00
Axel Dörfler
7af7a22216 Fixed the remaining drawing bugs the test app revealed.
The block thumb frame is now left out when the bar background is filled
which reduces flicker.
Also, the background fill draw over the region occupied with the border
lines which also caused flicker.
The border lines still draw over the thumb area, and thus, may cause
noticeable flicker there when moving it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 13:03:58 +00:00
Axel Dörfler
09196077b8 This fixes some of the drawing bugs; those were only visible under BeOS, though (both R5 + Dano).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 12:26:17 +00:00
Axel Dörfler
c280e11b89 The update region for B_VERTICAL orientation is different; it now
also works correctly when fUseFillColor is used.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 02:20:12 +00:00
Axel Dörfler
a00fcbcdf8 Improved BSlider class:
- rewrote GetPreferredSize(), it now actually works correctly
- BSlider is certainly not supposed to resize itself on creation
- fixed BarFrame() and ThumbFrame() to support a different view frame
  than the ideal one
- added SetBarThickness() support
- refactored constraining the mouse point to _ConstrainPoint() - it's
  now used by MouseDown() and MouseMoved() - because of that, tracking
  now works with vertical sliders as well
- still has some drawing problems, but less
- _ReservedSlider4() was defined public for the R5 build
Cleanup, more or less rewrote the header.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 02:12:42 +00:00
Axel Dörfler
d40d872486 Extended test app a bit, added R5 version to the build for comparison.
Seems like Be's slider doesn't work that well for B_VERTICAL orientation either.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 02:08:13 +00:00
Axel Dörfler
f269841c3b Added a BSlider test application - our BSlider class needs definitely some work :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-29 00:23:12 +00:00
Axel Dörfler
33bff18326 Removed obviously accidently set execute property from source files.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 23:38:36 +00:00
Axel Dörfler
900a549127 Only overrides BSlider::DrawBar() if compiled for BeOS (would look okay under R5, too, though).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 23:29:04 +00:00
Axel Dörfler
1d0f02b4ac Fixed some drawing problems (only visible when fUseFillColor was used, or
when DrawBar() was overridden).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 23:24:27 +00:00
Axel Dörfler
b7596f59ec AS_LAYER_GET_STATE no longer sends stuff that doesn't belong to the layer's state.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 23:03:28 +00:00
Axel Dörfler
bb1336b44f Some refactoring and cleanup:
- renamed some members and methods to fit our style guide
- moved removeSelf() to RemoveSelf() (as those two are essentially
  the same), and fixed it on the way: the state of the child views
  is now also updated by the new _UpdateStateForRemove() method
- Moved BWindow::sendPulse() and activateView() to BView::_Pulse()
  and BView::_Activate()
- some minor stuff

This also fixes the broken previous commit - I forgot to update
View.h; this update contains the previous changes as well. Sorry
for the inconvenience.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 23:02:44 +00:00
Axel Dörfler
3783821c25 Fixed B_CONTROL_HIGHLIGHT_COLOR/BORDER_COLOR. Changed highlight color from Dano value
to something for R5 (ie. what DiskProbe is using).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 21:52:32 +00:00
Jérôme Duval
deeb4c6cd9 now rounds the total memory size
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 21:52:27 +00:00
Axel Dörfler
a79f112e9b Sorry for the broken last commit.
We can always link against libroot.so, there is no need for this special case.
Also fixed line breaks: please try not to commit DOS line breaks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 20:13:24 +00:00
Jérôme Duval
645aa1c8cb fixed haiku build (again)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 19:57:26 +00:00
Axel Dörfler
086240f26d The work-around is no longer needed; but since restoring the high
color only is cheaper than a full PushState()/PopState() we'll
continue to use it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 19:20:03 +00:00
Axel Dörfler
9d8e148146 Fixed BView::LeftTop() - it certainly shouldn't return 0;0 only :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 19:13:00 +00:00
Axel Dörfler
3c336bbe89 The old Jamfile was fine and is certainly able to build AboutHaiku under R5;
reverted last change.
Please, if you intend to build an application for R5, make sure that the build
target platform ($TARGET_PLATFORM) is set correctly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 19:12:15 +00:00
Axel Dörfler
80a230b10e Rewrote the push/pop state and ViewAttr stuff:
- it now seems to work finally correctly
- renamed ViewAttr to ViewState and put it into the BPrivate namespace
- some refactoring (moved some private BView methods to ViewState)
- renamed AS_LAYER_MOVETO/RESIZETO to *_TO (note the underscore)
- exchanged BView::originX/Y with fParentOffset (BPoint)
- divided AS_LAYER_GET_COLORS into separate ones for high/low/view color
- BView::SetPattern() now actually works as expected (ie. updates
  only if necessary)
- exchanged the ViewAttr::flags with ViewState::valid_flags which inverses
  the previous logic (which wasn't even used consistently)
- fState was initialized twice (incorrectly by the ViewAttr constructor,
  and then again correctly by initCachedState()) - now the ViewState
  constructor does the job alone, but correctly
- BView::PushState() no longer resets the state (it did so only locally
  anyway...)
- cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13325 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 18:56:55 +00:00
DarkWyrm
f479b4974a Added a 2-state BBitmap button for later usage in Shuffle and Loop buttons
Added a playlist class which will be later used for handling tracks
CD music will stop on quit to avoid confusing users
Added pause up/down images to resource file
Style tweaks to some files


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13324 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 18:56:16 +00:00
Stefano Ceccherini
feb8560ca9 Implemented run_be_about()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13323 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 17:36:31 +00:00
Stefano Ceccherini
df6d71c9fe More forgotten people (I guess we should hire someone just to maintain the about box)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13322 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 16:02:43 +00:00
Adi Oanca
f97b5cb586 Moved CopyBits from ServerWindow to Layer. Also, made CopyBits code execute in RootLayer's thread
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13321 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 15:34:54 +00:00
Stefano Ceccherini
914c1a4528 You can't return a pointer to an array allocated on the stack. This fixes the uptime not being showed correctly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13320 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 15:30:44 +00:00
Axel Dörfler
0c26ddbc29 The MenuBar background is now drawn correctly when selected.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13319 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 15:11:58 +00:00
Adi Oanca
1302949204 Layer::Show/Hide now works. Improved some invalidating calls. fixed some potential problems
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13317 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 14:57:16 +00:00
Ingo Weinhold
3c0a815896 The registrar now uses BServer instead of BApplication, which makes it
completely independent of the app server.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 14:55:57 +00:00
Ingo Weinhold
9351453415 * Added a private API class BServer, a BApplication subclass especially
for servers, that don't have a GUI or want to control when the app server
  connection is established.
* BServer is necessarily a friend of BApplication, for it uses a private
  constructor. Hence BApplication::Private::InitGUIContext() is no longer
  needed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13315 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 14:53:29 +00:00
Ingo Weinhold
7e5f681ff4 Check the BApplication construction error.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13314 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 14:48:26 +00:00
Stefano Ceccherini
62d011e8ef Fixed build on r5 & haiku (patch provided by Philipp Schmid)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 14:48:09 +00:00
Ingo Weinhold
c8e7f53e08 * Radically culled the list of BApplication friends and introduced a
BApplication::Private class for accessing relevant parts.
* Pulled the app server connection and IK initialization out of
  InitData() into a new method _InitGUIContext() and introduced a private
  constructor that allows to avoid this initialization. This will be used
  for servers that don't have GUI respectively want to init the app server
  connection later.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 12:55:16 +00:00
Adi Oanca
ecf3bc3eb4 moving and resizing windows works with the new clipping code. scrolling BViews also works.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13311 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 12:25:32 +00:00
Stefano Ceccherini
3b3a60ad5a Small change
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 12:17:30 +00:00
Stefano Ceccherini
ec05366603 "trailing text" -> "trailing_text". Same for label.
I even take responsibility for this bug, as I told Marc to change it eons ago. 

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13309 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 12:12:22 +00:00
Ingo Weinhold
290bc091c7 We use B_BITMAP_NO_SERVER_LINK BBitmaps internally now. This should remove the only app_server dependency the registrar has before shutdown.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13307 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 11:54:48 +00:00
Ingo Weinhold
07b6630b86 Made reading and writing memory overflow safe.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13306 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 11:19:30 +00:00
Axel Dörfler
a87826801c Added workaround for current stability problems of the app_server: giant lock,
say hello to RootLayer.
Adi will probably not like this, but that's definitely only a temporary solution :-)
This little fix greatly increases app_server stability under Haiku - ie. menus
are working now, the team monitor comes up regularly, etc. - how great is that?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 03:23:16 +00:00
Axel Dörfler
276aa135a7 The size limits are now correctly enforced on window creation, ie. the ResizeLimits
test application now works as it should.
DefaultDecorator::GetSizeLimits() did work correctly, there was no need
to have extra protection limits.
Enabled Stephan's automatic resize code on BWindow::SetSizeLimits() again, and
added a short comment why I think R5's behaviour is just a bug/leftover.
Moved guts of ResizeBy() into _ResizeBy() that doesn't send the update message
to the client, and is now called in the constructor to make sure the border
size is within limits. Also made it work there, as fTopLayer is NULL in that
environment.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13304 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 02:00:48 +00:00
Axel Dörfler
d4e2c64c2a Added small app that tests window resizing and size limits.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13303 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 01:54:27 +00:00
Axel Dörfler
85bd83a710 AS_CREATE_WINDOW now also gets the actual frame width and size limits of
the window on server side - ie. if the app_server could not create a
window of the size requested, BWindow::fFrame will still be correct
(and the size limits will mirror actual decorator limits).
Renamed fMinWindHeight and friends to fMinHeight and so on.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13302 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 01:14:39 +00:00
Axel Dörfler
5727f0cfa2 B_WINDOW_RESIZED sends int32 values, not floats.
Made message parsing more robust for a lot of messages.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13301 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 00:58:26 +00:00
Axel Dörfler
c17904c587 The B_WINDOW_RESIZED message now looks exactly like it does under R5, ie. has a "when" field, too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13300 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 00:53:41 +00:00
Ingo Weinhold
047ab3f955 Be on the safe side when checking the size of data to be written to an area (overflow).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 00:35:28 +00:00
Stephan Aßmus
f8570b7199 substract the border width from minSize, as that is the inner width of the window
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13298 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-28 00:34:51 +00:00
Stephan Aßmus
063f418c53 made room for a new meaning of BitmapBuffer, it will be used for a RenderingBuffer class that wraps arround a ServerBitmap. BBitmapBuffer on the other side is handy as well and wraps arround a BBitmap, as BitmapBuffer did before.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13297 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-27 22:11:27 +00:00
Stephan Aßmus
203661c9d0 svn does not do what I want before I commit this... It's going to be renamed
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13296 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-27 21:53:17 +00:00
Axel Dörfler
0ed7eba713 Reverted last change, as BFont::IsFixed() does now work properly, thanks to Stefano.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13295 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-27 19:57:16 +00:00
DarkWyrm
175c92ffb3 Updated the resource signature to match the app's signature
Utilize CDDB lookups
Use display controls look similar to LED panels on CD players
Window is resizable and controls respond appropriately
Added support to display elapsed time, both for the CD and the current track
Numerous little bugfixes


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13294 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-27 18:44:34 +00:00
Stefano Ceccherini
9f5ffc2c3c Fixed BFont's GetTunedCount() and IsFixed()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13293 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-27 15:44:47 +00:00
Stefano Ceccherini
418ab0643a Apparently I can't reuse those references, as it leads to every kind of bugs. I wonder if it's just plain wrong or it's a gcc bug. Minor changes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13292 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-27 12:35:14 +00:00
Axel Dörfler
08d9a6e30d Some minor work on minimum window sizes. A WinBorder now makes sure it has
a valid size on construction; DefaultDecorator should do that as well.
ServerApp AS_CREATE_WINDOW now makes sure it passes a valid rectangle to
ServerWindow's constructor.
Smaller default size for Layers that have been created with an invalid frame.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13291 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-27 02:06:15 +00:00
Axel Dörfler
0d58f3c284 BFont::IsFixed() doesn't seem to work correctly under the app_server yet
(though the implementation *looks* correct), so I've disabled this check
for now.
This let it draw the data correctly, although the line selection has
artifacts that are not present under R5.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13290 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-27 02:01:32 +00:00
Axel Dörfler
84d9f25ac5 The thread renaming was broken under R5. Cleaned it up a little.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13289 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-27 01:58:56 +00:00
Axel Dörfler
9793d44045 Removed superfluous BView::findView() and moved its functionality to BView::FindView().
Fixed it on the way - it's a bad idea to pass NULL pointers to strcmp().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13288 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-27 01:54:12 +00:00
Philippe Houdoin
75480b6bf8 Add Mesa & SGI's GLU copyrights.
Still need to investigate about precise GLUT copyright(s) situation.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13287 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-26 22:07:18 +00:00
Philippe Houdoin
8e6b7c38fb Add opengl kit to build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-26 21:34:31 +00:00
Philippe Houdoin
006a9e008b Add a first draft OpenGL kit.
The OpenGL software renderer add-on should follow soon.
Allow to link GLTeapot as native, but without renderer, nothing is displayed ;-)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13283 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-26 20:21:09 +00:00
Philippe Houdoin
9b531940b9 Link against native libGL.so. Native OpenGL headers too.
Changed the app signature to match resource one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13282 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-26 15:53:49 +00:00
Stefano Ceccherini
025793417a Added \n to the debug strings, so we get the output
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13279 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-26 06:26:03 +00:00
Stephan Aßmus
18cbc4ff3d Using the read locking in DisplayDriver was a bit early. Painter itself is not thread safe, so while we use the HWInterface lock for locking, we can only do read locking once each window has its own Painter instance. I'm still investigating this possibility. It depends on the memory foot print of painter, of which I don't have a clear idea yet. Anyways, this quick change fixes Adis problems and is required at this time anyways. Sorry for the inconvenience.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13278 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-25 22:56:24 +00:00
Adi Oanca
e3fbc7752f integration of the new clipping code continues
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13277 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-25 15:45:58 +00:00
Stefano Ceccherini
d06e1bff11 Fixed array initialization.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13276 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-25 14:13:30 +00:00
Stefano Ceccherini
89d0b3cdad Safer code
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13275 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-25 13:58:55 +00:00
Stefano Ceccherini
55b222b0b0 Stephan already implemented the needed support for dpms stuff too, so why not implementing the client methods too?
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13274 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-25 13:53:48 +00:00
Adi Oanca
e603410b82 - simplified a little the update code/process.
- moved part of the update code from Layer to WinBorder. Fits better
there.
- renamed a couple members.
- some cleanup.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13273 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-25 13:09:19 +00:00
Adi Oanca
b62270533e removed a printf
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13272 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-25 08:47:51 +00:00
Adi Oanca
94fa2bd256 inlined a few methods in header file, otherwise app_server would not build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13271 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-25 08:45:00 +00:00
Stefano Ceccherini
75de27f83b more BScreen related stuff
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13270 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-25 06:30:09 +00:00
Stefano Ceccherini
583f6c3eba Added server side support for BScreen::ProposeMode(), fixed client side too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13269 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-25 05:58:43 +00:00
DarkWyrm
238e9fd71b I didn't feel like working on the app_server today. 'Hope Sikosis doesn't mind. :D
Definitely a work in progress, but it'll play CDs at the moment.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13267 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-24 21:29:28 +00:00
Stefano Ceccherini
c641898150 implemented client/server side support for BScreen::GetDeviceInfo() and WaitForRetrace(), and (only client side) support for Bscreen::ProposeMode()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13266 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-24 18:02:01 +00:00
Stefano Ceccherini
400a469bd9 Added Marcin Konicki aka Ahw... Shard to the contributors's list
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13265 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-24 17:16:01 +00:00
Axel Dörfler
4fc80701bd Fixed warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13264 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-24 16:15:27 +00:00
Axel Dörfler
a10cf76ef5 Renamed src/prefs to "preferences", as the directory is usually called in BeOS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13263 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-24 15:57:12 +00:00
Stefano Ceccherini
171f28336b The device name isn't allocated on the heap, so it shouldn't be freed. This also fixes the crash in case there is no serial mouse. Thanks to Oscar Lesta for providing the fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13261 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-24 09:28:49 +00:00
Axel Dörfler
0ec4af2233 Improved AreaPool to have an initial size as well as well as a name that is
used for new area.
MemPool::AddToPool() now gracefully deals with NULL pointers (or a size of 0).
BitmapManager was deleting the area it transferred to AreaPool before - it
no longer needs an extra area, though.
Minor other cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13260 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-24 04:01:16 +00:00
Axel Dörfler
b5436616a3 Fixed some style related functions and other oddities in FontServer.
Also applied our style guide on that class.
Renamed some public globals to match our style guide.
Made BitmapManager inherit from BLocker instead of duplicating its
functionality (incorrectly, did not check for B_INTERRUPTED) locally.
Some more cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13259 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-24 03:31:41 +00:00
Axel Dörfler
83f9178dbd Better rounding code.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13258 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-24 02:44:49 +00:00
Axel Dörfler
5029b563fd Fixed pretty much broken AreaPool - I am not sure this class is that a good idea, anyway.
area_for() is not the cheapest call; the user better knows the area and deletes it directly.
Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13257 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-24 02:13:32 +00:00
Axel Dörfler
0faef3aff9 Just to prove my point :)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13256 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-24 02:00:26 +00:00
Axel Dörfler
8ba7bedb43 Minor cleanup.
Since we will (almost) definitely forget some names, shouldn't we say sorry to be on the safe side? :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13255 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-24 01:56:38 +00:00
Axel Dörfler
d830c752cc Added missing team lead Michael Pfeiffer!
Added Michael Phipps to the list of contributors - at least he did
some coding some time ago ;-)) Anyone still not listed?
Applied the missing bits of our style guide (at least he tried :-)).
Removed the CPU detection code, as we have one at a central place
(headers/private/shared/cpu_type.h).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13254 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-24 01:48:44 +00:00
Stephan Aßmus
2949ed1def Thou shalt compile before thou commitst.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13253 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-24 00:14:19 +00:00
Stephan Aßmus
3dcb3b079a Added some root layer locking in ServerWindow.cpp when accessing the layer tree. Moved HWInterface management out of DisplayDriverPainter and into Desktop. Removed all the directly hardware related functions from DisplayDriver API. They just called the same HWInterface functions. Now DisplayDriver is much cleaner and ready for being attached to a yet to be written BitmapHWInterface. Clean up of the display mode stuff in Screen and the View-/AccelerantHWInterface. Frequency is now regarded on Haiku. AccelerantHWInterface::GetModeList now works before SetMode has been called. Added MultiLocker from the sample code. HWInterface uses it now in preparation to being used from multiple instances of DisplayDriver.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13252 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 23:46:17 +00:00
Axel Dörfler
1b53e8af26 The app_server now cleans up better after a team crashed; not only the
application and bitmaps are removed, the team's windows are now removed
as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13251 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 23:21:10 +00:00
Axel Dörfler
d2e5d36050 fMenuSem was not initialized, and therefore, the window tried to delete some
arbitrary semaphore on destruction.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13250 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 23:18:17 +00:00
Stephan Aßmus
c69d4b2719 clean up, bug fixes and more robustness
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13249 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 23:14:40 +00:00
Stephan Aßmus
ee9b01a01a made the pool allocator thread safe
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13248 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 23:13:09 +00:00
Axel Dörfler
ce1639b2bf Some more cleanup:
- replaced fMsgSender/Receiver with a BPortLink fLink
- moved message loop into non-static method _MessageLooper()
- renamed Zoom()/Minimize()/Quit()/ScreenModeChanged() to Notify*(), and
  Quit() to NotfiyQuitRequested() to make more clear what they do (they
  don't operate on ServerWindow, they just notify its client)
- less insane way to init a window: there is no longer the constructor
  and a separate method Init(); now there is the constructor (which
  fully sets up the window), InitCheck(), and Run() which runs the
  window's message loop
- moved the quitting stuff into a separate method Quit() and made
  it callable from other threads.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13247 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 22:43:11 +00:00
Adi Oanca
4801a9a97d Fixed the problem Axel signaled with hidden views
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13246 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 21:23:01 +00:00
DarkWyrm
d7a24c8147 Added icons for the app
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13245 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 20:06:20 +00:00
Adi Oanca
8734d03e14 removed 3 printf(s) that I intruduced in my last checkin
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13244 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 19:30:29 +00:00
DarkWyrm
2146e4d643 Removed Terminal from build and made Terminal2 the real app
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13243 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 19:12:23 +00:00
DarkWyrm
3019790e7e Fixed logo-loading issue
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13242 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 19:07:13 +00:00
DarkWyrm
70bb3d4318 Undid an accidental change -- gotta remember svn revert after I twiddle with things. :P
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13241 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 19:06:38 +00:00
DarkWyrm
a8aa633498 Added the app to display the AboutBox.
Not added as inline code in run_be_about to libbe code because of loading Haiku logo as a resource
There is a build issue with it not loading the Haiku logo when using jam


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13240 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 18:53:20 +00:00
Axel Dörfler
a38e46a046 ServerApp now maintains a list of all windows, ServerWindow's AS_DELETE_WINDOW
will update it automatically.
Renamed ServerWindow::fName to fTitle, made it a pointer - it will now just
adopt the title pointer that came from AS_CREATE_WINDOW.
Just another cleanup round: renamed Layer::GetName() to Name(), no
more layer->fName->String() accesses.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13239 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 18:48:10 +00:00
Axel Dörfler
fcb006dcf5 Rewrote how the app_server and ServerApp's quit. As a side effect, the server
can now quit instantly.
AppServer must no longer call ServerApp's destructor once it's running - it now
has to call Quit() in this case. The ServerApp is now destructed in its own thread.
Some cleanup (like renaming ServerApp::MonitorThreadID() to Thread()).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13238 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 17:40:35 +00:00
Axel Dörfler
014ddc8724 Now also sets fInitError when the app_server did not create the app
(and not only drop into the debugger).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13237 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 16:29:51 +00:00
Stefano Ceccherini
ba69a3795b Fixed a possible buffer overflow (thanks Axel). Removed a todo item
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13236 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 13:22:58 +00:00
David McPaul
755e899559 register for more quicktime codes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13235 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 13:13:19 +00:00
David McPaul
85c8a11cff fixes for compressed audio
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13234 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 13:12:41 +00:00
Stefano Ceccherini
557dfeeb12 Implemented CalcFrame() and used it to limit the menu frame's size (actually, only the width for now). This shows that TruncateLabel() works.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13229 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 08:41:55 +00:00
Stefano Ceccherini
cab8c0900c Implemented and used TruncateLabel(), courthesy of Olivier Milla. Note that its use is never triggered at the moment, because our menu frame just adapt to any content size, even if it goes out of the screen (!)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13228 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 08:15:54 +00:00
Stefano Ceccherini
de5a23520e Flicker fix
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13227 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-23 08:14:33 +00:00
Axel Dörfler
2e86adec11 Implemented AS_GET_MODE_LIST server side.
Fixed broken ViewHWInterface::GetModeList() - it did not correctly write into
the allocated memory. Also extended it to be more flexible, has better timing
values, and more resolutions.
ViewHWInterface::SetMode() will now check if the requested mode is in its
list of supported modes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13226 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-22 18:14:13 +00:00
Axel Dörfler
05a710320d MonitorView now takes anti-aliasing into account.
Hide TV menu *before* adding it to the window, or our app_server does it all wrong (temporary work-around).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13225 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-22 17:30:27 +00:00
Axel Dörfler
8eee00f687 No longer draws hidden views (the app_server still handles them wrong, though,
when they are hidden while being attached to the window).
DrawAfterChildren() is now called at the appropriate place.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13224 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-22 17:28:24 +00:00
Axel Dörfler
223706b2c3 Integrated Thomas Kurschel's RadeonScreen preferences app.
Major cleanup. All display_mode related stuff is now handled by the
new ScreenMode class, the screen preferences now only care about what
they control directly.
Fixed a lot of bugs.
Some changes in behaviour:
- the alert window that pops up after a screen change can now be confirmed
  with the enter key ("Keep" is now the default button), and be denied with
  the escape key.
- when you switch workspaces, the options will only be reverted to the
  current workspace's options, if you haven't changed them yet
- removed control flickering on mode changes (ie. when pressing "Revert"
  or "Defaults").
- the color pop-up now also shows the number of colors in that mode

Next on the list is: make it work under Haiku, improve visual appearance,
make it font sensitive, play with min/max refresh rates.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13223 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-22 14:58:36 +00:00
Stefano Ceccherini
5b6aece60e SendNotices() should send messages also to observers interested to all kind of messages.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13222 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-22 08:37:27 +00:00
Adi Oanca
3df649ecb3 managed to show/hide empty windows with the new clipping code
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-21 20:11:44 +00:00
Axel Dörfler
718c4fe0c4 Renamed Screen.cpp to ScreenApplication.cpp to match the name of the header (and the class).
Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13220 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-21 12:12:44 +00:00
Stefano Ceccherini
e6629a65a2 Misc cleanups
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13219 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-21 09:40:01 +00:00
Michael Lotz
66967bcb04 Removed the reference-count workaround as Axel fixed the driver loading.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13218 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-20 14:45:21 +00:00
Axel Dörfler
ae49df351a Redone ScreenDrawView to something better, also it's now called MonitorView.
Accidently, Thomas seems to have done almost all changes I wanted to apply
here, anyway, in his RadeonScreen version (which is a lot cleaner than what
we have here).
More to come later.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13217 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-20 10:38:22 +00:00
Stefano Ceccherini
3255e7df2c I hope no one believed that these methods could've really been inlined...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13216 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-20 10:33:34 +00:00
Stefano Ceccherini
61e19def00 Verified and removed a ToDO item (thanks goes to Olivier Milla)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13215 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-20 08:33:30 +00:00
Stefano Ceccherini
d0164ea34a Small style changes, just to improve my commit stats :)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13214 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-20 08:28:12 +00:00
Stefano Ceccherini
f353b33a85 MenuWindows seems to behave better this way on our app_server. We should either find the right flags/feel combination or test and implement support for kMenuWindowFeel within the app server.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13213 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-20 07:45:04 +00:00
Rudolf Cornelissen
0abb62cbf8 doc update.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13211 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-19 15:11:23 +00:00
Rudolf Cornelissen
21545d001f added/modified shared_info to (better) support upto 32 3D accelants. Needs to be improved/expanded later though. Bumped version to 0.53.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13210 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-19 15:10:49 +00:00
David McPaul
9658f6abba Performance improvements to mov_reader
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13209 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-19 06:02:57 +00:00
David McPaul
5f8e88545e Turned chunk cache back on
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13208 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-19 06:01:31 +00:00
Stefano Ceccherini
10c5dab807 Added client side support for BScreen::RetraceSemaphore() and BScreen::GetModeList(). Server side support isn't yet there, though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13207 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-18 06:36:23 +00:00
Stefano Ceccherini
cd89e86a9d small change
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13206 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-18 06:02:35 +00:00
DarkWyrm
53ba0acbb1 Fixed a TODO
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13205 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-17 19:20:08 +00:00
DarkWyrm
550d6a5375 Cleanup for decorator management code
Updated a couple headers
Moved all decorator code to ServerApp where it belongs
Modified AppServer::Broadcast to allow ServerApps send messages to all apps without having to have a global AppServer instance


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13204 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-17 19:10:15 +00:00
Axel Dörfler
1b5aeb312e Renamed class FMWList to SubWindowList. Cleaned up SubWindowList a bit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13203 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-17 16:34:22 +00:00
Stephan Aßmus
579be6b83e will support setting the drawing mode per object sometimes soon...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13202 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-17 13:23:06 +00:00
Stephan Aßmus
2734243aca Preparation of more correct support for state stack.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13201 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-17 13:20:45 +00:00
Jérôme Duval
12f043c1e2 reverted to 12828
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13200 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-17 11:44:32 +00:00
Jérôme Duval
0e16d351bf Reverted Jambase to keep jam compatibility
StaticLibraryFromObjects is a copy-paste of LibraryFromObjects without grist on source files


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13199 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-17 11:41:18 +00:00
Jérôme Duval
dbf9692045 added util xsl sheets from BoostBook
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13197 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-17 09:38:09 +00:00
Axel Dörfler
1231504465 Fixed various problem of the BSlider class:
- _DrawTriangleThumb() was drawing outside of thumb frame in B_HORIZONTAL mode
- the focus mark was not updated on value changes
- MessageReceived() and FrameMoved() called themselves, resulting in an endless loop
- there were some drawing leftovers when moving the slider around (only in the thumb
  frame). The fix is not nice and may cause flickering (it's commented as such)
- Fixed triangle drawing problems due to anti-aliasing
Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13196 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-17 02:33:47 +00:00
Axel Dörfler
01dfbc3a0c Reported some changes I did a while ago and forgot to commit.
There were more but that will come later (Thomas' RadeonScreen changes).
Vastly improved AlertView/AlertWindow to a cleaner design, the question
mark bitmap is no longer hardcoded, but retrieved in the same way BAlert
does it.
Added license headers to the files updated.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13195 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-17 02:00:00 +00:00
Axel Dörfler
f56083d8c0 Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13194 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-17 01:45:51 +00:00
Jérôme Duval
587e093725 reworked registrar launch wait, avoids snoozing
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13193 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 22:30:50 +00:00
Axel Dörfler
91515d2132 With the recent changes to the communication mechanism, fake_app_server
did not work anymore, and thus, the safemode with the current Bootscript
did not work.
It now does again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13192 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 21:33:29 +00:00
Axel Dörfler
dec3c805d9 No uses B_OP_OVER when drawing the arrows - this fixes the broken look
due to anti-aliasing. Have I mentioned that the arrows are very ugly
anyway right now, and don't match the rest of the look? :-)
Fixed a crashing bug in the "pressed button repeater" - it didn't lock
the looper when scrolling the view.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13191 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 21:30:34 +00:00
Adi Oanca
5fcce1f54b renamed a few members so that I don't have problems later. removed more methods/members
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13190 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 20:43:53 +00:00
Adi Oanca
e0911bbb29 yes, yes... removing unneeded methods/members.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13188 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 19:44:55 +00:00
Axel Dörfler
8095208973 Added poke driver, courtesy of Oscar Lesta. The "poke" command line application will follow.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13187 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 19:12:46 +00:00
Adi Oanca
83265d84db More work for integrating the new clipping code.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13186 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 18:58:14 +00:00
Axel Dörfler
5f8e562f04 Added a ToDo comment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13185 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 18:53:24 +00:00
Axel Dörfler
837261c6bb This removes the "error: looper must be locked when quit" message.
I haven't yet fully investigated the looper quitting mechanism in
detail, so there might be more bugs left.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13184 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 18:40:04 +00:00
Jérôme Duval
1831c12069 added libdevice.so
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13183 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 18:13:40 +00:00
Nathan Whitehorn
e9aefeb8b1 Added the user cloneable area to the Voodoo 3 driver.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13181 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 16:18:30 +00:00
Stephan Aßmus
faaa62c751 update cached HW acceleration flags on mode changes. Fixes HW acc on ATI after Axels changes. Axel, is it working on Matrox as well now?
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13180 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 15:10:24 +00:00
Stephan Aßmus
54cc0f1b56 reverted some unintentional changes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13179 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 13:07:36 +00:00
Stefano Ceccherini
00087fc967 small change
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13178 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 13:05:29 +00:00
Niels Sascha Reedijk
f42b34dc60 Make sure legacy support is disabled. This helps a lot :-), it keeps stray interrupts from occuring. I'm still not sure it is completely fixed though, the mouse I'm using still works fine even with control taken over. At least it doesn't interrupt anymore
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13177 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 12:53:57 +00:00
Rudolf Cornelissen
332f986f39 modified 3d reload flag to support 32 clones, added clone counter as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13175 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 12:46:56 +00:00
Stephan Aßmus
4d67034226 a new graphics state is pushed before calling BView::Draw() and popped after it. So any state changes you do in your Draw() function will be forgotton when you're done, as on R5. I have not done a lot of testing for bugs in the state stack within the app_server though...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13174 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 12:37:30 +00:00
Stephan Aßmus
9b0c5e413c fixed a crash into the debugger because the looper was not locked in BMenuBar::Track(), Stefano, please review...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13173 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 12:34:46 +00:00
Stephan Aßmus
99b9d5ac8a a new state begins life as a copy from the previous state, fixed Scale(). Note that BoundsOrigin() (and therefor Scale()) is called _a lot_ so we should cache the value! I started to work on this, but our lack of encapsulation strikes again... Layer::fLayerData is used directly all over the place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13172 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 12:32:42 +00:00
Rudolf Cornelissen
d69078b4bf updated docs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13170 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 10:00:46 +00:00
Rudolf Cornelissen
b7c592306b added shared_info flag to inform 3D add-on to reload it's rendering state, further improving 3D rendering speed: Quake2 is at 105fps (GF4MX440, 640x480x16), Teapot renders at close to 500fps now. Bumped version to 0.52.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13169 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 10:00:16 +00:00
Axel Dörfler
5d914f565f Now uses BLooper::check_lock() instead of BLooper::AssertLocked(), because it
doesn't have to check if the looper is valid (we wouldn't be its child if it
weren't).
ResizeTo() and MoveTo() are not supposed to call FrameResized() and FrameMoved()
manually when the view is not yet attached to the window.
BView::CountChildren() and BView::ChildAt() now check if the looper is locked.
Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13168 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 03:00:44 +00:00
Axel Dörfler
410d5c37d5 Implemented BLooper::check_lock().
Use AssertLock() more often instead of varying debugger messages.
Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13167 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 02:56:03 +00:00
Axel Dörfler
1ae95ac872 Mixed up argument order - dunno why this didn't have any effect on R5,
but the frame wasn't visible in Haiku, and rightly so :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13166 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 01:01:23 +00:00
Axel Dörfler
53442520cc Fixed a bad bug in the app_server:
fCurrentLayer was used to determine to which layer a new one would be
added to, but BView::AddChild() would only set this correctly for the
current view, ie. all children of the new child were added to the
wrong layer in the app_server.
Now, AS_LAYER_CREATE sends the parent's token to the server, and the
server relies on this to build the layer hierarchy.
All of a sudden a lot of hidden views are visible now. I noticed the
bug while refactoring the task manager, but a lot of apps were affected.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13164 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 00:46:02 +00:00
Adi Oanca
8dbc637219 cosmetic
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-15 20:39:28 +00:00
Adi Oanca
d41a1e80b8 Integrated the new clipping code. It compiles but it does not work yet. Do not worry, it's guarded by a #define :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13161 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-15 20:36:43 +00:00
DarkWyrm
4399fd6025 Serious cleanup of the app
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13160 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-15 19:04:52 +00:00
Adi Oanca
0f0232c767 Started adding new clipping code - not active ATM. Removed Virtual prefix
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13159 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-15 19:01:43 +00:00
DarkWyrm
5021d2fe30 Added functions to replace current hacks in Appearance to handle decorators
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13158 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-15 18:56:02 +00:00
Adi Oanca
524c020956 Bounds() takes into account previous pushed states
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-15 18:47:41 +00:00