Commit Graph

11564 Commits

Author SHA1 Message Date
Rudolf Cornelissen
af9151617b shutoff all R4.5.0 cloning workarounds for the drivers I worked on.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13694 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-16 08:47:10 +00:00
Rudolf Cornelissen
f7d400fbff disabled R4.5.0 cloning bug workaround. Zeta 1.0 kernel is incorrectly identified as being R4.5.0. We should probably just remove the workaround alltogether anyway..
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13693 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-16 08:41:51 +00:00
Jérôme Duval
02bf3b7c13 added some checks, this shouldn't be needed with a consistent keymap, but as we don't want to crash in this case ... (could help DarkWyrm)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13692 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-15 23:57:51 +00:00
Rudolf Cornelissen
02619f4da6 added recognition for those 5 extra variations of unichrome cards. Bumped version to 0.03 btw.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13691 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-15 20:07:27 +00:00
Rudolf Cornelissen
8a6917cc3e added support for 5 more Unichrome (pro) card - types.. ;-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13689 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-15 19:45:53 +00:00
Rudolf Cornelissen
622b285564 completed virtualscreen support. Via constraints correctly set, checked and ok.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13687 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-15 19:19:34 +00:00
Axel Dörfler
fd5bec1e48 First baby step to a restructured app_server:
- introduced new ScreenManager and VirtualScreen classes
- removed screen handling from RootLayer
- removed multiple screen/root layer stuff from Desktop, it's
  now using a VirtualScreen object instead


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13686 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-15 12:45:23 +00:00
Ingo Weinhold
c9ce15c94a * Reworked the design: It certainly doesn't make sense to display more than
one alert, when two threads of a team crash. Now we have a per team queue
  of debug messages and a thread per team that processes them (that is
  usually only the first one). The application class does nothing anymore.
* Implemented debugger handover:
  - In case of normal apps, when the relevant servers needed for GUI are
    running, we show an alert and, if requested, start a MiniTerminal with
    gdb for the crashed team. I couldn't really test it, since alerts don't
    seem to work, respectively crash the app server (usually both ;-).
  - In case the app server crashes, we always start a consoled with gdb.
    This does indeed seem to work.
  A gdb attached to a team is not really useful yet, since the shared object
  relocations seem to be incorrect, so "bt" is not giving any useful info.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13684 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-15 12:29:53 +00:00
Ingo Weinhold
7f9c673981 * Introduced a new debugger message B_DEBUGGER_MESSAGE_HANDED_OVER, which
is sent to a debugger when the debugged team has been successfully handed
  over to another debugger.
* Fixed handling of B_DEBUG_MESSAGE_PREPARE_HANDOVER. We don't send a reply.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13683 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-15 12:18:33 +00:00
Ingo Weinhold
310c813fa8 Minor error output change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13682 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-15 12:16:02 +00:00
Ingo Weinhold
cd05d511e6 Introduced generalized versions of get_app_path() and get_app_ref() returning the path/ref for an arbitrary team.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13681 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-15 12:15:21 +00:00
Stefano Ceccherini
70cb1d917c Implemented BPrintJob::BeginJob() and CancelJob() (tested a bit)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13678 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-15 09:48:26 +00:00
Ingo Weinhold
9333bf301b consoled now supports a program to be run instead of the shell being supplied
via command line parameters. Not tested yet.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13677 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-15 00:14:51 +00:00
Ingo Weinhold
42244cf30e * Changed MiniTerminal command line arguments. Location and size are now
specified via options -l and -s. An arbitrary program can be run in the
  terminal instead of a shell.
* Console::fState was never initialized which could cause the terminal to
  not print anything.
* stdin, -out, and -err were set in MiniView::Start() and in
  MiniView::ExecuteShell(). Thus resetting them in the latter method after
  executing the shell had no effect. Removed it in the former method and
  now reset them after loading, but before resuming the shell.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13676 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-14 23:55:49 +00:00
Jérôme Duval
b8b9dc1c24 Fix FindPointer (tested with unit tests)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13675 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-14 15:07:26 +00:00
Rudolf Cornelissen
f085bc335d added CRTC timing programming (VGA compatible part only yet). Modesetting for resolution works 'partly' now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13672 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-14 13:39:31 +00:00
Jérôme Duval
f75b92e753 added bmessage speed tests
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13671 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-14 13:07:13 +00:00
Rudolf Cornelissen
27a839aaca modified via.settings file to enable automatic RAM size detection.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13669 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-14 12:20:50 +00:00
Rudolf Cornelissen
3ede6fca8a added RAM size detection, added VCO range and (preliminary) MAX DAC speeds. Bumped version to 0.02.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13668 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-14 12:20:01 +00:00
Axel Dörfler
31a5ff5d8e We now have a (private) writev_port_etc() call. This could be used to avoid
allocating a buffer and copying your data into it, when you have data to
send in several chunks (for example, this could be used by BMessage, as
suggested by Ingo Weinhold).
Code is untested, but should work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13667 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-13 23:55:15 +00:00
Axel Dörfler
d7013609a8 Fixed a big memory leak: _user_writev() and _user_readv() allocated
a new iovec array, but only freed them on (early) error.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13666 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-13 23:43:05 +00:00
Stefano Ceccherini
16046321cc Implemented BPrivateScreen::ReadBitmap(), but the guts are still missing
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13665 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-13 22:33:52 +00:00
Rudolf Cornelissen
318120fe05 added parial memory pitch programming: lowres virtual width screens can be used now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13663 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-13 18:57:41 +00:00
Axel Dörfler
ea563033b2 Same as before, but for Replace*() methods: fixed memory leaks, small
optimazation for ReplaceFlat() (also done for AddFlat() before).
Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13662 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-13 18:34:11 +00:00
Axel Dörfler
b9dddc39f3 Fixed some memory leaks in case of errors (Add*() only).
Some minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13661 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-13 18:25:23 +00:00
Axel Dörfler
c9955bf00a Added new but empty function file_cache_invalidate_file_map().
This is needed in case the on-disk representation of a file changes (due to reorganization/defragmentation).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13660 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-13 16:33:05 +00:00
Jérôme Duval
1188944790 Readded TYPE()
Init Messenger, Ref, Message on error


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13659 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-13 15:56:46 +00:00
David McPaul
f1459e8f91 performance improvements
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13658 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-13 13:41:08 +00:00
David McPaul
24af6494ea Removed many bugs relating to multiple video tracks. Replaced these bugs with much more interesting ones
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13657 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-13 12:59:02 +00:00
Jérôme Duval
b39b6ee51c DispatchEvent is now using when field from input message instead of real_time_clock()
Also watchs B_UNMAPPED_KEY_DOWN for Alt+Space (input method change)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13656 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-13 09:48:35 +00:00
Jérôme Duval
ce42d864ee Took Axel's remarks into account
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13655 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-13 09:23:21 +00:00
Axel Dörfler
698b96ef9b Added a simple test for the Dano message format reader (it accepts flattened message files as parameter).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13654 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-13 06:32:33 +00:00
Jérôme Duval
b0ba19ba3a Moved Add* through AddData, Find* through FindData, Replace* through ReplaceData
I think BMessageBody::FindData<>, BMessageBody::AddData<>, BMessageBody::ReplaceData<> could be untemplatized
Works here, not unit tested though
Axel, please review this.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13653 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-12 23:21:29 +00:00
Rudolf Cornelissen
ef36c64242 activated hardware cursor in via.settings file.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13652 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-12 20:03:08 +00:00
Rudolf Cornelissen
5a2735230d VIA cursor works (almost) perfectly now, added support for vertical virtual workspaces, so setting framebuffer startadress now (expl. pixelpanning yet).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13650 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-12 19:55:11 +00:00
DarkWyrm
bc5804fdb6 Implemented Fast Forward and Rewind
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13649 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-12 19:47:21 +00:00
DarkWyrm
b8673e4300 Added menu selector like in R5's player.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13648 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-12 18:51:30 +00:00
Michael Lotz
9ea776d708 Removed (unimplemented) BMessageBody::Unflatten() as Unflattening happens directly at the BMessage level.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13647 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-12 17:49:33 +00:00
Michael Lotz
13b42e5eb4 Just some style cleanups again. Sorry I couldn't resist, won't happen again ;-).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13646 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-12 17:41:22 +00:00
Axel Dörfler
54476a21b5 file_create() now also supports FD relative path specifications.
This was the cause for some apps to put their settings files to the current
directory, and also that Tracker did not find some icons (from the icons
it installed in the MIME database).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13645 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-12 16:33:10 +00:00
DarkWyrm
c552d63dc5 Removed some commented-out test code from CDButton
Time display is updated when player is stopped
Turning off shuffle really takes it out of shuffle mode
Can change tracks while the CD player is not playing
Improved responsiveness of screen updates when changing tracks
Total disc time calculation is fixed


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13644 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-12 15:23:30 +00:00
Ingo Weinhold
29aa57037d * Now we have a hardcoded list of apps which shall not be terminated on
shutdown (input, app, debug server, and registrar).
* Fixed crashing bug, if the shutdown was aborted before the window was
  created.
* The text of the confirmation alert depends on whether we reboot or
  shut down.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13643 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-12 12:36:08 +00:00
Jérôme Duval
c458888ae0 added Konatu font copyright
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13642 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-12 09:17:44 +00:00
Ingo Weinhold
54fce51326 Uninitialized member variable. The cause for the shutdown process sometimes not to start at all.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13640 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-11 23:14:56 +00:00
Michael Lotz
b43356dbeb Removed some noise from the status icons, this bothered me some time now :).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13639 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-11 20:38:46 +00:00
DarkWyrm
6105ba9382 Fixes to monitoring of the CD drive's state
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13638 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-11 20:05:50 +00:00
DarkWyrm
0ca3e71c1e Total track and disc times are displayed in the appropriate boxes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13637 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-11 18:06:02 +00:00
Rudolf Cornelissen
f1971991da setup hardware cursor. bitmap not yet correct, colors neither.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13634 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-11 15:30:18 +00:00
Rudolf Cornelissen
5de64e32fd setup hardware cursor. bitmap not yet correct, colors neither.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13633 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-11 15:29:50 +00:00
Rudolf Cornelissen
d3cb727f16 naming update
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13631 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-11 12:20:50 +00:00
Axel Dörfler
f84e00e27c Although VirtualMemory did respect the font height already, it didn't care
if the window was wide enough for the strings - it now does.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13629 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-11 00:24:14 +00:00
Alexander G.M. Smith
36fa547a10 Updated keyword expansion to use SVN keywords. Also seeing if
svn is working well enough for me to update files from BeOS R5.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13628 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-11 00:11:29 +00:00
Michael Lotz
4da5225f84 Fixed broken count_font_styles(), font menus now really work.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13626 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 21:52:30 +00:00
Michael Lotz
3f319b3346 Some cleanup, some removed typos, some unification, some fixes and some added todos. Most of it related to client-server communication. Apps that rely on BFont stuff should work now (StyledEdit, Fonts, Keymap, Menu, ...). Or should not hang/quit at startup at least.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13625 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 21:16:43 +00:00
Rudolf Cornelissen
1de84caa7d updated via settings file.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13624 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 18:39:22 +00:00
Rudolf Cornelissen
e9632ca5ff updated jamfile to include via driver.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13623 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 18:34:32 +00:00
Rudolf Cornelissen
e795b22aae updated jamfile to include via driver.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13622 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 18:34:11 +00:00
Rudolf Cornelissen
b1409f6742 updated jamfiles.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13621 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 18:31:18 +00:00
Rudolf Cornelissen
e26fcb493d updated jamfile.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13620 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 18:28:39 +00:00
Rudolf Cornelissen
0f6a77015d added via kernel driver, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13616 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 18:07:00 +00:00
Rudolf Cornelissen
a59e2b1d6a added via kernel driver, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13615 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 18:06:33 +00:00
Rudolf Cornelissen
a1ec65063d added via kernel driver, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13614 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 18:06:18 +00:00
Rudolf Cornelissen
10ee46850f added via kernel driver, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13613 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 18:05:53 +00:00
Rudolf Cornelissen
8304bd4214 added via kernel driver, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13612 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 18:05:23 +00:00
Rudolf Cornelissen
f81294f1f6 added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13610 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 18:00:28 +00:00
Rudolf Cornelissen
50d1478622 added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13609 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 18:00:12 +00:00
Rudolf Cornelissen
b6f37046ce added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13608 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:59:56 +00:00
Rudolf Cornelissen
cc9bb0a44d added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13607 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:59:42 +00:00
Rudolf Cornelissen
f2d83f33e0 added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13606 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:59:03 +00:00
Rudolf Cornelissen
20ba898719 added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13605 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:58:46 +00:00
Rudolf Cornelissen
7b4970fe8e added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13604 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:58:23 +00:00
Rudolf Cornelissen
815d0bbada added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13603 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:58:07 +00:00
Rudolf Cornelissen
de404e4b63 added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13602 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:57:56 +00:00
Rudolf Cornelissen
ef583633a4 added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13601 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:57:38 +00:00
Rudolf Cornelissen
2beedcaece added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13600 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:57:16 +00:00
Rudolf Cornelissen
8ac4b65fe4 added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13599 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:57:04 +00:00
Rudolf Cornelissen
5998579f4b added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13598 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:56:45 +00:00
Rudolf Cornelissen
cdc612ec6b added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13597 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:56:29 +00:00
Rudolf Cornelissen
552dba5d17 added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13596 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:56:11 +00:00
Rudolf Cornelissen
661c9ec849 added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13595 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:55:54 +00:00
Rudolf Cornelissen
b97f7d33d2 added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13594 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:55:20 +00:00
Rudolf Cornelissen
9034af644d added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13592 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:48:45 +00:00
Rudolf Cornelissen
1bf174096c added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13591 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:48:19 +00:00
Rudolf Cornelissen
4f88abc72b added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13590 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:47:56 +00:00
Rudolf Cornelissen
4f9c6343ec added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13589 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:47:32 +00:00
Rudolf Cornelissen
eb77a362c4 added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13588 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:47:03 +00:00
Rudolf Cornelissen
5766190ac8 added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13587 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:46:46 +00:00
Rudolf Cornelissen
8e23d7fb80 added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13586 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:46:22 +00:00
Rudolf Cornelissen
35bf20db0f added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13585 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:45:55 +00:00
Rudolf Cornelissen
b69daae506 added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13584 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:45:35 +00:00
Rudolf Cornelissen
b7a943848a added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13583 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:45:14 +00:00
Rudolf Cornelissen
24722904a4 added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:44:46 +00:00
Rudolf Cornelissen
bd4e3ea16c added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13581 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:44:09 +00:00
Rudolf Cornelissen
fa50484bed added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13580 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:43:50 +00:00
Rudolf Cornelissen
d9793dff0b added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13579 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:43:26 +00:00
Rudolf Cornelissen
fc28464913 added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13578 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:42:35 +00:00
Rudolf Cornelissen
9d2d0e1ce6 removed it again. Hmm. Still don't get it I guess..
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13577 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:34:27 +00:00
Rudolf Cornelissen
d901a26405 added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13576 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:32:21 +00:00
Rudolf Cornelissen
29f38965b4 removed it again
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13575 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:31:31 +00:00
Rudolf Cornelissen
d79d8cd9a9 added via accelerant, a copy of skeleton driver yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:29:33 +00:00
Rudolf Cornelissen
d3036c3cf2 added via accelerant folder
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13573 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:27:11 +00:00
Stephan Aßmus
642467d077 renamed the tree parsing/child iteration functions, I think it is much clearer now what they do, more likely to find bugs too
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13572 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 17:16:31 +00:00
Axel Dörfler
a98b74b72e Discarded unused variable "at" in get_rounded_cpu_speed().
Forgot to adapt the limit to switch to "GHz" in AboutHaiku.
Both bugs were reported by Herve W a.k.a. "V" - whatever
that means :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13571 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 16:24:52 +00:00
Axel Dörfler
f877fb742f Rewrote VirtualMemory, added some Haiku specific functionality (currently disabled).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13570 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-10 14:58:03 +00:00
Axel Dörfler
26ca407bfc Moved the CPU speed "clearing" function from Pulse to cpu_type.h header.
It's now also used by AboutHaiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13569 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-09 21:01:23 +00:00
Axel Dörfler
04d45bdb27 The version information is now actually set: apparently, AddResources must
appear before the SharedLibrary rule for some reason.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13568 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-09 20:52:00 +00:00
Axel Dörfler
38d8620261 Now has real app version information.
"labelHeight" was not the actual label height, just the font height; as a
result, it could overwrite the label (and did so with "Time Running:").
Now uses find_directory() to locate the system lib directory.
Does not use version_info::short_info if it's empty.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13567 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-09 20:50:44 +00:00
Ingo Weinhold
9daa13637a Be on the safe side.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13566 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-09 20:28:02 +00:00
Ingo Weinhold
32d7b6cf21 BWindow::SetDefaultButton() crashed when setting another default button.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13565 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-09 20:27:43 +00:00
Ingo Weinhold
8ddc570d6f * Implemented the BRoster::Shutdown() confirmation feature.
* When an application aborts the shutdown process by refusing to quit, the
  shutdown window says so for 3 seconds before closing.
* Fixed the height of the normal buttons in the shutdown window. They 
  accidentially got the size of a default button.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-09 20:26:16 +00:00
Ingo Weinhold
a13df0dc01 Added a "confirm" parameter to BRoster::Shutdown() which causes the registrar
to ask the user to confirm shutting down the system.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-09 20:23:28 +00:00
Jérôme Duval
f86c9cb7e8 comment out a warning
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-09 09:55:13 +00:00
Jérôme Duval
b1c123994c Updated to tzcode2005j.tar.gz
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-08 23:49:29 +00:00
Jérôme Duval
e6aa054a8f updated timezone files from ftp://elsie.nci.nih.gov/pub/tzdata2005j.tar.gz
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13560 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-08 23:24:51 +00:00
Jérôme Duval
a46295b9f0 Placed data files in /etc/KanBe for Haiku
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13559 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-08 18:33:33 +00:00
Jérôme Duval
7e79718c2b install_fonts isn't useful anymore
fonts are now installed as part of other data files
we still install some host fonts if found


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-08 12:35:07 +00:00
Jérôme Duval
6f1735a73a moved fonts in data/etc/
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-08 12:11:56 +00:00
Stephan Aßmus
39e4b4ada6 quick fix to have Tracker display icons, hope this still reaches you, Axel
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13555 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-08 08:48:24 +00:00
Philippe Houdoin
95818cf43e Quick fix. Maybe we should #define some OS_NAME string somewhere, because "BeOS" still appears in many places in litterals.
Not that I didn't like these 4 letters combined, but, well, let's move on...



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13553 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-08 07:42:41 +00:00
Axel Dörfler
8ec0a618a1 Fixed truncate_middle(): could add ellipsis without any reason under some
circumstances.
Also, the first letter that is tested to be added to either side is taken
from the side with less letters now, instead of the one with the bigger
letter.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-08 01:41:38 +00:00
DarkWyrm
66c912db47 CDPlayer doesn't crash anymore when the CDDB lookup fails
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-08 01:37:37 +00:00
Axel Dörfler
79482d6383 Now listens to team messages under Haiku - apparently, the BeOS registrar detects
the Deskbar, and sends messages to it automatically.
For Haiku, though, we don't want this.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13550 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-08 01:05:26 +00:00
Axel Dörfler
3182843008 No longer draws the desktop window.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13549 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-08 00:38:52 +00:00
Axel Dörfler
1f56ada26a New windows are now activated again - temporary fix, won't work with FFM.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13548 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-08 00:11:39 +00:00
Jérôme Duval
b7df9a98df avoids warnings
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13547 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 17:17:04 +00:00
Stephan Aßmus
e3aa5a9a9e simplified the arrow look, still needs improvements, but I think they are better than before, some small display bugs remain, as well as some flickering, but no show-stopper
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13546 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 16:45:32 +00:00
Philippe Houdoin
177f17f436 Fixed a bug. I think. Let's hope. Will see... Otherwise, I'm sorry. Really. (Untested).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 16:22:33 +00:00
Ingo Weinhold
1c8f0d766a Added a few apps for testing the shutdown process.
user_shutdown_reply reliably crashes the app server when pressing one
of its buttons (during the shutdown process at least).



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13540 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 15:35:22 +00:00
Ingo Weinhold
6b454d971d * Background applications are now ask to quit in parallel.
* Implemented handling of apps blocking on modal windows.
* Fixed a few bugs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13539 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 15:33:20 +00:00
Ingo Weinhold
c39d6b9737 * Introduced is_app_showing_modal_window(). Not implemented yet. Maybe
someone with app server insight wants to do that. :-)
* Simplified main_thread_for() for Haiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13538 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 15:30:44 +00:00
Jérôme Duval
c256c1905a forgot this one
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13537 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 15:25:12 +00:00
Stephan Aßmus
7dc436d8dd usability improvements to scrollbar, sorry had no time to include all of Stefanos drawing code yet, other visual improvements
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 14:33:19 +00:00
Stephan Aßmus
a5ca645e49 when a Layer or WinBorder is deleted, the RootLayer gets a chance to set some important pointers it keeps arround to NULL. It is not unlikely that this improves stability a bit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 14:04:29 +00:00
Jérôme Duval
ab8594e073 now uses pci module instead of read_io* and write_io*, untested
(hopes Marcus won't mind :))


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 13:59:14 +00:00
Michael Lotz
df95d6c124 Removed second variation of StyledEdit as it's, according to Stefano, not needed anymore.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13532 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 13:38:48 +00:00
Michael Lotz
8c123e6dad Fixed build of StyledEdit for target r5. What's the matter with the second StyledEdit in there? Also added BString back to libhaiku.a.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13530 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 13:26:11 +00:00
Philippe Houdoin
3306648a89 Improve GHz speed accuracy, thanks to Axel for suggesting this.
(And, yes, that's stupid little commits, but I'm so bored at office *and* without any BeOS system to test...)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13529 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 13:19:33 +00:00
Jérôme Duval
6ca31b270b moved Deskbar and Tracker to their usual place
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13527 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 12:54:37 +00:00
Axel Dörfler
7142b1a749 Fixed warnings.
Applied our coding style a bit, but the class members should be renamed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 12:42:57 +00:00
Jérôme Duval
d1ab37cbcc now avoids to use read_io* and write_io* (untested)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13525 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 12:19:37 +00:00
Jérôme Duval
df41cb2540 fixes warnings
now avoids to use read_io* and write_io* (untested)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 12:15:52 +00:00
Ingo Weinhold
372aa42698 Support for missing strcasestr() under R5.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 11:36:08 +00:00
Philippe Houdoin
f14ac66c8e That's Hz, not hz when prefixed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13522 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 10:39:18 +00:00
Philippe Houdoin
67522bbd91 Added user friendly Ghz awareness :-).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 10:26:13 +00:00
Jérôme Duval
441bb1aa7a fixes warnings
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 10:05:08 +00:00
Jérôme Duval
0450cf24cd misc fixes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13519 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 09:47:19 +00:00
Stefano Ceccherini
5fdea13fa5 Small cleanup, mostly style changes. Fixed a small typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13517 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 09:29:28 +00:00
Axel Dörfler
8991f1a2af Implemented basic dynamic item support (IOW the BSlowMenu/BNavMenu stuff is now working
as expected), OkToProceed() needs some work, though.
Made _AddItem() more safe - the window is now also locked during BList::AddItem() and
while getting the window to install the item in.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13516 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 02:45:23 +00:00
Stephan Aßmus
4ed0f43872 checks rootLayer Pointer, since offscreen windows are not attached to RootLayer. This shouldn't have been a problem though since Offscreen windows were never Show()n
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13515 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 23:24:03 +00:00
Michael Lotz
c728a74e42 Cleanup. We don't need string_helper anymore as it's only function (strcasestr) is in libroot. It was a temporary solution more than two years ago.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13514 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 23:07:32 +00:00
Stephan Aßmus
2d5d475ef5 another logo variation, of course open for discussion, is available in different color-schemes on request, or I could also commit the other versions too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13513 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 22:50:53 +00:00
Axel Dörfler
16e938888d Some more debug output, so that you know which window is killed this way.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13512 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 22:40:01 +00:00
Axel Dörfler
806767ec21 It now deletes its message port (it was previously incorrectly deleted by the client).
Now handles it gracefully if someone deletes its message port (it will try to close
the client and quit).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 22:39:15 +00:00
Axel Dörfler
d520c103e5 We must not delete the server window's port...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13510 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 22:23:34 +00:00
Axel Dörfler
189ba7a9dc Tried to separate active WinBorder from front, but failed - it's now always
the focus border, and therefore, I probably broke floating windows (but that's
not that important right now).
Workspace::HideWinBorder() now sets focus to the next WinBorder, not always
the top one.
Workspace::MoveToFront() no longer changes focus, no longer calls ShowWinBorder()
when the window doesn't have to be moved (ie. for the desktop window).
Added Workspace::SetFocus() to change the focus explicetly.
Some other cleanup. This is an ugly patch, but refactoring/rewriting is coming
soon.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13509 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 20:19:22 +00:00
Stephan Aßmus
9c910f9e80 first draft of a Haiku logo for the Deskbar, link against Haiku libs when building for Haiku
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13508 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 20:14:16 +00:00
DarkWyrm
ec87043e1a Style cleanups
Usability fixes for preferences window


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13507 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 19:31:17 +00:00
Michael Lotz
dd80de6b0d Made the icon background transparent. Even if it's probably not the final icon it looked strange to me with the white bg.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13506 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 18:47:50 +00:00
Stephan Aßmus
6c3f99cf46 the clipping in fLayerData is in screen space, so when getting/setting the user defined clipping, we need to convert to/from view space
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13505 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 18:05:56 +00:00
DarkWyrm
94935cfc3c Style fixes in a couple functions -- need to fix the entire app, but not right now
Dropping multiple files in the terminal now prints all files' paths instead of just one


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 17:59:53 +00:00
Jérôme Duval
fa65b351ea fixes build on r5 and haiku
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13503 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 17:33:12 +00:00
Axel Dörfler
063c980a2d Minor cleanup: we have a constant for the desktop window feel.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13502 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 16:26:53 +00:00
Axel Dörfler
379b4e7850 Accidently commited a wrong version: it's supposed to succeed when the registrar
is already running.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13498 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 16:10:02 +00:00
Ingo Weinhold
935c0c3a12 Changed the shutdown process to match Be's: The user apps are not longer
asked to quit in parallel. Instead they are asked one after the other.
Played with the window to look more like the one in BeOS. The "shadow" on
the left side is still missing, but otherwise it's close.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13496 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 14:28:11 +00:00
Ingo Weinhold
0dbfed5b0c Clone() didn't copy the registration_time.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13495 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 14:25:28 +00:00
Ingo Weinhold
4852c3cd50 Added Sort() functionality.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13494 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 14:25:05 +00:00
Axel Dörfler
7560d40290 Renamed "obos_registrar" to "haiku_registrar" - not just for fun, but because
the registrar no longer depends on the app_server to be running.
Added a "run_haiku_registrar" tool that is now used in the various "run" scripts.
It only start the registrar on demand, ie. if it's not yet running.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13493 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 13:50:43 +00:00
Stephan Aßmus
72fab80539 another quick change for Tracker which allows to click on the Deskbar window, for some reason the window manager implementation does not allow a B_SYSTEM_LAST window to become the focus, but this is clearly possible on R5. I tried to track the real problem, but it needs to at least appear to work tomorrow... so double clicking on the Haiku volume indeed opens a Tracker window, though there is nothing in there. Axel, when I launch Tracker, I'm getting a bunch of KDLs with PANIC: BFS where I can continue until finally seeing Tracker. Deskbar works even better, though displaying the BeOS Logo is IMHO unacceptable for the representation, so I'm intending to make a Haiku Deskbar logo ASAP.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13492 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 13:31:41 +00:00
Stephan Aßmus
25685e7e5f this quick change will make sure the Tracker Desktop window is opened behind all other windows and stays there, just to make life easier for Axel when I is representing the thing...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13491 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 13:25:43 +00:00
Jérôme Duval
ddc2cfeff0 links with our libs on haiku
avoids warnings


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13490 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 12:26:35 +00:00
Ingo Weinhold
2a0de579c7 Missing loop exit in case of message sending failure. This could cause a
busy loop of the MessageDeliverer when the port was deleted while there
were still messages to send.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13489 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 11:16:57 +00:00
Ingo Weinhold
b285c0542c Implemented a shutdown window. Since we're quitting all user applications
in parallel, it displays the mini icons of all still running apps. Doesn't
look that great, though. Also, quitting the apps in parallel speeds up the
shutdown process, but has the disadvantage, that all apps will throw their
"Save changes...?" alerts at the user at once, which might not be a
desirable experience. I'll probably revert to the way Be did it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13488 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 10:29:42 +00:00
Ingo Weinhold
26ffd9e208 Missing break in switch statement.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13487 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 10:25:50 +00:00
Ingo Weinhold
b9bd94dcc3 Aded a target <test>shutdown, which builds a shutdown command that works with the test environment under R5 (tests/servers/registrar/shutdown).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13486 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 10:25:16 +00:00
Ingo Weinhold
47e1939779 Fixed typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13485 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 10:23:32 +00:00
Stephan Aßmus
101e7104ed fixed screenshots. Again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13484 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-06 10:21:23 +00:00
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