Commit Graph

1918 Commits

Author SHA1 Message Date
Stefano Ceccherini
ccfc8a3dcb Archive the 2 pictures to a message, in order to compare the data.
Currently Archiving the Unflattened picture doesn't work, and it hangs 
inside assert_local_copy(), waiting for the app_server reply...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20280 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-03-01 13:19:05 +00:00
Stefano Ceccherini
3bf72bcb7c Unflattening the picture was obviously failing because we didn't rewind
the stream after Flattening. Now Unflattening works, but the picture 
seems to be empty


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20270 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-03-01 08:47:05 +00:00
Stefano Ceccherini
2d940ebc84 Flatten and Unflatten the BPicture before showing it. The picture
doesn't show up, that means something is still broken in Flatten() or 
Unflatten()


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20267 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-03-01 07:45:50 +00:00
Ingo Weinhold
32164a180c Set reasonable permissions for the root directory. Haiku seems to be a
bit pickier than BeOS.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20263 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-03-01 04:46:16 +00:00
Ingo Weinhold
8cda49ebb8 We can apparently build the old style reiserfs and ramfs add-ons using
Haiku's userlandfs. I wouldn't expect them to work very well yet, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20255 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-28 22:12:39 +00:00
Ingo Weinhold
9b54c9d1e3 Removed cache.h, lock.h, and fsproto.h. The copies in the userlandfs public
headers dir are used instead. Added missing <new> inclusion.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20253 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-28 21:50:31 +00:00
Ingo Weinhold
61381bf71d The kind of comment that saves you half an hour of brooding if you, for some
reason, don't see the obvious. Well, or doesn't if absent...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20230 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-25 20:07:14 +00:00
Ingo Weinhold
f7100fce9b Fixed BDirectory::Contains() test comments and checks for existing entry
uninitialized/badly initialized BDirectory cases.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20224 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-24 16:34:34 +00:00
Ingo Weinhold
eef478cd20 Solved a name clash for the poor souls using Windows.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20211 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-23 20:17:48 +00:00
Ingo Weinhold
b9a1530f6d Some renaming.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20207 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-23 02:19:41 +00:00
Ingo Weinhold
e0f723a9e1 Obsolete file.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20206 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-23 02:11:10 +00:00
Ingo Weinhold
36ca5d166c Squashed a few minor TODOs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20205 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-23 02:10:51 +00:00
Ingo Weinhold
e696418178 * Split the Node references and referrers concepts. One can now have a
reference without being a referring entry.
* Reworked entry renaming. We do now remove the original entry first and
  then create a target entry. Renaming directories didn't work before since
  there would temporarily have been two links to a directory, which is not
  allowed. Replacing an entry was also broken: The original entry was not
  removed. Due to reversing the entry creation/deletion order we also do no
  longer suffer from the Tracker bug, that entries would disappear from
  queries when being renamed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20204 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-23 01:01:26 +00:00
Ingo Weinhold
0d427dec46 * Missing locking initialization in Volume::Mount().
* Added missing locking in the query hooks.
* Added live query support similarly as done in BFS:
  - Volume manages a doubly-linked list of live queries.
  - Volume::UpdateLiveQueries() invoked from several places where it makes
    sense (standard indices, Attribute::WriteAt(), and
    BVolume::NodeAttributeRemoved()) notifies the live Query objects.
  - Adjusted Query to be able to deal with hard links. Unfortunately Tracker
    is a bit broken with respect to hard links, particularly in the query
    windows. E.g. only one entry referring to a node is shown, and the renaming
    method RamFS uses (link new entry, then unlink old one) causes renamed
    entries to fall out of queries, even if they should still be in.
    (Want a bug report for this, Axel? :-P)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20203 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-22 23:30:39 +00:00
Ingo Weinhold
72d71bc8dc Aligned Query.h/cpp with the BFS (Haiku) versions r20186. Updated Stack.h
to <util/Stack.h>.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20187 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-20 21:30:27 +00:00
Ingo Weinhold
e485fc0347 If a mount request failed (e.g. due to failed authentication) the respective
not-yet-mounted ClientVolume was not removed, which could cause query requests
to crash the server.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20184 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-20 17:28:40 +00:00
Ingo Weinhold
100e6cd1ab Good to have an answer: In case of success Directory::CreateFile() causes
new_vnode() to be invoked.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20175 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-20 01:53:29 +00:00
Ingo Weinhold
92864b3702 Consolidated common UserlandFS and RamFS headers and support classes a bit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20174 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-20 01:25:04 +00:00
Ingo Weinhold
cab58350ac Finally added the UserlandFS. This is the BeOS R5 version (might need minor
modifications for BONE/Dan0). As test file systems are included:
* A Reiser FS 3.6 read-only implementation (should be a virtually unmodified
  version released as 1.0.1 on BeBits).
* A not quite finished RAM FS.
* A BeOS-specific networking FS. It works well as far as I've tested it, but
  is utterly insecure at the moment and missing nice GUI preflets. It's also
  amazingly slow which, I hope, is mainly caused by the UserlandFS layer and
  BeOS R5 net server. We'll see as soon as it can be compiled for the Haiku
  kernel.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20171 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-19 22:11:25 +00:00
Ingo Weinhold
5b111b26a3 Don't link against libbe.so anymore. This is only necessary for the version
using the input server.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20143 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-16 16:45:33 +00:00
Ingo Weinhold
a6392d3c05 Got rid of wait_sem in the console structure. It was pretty useless.
Added stop_console(), a shutdown procedure for consoled (for cases
when it executes a single command only, like the debugger).

Unfortunately the system kind of freezes when the keyboard is attempted
to be closed. Entering KDL still works. It always shows consoled's
keyboard reader thread running somewhere in the endless loop in
keyboard_read() in the keyboard driver. The main thread is ready in
delete_sem() invoked by keyboard_close(), not advancing any further when
continuing the system. Apparently the scheduler needs a good spanking.
:-P

Generally it also doesn't help that the keyboard driver code is
completely cookie ignorant.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-15 22:59:38 +00:00
Stefano Ceccherini
d619599aa3 some more forgotten style changes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20117 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-09 10:29:13 +00:00
Michael Pfeiffer
91b6c45560 Added argument --pictures to print contents of unflattened pictures in
spool file.
Clean up.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20087 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-06 20:52:48 +00:00
Michael Pfeiffer
180028f5af Link against libprintutils.a to fix linking errors.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20085 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-06 18:21:53 +00:00
Travis Geiselbrecht
5c3d21086c whew, the numbers were looking terrible for sycalls, but it was just the app being off by a factor of 1000.
It's still somewhat slower, but workable. null syscall speed on p3 500:
haiku  6800 nanosecs
beosr5 2200 nanosecs
linux  680  nanosecs


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20071 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-04 21:57:56 +00:00
Travis Geiselbrecht
bee597ebfb Rewrote the syscallbench app. It now will figure the overhead of a simple test loop,
then the overhead of a call into libroot, and finally the overhead of a syscall 
(using is_computer_on).
The numbers are totally abysmal right now. :(


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20070 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-04 21:12:54 +00:00
Ingo Weinhold
c392233749 Fixed RosterShell build for Haiku.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20056 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-02-03 11:26:48 +00:00
Ingo Weinhold
ef9c618c66 The RosterShell can be compiled for all BeOS compatible platforms.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20018 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-30 13:05:30 +00:00
Ingo Weinhold
adc44678a3 Added simple "launch" command to the roster shell.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20017 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-30 13:04:26 +00:00
Axel Dörfler
56a16fd0f9 Added some more tests for wait() and waitpid(). Looks like my implementation is
broken (see bug #996), but less broken than Be's.
Also the Linux implementation is not perfect, as test 4 reveals: it waits for a
child with a certain process group, even if there is no child around anymore (because
the last child changed its process group. However, it will still return (and report
the correct error code) once this child exits.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20009 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-29 13:40:52 +00:00
Axel Dörfler
af0e9c1cb8 * Added some calls to waitpid() which should result in the same error code.
* Fixed comment, as Haiku now behaves properly at least for most cases :-)
* Style guide update.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20007 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-29 12:43:21 +00:00
Jérôme Duval
5839b2df71 the test case for ticket #995
wait() should return with an error when the process has no children


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19983 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-27 16:00:19 +00:00
Axel Dörfler
0013964388 Ported r19825 back to the R5 version of BFS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19826 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-16 14:40:15 +00:00
Axel Dörfler
d60fa6c96f Now checks the return value of wait_for_thread() and print out an error message if it fails.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19804 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-15 10:11:03 +00:00
Axel Dörfler
23bd6929dc Added the last of the companion fibo test apps (based on fork/exec - this is just
another test that doesn't work on BeOS, dunno why, but who cares...).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19767 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-11 17:00:30 +00:00
Axel Dörfler
f9e49fed71 * Fixed fibo_load_image: it actually did not produce the fibonacci numbers.
* Implemented a fibo_fork which uses fork() instead.
* Both tests can pretty easily let the kernel crash!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19764 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-10 10:33:01 +00:00
Axel Dörfler
e90cdf4e48 fibo_load_image now notices if spawn_thread() fails, and puts a warning to stderr.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19763 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-10 10:02:46 +00:00
Axel Dörfler
cbe5f24524 * Added fibo_load_image test based on Manuel's fibo test from NewOS - doesn't work yet
due to problems with wait_for_thread().
* Minor cleanup to the Jamfile.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19757 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-01-09 23:53:40 +00:00
Axel Dörfler
22e7921700 Build fix after the latest changes in net_socket.h (moving certain parts into a
private struct).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19659 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-31 12:15:04 +00:00
Axel Dörfler
6d23dfa6c0 Build fix for non-Haiku targets.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19658 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-31 12:14:25 +00:00
Ryan Leavengood
908b5c2034 Removed the dependency in the registrar on an input_server header file which I
had previously inroduced. It is not needed anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-14 07:07:30 +00:00
Ryan Leavengood
9289e25b25 Changed a few references to OpenBeOS in the unit tester to Haiku. There are
still tons of OpenBeOS references in various source files (especially in
comments), but this was more overt.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19461 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-11 21:11:27 +00:00
Axel Dörfler
442c097946 Renamed class TCPConnection to TCPEndpoint.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19418 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-04 14:49:58 +00:00
Axel Dörfler
9cbe6ce200 Rewrote how bind() works:
* there are now two hash tables: one for connections, and one for ports
* the first one is used to find the endpoint for incoming connections
* the latter is used to check if the address to bind() to is still available
  (incl. support for SO_REUSEADDR, and SO_REUSEPORT). Specialising an existing
  socket is not allowed, though; wildcard sockets need to be started last.
* the TCPConnection class now has a pointer to the next endpoint with the
  same port number - this list is scanned for the existing bound sockets
  on that port.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19416 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-04 13:44:35 +00:00
Axel Dörfler
f7d2a39699 Binding the server shouldn't have worked before - sin_len was set to zero...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19415 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-04 13:32:47 +00:00
Axel Dörfler
b9a724e79f panic() now results in a debugger call - it now longer exits the app.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19405 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-01 08:31:54 +00:00
Axel Dörfler
1d891ef80b Changed the default server port to be used to 1234.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19402 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-30 20:48:16 +00:00
Axel Dörfler
94fb808a48 * socket_spawn_pending() forgot to set the socket's parent field.
* socket_recv[from]() now accept a NULL buffer in case there was nothing to read.
* the tcp_tester's server thread now actually reads the data it receives.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19400 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-30 20:43:24 +00:00
Axel Dörfler
2bd388f696 Added two more utility functions to the timer service:
* cancel_timer() cancels a timer, and returns true if the timer was running
* is_timer_active() determines if the timer is currently running or not.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-29 19:09:19 +00:00
Ingo Weinhold
69b1f76d66 FreeBSD build platform support. Original patches courtesy of
Samuel Rodriguez Perez, somewhat hacked by myself.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19392 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-29 18:08:00 +00:00
Stephan Aßmus
264fe59ded * introduced IntPoint and IntRect, which are just like BPoint and BRect,
but use integer coordinates. These are now used in ViewLayer for the
  coordinate system (layout, scrolling offset, view bitmap layout)
* modest performance improvements by inlining some very often used
  methods, and by preventing to go down the entire layer tree too often,
  for example InvalidateScreenClipping was always called in the deep
  mode, therefor it is save to assume that the tree does not have to
  be traversed as soon as the clipping is already invalid


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19390 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-29 03:20:07 +00:00
Axel Dörfler
03ac1086c1 Made sure that the colors are reset more often; it should now happen much less often
that the terminal's color is changed when the app is quit (or interrupted).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-28 22:00:12 +00:00
Axel Dörfler
a9a07b7215 * Now disables debug output after startup (can be reenabled using the dprintf command)
* added a socket_notify() dummy.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19377 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-28 02:12:03 +00:00
Axel Dörfler
817a7408d4 * Added new BufferQueue.cpp sources.
* The MTU returned by the domain was too large; it should already take the
  IP header into account.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19373 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-25 16:14:40 +00:00
Axel Dörfler
b38e841106 Added support for simulating simultaneous connect (via the -s option).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19365 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-23 18:40:04 +00:00
Axel Dörfler
bed835af1e The TCP tester now also allows you to reorder random or specific packets.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-22 19:13:07 +00:00
Axel Dörfler
719aa9ff8c Decoupled receiving threads, so that the server as well as the sender get their own
receiving thread. While this steals away a test case for now (dead lock), it will
allow to reorder packets in a better way.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19363 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-22 17:39:54 +00:00
Axel Dörfler
cc5496e34a Extended the TCP tester app a bit:
* you can now instruct it to drop specific packets
* you can now also define a round trip time for the packets
* added a "send" command to send arbitrarily sized buffers over TCP.
Not surprising, the current implementation of TCP doesn't do anything with
those (other than crashing as soon as you try to send data).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19362 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-22 16:57:22 +00:00
Axel Dörfler
a7470d6bd5 * The kernelland_emu now supports turning off debug output; tcp_tester can toggle
this option now using the "dprintf" command
* Added dump_block() function to kernelland_emu
* Added tcpdump-like output to tcp_tester for each TCP segment, lines from the
  server are red, lines from the client are black.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-20 17:38:21 +00:00
Axel Dörfler
6ff565b0d6 * Moved the private kernel locking functions into kernelland_emu.cpp because the
actual versions cannot work in userland.
* Extended the tcp_tester to be able to connect and quit connections.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-19 23:35:07 +00:00
Stephan Aßmus
c26c0b24e5 * fix build of the haiku_registrar in app_server test environment
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19321 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-18 07:18:00 +00:00
Stefano Ceccherini
3f4cc718eb Some more updates from Marc Flerackers. Text drawing should work
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19277 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-14 14:15:03 +00:00
Philippe Houdoin
2177785876 Allowed GLInfo to build for BeOS too.
Locking GL context is better, even if it's not mandatory under Be's R5 OpenGL stack.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19259 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-12 15:04:52 +00:00
Stefano Ceccherini
c087e0e364 cleaned up a bit the code, shaped it into a SVG2PictureView class. Added
a window to the PictureTest which should show the svg lion, but doesn't 
work yet for some reason


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19243 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-09 22:58:09 +00:00
Jérôme Duval
b12912bead added a 'dm_tree' like test tool, ioctl based.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19235 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-08 20:16:55 +00:00
Axel Dörfler
e3c14348aa Some more work in progress towards a working test stack environment - if TCP would be
able to connect to itself, this should already work at this point.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19234 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-08 19:11:28 +00:00
Axel Dörfler
de6b43cd7c Now prints debug output in blue, so that you can easily differentiate it from other output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19233 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-08 19:07:38 +00:00
Axel Dörfler
0b3ee1ecc8 Added an empty (and incomplete) shell for a TCP test application. When ready, it provides
a set of commands that can be thrown at a listening and a client end of a TCP connection.
This will allow for an easier and faster implementation of the TCP module, as well as
regression tests, etc.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19232 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-08 15:43:20 +00:00
Axel Dörfler
669e149b7b * Fixed missing propagation of the module initialization result; before, you
could get modules whose initialization failed.
* Fixed how built-in modules are initialized.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19231 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-08 14:47:41 +00:00
Axel Dörfler
4313accfba libkernelland_emu.so now builds again - and now also contains khash.c.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19230 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-08 12:51:22 +00:00
Stefano Ceccherini
262fc9994c Moved PictureTest to its own folder, added some more files (WIP and not
yet 
added to the image) written by Marc Flerackers, for a SVG -> BPicture 
importer, will be used to show the SVG lion and butterfly (included in 
this commit)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19177 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-02 16:43:04 +00:00
Stefano Ceccherini
c140bbecd9 forgot to update this
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19176 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-02 16:08:07 +00:00
Stefano Ceccherini
e02e6ab8f3 renamed picture to pictureprint
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19175 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-02 16:05:01 +00:00
Axel Dörfler
88008dd688 Fixed overwriting the stack.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19173 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-02 15:00:05 +00:00
Axel Dörfler
a5640720a8 Fixed warning when built for Haiku.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19172 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-02 14:21:36 +00:00
Axel Dörfler
84a3cc1e94 * Added small TCP tests written by Andrew.
* Removed a poorly written TCP test.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19171 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-11-02 14:09:41 +00:00
Stefano Ceccherini
8cafa544f6 Made the PictureTest more useful: now it displays 2 views, one which
draws some stuff directly, the other draws the same stuff using a 
BPicture. This shows that BPicture doesn't support BShapes yet, and it 
has some problems with pen size.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-26 19:47:26 +00:00
Axel Dörfler
297f89345f * write_stat() should not add/update the last modification time of directories.
Reported by Robert Szeleney.
* Fixed an endian problem in write_stat() in the R5 version of BFS.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-25 15:21:28 +00:00
Axel Dörfler
a9831b73ed CheckInode() could find an invalid data stream for symlinks without a data stream;
the data stream area is reused as link data in this case.
Reported by Robert Szeleney.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19120 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-25 13:16:43 +00:00
Stefano Ceccherini
743fe40eba Cleaned up a bit PageFlipper sources.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19112 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-24 15:56:32 +00:00
Stefano Ceccherini
5290139c41 more stuff added to the BPicture test
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19106 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-23 13:37:33 +00:00
Stefano Ceccherini
38e2236402 Now the BPicture test draws a string in red. Fixed a possible crash by
initializing fPicture in the constructor.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19105 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-23 13:18:51 +00:00
Stefano Ceccherini
2b77c6f651 a test application for BPicture, written by Lucasz
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19104 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-23 12:04:22 +00:00
Axel Dörfler
ecf0475ad0 Porting r18992 to the R5 version of BFS (and therefore, bfs_shell used to build the
Haiku image) revealed a problem with that change:
* If the root node only contained a single entry it was freed instead of just making
  it a leaf node - that could produce an invalid b+tree (could only happen with
  attribute or index trees, as directories always contain '.' and '..').


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19006 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-05 17:34:11 +00:00
Axel Dörfler
bad41d39a2 Ported r18992 from the Haiku version of BFS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19005 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-10-05 13:59:07 +00:00
Jérôme Duval
c49e0c68b0 dropped a useless arg of the KernelAddon rule, hope I don't mess anything
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18879 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-09-18 10:02:13 +00:00
Jérôme Duval
9e5134f9dd build udf for r5
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18733 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-09-01 15:05:54 +00:00
Jérôme Duval
2ab8552e8d copied udf R5 version to tests
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18732 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-09-01 12:45:12 +00:00
Axel Dörfler
ffacc65107 Imported the bfs_rename() permission check fix from the Haiku version.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18720 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-30 23:37:57 +00:00
Jérôme Duval
80e19d62c5 added a grist to differenciate with playway in src/bin/playsound/
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18692 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 13:10:20 +00:00
Ingo Weinhold
9ecf9d1c1d Merge from layout management branch.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18649 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-26 16:21:15 +00:00
Stephan Aßmus
d4962719c6 * updated script
* added test for copy bits when the view has children


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18642 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-26 14:13:51 +00:00
Stephan Aßmus
778e3c640d * just an update to my local playground
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18641 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-26 14:11:39 +00:00
Jérôme Duval
1d130feff7 copied dosfs R5 version to tests
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-23 09:12:05 +00:00
Stefano Ceccherini
9d402220eb Added a test for MenusBeginning/MenusEnded\
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18548 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-21 14:39:24 +00:00
Stefano Ceccherini
8cf2c839c5 more fork() tests. Some pass, some fail
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18530 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-18 07:24:36 +00:00
Axel Dörfler
3b46e73c2b Replaced DOS newlines with "real" ones :-)
This lets the files compile again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-17 18:16:23 +00:00
Stefano Ceccherini
278510fe87 added two tests for fork(). Both fail on waitpid().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18525 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-17 15:20:47 +00:00
Axel Dörfler
e192628c47 * In case of an error, status is always -1, only errno shows the actual error.
* Added test mode for UDP broadcasting.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18485 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-11 14:56:16 +00:00
Axel Dörfler
c6bfe05b1e Added some UDP test apps from Oliver - removed lots of warnings, and fixed one
bug in all apps: status was defined unsigned.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18484 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-11 14:48:24 +00:00
Stephan Aßmus
064ad96310 * removed another local and obsolete test from the jamfile
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18024 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-04 09:42:48 +00:00
Stephan Aßmus
98bad22a2b * fixes build... completely forgot about this one :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18023 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-04 09:40:49 +00:00
Stephan Aßmus
9813f97ff9 added a test showing the R5 bug that ignores the internal coordinate
system given by BBitmap::Bounds() when drawing bitmaps (Haiku copies
this bug)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18022 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-04 09:32:48 +00:00
Ingo Weinhold
2c38311d40 * Fixed libbe_test build for install-test-apps. A few changes are not
in my branch, but in the main trunk. That should do no harm though.
* Made LayoutTest1 build for libbe_test and added it to the
  install-test-apps target.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17982 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-30 13:48:36 +00:00
Ingo Weinhold
3bf5b314a9 A place for testing the layout management stuff.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-29 13:28:58 +00:00
Stephan Aßmus
ef355aa493 nice to have on BeOS as well...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17912 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-23 12:29:01 +00:00
Jérôme Duval
ac8b62305d added some pthread tests from posixtestsuite
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17897 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-21 15:21:12 +00:00
Axel Dörfler
8feaf19bda Added a short test app for the BStatusBar class.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17856 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-16 09:49:23 +00:00
Jérôme Duval
bb2242b422 added a test for message forward
on R5 it seems a reply to a asynchronously-forwarded synchronous BMessage is the same as when no forward happens
I didn't test on Haiku, but I suspect the behavior is different, especially a _previous_ is added as for asynchronous BMessages


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17814 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-13 11:28:36 +00:00
Jérôme Duval
6a32527a14 fix for dano and added bshelf
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17770 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 19:32:43 +00:00
Jérôme Duval
9041bc71e3 added a test app for BShelf, it's the Container sample code from Be
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17764 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 16:53:06 +00:00
Oliver Tappe
e1aed9319d - reactivated building of arp, ifconfig and route to all BONE-compatbile targets
(by linking them to haiku's libsocket.so and libbind.so). This in turn greatly
  simplifies building their respective userland version as they now are the same
  as the standard version.
- added ping and traceroute to install-userland-networking pseudotarget


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17717 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-04 13:26:53 +00:00
Oliver Tappe
b0623e48ef - created a new pseudotarget 'install-userland-networking' that installs all
userland-networking files into a convenient place for easier testing:
  + net_server_driver and net_stack_driver are installed to 
    /boot/home/config/add-ons/kernel/drivers/bin and ../dev/net
  + net_stack_tester, ifconfig, arp and route are installed to 
    $(HAIKU_TEST_DIR)/kits/net/userland
  + libsocket, libnet, libbind and libnetapi are installed to 
    $(HAIKU_TEST_DIR)/kits/net/userland/lib
  + userland add-ons are installed to
    $(HAIKU_TEST_DIR)/kits/net/userland/add-ons/obos_network


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17701 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-02 17:08:19 +00:00
Axel Dörfler
7a9de5d194 Added simple test for the BNode::Lock()/Unlock() feature.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17698 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-02 14:16:51 +00:00
Oliver Tappe
cd552c7a15 - added legacy headers and posix headers to most Jamfiles here, such that
the userland version of the net-stack compiles again


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17678 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-31 20:35:18 +00:00
Axel Dörfler
f7769aa482 Some more PPC big endian fixes, mostly array handling (b+tree duplicates and
log). Still doesn't seem to work correctly, though (but it's definitely
getting closer :-)).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17560 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-23 01:24:38 +00:00
Axel Dörfler
669b14d756 Fixed GCC 4 warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17559 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-23 01:22:49 +00:00
Axel Dörfler
2594778c84 * Imported PPC big endian fixes into Haiku's BFS.
* Fixed another issue in BPlusTree::RemoveKey().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17558 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 23:44:00 +00:00
Axel Dörfler
f0280afd93 Adopted the PPC big endian fixes for disk_super_block::Initialize() and made them
a bit nicer.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 23:21:45 +00:00
Axel Dörfler
032674909f Some more PPC fixes - initialization still doesn't run through, though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17550 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 20:22:48 +00:00
Axel Dörfler
239974d018 The super block is now written correctly when compiled under PPC.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 19:30:32 +00:00
Jérôme Duval
c003d47a54 added some more tests
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 16:14:00 +00:00
Philippe Houdoin
d3d8b26997 First step in building again the userland test stack
environment: actually build it! :-)
Next step: fix the Jamfile to create the symlink to userland "obos_network" add-ons.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 09:25:35 +00:00
Jérôme Duval
e0080ebf3b added a sigsuspend test (fyi failing on beos)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17492 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-17 15:02:25 +00:00
Jérôme Duval
2cb33db616 added some tests from posixtestsuite-1.5.1, these ones fail on Haiku
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17488 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-17 10:19:31 +00:00
Axel Dörfler
9b28f8873c * Added sigsetjmp_test to Jamfile.
* Fixed Jamfile (was set to only support libbe_test).
* Fixed warnings.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17457 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-14 21:43:39 +00:00
Jérôme Duval
6885553546 added a sigsetjmp test
this is what bash is currently using (we're supposed to be posix compatible after all)
success on R5, R5 setjmp.h; fail on R5, Haiku setjmp.h (could be expected)
to be tested: on Haiku, R5 & Haiku setjmp.h


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17430 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-12 10:13:15 +00:00
Philippe Houdoin
af29432635 Fixed a typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17420 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-11 07:53:19 +00:00
Stefano Ceccherini
5e9bdfc4d7 Chart doesn't hang on quit anymore (bug 431)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17283 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-04-30 21:26:16 +00:00
Axel Dörfler
d7424bc790 Fixed build of the test environment as reported by Stephan.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17253 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-04-28 11:09:48 +00:00
Axel Dörfler
3691c680c4 Fixed build of the fake_app_server - there still were some references to
SERVER_TRUE/FALSE.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17238 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-04-26 09:56:55 +00:00
Jérôme Duval
771b07b64c made team monitor resizable
fix build of TeamMonitorTest app


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17220 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-04-24 12:13:16 +00:00
Axel Dörfler
0ac013e66f * Some refactoring: renamed OverlayCookie to Overlay and put it in its own
source file.
* An overlay is now also hidden in case its is removed from the window.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17209 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-04-23 15:45:35 +00:00
Stephan Aßmus
dd98ed8dfc * implemented view bitmap options (B_BITMAP_TILE...) in
ViewLayer (for example, fixes NetPositive rendering
  HTML with a background image)
* use BRegion pool everywhere in ViewLayer
* WindowLayer update sessions distinguish between
  different reasons for the update: exposed and requested -
  on expose updates, the view backgrounds are cleared
  immidiately (as on R5), to keep the time previous stuff
  keeps showing as short as possible, while on requested
  updates, the background clearing is delayed until the
  client draws something, to keep the time until the client
  fills a view with content as small as possible to reduce
  flickering (might need more work, could be buggy yet)
* HWInterface and DrawingEngine support delayed syncing to
  the graphics hardware at least for FillRect/Region. The
  speed up gained by this is minor though.
* HWInterface cursor rendering uses a bit of rounding to
  avoid the slight transparent shadow around the cursor
  (I don't know if it is fully correct though, at least the
  shasow disappeared)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17172 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-04-19 14:12:57 +00:00
Axel Dörfler
aacfed124b Added private menu/desktop/WindowScreen feels to play with.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17150 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-04-17 13:22:19 +00:00
Stephan Aßmus
39c9925fcf * implemented a BRegion pool per WindowLayer which is supposed
to cut down on BRegion related allocations, cannot really tell
  if it speeds things up
* used the new BRegion pool in WindowLayer and ViewLayer whereever
  a BRegion was used on the stack
* fixed the debugging stuff in MultiLocker - it will get you into
  the debugger if you
    - try to nest read locks
    - try to write lock when your are a reader already
    - don't match up nested locks when your a writer
    -> but only if you #define DEBUG 1 in the .cpp, is off by default now
* went over WindowLayer, ServerWindow, Desktop and a few other places
  and fixed the locking for use with the MultiLocker, the "a reader can
  not become a writer" is especially tricky, feel free to review the
  changes
* activated the MultiLocker, I tested this quite a bit, if there are
  problems simply turn on DEBUG and you should drop into the debugger
  right where the problem is... hope all is good


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17046 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-04-07 19:14:25 +00:00
Axel Dörfler
92eab70620 Oops, accidently didn't commit the correct version.
Also note that BeOS doesn't seem to pick up the cursor this way, it only
works when we're doing this later (ie. in MouseMoved() or Pulse()).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-04-01 18:08:40 +00:00
Axel Dörfler
da07353dcd Added a small cursor test application.
Note, it looks like we translate the cursor shape differently than R5
(according to the docs, black is always opaque and ignores the transparency
bits).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16958 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-04-01 18:06:50 +00:00
Axel Dörfler
a722407264 Added "relabel" command to rename volumes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16888 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-27 07:38:53 +00:00
Axel Dörfler
bd3c41fe37 Stripped down the fake_app_server a bit more, so that breaking the build
while working on the app_server should less likely happen - hopefully.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16836 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-18 20:53:06 +00:00
Axel Dörfler
16ed1e1d15 * Removed headers/private/servers/app - everything is in src/servers/app now.
* Removed DisplaySupport.h, wasn't needed anymore.
* Removed private color set functions from InterfaceDefs.cpp - we might want
  something similar, but definitely not like that.
* Minor cleanup, added some missing licenses.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16831 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-18 16:42:14 +00:00
Axel Dörfler
38a6ea1d98 * Removed the old AS_AREA_MESSAGE stuff - it's currently not used at all, and
even though we might need something similar, we can't use it (since it was
  based on BGet++).
* Removed BGet++, it's not used anymore.
* Removed ServerMemIO class, was never used.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16830 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-18 15:59:23 +00:00
Axel Dörfler
0476838149 The test environment should now build okay again, as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16829 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-18 15:48:12 +00:00
Axel Dörfler
9a44fdc97c * Implemented a new client allocation method: instead of having all bitmaps of
all teams in serveral server areas, and instead of having to eventually clone
  them all several times in BBitmap, we now have one or more areas per team,
  and BBitmap will only clone areas once if needed. As a side effect, this
  method should be magnitudes faster than the previous version.
* This method is also much more secure: instead of putting the allocation
  maintenance structures into those everyone-read-write areas, they are now
  separated, so that faulty applications cannot crash the app_server this
  way anymore. This should fix bug #172.
* Freeing memory is not yet implemented though! (although all memory will
  be freed upon app exit)
* There are now 3 different bitmap allocation strategies: per ClientMemoryAllocator
  (ie. via ServerApp), per area (for overlays, not yet implemented), and using
  malloc()/free() for server-only bitmaps.
* ServerBitmap now deletes its buffers itself.
* Cleaned up BBitmap and BApplication a bit.
* The test environment currently doesn't build anymore, will fix it next.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16826 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-18 13:43:26 +00:00
Axel Dörfler
6686623070 * Fixed possible crashing bug, since fWindow was never initialized.
* Fixed another BMessageRunner leak.
* Added an optional second parameter which you can use to limit the run time
  of the app.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16764 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-13 15:59:58 +00:00
Axel Dörfler
bc63570c9b BWindow::Show() will no longer Run() its looper without a valid app_server
connection.
StressTest now detects this case and quits those windows.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16752 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-12 22:59:49 +00:00
Axel Dörfler
3dd881e3af * Fixed memory leak in StressTest and BWindow: they both did not delete the
message they passed to a BMessageRunner object.
* Added note about the ownership of the message to the BMessageRunner
  documentation.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16751 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-12 22:35:36 +00:00
Stephan Aßmus
e7df4a4829 add a small test that stress tests window creation and destruction
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16721 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 19:41:51 +00:00
Stephan Aßmus
df29904e48 update error messages
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16720 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-11 19:40:49 +00:00
Axel Dörfler
539d69fc6b Added private "Left Titled" and "Desktop" looks to test.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16673 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-09 12:53:21 +00:00
Marcus Overhagen
c8b86e7067 removed misleading comments
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16650 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-08 15:50:30 +00:00
Marcus Overhagen
f07155e026 adjusted texts to recent api changes, documentation will follow
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16649 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-08 15:42:34 +00:00
Marcus Overhagen
7f832a1ddb more tests for port functionality
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16648 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-08 15:22:07 +00:00
Marcus Overhagen
da9b743b20 modified tests. The results on BeOS R5 do not match the BeBook description.
$ /boot/home/develop/haiku/generated/objects/haiku/x86/debug_1/tests/system/kernel/port_close_test_1
created port 2269
write port result 0x00000000 (No Error)
write port result 0x00000000 (No Error)
close port result 0x00000000 (No Error)
write port result 0x80001200 (Bad port ID)
port_buffer_size -2147479552 (0x80001000) (Bad semaphore ID)
read port code 1234, size 10 (0x0000000a) (Unknown Error (10))
port_buffer_size -2147479552 (0x80001000) (Bad semaphore ID)
read port code 5678, size 20 (0x00000014) (Unknown Error (20))
should block now
port_buffer_size -2147479552 (0x80001000) (Bad semaphore ID)
$ /boot/home/develop/haiku/generated/objects/haiku/x86/debug_1/tests/system/kernel/port_close_test_2
created port 2270
write port result 0x00000000 (No Error)
write port result 0x00000000 (No Error)
close port result 0x00000000 (No Error)
write port result 0x80001200 (Bad port ID)
port_buffer_size -2147479552 (0x80001000) (Bad semaphore ID)
read port code 1234, size 10 (0x0000000a) (Unknown Error (10))
port_buffer_size -2147479552 (0x80001000) (Bad semaphore ID)
read port code 5678, size 20 (0x00000014) (Unknown Error (20))
should block now
read port code 5678, size -2147479040 (0x80001200) (Bad port ID)
$ /boot/home/develop/haiku/generated/objects/haiku/x86/debug_1/tests/system/kernel/port_delete_test
created port 2271
write port result 0x00000000 (No Error)
write port result 0x00000000 (No Error)
delete port result 0x00000000 (No Error)
everything should fail now
write port result 0x80001200 (Bad port ID)
port_buffer_size -2147479040 (0x80001200) (Bad port ID)
read port code 0, size -2147479040 (0x80001200) (Bad port ID)
$  


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16645 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-08 14:22:56 +00:00
Marcus Overhagen
89107618d5 added tests for kernel ports
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16644 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-08 14:07:28 +00:00
Oliver Tappe
94a055c10d * fixed broken FindLast() taking a char and an offset
* added two more tests that exhibit the (now fixed) problem in FindLast()



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16586 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-05 18:27:50 +00:00
Axel Dörfler
f19839c230 Some groundwork for overlay support. If someone wants to finish this, feel
free to continue (it would be nice to be notified before, though, in case
I get to it again in the next weeks).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-01 21:20:57 +00:00
Jérôme Duval
e2a69d2257 moved iso9660 R5 version to tests
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16538 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-27 23:31:21 +00:00
Axel Dörfler
640b841d5a Fixed build of the app_server test environment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16522 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-27 10:44:13 +00:00
Axel Dörfler
e060f46982 Font rendering under Haiku directly still looks different from the font rendering
in the test environment; the visual glitches should now be fixed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-12 19:38:16 +00:00
Ingo Weinhold
2d0e3b12b1 Added support for "ln" switch "-n" (no dereference).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16353 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-11 19:37:00 +00:00
Ingo Weinhold
468009f830 Replaced all "bool"s by "int"s. Apparently passing a bool as function
parameter from a C++ to a C context doesn't work as expected (on x86).
The caller reserves 4 bytes on the stack, but initializes only the
less significant 2 of them, while the callee reads all four bytes.
A symptom was, that one couldn't remove a symlink pointing to a directory.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16352 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-11 19:35:41 +00:00
Jérôme Duval
500f710bca fix the build on Dano
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-10 20:25:57 +00:00
Stefano Ceccherini
10b26c62df Added some check for B_INTERRUPTED in semaphores acquisitions. Could fix bug #89, although I can't reproduce it in Qemu
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-10 19:13:08 +00:00
Jérôme Duval
43f7b92977 made a slider vertical, reduced initial rects, and applied ResizeToPreferred()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-10 17:12:06 +00:00
Axel Dörfler
9837f25ec6 Forgot to commit a simple test application for node monitoring.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16287 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-07 16:54:21 +00:00
Axel Dörfler
2bdbc03a1d Oh surprise, I broke the build with fake_app_server again...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16240 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-05 22:10:01 +00:00
Axel Dörfler
ce3f3b5af2 Slightly improved font sensitivity of the top bar.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16209 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-02 18:32:22 +00:00
Axel Dörfler
f2c54a03a6 * Made it look better when running under Haiku. Restricts the maximal font size to
12 points to make sure it'll look acceptable.
* Fixed direct window rendering by disabling moving the animation area around
  (would have to be changed in DirectConnected() as well).
* Refresh and density sliders now ResizeToPreferred().
* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16206 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-02 18:14:38 +00:00
Jérôme Duval
01c93c363a added a test installer app
source directory is currently hardcoded in InstallerWindow.cpp, it could be changed in a macro


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16197 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-02-02 10:41:44 +00:00
Axel Dörfler
204131dc97 Added a real yield function to the kernel (using the next_priority approach).
The test application lets run a thread at the highest priority that calls
yield all the time - the system stays responsible when it runs, so it seems
to work fine :)
Changed the malloc implementation to use _kern_thread_yield() instead of
snoozing.
We should think about making this call public, too.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16166 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-31 02:29:02 +00:00
Ingo Weinhold
4b0e1b9bda * We map ioctl() to the build platform manually now. For Linux we
implement the B_GET_GEOMETRY command in a usable way. The bfs_shell is
  able to play with partition devices under Linux, now.
* Fixed two warnings.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16146 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-30 01:19:11 +00:00
Ingo Weinhold
51855db4b0 Added cleanup for the external command stuff, so that the UNIX flavored
implementation can unlink the named pipe.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-30 01:13:48 +00:00
Stefano Ceccherini
ffa2503b55 first style changes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16001 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-17 21:12:59 +00:00
Ingo Weinhold
d4e25ae745 Got rid of the argument number limit of fs_shell's cp command.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16000 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-17 21:00:42 +00:00
Stephan Aßmus
5a2b3bac82 Axel wants to check up on something, and I had added the testbed for that already
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15913 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-11 19:34:57 +00:00
Axel Dörfler
8a74d5f103 Imported r15693 to the R5 version of BFS: fixed endian issues.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15869 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-08 13:55:56 +00:00
Axel Dörfler
1956c146ea bfs_shell now also builds under Linux/PPC, not tested yet, though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15868 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-08 13:19:12 +00:00
Stephan Aßmus
269293b0ea Selected objects can be removed with the delete key.
Added testbed for BTabView.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15847 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-05 23:51:23 +00:00
Stefano Ceccherini
3b39bd1d07 slightly better layout, the left view accomodates its width to fit the controls. The boxes inside it don't, yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15844 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-05 13:41:20 +00:00
Stefano Ceccherini
448641c5c1 Fixed all the warnings in Chart. This app is still VERY font-insensitive and it doesn't do ANY error checking, but I won't fix it. At least, not now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15841 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-04 10:14:02 +00:00
Stefano Ceccherini
4d2cd8d601 Converted binary resource to rdef format
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15799 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-02 15:46:34 +00:00
Stefano Ceccherini
3a9c608b2f forgot to commit Jamfile
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15795 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-02 15:09:24 +00:00
Stefano Ceccherini
be51f21d8a Added chart demo
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-02 15:09:03 +00:00
Stefano Ceccherini
3edb84e5ed DirectWindow and ServerLink updated to the new ClipRegion, as I'm tired to edit them every time. Only for the test app.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15787 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-01-02 10:02:51 +00:00
Stephan Aßmus
34dcf66837 I guess Axel got bored already having to stare at the same animation all the time... so I changed it a little
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15762 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-31 01:38:36 +00:00
Axel Dörfler
b773ffdd9f Fixed build of fake_app_server (ServerBitmap destructor is now protected).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15721 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-29 16:59:11 +00:00
Stefano Ceccherini
ee44f668eb Added page_flipper as a test for BWindowScreen (thanks to Stephan for sending it to me)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15675 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-26 14:54:04 +00:00
Stephan Aßmus
eeb06055db the run_haiku_registrar app is placed in the test environment install folder
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15633 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-21 11:20:35 +00:00
Stephan Aßmus
75bf993e08 updates various stuff, Jamefiles and run scripts for the most part... clicking a list view object entry selects the object in Playground... alpha drawing in the scrolling test would reveal problems in the app_server scrolling implementation... more I have forgotten
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15632 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-21 11:19:16 +00:00
Stephan Aßmus
a90bd9535b why do the stupid bugs always take soo long to find... even when I did them myself... this fixes attaching BViews to B_CMAP8 bitmaps and drawing into them in the test environment
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15631 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-21 11:16:56 +00:00
Axel Dörfler
77b1fd2243 Renamed the tests/kernel/core directory like the main directory tests/system/kernel
and adapted all Jamfiles.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15630 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-21 00:30:29 +00:00
Stephan Aßmus
f6cef39e1e row_bytes was used in a weird way, and still is, if you would take row_bytes literally
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15622 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-20 22:22:26 +00:00
Stefano Ceccherini
cbe65c2e73 Don't ask me how, but I apparently fixed the weird bug I had introduced.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15583 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-19 11:06:20 +00:00
Stephan Aßmus
040ce75726 added libbeadapter.so (used by the storage kit and the haiku regisrar) to the test libs, it just went unnoticed before
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15530 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-13 19:08:18 +00:00
Axel Dörfler
bd09e99dbd Made the direct window test environment optional, since it crashes the Dano
app_server...
If you like to use it, define USE_DIRECT_WINDOW_TEST_MODE in the haiku_app_server
Jamfile.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-11 21:42:32 +00:00
Stephan Aßmus
62b965a65f * got the "cloned accelerant" based DWindowHWInterface to work, though without
using the clipping info from a BDirectWindow... I made it so that the window
  used stays on top always, until I can think of something better. The other
  problem is that you should not move the window, since Painter doesn't update
  it's pointer into the frame buffer.
* Now the test environment is running at pretty much the same speed as it would
  under Haiku, completely by-passing the BeOS app_server. It shows that Painter
  needs to be optimized for writing to graphics memory, and also that we need to
  figure out a way to distribute update sessions more equally. What happens is
  this: The first invalidation of a window triggers an update on the client
  side... the client cannot keep up with drawing, since it is pretty much
  blocked all the time because the desktop thread moves a window and because
  the clipping constantly changes. In the meantime, new update request are
  added to the pending session because the client has still not finished with
  the current session. Only when things settle a bit, the next update session
  can be startet. On the bright side of things, the earlier problems with
  scrolling seem to be fixed for good.
* some documentation updates on Painter


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15478 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-10 21:45:41 +00:00
Axel Dörfler
050bf31477 Minor fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15473 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-10 20:03:19 +00:00
Ingo Weinhold
a41a0db6f2 Solved linkage problems. Virtual destructors apparently shouldn't be defined
inline. Commented undefined virtual methods. BBitmapBuffer is still used, so
is ViewHWInterface.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15472 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-10 17:48:00 +00:00
Stephan Aßmus
c2270088dc build the DirectWindow/Accelerant based HWInterface instead - Axel, don't check this out, it doesn't work yet, this is for Ingo to investigate that linker problem
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15471 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-10 16:45:25 +00:00
Axel Dörfler
55eeaa58a6 * Renamed test to DirectWindowStars.
* Some changes to make it run in the test environment.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15466 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-10 15:07:13 +00:00
Stephan Aßmus
e76d86d5dd now directly banging the hardware by using a cloned accelerant, soon to be ported to the app_server test environment. Unfortunately deadlocks most of the time when quitting...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15462 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-10 12:43:19 +00:00
Axel Dörfler
e62201bacd * not all possible flags were shown due to a stupid bug...
* added B_SAME_POSITION_IN_ALL_WORKSPACES for the build under Haiku (and libbe_test)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-09 13:44:54 +00:00
Stefano Ceccherini
70206143d0 Tested the new implementation, corrected a ton of bugs and wrong code, now Include and IntersectWith methods work. Exclude is still not working, and there are still a couple of hacks to remove
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15422 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-08 14:57:54 +00:00
Axel Dörfler
e83820ed57 Merged app_server_new_clipping branch changes r15290 to 15418 back into trunk.
Also fixed Jamfile for the test environment.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15419 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-08 12:41:19 +00:00
Axel Dörfler
ecc3280f6b Fixed build of the haiku_registrar test app.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15407 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-08 09:33:08 +00:00
Stefano Ceccherini
9bd3f620bc More stuff, should be almost feature complete (but bugged as hell, probably), I should start real testing tomorrow, hopefully
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-05 20:12:18 +00:00
Stefano Ceccherini
503f85dc8a forgot to commit this file, I noticed after a revert
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15306 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-03 21:09:49 +00:00
Stefano Ceccherini
2b3861d601 some bugfixing
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-03 14:12:53 +00:00
Stefano Ceccherini
eba7781c71 Now Region.h is binary compatible with R5's one
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15295 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-03 11:11:12 +00:00
Stefano Ceccherini
f76e95c4ee more stuff, still completely untested
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15294 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-03 11:08:45 +00:00
Axel Dörfler
f5e1f2163f The feel can now be changed on the fly as well (only in the test app, of course,
the app_server is still dumb about it).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15281 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-02 11:37:31 +00:00
Stephan Aßmus
a825e4034c not in a nice way, but I hope to have fixed the deadlocking problems on program exit
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15279 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-02 00:10:41 +00:00
Stephan Aßmus
0bbd104a7d don't allow the top view to be scrolled
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15278 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-01 21:32:45 +00:00
Stephan Aßmus
7943e1a86d scrolling seems to work nicely, dirty regions are tracked fine and shifted along with the scrolling if necessary
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15277 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-01 21:14:10 +00:00
Axel Dörfler
3d05db78ce Fixed compilation (at least under Zeta/Dano).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15276 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-01 19:09:53 +00:00
Stephan Aßmus
727653f7ab implemented invalidation triggered from the client side. 20 clients each displaying an animation in one view at 25 fps leaves the new clipping unimpressed, everything is fluent, also during moving and resizing windows
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15275 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-01 19:04:37 +00:00
Axel Dörfler
755ae3a961 The window is now resized to be high enough for its contents.
The buttons now span over the full width (and will be adapted on resize).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15274 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-01 18:58:44 +00:00
Stephan Aßmus
8c8275c2ea showing and hiding windows and views works now, views are not so heavily tested, but any problems should be easy to fix. the recursive IsHidden() is now avoided, there is only one recursion now, which is when the hidden status changes. in the simulation, double clicking a window will temporarily hide it and show it asynchronously from the window thread. looks like the locking model works out fine.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15272 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-01 17:24:47 +00:00
Axel Dörfler
2057d3c0aa If AddToSubset() fails, we now show an error alert.
B_QUIT_REQUESTED is no longer forwarded to the application too early.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15271 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-01 17:08:16 +00:00
Axel Dörfler
7ae647775e Completed functionality - you should now be able to test pretty much everything
with respect to look/feel/flags.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15270 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-01 16:50:21 +00:00
Axel Dörfler
5c01706db6 Again, did only compile under BeOS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15264 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-01 13:23:13 +00:00
Axel Dörfler
a7e6679b88 Beginning of a test application for look&feel (and flags, actually).
Only look & flags are tested right now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15263 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-01 13:21:33 +00:00
Stephan Aßmus
d0e89d5302 I couldn't resist playing some more with ezprof. I don't know if I can trust it's results though, revealing as they are. Somebody should explain to me why forgetting a return *this; in an operator= method works in the first place, and why it results in the constructor being called.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15255 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-30 23:03:05 +00:00
Stephan Aßmus
c8b8bbfca4 fix the update session operator=, temporarily enabled Flush()ing the underlying BView again in order to not distract with fake drawing bugs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15252 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-30 20:51:39 +00:00
Stephan Aßmus
7fd1af6f04 I did some profiling using Daniel Reinholds ezprof, which is quite nice actually. I optimized a bit, without spending too much time on that yet, and now the clipping is on average 7 times faster than the current app_server (the time spend in the root layer thread)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15251 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-30 20:35:47 +00:00
Stefano Ceccherini
983af123cd Obviously forgot to svn add
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15247 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-30 18:43:57 +00:00
Stefano Ceccherini
f505f1798d Added a jamfile for NewRegionTest. Small changes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15246 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-30 18:43:26 +00:00
Stefano Ceccherini
927995cedd Fixed some bugs reported by Stephan. You were right after all :)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15237 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-30 09:12:24 +00:00
Stefano Ceccherini
5c2728e222 A slightly different region implementation, not tested or anything
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15236 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-30 06:23:00 +00:00
Stephan Aßmus
7e68917fe7 more commenting, if only to clean up my own mind
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15235 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-30 00:29:19 +00:00
Stephan Aßmus
1ba9992d13 a views screen clipping does no longer includes the windows actual clipping, only the content clipping, this simplifies some calculations, and avoids invalidating each views screen clipping when the window clipping changes. at any time the views screen clipping is used, we need to watch out for the effective clipping anyways
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15234 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-29 21:21:12 +00:00
Stephan Aßmus
312345bcb1 with the new design, there is always only one redraw message in the WindowLayers message queue, therefor, ReadLockWithTimeout() is no longer needed, removed RWLocker again as MultiLocker suits our needs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15232 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-29 20:53:00 +00:00
Stephan Aßmus
c63a78aafa now doing without a global dirty region, and it seems it gained a little speed too, should be easier now to make the multi locker work
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15231 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-29 20:35:47 +00:00
Stephan Aßmus
4dd89c6903 * added a multi locker implementation from Ingo Weinhold,
which supports ReadLockWithTimeout()
* commented the code in many more places
* understood the problem of making the read/write locking
  work: While it would be possible for each window to
  remove the processed region from the global dirty region
  in read lock mode (since it is guaranteed not remove
  a region not intersecting with its own visible region),
  multiple window threads can still not do this at the same
  time, since BRegion itself is not threadsafe of course.
* I need to figure out a way for the window threads to be
  able to access and modify all needed data in read only mode,
  I think this means to divide the global dirty region into
  each window again, so that each window thread can simply
  clear its own dirty region instead of excluding it from
  the global region. Yeah, that might work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15230 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-29 19:08:58 +00:00
Axel Dörfler
c7bba5ca04 When it gets a B_ENTERED_VIEW transit in MouseMoved(), it will now use a different
color. In BeOS, a view gets a MouseMoved() with B_ENTERED_VIEW when the window is
opened under the mouse cursor (not yet in Haiku).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15227 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-29 13:32:35 +00:00
Axel Dörfler
17adc30b57 Only compiled under BeOS...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15226 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-29 13:12:27 +00:00
Axel Dörfler
7362a1d7b8 Added a test application for B_AVOID_FOCUS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15225 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-29 13:07:01 +00:00
Stephan Aßmus
b619f15f6d that expensive drawing mode served it's purpose, but it makes it seem like the prototyp is maxing out the CPU again
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15202 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-28 19:40:02 +00:00
Stephan Aßmus
748533bbf9 figured out and solved several problems:
* views are now correctly clipped when they are
  (partly) hidden under their parent(s)
* removed fIsTopView, the top view in a window
  simply has no parent
* introduced WindowLayer::CopyContents() which
  blits part of the contents to another location,
  while moving that part in the dirty regions. Since
  this is currently used from the Desktop thread,
  messing with the update session dirty regions
  requires now to lock the clipping
* that feature is now used for blitting a view to its
  new location in ViewLayer::MoveBy(), which
  works for right and/or bottom aligned views just fine
* I left the global dirty region in Desktop for now,
  moving it into each WindowLayer gave quite a slowdown
  and caused all kinds of other problems.
* a view is now cleared to the background color right
  before the first drawing command from the client
  is executed for that view, this reduces flickering
  a lot because the content is drawn much more shortly
  after the background is cleared.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15201 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-28 19:28:38 +00:00
Axel Dörfler
94dc3ed625 Added a small test application that opens a desktop window (so that you don't have
to open the whole Tracker everytime for this).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15200 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-28 17:54:34 +00:00
Adi Oanca
12aa597dc6 Played a bit :-)
* Introduced WindowLayer::Hide/Show/IsHidden()
* Made ViewLayer::IsHidden() more robust.
* Same with ::TopLayer()
* modified a little ViewLayer::MoveBy() - prepared it to work with
hidden/shown code that will come soon; only calculate dirty regions if a
ViewLayer has a parent, otherwise the move action is pointless.
* Did the same thing with ::MoveBy() except for the parent stuff - no need
for a parent on resizing.




git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15193 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-27 17:08:57 +00:00
Stephan Aßmus
f51806635b stress testing. It shows that for 40 open windows, the newerClipping design takes 3.5 times less time in the root layer thread compared to the newClipping design. On average, it is about 8.7 times faster. The goal of the redesign, to move the heavier computation from the root layer thread into each window thread, seems achieved, since even with 100 open windows, moving a window does not start any lagging. By removing the global dirty region in Desktop, I think this can be further improved.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15183 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-27 00:18:08 +00:00
Stephan Aßmus
0036cd5d1b I don't want to promise anything but that fix could have been the last remaining bug. Next up is scrolling then showing, hiding, adding and removing layers during runtime... Maybe the simulation can be extended by drawing animations triggered from the client too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15171 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-26 18:02:13 +00:00
Stephan Aßmus
7241178e3f ViewLayers screen clipping is clipped to the parent bounds, but that is only a partial fix and should be done more elegantly. When moving a window, the part that we could blit is certainly not dirty, the pending dirty region that we drag along is clipped to the new visible region of the moved window
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15170 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-26 17:55:05 +00:00
Stephan Aßmus
f5552ed0b2 this fixes the bugs in the update session region enforcement during client drawing, there is only one bug left now: resized ViewLayers don't invalidate the correct regions (they don't take areas into account that are hidden because the parent is too small)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15168 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-26 17:01:29 +00:00
Stephan Aßmus
987aa5e4d4 remaining bugs are with update session region tracking and dirty regions when layers are moved and resized, the window clipping itself seems to work reliably now
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15163 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-26 15:22:35 +00:00
Stephan Aßmus
27b740633e one bug fixed, three more to go
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-26 14:51:35 +00:00
Stephan Aßmus
cfc40fb337 make client drawing slow again, made client drawing use B_OP_BLEND which shows problems with incorrect clipping during update sessions
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15161 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-26 14:33:26 +00:00
Stephan Aßmus
7f705589e2 still buggy but less buggy than before, more caching and less overhead
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15160 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-26 14:07:44 +00:00
Stephan Aßmus
ff89d51e02 * adds drawing commands from clients
* adds concept of a current and a pending update session
* marks dirty views being resized or moved

Some aspects of the design are buggy, others are slow, but I'm
approaching a good overview of what's needed and what problems
lurk in the details. In the end I hope to make things work fast
and correctly at all times. Adi or anybody else, feel free to
join the efforts.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15158 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-26 00:13:34 +00:00
Axel Dörfler
c3b8f9f69a Added a very simple "code_to_name" utility that will print out the name of
an app_server code. It's always up-to-date as it just reads the header
directly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-25 14:53:34 +00:00
Axel Dörfler
887f41e646 Minor improvement for the Dano message reader test application (forgot to check that in earlier).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-25 12:19:08 +00:00
Stephan Aßmus
0cf04412be please forgive me (next check in when I really coded new stuff)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-24 21:04:46 +00:00
Stephan Aßmus
420b55f261 fixed the frame buffer version for real
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15134 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-24 21:01:49 +00:00
Stephan Aßmus
935510ce32 fixed build of frame buffer version
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-24 20:56:53 +00:00
Stephan Aßmus
0b78f37e8e * a bit more sophisticated
* now with actual view layers inside the windows
* implemented the resize modes (from Adis code)
* windows have resize handles and more correctly
  clip the views inside
* bringing windows to front or sending them behind all others
* one active window, the others are inactive
* with and without focus follows mouse mode

* bugs:
  - the region marked dirty when views are
  resized is not correct yet

* todo:
  - move the dirty region from being managed by the
  desktop to being managed in each window (and being
  local too)
  - scrolling
  - hiding/showing of windows and views

I plan to extend this to fully simulate asynchronous
drawing from clients, to see any problems before
using this in the real server one day.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-24 20:49:30 +00:00
Axel Dörfler
be2f498e8a Forgot to commit Jamfile for the test environment...
Should have been in r15128.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-24 17:58:33 +00:00
Stephan Aßmus
bef1ed93e1 Adi and I have had long talks about better approaches to clipping and we are convinced that a different design can significantly speed up the clipping processing in the root layer thread. This is a first prototype implementing the new ideas. Lots of features are missing yet, but Adi asked me to commit it now, so that we can both continue to work on it. The purpose of the new design is to significantly reduce the computations during an atomic clipping update, and also to scale much better with many more open windows.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15101 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-24 09:45:28 +00:00
Axel Dörfler
d1071ff01b Removed Utils.cpp - it's not really useful anymore.
Note, I temporarily kept the Utils.h in, because I have other local changes to be
committed soon (sorry for this, but it shouldn't harm).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15043 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-20 16:09:16 +00:00
Ingo Weinhold
29306dbe81 Host platform gcc 4 fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15026 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-18 22:29:31 +00:00
Axel Dörfler
b43c728310 Fixed build of the fake_app_server.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15015 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-18 12:21:15 +00:00
Axel Dörfler
f759822327 * the new input event dispatcher is now actually used, although it doesn't
distribute any messages to the clients yet.
* removed the working thread from RootLayer - for now, its event handlers are
  still called using input filters in the new event dispatcher, though (to
  get things started).
* ServerApp is now using a BMessenger to identify its client, and no longer
  stores the port/token separately.
* the input_server handshake is a bit simpler now, as it can now just reply
  to the app_server message, removed unused code from ServerProtocol.h
* calmed down the MultiLocker (it always printed thread statistics on startup,
  because it's compiled in debug mode).
* removed the cursor thread stuff from AppServer.cpp
* the new event dispatcher now uses a cursor thread when supported (only in
  native mode, not in the test environment), although it improves cursor
  movement under Qemu, the effect is not as good as expected - this might
  need some more investigations (might just be a thread priority problem).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15012 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-18 11:30:06 +00:00
Axel Dörfler
0e29f57a22 Fixed the app_server build in the test environment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15005 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-17 18:43:08 +00:00
Axel Dörfler
fc50522937 Added a small test application to see how event masks are working.
Notice the doubled key events in case the upper right BTextControl with
B_KEYBOARD_EVENTS has focus in BeOS...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14982 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-17 11:01:42 +00:00
Ingo Weinhold
93aeb8c3bc Added small app testing throwing/catching of exceptions beyond shared
object bounds.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14975 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-16 21:34:32 +00:00
Ingo Weinhold
37d96a4c63 Made gcc 4 proof.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14964 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-16 17:23:54 +00:00
Ingo Weinhold
d4637d3200 Fixed line breaks.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-16 15:48:17 +00:00
Stephan Aßmus
b894f5f778 fix build of test environment
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-15 23:43:02 +00:00
Axel Dörfler
f0c09cbbaf Again, forgot to check if the fake_app_server still builds correctly (which it didn't, surprisingly).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14927 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-14 20:40:44 +00:00
Axel Dörfler
be05d56c7e * the app_server now uses a global token space - this should later be changed to
have different token spaces depending on the scope of its objects.
* removed TokenHandler - we're now using BTokenSpace instead.
* removed unused IPoint.cpp - if we ever need it again, it can still easily be
  resurrected from the dead.
* some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14925 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-14 19:46:20 +00:00
Ingo Weinhold
d28317fcba Added small RTTI test.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14916 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-14 15:08:51 +00:00
Axel Dörfler
2cdc02b945 Added a test app for setjmp() - doesn't work yet - strangely enough, the test
environment where I wrote our setjmp() in does work perfectly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14897 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-13 16:30:47 +00:00
Axel Dörfler
8b794301de Changed the way the app_server is built:
* no more libappserver.so - this breaks the "Appearance" application, but that
  has to be fixed some day later.
* the drawing stuff is now built in its own directory as libasdrawing.a.
* TEST_MODE defaults to "0" if not defined yet - it's overridden in the test
  build now, not in the main build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14896 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-13 15:40:21 +00:00
Michael Lotz
cf10934e5f Introducing Message4. The changes to the related sources are ifdefed with USING_MESSAGE4 which is defined in Message4.h. To use Message4 the Message4.cpp, Message4.h, MessageUtils4.cpp, MessageUtils4.h and MessagePrivate4.h have to be linked to their counterparts without 4 suffix. Then MessageBody.cpp and MessageField.cpp have to be commented out in the app kit Jamfile and r5_message.cpp has to be added. There remain some bugs to be found. Feel free to change that.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14882 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-13 11:31:07 +00:00
Ingo Weinhold
758b1d0e05 Fixes that make Haiku build with gcc 4. Mainly out of the following
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
  declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
  explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
  something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
  'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
  is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
  Otherwise the an inner class with that name is considered as friend.
  gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-12 23:27:14 +00:00
Axel Dörfler
ba98d1b0cd * Terminal is now also built for the libbe_test platform; removed explicit linking
against libroot.so.
* libtracker.so is now also built for that one, and also removed libroot.so linking.
* MiniTerminal is no longer build for the libbe_test platform.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14854 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-11 13:50:26 +00:00
Ingo Weinhold
5fdbbf2ba5 Renamed UnitTesterHelper.* to UnitTester.*.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14793 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 16:23:11 +00:00
Ingo Weinhold
5cdc84cc43 No longer needed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14792 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 16:19:15 +00:00
Ingo Weinhold
155b583ac3 Fixed unit tests build for platforms libbe_test and r5. Only randomly tested
a few whether they actually work.
New pseudo target "unittests", which builds all unit tests for the currently
set TARGET_PLATFORM. They are placed in generated/tests/<platform>/unittests.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14791 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-09 16:17:31 +00:00
Adi Oanca
68e424c88b fix app_server build for R5 testing
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14779 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-08 18:18:18 +00:00
Stephan Aßmus
3557698909 updated NOTES
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14765 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-07 23:03:34 +00:00
Axel Dörfler
e37155c670 * The font list is now cached client-side. The app_server is only queried for
updates.
* Optimized retrieving the font list from the server.
* This greatly simplifies the app_server communication for getting the font
  list as well - there are now only 2 commands instead of 6.
* Moved extra font flags creation from ServerApp to FontStyle::Flags().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14751 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-07 16:19:40 +00:00
Ingo Weinhold
ca9e5772c3 * Reintroduced third LinkAgainst parameter <mapLibs>, defaulting to true.
Library names are now mapped for all targets but "host" (not only for
  "haiku") -- added one more level of indirection to achieve that.
  (TARGET_LIBRARY_NAME_MAP -> *_LIBRARY_NAME_MAP_*).
* Renamed build/HaikuBuildCompatibility.h to BeOSBuildCompatibility.h
  (auto-included when compiling something that uses the Be API for platform
  "host" on anon-BeOS platform), and introduced build/HaikuBuildCompatibility.h,
  which can be included when compiling something that can be built for both,
  Haiku and BeOS compatible platforms.
* Introduced libhaikucompat.a, a library that adds a few functions existing
  under Haiku, but not under BeOS.
* New rule AddSubDirSupportedPlatforms.
* Renamed libopenbeos.so to libbe_haiku.so.
* Introduced new target platform "libbe_test", which is basically equivalent
  to a BeOS compatible host platform target, with the exception, that instead
  of the host platform's libbe.so a special build of Haiku's libbe.so
  (libbe_haiku.so (formerly known as libopenbeos.so)) is used. Furthermore
  Haiku's public app, interface, storage, and support kit headers are used
  when compiling. This replaces the less nice way in which the test app server
  and applications for this test environment were built.
  When building for platform "libbe_test", the library name "be" is
  autotranslated to "libbe_haiku.so". Thus most applications don't need
  special fiddling when them building them for the app server test environment;
  usually an "AddSubDirSupportedPlatforms libbe_test ;" will suffice.
* Reduced the dependencies of <syscalls.h> and fixed problems caused by this
  (e.g. source files not including the needed headers directly).



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14749 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-07 16:07:25 +00:00
Stephan Aßmus
a38aedd980 no longer needed, moved to painter test folder
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14729 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-07 01:13:12 +00:00
Stephan Aßmus
e7869c4c74 renamed DisplayDriverPainter to DrawingEngine, removed tons of duplicated code, and - guess what - found some bugs while doing so... but nothing critical. This patch removes the former DisplayDriver API from libappserver.so, which I think breaks Decorator plug-ins for now
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14707 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-04 18:22:22 +00:00
Marcus Overhagen
7590edd29b fixed the build (was broken in r14695)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14700 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-04 16:38:08 +00:00
Stephan Aßmus
fcd75d6357 renamed DisplayDriverPainter.* to DrawingEngine.*
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14696 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-04 15:55:53 +00:00
Stephan Aßmus
0f6436373e removed bogus install-libs script, updated NOTES and Playground run script to use the pseudo target install-test-apps
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14686 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-04 12:44:23 +00:00
Axel Dörfler
0595331e28 Fixed build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14683 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-04 12:11:31 +00:00
Axel Dörfler
aca4f50d1e Merged DrawData and LayerData to one class DrawState.
Removed that ambiguous second copy constructor and moved push state functionality
into a separate PushState() method. 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14679 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-04 11:37:28 +00:00
Axel Dörfler
5112e701f3 This should fix an annoying warning that newer GCCs seem to like.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14676 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-04 09:56:36 +00:00
Axel Dörfler
e0d7d87fc4 Removed "dano" as compatible platform - the app_server test environment test run there.
Added a small test application for view states. Right now, it only tests scaling - which
doesn't seem to work yet at all.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14673 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-04 09:46:44 +00:00
Ingo Weinhold
551d682030 Fixed build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14649 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-02 14:57:37 +00:00
Axel Dörfler
f23f61c8e3 Fixed the "run_haiku_registrar" tool to be used with the new build system.
It doesn't build though, as SimpleTest doesn't seem to work anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14644 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-02 14:25:58 +00:00
Axel Dörfler
4e141bc8a0 Renamed FontServer to FontManager - this fixes the build of the app_server test environment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14643 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-02 14:12:23 +00:00
Stephan Aßmus
d05a172192 fixes for the new build system, added script to install some libs, currently only run script of Playground is fixed, jam haiku_registrar (run_haiku_registrar) does not work do to SimpleTests being currently broken, the run scripts needs to be fixed again for the new location of run_haiku_registrar
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14641 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-02 13:20:26 +00:00
Marcus Overhagen
8e7b3607e5 fixed the build that Axel broke in r14602
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14611 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-01 11:24:51 +00:00
Axel Dörfler
e70c238dd9 The fs_shell is dumb and doesn't know any B_* constants :-)
Thanks to Ingo for the note.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14604 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-31 23:47:54 +00:00
Axel Dörfler
1893013260 Volume::Initialize() needs a valid nspace object in the kernel - this fixes the
"*** remove ..." error messages when initializing a BFS image via the bfs_shell.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14591 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-31 12:03:27 +00:00
Ingo Weinhold
338b8dc301 Merged changes from branch build_system_redesign at revision 14573.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-29 16:27:43 +00:00
Stephan Aßmus
09b3f55cb1 replaced the NOTES files in each subfolder with a single NOTES file in the parent folder, and updates the NOTES to the current information
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14452 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-20 13:17:18 +00:00
Axel Dörfler
3a7c99e12d Oops, this one did only work for my test case...
The last log entry was never added to the list (if there were more than one), and
thus, it's blocks were never unlocked nor written back (after some minutes of
makehdimage an empty image would greet you).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14427 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-19 14:32:25 +00:00
Axel Dörfler
8047f0a02d Ported the new logging structure over to the old R5 BFS version - doesn't optimize it,
though, so it's not really ready to be used in a real file system.
Found an off-by-one/some error in Be's BFS implementation: it doesn't use the log
array to its full extent.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14423 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-19 12:59:04 +00:00
Waldemar Kornewald
36d4f38324 Fixed build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14383 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-14 13:54:27 +00:00
Waldemar Kornewald
a89ad654b0 Thank you, Kristian Knuechel, for reporting a bug (now fixed).
Fixed the build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-12 10:06:12 +00:00
Axel Dörfler
a88fdc5722 Added tarfs to the boot loader test application as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-11 01:20:00 +00:00
Waldemar Kornewald
abdb7d1abb - updated email-address
- removed profiles, ppp_up, and some TODOs
- simplified KPPPReportManager and reports API, KPPPInterface::Up()+Down(), and PPPInterfaceListener (also removed some features from the last one)
- KPPPInterface now sends the last PPP_CONNECTION_REPORT message to every newly registered report receiver
- added net_server to the build, but removed old net_server testing-stuff

all changes are completely untested


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-10 15:11:36 +00:00
Axel Dörfler
eb581c1455 Fixed the mkbfs build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14273 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-09-29 01:27:39 +00:00
Jérôme Duval
5cf0a92ad6 tests for bfont
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14089 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-30 12:20:53 +00:00
Jérôme Duval
94c484bb7c applied the same fix (degrees to radians)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14088 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-30 09:58:58 +00:00
Jérôme Duval
fef6144999 added a test app for BFont::GetBoundingBoxes* methods
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14073 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-26 08:49:30 +00:00
Axel Dörfler
0f4453363f Ported the two bug fixes from r14063 (in BPlusTree::RemoveDuplicate()) to the R5 version of BFS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14064 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-25 23:19:41 +00:00
Axel Dörfler
17e7576146 The app_server test run scripts now work again (build target change).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14037 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-21 13:56:06 +00:00
Andrew Bachmann
fa071ce3dc change variable types for compilation
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14030 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-21 09:02:38 +00:00
Andrew Bachmann
6b08f7bd95 change variable types for compilation
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14029 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-21 08:49:20 +00:00
Andrew Bachmann
f48d5cf2a7 update to use OBOS_TARGET
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14002 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-20 21:00:11 +00:00
DarkWyrm
3406dc829e Added a way to test the server under R5 with regular apps. First app: Clock
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13964 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-16 12:43:12 +00:00
Axel Dörfler
ee0951d2b5 Fixed missing escaping of spaces in command names.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13931 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-11 12:34:24 +00:00
Michael Lotz
629192bcaa Corrected the count in building the MessageSpeedTestLookup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13919 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-09 13:34:37 +00:00
Axel Dörfler
dd3c15369e The "consoled" application was broken since r13800 - it did open the console driver
in read-only mode, but only wrote to it (which erroneously worked before that change).
Only a white screen appeared, no prompt, nothing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13918 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-09 13:21:01 +00:00
Michael Lotz
896d777151 Changed the MessageSpeedTests for flatten/unflatten. They now measure the actual flatten/unflatten and not reading from or writing to disk. Otherwise comparison would be worthless.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13915 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-08 01:10:42 +00:00
Michael Lotz
3a7d8dfa74 Tiny fix for the MessageItemTest10
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13914 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-07 23:43:43 +00:00
Michael Lotz
97d2f9c04d Redone the MessageSpeedTests. Results can now be logged to file too.
For a comparison see: http://haiku.mlotz.ch/messagespeed.html

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13912 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-07 17:26:42 +00:00
Michael Lotz
024ef0b800 Fixing and adding more BMessage speed tests. Previously messages weren't written at all. This shows that Message2 is actually much faster than the R5 version in flattening. The current implementation is sometimes a lot faster than Message2 though but doesn't scale that well.
Added libmessagetest.so to test specifically the BMessage implementation.
Fixing some other unit tests along the way - quite many of them are borken.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13911 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-07 13:19:49 +00:00
Axel Dörfler
c4b1e37117 Added support for the AS_GET_DESKTOP command.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13896 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-04 14:42:06 +00:00
Ingo Weinhold
2826a379d5 The app server for the BeOS test environment is now built by
src/tests/servers/app/Jamfile. This makes the original Jamfile much cleaner.
Note that you now have to maintain two Jamfiles when adding/removing sources.
The test app server is called haiku_app_server, its library
libhaikuappserver.so. I adjusted a few paths in scripts accordingly, but
I may have missed something elsewhere.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13858 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-29 14:44:35 +00:00
Philippe Houdoin
05c7db5bcf Imported from Mesa BeOS's GLInfo app for testing purpose.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13837 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-27 10:18:56 +00:00
Ingo Weinhold
f3b3bb4ebd No longer build RosterShell as unit test.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13819 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-24 21:05:18 +00:00
Ingo Weinhold
5e14f5dae0 Make sure the division by zero is not optimized away.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13799 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-21 23:53:57 +00:00
Ingo Weinhold
4cbc183b53 Added option "-t" to specify the window title.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13797 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-21 23:52:06 +00:00
Jérôme Duval
3007cd9afe fix the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13756 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-18 22:54:01 +00:00
Jérôme Duval
ddd52f1f86 fix the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13748 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-18 12:16:34 +00:00
Michael Lotz
2213782534 All cursor related changes:
* Moved setting the default cursor from ServerScreen to Desktop
* Getting the default cursor is now done using the CursorManager
* Removed outdated setcursor from SysCursor.cpp (we have a new implementation by now)
* Renamed SysCursor.cpp to CursorSet.cpp as that's what it is
* Moved  headers/private/app/SysCursor.h to headers/private/servers/app/CursorSet.h
* Removed some unneeded header includes along the way

There remains {set|get}_syscursor now in CursorSet.cpp. Serverside for these are not implemented
and they are obvious hacks. Do we need to keep them?
Also this commit _would_ break Appearance, but 1) all the related code is currently commented out
with the comment "cursor set management belongs in another app" and 2) it is already broken
because of ColorSet.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13726 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-18 00:22:08 +00:00
Stephan Aßmus
f67fe71e9e MiniTerminal deserves at least a mini icon, but I've given it a large one too
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13711 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-17 09:33:58 +00:00
Ingo Weinhold
aff60bb217 Added a crashing test app. Food for the debug server and gdb. :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13709 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-17 00:27:10 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Stephan Aßmus
579be6b83e will support setting the drawing mode per object sometimes soon...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13202 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-17 13:23:06 +00:00
Jérôme Duval
12f043c1e2 reverted to 12828
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13200 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-17 11:44:32 +00:00
Axel Dörfler
91515d2132 With the recent changes to the communication mechanism, fake_app_server
did not work anymore, and thus, the safemode with the current Bootscript
did not work.
It now does again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13192 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-16 21:33:29 +00:00
Adi Oanca
8dbc637219 cosmetic
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-15 20:39:28 +00:00
Adi Oanca
2e8bd79774 all view that have B_FULL_UPDATE_ON_RESIZE flag set invalidate their visible area now. not just the one being resized.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13153 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-15 16:20:40 +00:00
Axel Dörfler
62f29f2d9b Added test application for the task manager window.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13146 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-15 06:40:13 +00:00
Axel Dörfler
dd10337fd0 Renamed BAppServerLink to AppServerLink, BPortLink to PortLink, LinkMsgReader
to LinkReceiver, LinkMsgSender to LinkSender, and put everything into the
BPrivate namespace.
Made AppServerLink a cheap object - it will use the applications receiver/sender
and not create its own buffers.
Fixed broken communication stuff here and there (mostly Font.cpp).
Put the newly introduced set|get_system_colors() into the BPrivate namespace -
please don't introduce private functions into the public namespace!!!
Also fixed their broken communication use, as Darkwyrm obviously forgot about
it again: the sequence Flush(); GetNextMessage() without error checking is
purely wrong and can make the app hang and/or crash! :-)
Other minor cleanup.
The input_server used some test mode with the haiku build target which is
probably wrong.
Hopefully I did not forget anything this time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13128 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 21:28:56 +00:00
Adi Oanca
e274da0fa5 Optimized resizing operations. They behave exactly like in R5. Abandoned HW acc for resize operations, this turned out to be quite hard to implement and would make the code a lot harder to understand.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13127 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 21:09:40 +00:00
Jérôme Duval
d70f24a679 fix the build ...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13122 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 19:08:49 +00:00
Stefano Ceccherini
a2e24cf5ce Added a test which our app_server/libbe does not pass yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13058 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-11 13:21:25 +00:00
Stephan Aßmus
b916304242 fixed build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13054 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-10 20:13:34 +00:00
Adi Oanca
4a7973e335 update
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13037 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-10 05:43:44 +00:00
Axel Dörfler
07339e709d Ctrl-C now also works in the MiniTerminal.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13016 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 16:58:46 +00:00
Stephan Aßmus
2f6a25d52d fixed build of fake_app_server
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13009 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 10:32:24 +00:00
Axel Dörfler
bd28b3c746 BAppServerLink is now using BApplication::fServerTo/From for its messaging.
Added LinkMsgReader::NeedsReply() method.
Completely redone ServerApp messaging: no more "replyport" from BAppServerLink; instead,
the registered client reply port is used. Fixed some more weak messaging stuff.
ServerApp now recognizes if an unknown message needs a reply, and sends it - for example,
the "Screen" preferences app no longer hangs, but crashes on start :)
Made LinkMsgReader::Read() virtual again, since it's needed by RAMLinkMsgReader.cpp.
Renamed BPortLink::GetNextReply() to GetNextMessage().
Some more cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13004 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 04:01:59 +00:00
Axel Dörfler
be835bdf0b Fixed LinkMsgReader::ReadString() for empty strings I just broke before.
Extended the PortLinkTest application a bit (and updated it).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13003 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 03:29:10 +00:00
Axel Dörfler
9db6e5bc94 Fixed fake_app_server build due to the BPortLink changes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12999 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-08 01:13:38 +00:00
Axel Dörfler
62fbf00df8 Added a simple mini test application for BPortLink.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12995 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 19:40:56 +00:00
Stephan Aßmus
d5233162ca removed no longer true stuff and some debug left overs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12983 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:30:56 +00:00
Stephan Aßmus
590fdd3f2d added B_QUIT_REQUESTED message
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12977 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-07 13:10:45 +00:00
Stephan Aßmus
e4bcf6e073 resize the window while it is still hidden to the calculated minumum size
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-04 11:14:25 +00:00
Stephan Aßmus
8359877941 reflects my tests with bitmaps in colorspaces other than B_RGB32, which do work btw
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12941 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-03 19:26:26 +00:00
Stephan Aßmus
b7f478e26d uses a slider now, uses SetSizeLimits, objects can now be edited after they have been created
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12940 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-03 19:24:36 +00:00
Adi Oanca
a4aff61d76 Imported Stephan's CopyRegion. Trying to optimize resize operations - work in progress.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12934 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-02 20:58:18 +00:00
Adi Oanca
9a92483e6f made things clearer, removed a useless exclude operation
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12901 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-30 14:00:45 +00:00
Adi Oanca
60d5a3fc59 fixed the clipping bug I was talking in my previous checkin.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12898 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-29 20:58:27 +00:00
Adi Oanca
a332730df7 - moving and resizing is new performed only with the primary mouse button
- by holding the secondary mouse button pressed one can draw random lines
so you can see what regions are invalidated durring a move, resize or
scroll operation
- clicking the third mouse button issues a redraw, WITHOUT a region
rebuild action (this is to force a redraw because the window does not
redraw itself, I've been lazy :-)
- playing with the mouse wheel results in the layer under mouse cursor
being scrolled on the y-axis.

- fixed redraw and copyRegion of this sandbox app. They work correctly
now.

- TODO: fix a clipping bug which appears when moving a layer arround.


 --This line, and those below, will be ignored--

M    newClipping/MyView.cpp
M    newClipping/main.cpp
M    newClipping/MyView.h
M    newClipping/Layer.cpp
M    newClipping/Clipping.proj


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12895 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-29 16:11:16 +00:00
Adi Oanca
6e795cfe26 fully implemented support for B_DOCUMENT_WINDOW_LOOK windows (resize tab overlapping top_view's area). Added support for live moving and resizing the layers shown, resizing is done by dragging from the lower right corner of a layer or winborder. Fixed a bug with for B_FULL_UPDATE_ON_RESIZE flag. More testing remains to be done because there seems to be a problem with clipping under certain circumstances, but I'm nearly finished. :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12872 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-28 20:09:17 +00:00
Adi Oanca
67c26792aa Added some support for WinBorders. support B_DOCUMENT_WINDOW_LOOK remains to implemented as the border in this case overlaps the white view area with the resize box
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12861 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-28 08:53:19 +00:00
Adi Oanca
1afd64e8b1 Added some support for WinBorders. support B_DOCUMENT_WINDOW_LOOK remains to implemented as the border in this case overlaps the white view area with the resize box
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12860 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-28 08:51:09 +00:00
Axel Dörfler
5cc1406383 The libfs_shell.a is no longer built with DEBUG turned on by default.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12828 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-26 08:24:00 +00:00
Axel Dörfler
69aaf3f39b Fixed some stupid problems with the stat::st_mode field; the type of
a node was not always correctly determined (or set) - the recent change
of the attribute (directory) modes made these bugs a bit more obtrusive.
This also fixes a drop to the kernel debugger when doing a
"zip -r config.zip config/" in the home directory, as reported by Korli.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12826 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-26 08:09:27 +00:00
Adi Oanca
ccf52fa4fe resizing layers with any rule seems to work now. lots of testing remains to be done...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12812 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-25 17:05:28 +00:00
Axel Dörfler
6851f9807c The DriverSettingsTest now accepts additional settings files on the command line.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12807 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-25 13:33:39 +00:00
Axel Dörfler
c477f77c33 lock.h is not really used anymore (now you should be able to check out the
repository under Windows).
Some minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12802 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-24 22:07:29 +00:00
Adi Oanca
8a17a6ea37 lots of changes this time...
* further optimized clipping
* implemented support for B_FULL_UPDATE_ON_RESIZE flag
* added support for hidden layers
* implemented Show()/Hide()
* implemented Invalidate(region)

remains to be done:
* fully redraw center and right alligned layers on a resize operation.
* additional testing.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12798 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-24 14:39:16 +00:00
Axel Dörfler
b926763e09 Partial backport of r10356: no longer preallocates space for attributes,
attribute directories, and symlinks.
This reduces the space usage of the image created by makehdimage quite
a bit already (dropped from currently 56 MB to 34 MB).
The core of r10356, the fix for the preallocation memory leak, however,
has not been backported (it would probably save another 5 MB on the final
image).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12797 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-24 11:04:10 +00:00
Axel Dörfler
36cb9bac61 Attribute directories must have the S_IFDIR flag set, attribute files
the S_IFREG flag. The missing flags caused the original BFS to crash
on our files.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12796 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-24 10:38:59 +00:00
Stephan Aßmus
81cc749f6b commented out non-working stuff except the menu bar. color text controls no always show the current really used values.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12749 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-20 23:30:17 +00:00
Stephan Aßmus
746d7f54e5 better visualization and more comfortable editing of the Bitmap frame
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12740 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-20 00:04:38 +00:00
Axel Dörfler
4dfc2afb5b Added a BAlert to the "clear" button - doesn't work yet (not even pressing <enter>
for the default button does), but at least, the window itself is updated now :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12739 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-20 00:00:52 +00:00
Stephan Aßmus
0fa7031a26 A test for drawing bitmaps. Surprisingly, it worked out of the box. Though the clipping inside the view works, we segfault when moving the window outside the frame buffer bounds so that the bitmap is drawn outside the frame buffer. Should be an easy fix though...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12738 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-19 20:54:05 +00:00
Andrew Bachmann
84987c7ad5 it is now
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12729 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-19 00:01:56 +00:00
Stephan Aßmus
1fd87770e9 added scrolling with the right mouse button
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12728 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-18 23:42:58 +00:00
Andrew Bachmann
f789e6b332 all tests now passing, print table entries only in case of failures
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12726 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-18 21:41:22 +00:00
Andrew Bachmann
00b424f83a test more values, add sin2+cos2=1 check
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12724 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-18 21:12:16 +00:00
Adi Oanca
fd5fe00cb1 Got scrolling to work properly
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12722 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-18 20:47:13 +00:00
Andrew Bachmann
ba2286a9a9 add test for drem, expand testing for and supress table output for copysign, drem
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12721 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-18 20:45:02 +00:00
Andrew Bachmann
a3344504d0 add copysign test, formatting changes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12719 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-18 19:59:38 +00:00
Andrew Bachmann
5c8563d142 add some math tests
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12718 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-18 19:38:10 +00:00
Adi Oanca
e3b75692e9 implemented ScrollBy
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12717 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-18 17:17:06 +00:00
Stephan Aßmus
e803c97c34 pen size text control is now enabled in the correct situations
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12704 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-18 00:51:15 +00:00
Stephan Aßmus
78c1c29baf Playground is now a little drawing app. Fully functional under Haiku, but with some strange defects in arc calculation within AGG.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12702 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-18 00:15:58 +00:00
Adi Oanca
4a95e83357 Implemented some support for moving and reziving Layers. It works too. :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12701 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-17 17:24:50 +00:00
Stefano Ceccherini
335b47697c Added a small test for GetMouse().
Looks like that, when called with "true" as third parameter,
it "eats" all the input messages like B_MOUSE_UP/B_MOUSE_MOVED. That means our implementation isn't correct.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12699 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-17 13:47:30 +00:00
Stephan Aßmus
82450360bb updated build for playground
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12698 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-17 10:22:31 +00:00
Stephan Aßmus
6cb79662a5 renamed windows to playground
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12697 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-17 10:21:21 +00:00
Stephan Aßmus
53bb64e469 The current playground. Eventually, this will transform into the demo program.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12696 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-17 10:11:21 +00:00
Adi Oanca
4bdd131ac5 my test app for new clipping code
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12691 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-16 18:31:01 +00:00
Stephan Aßmus
55354b0f60 This change makes libopenbeos.so update in the home folder when it was rebuild for some reason.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12647 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-12 16:29:21 +00:00
Stephan Aßmus
2309ba4c1f my current playground
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12644 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-12 15:04:11 +00:00
Stephan Aßmus
8b0aee9f12 MiniTerminal can redraw itself.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12630 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-11 10:26:35 +00:00
Stephan Aßmus
90d6295906 Ingo spotted this when we tried to make Haiku boot on my machine some time ago.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12614 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-10 11:27:01 +00:00
Axel Dörfler
5514672d42 Added a syscall timing utility, similar to the one in NewOS.
Can also be run under R5 when TARGET_PLATFORM=r5 for comparison.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12567 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-04 01:03:44 +00:00
Stephan Aßmus
a3b4fd6b87 update the playground to my local changes, the textview test isintegrated with the build now
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12566 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-04 00:38:14 +00:00
Axel Dörfler
367861b645 This fixes the bfs_shell build under Linux: replaced B_OK with FS_OK in
tracker.cpp.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-03 02:34:32 +00:00
Stefano Ceccherini
48e740c514 Added a test for BTextView within our app_server
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-02 23:15:13 +00:00
Axel Dörfler
03989987d5 The ChannelSliderTest now always tests Stefano's implementation instead of R5's.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12542 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-02 22:35:01 +00:00
Stefano Ceccherini
712ab9be40 Extended the screen test app: now we try to set the display_mode, and we also print the color_space with the other info.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12525 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-02 09:52:51 +00:00
Stefano Ceccherini
15074e0561 Added a test for BScreen (very very basic for now)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12519 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-30 14:01:36 +00:00
Stefano Ceccherini
718c1fc525 Removed unused stuff
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12510 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-29 20:30:41 +00:00
Axel Dörfler
aed75ba2f6 Added a SetViewColor() before and after AttachedToWindow().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12502 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-29 00:30:24 +00:00
Axel Dörfler
8bdf4008fe Added test for BCheckBox (message sending is actually not tested, though, only drawing)...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12501 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-29 00:17:40 +00:00
Stephan Aßmus
879fd19be5 this has become playground...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12499 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-28 23:20:18 +00:00
Jérôme Duval
01d2dcc52b increased app_server wait time
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12492 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-28 13:40:12 +00:00
Jérôme Duval
2aec91b51e added a input device addon for app_server ViewDriver (R5 only, testing mode)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12488 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-28 09:59:07 +00:00
Stephan Aßmus
dd55678524 test app for scrolling, link for running on R5 to see how it should behave
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12482 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-27 17:30:18 +00:00
Stephan Aßmus
0999749164 experimented with BView::CopyBits(), found out how it should work, but didn't do the changes yet for a correct implementation
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12444 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-19 18:55:46 +00:00
Stephan Aßmus
af1a2a015b draw a check box, too
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12423 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-15 17:46:37 +00:00
Stephan Aßmus
94176e0118 fixed typo
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12406 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-15 09:29:02 +00:00
Stephan Aßmus
2c4812801c We're now a fun little drawing app
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12405 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-15 09:26:38 +00:00
Jérôme Duval
04879b648a added a comment about using R5 style comm in input_server when consoled is using input_server
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 16:10:43 +00:00
Axel Dörfler
718b5114e0 This should fix the build after all the kernel/system renaming.
If anything is still broken (and was not before :)), please shout.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 13:59:17 +00:00
Axel Dörfler
fce78d9e21 The console driver now supports TIOCGWINSZ (getting the window size), and
"consoled" now uses this information to tell the TTY its size.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 12:51:26 +00:00
Stephan Aßmus
c9ceeec23c Reverted some changes by Adi, because the way it works now is more helpful in finding bugs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12348 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-12 13:16:58 +00:00
Michael Lotz
7ea31cbce8 Replacing more broken binary resources with rdefs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12304 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-11 23:10:49 +00:00
Michael Lotz
a039ddd972 Replacing more broken binary resources with rdefs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12303 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-11 23:10:13 +00:00
Michael Lotz
52e1c3c044 MiniTerminal now sets the correct window size and updates it when resized.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12278 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-09 17:21:14 +00:00
Stefano Ceccherini
17ea072acb A test for BChannelSlider
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12271 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-08 07:34:05 +00:00
Jérôme Duval
108953a630 fixed Jamfiles
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12257 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-05 18:46:44 +00:00
Stephan Aßmus
30f5afc8a9 I'm keeping the version which can be used as a BView replacement here. The API for the one used in app_server will change for it to be come more efficient.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12236 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-04 17:47:41 +00:00
Axel Dörfler
929db8377e Minor tweaks to the menu.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12205 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 23:33:08 +00:00
Adi Oanca
c737183da9 Updated test app as app_server clears the BViews' background color now
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12198 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 16:51:07 +00:00