Axel Dörfler
b07ce77575
BDiskDeviceList now has a default value for the "useOwnLocker" argument - it defaults
...
to using its own locker.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-03 00:28:31 +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
Andrew Bachmann
1ac083d932
add NETAPI_LIB and use it to build HP JetDirect printer transport
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12541 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-02 22:19:07 +00:00
Rudolf Cornelissen
85228960cf
forgot comment update in nv.settings for 2D/3D acc logging
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12536 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-02 18:09:27 +00:00
Rudolf Cornelissen
140867d32d
finalized doc for release 0.43 of nvidia driver
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-02 18:02:39 +00:00
Stefano Ceccherini
d15aa22b8e
Re-fixed widthbuffer locking. I obviously broke this when I made that change in InterfaceDefs.cpp
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-02 15:22:32 +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
55814cfde4
Added a TODO item with a bad bug report
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-02 08:29:37 +00:00
Stefano Ceccherini
f812bf8b4c
Implemented server side support for BScreen::SetMode(). Note that setting the mode works, but rootlayer crashes afterwards. I guess I'll need to lock something. Adi ? Stephan ?
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-01 06:26:49 +00:00
Stefano Ceccherini
314a102446
Implemented BPrivateScreen::SetMode()
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12522 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-01 06:25:50 +00:00
Stefano Ceccherini
6c723eebfc
removed duplicate 'DataTranslations' application
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-01 05:58:14 +00:00
Jérôme Duval
ecbc8ec9c2
reversed cursor.x and cursor.y
...
cursor semaphore initial count is now zero
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-30 15:00:10 +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
fca6492ffe
Finally tested the code, there were a bunch of problems: fixed them all.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12518 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-30 07:04:45 +00:00
Stefano Ceccherini
6e927d6e3b
BScreens methods didn't work for a number of reasons: fixed.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12517 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-30 07:04:27 +00:00
Stefano Ceccherini
1f41d635e9
B_ALL_WORKSPACES -> B_CURRENT_WORKSPACE
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12516 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-30 06:04:48 +00:00
Stefano Ceccherini
794ca5f2f8
Fixed a small bug. Still I can't unmount anything, though (I always get 'resource busy')
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12515 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-30 05:59:23 +00:00
Stefano Ceccherini
9c06e46d6a
fDriver wasn't apparently used anymore. Thanks Jerome. BTW we should remove it if it's useless
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12514 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-30 05:45:49 +00:00
Stefano Ceccherini
541a224df8
No need to include that stuff, a forward declaration will do
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12513 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-29 20:41:21 +00:00
Stefano Ceccherini
8829157fbf
Moved headers around
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12512 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-29 20:40:29 +00:00
Stefano Ceccherini
34c39bf046
BScreen's GetMode(), Frame() and ColorSpace() should work now.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-29 20:32:05 +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
Stefano Ceccherini
4dbe8b9db6
Server-side code for BScreen::GetMode() (actually tweaked an old implementation)
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12509 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-29 20:30:04 +00:00
Stefano Ceccherini
0405ef356f
Added AS_SCREEN_GET/SET_MODE
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12508 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-29 20:28:53 +00:00
Stefano Ceccherini
b99e13c914
applied patch by John Drinkwater: DataTranslations now only accepts valid translators
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12507 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-29 17:28:14 +00:00
Axel Dörfler
d4112f6bc5
Applied some changes suggested by mmu_man, more to come, though:
...
- has_signals_pending() is not declared in Be headers, and it isn't declared in
our KernelExport.h anymore, too
- removed snooze_etc() from KernelExport.h, as it's already defined in OS.h
(and really exported by libroot.so).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12506 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-29 11:41:12 +00:00
Stefano Ceccherini
7d84be4d67
Fixed some font sensitivity issues.
...
Fixed a small glitch in drawing.
Removed an unneeded Sync() in Draw().
Removed some unnecessary virtual method calls.
Improved drawing of the current slider's value.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12505 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-29 10:11:54 +00:00
Stefano Ceccherini
e7467ada1a
Added synchronous mouse support (shouldn't I lock the window ? why does it work without locking ?), now the thumb bitmap is drawn with B_OP_OVER, thus eliminating a visual glitch.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-29 08:12:25 +00:00
Axel Dörfler
55932743b4
Cleaned up, added a ToDo comment where it behaves (possibly) strange.
...
The properties are now the same as in the Be version - there is no reason (IMO) for usage
comments like these; it's a public class, and its scripting usage should be documented in
the BeBook, if anywhere.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12503 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-29 00:58:39 +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
1596a167c0
work around for layers not being moved that have not yet been added to the tree. See WinBorder::MoveTo for the explaination. The same problem should be at other places and most likely for normal views as well. This fixes BWindow::MoveXX() when it is not yet Show()n
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12500 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-28 23:56: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
Axel Dörfler
80bd55147b
Many changes, it now does work okay on Haiku (tested with consoled only (both,
...
keyboard and mouse part), since for some reason, the app_server refuses to work
with the input_server for me now):
- keyboards are now actually detected, the keyboard device is only published if
there actually is a keyboard
- keyboard_close() no longer calls put_module() for the ISA bus manager; it's
sharing that resource with the mouse driver.
- rewrote the keyboard command handshake; now, the acknowledge byte is always
considered, and it's now also safe to call keyboard commands with the interrupt
handler installed (bytes read are now safely routed through the handler).
- keyboard_open() now also sets the PS/2 command byte to enable keyboard
interrupts (this may actually have been the source of all evil - ie. keyboard
not working after having touched the mouse)
- many commands now try again several times if they failed
- ps2_get_command_byte() is now safe to be called when the keyboard driver
is up and running, too (it's now locally buffered)
- more and better error checks
- possibly more I forgot about...
- general cleanup.
Note, there is still some functionality missing from the keyboard driver:
- ctrl/alt/del handling
- key repeat (delay, time, non-repeating)
Repeat stuff might better be moved to the input_server add-on, anyway, for
more flexibility and better performance.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12498 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-28 19:04:06 +00:00
Adi Oanca
b9cc06b57c
Show workspace number in the upper left corner
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12497 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-28 18:28:23 +00:00
Stefano Ceccherini
d6b771678c
- Horizontal sliders work correctly.
...
- Only the active channel slider is highlighted now, unlike Beos's version. I like this more.
- Added an (experimental) feature: when changing a slider's value with the mouse, its value is displayed (requested by Axel, can you check if it's what you wanted ? http://burton666.neoni.net/shots/channelslider.png ).
There are still some problems with the calculations of coordinates, I'd like someone to review my code.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12496 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-28 15:15:46 +00:00
Jérôme Duval
1f04728a75
Reworked different build modes
...
Uncomment in Jamfile "#APPSERVER_TEST_MODE = 1 ;" to test app_server with input_server
Uncomment in InputServer.h "//#define R5_CURSOR_COMM" to enable cursor comm when appserver BPortlink comm is used
Default mode is R5 comm if TARGET != haiku
and appserver BPortLink comm when TARGET = haiku
For APPSERVER_TEST_MODE, make sure to change the ViewInputDevice path in AddOnManager.cpp
To test with app_server, enable LaunchCursorThread() in AppServer.cpp and uncomment "#define INPUTSERVER_TEST_MODE 1" in ViewHWInterface.cpp
Also make sure to change the input_server path in AppServer.cpp
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12493 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-28 13:47:59 +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
Stephan Aßmus
9715a3e1bf
fixed BWindow::MoveXX(), BWindow::ResizeXX() and BView::ConvertToScreen()
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12491 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-28 12:31:25 +00:00
Stephan Aßmus
8f6b562ad5
fixed border style not applied in constructor, changed drawing to use line arrays
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12490 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-28 12:29:47 +00:00
Jérôme Duval
e9da11d0b2
added inputserver test mode for ViewHWInterface
...
we write view events to a port so that the ViewInputDevice gets them and have them processed by input_server, and then app_server
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12489 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-28 10:10:52 +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
609b465638
fixed BView::MoveTo() and BView::ResizeTo(), fixed typo
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12487 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-28 09:44:29 +00:00
Stefano Ceccherini
ce956b5de7
Moved the "_init_global_fonts()" call above "load_menu_settings()", as the latter messes with be_plain_font. Reordered the headers.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12486 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-28 07:06:36 +00:00
Stephan Aßmus
3505574164
Added some TODO comments in Window.cpp, improved coordinate conversion in View.cpp. I'm not sure if this really works correctly, I need to write more tests. The scrolling test actually does more of what it is supposed to. At least the scrolling properly follows the mouse now. Missing are the movement of child views, the rebuilding of clipping, and I think that the scrolling needs to be synced to update requests having been fullfilled, or else some parts of the View will be CopyBits()ed which have not been drawn after having been scrolled into view by previous calls to ScrollBy(). Any insights appreciated.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12485 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-27 23:27:37 +00:00
Stephan Aßmus
4828a7251f
I'm not 100% sure, but I think I fixed a confusion in sending the current view position and size to the client. Note that BView::originX and BView::originY are poorly named, because they are not the local coordinate system origin, but the offset within the parent at which the view is located.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12484 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-27 23:20:29 +00:00
Stephan Aßmus
50581a7c0a
fixed a bug with drawing ellipses and invalidating the correct area for stroking paths, taking the stroke width into account
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12483 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-27 23:17:39 +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
db7226db9d
work in progress to get scrolling working, so Adi can have a look, no changes to existing functionality, cleanup in Layer.cpp
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12481 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-27 17:26:57 +00:00