DarkWyrm
a93fbc5951
Added handler code for AppServer::PollerThread to handle messages to get/set UI colors and decorators
...
Added a color_which lookup to ColorSet - will be necessary to look up system colors via ui_color()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4981 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-08 23:18:30 +00:00
DarkWyrm
e735d45a6a
Removed a stupid typo bug
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4977 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-08 00:19:24 +00:00
DarkWyrm
68b266bbe6
ColorSet API improvements
...
AppServer now handles Decorator and System Color messsages - dummy handler code is in place, though
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-05 21:52:54 +00:00
DarkWyrm
b3d31bdb1a
Another LayerData-related crash fix
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-05 17:51:13 +00:00
DarkWyrm
3e6296ae57
Cruft removal and a tweak to prevent crashes when LayerData is used by things other than the server
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4948 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-05 17:39:12 +00:00
DarkWyrm
5c26d5df06
Removed some dependencies from old pattern-passing method
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-04 22:12:18 +00:00
DarkWyrm
b02917dae8
BitmapManager sets the _initialized flag to true when allocation is successful
...
Added a forgotten opcode in DispatchMessage::AS_CREATE_BITMAP
We can now allocate (and use) BBitmaps in applications!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-04 21:53:09 +00:00
DarkWyrm
e8f20f30c4
8 and 16-bit color lookups are now done only when needed. Very useful when only working in 32-bit color
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-04 19:57:54 +00:00
DarkWyrm
e42a5b2650
Added message queuing (sp?) to ServerApp
...
Removed a memory bug in ServerCursor
Tweaked message-reading code to reflect changes in the messaging classes
BCursors work now!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-04 19:10:11 +00:00
DarkWyrm
e90ddf96b4
Numerous messaging fixes to coincide with the recent updates to PortLink, BSession, PortQueue, and PortMessage
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4940 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-04 00:56:43 +00:00
DarkWyrm
041e26d578
ServerApp - conversion of message protocols to using BSession
...
AppServer - tweaks from moving BSession messaging code to ServerProtocol.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4932 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-03 00:41:40 +00:00
DarkWyrm
2dd8f56272
"Borrowed" a few functions from AccelerantDriver for BitmapDriver
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4922 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-02 00:12:08 +00:00
Adi Oanca
153d03aa0b
4 new message handlers
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4824 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-25 17:25:38 +00:00
Adi Oanca
30879229e7
_resize_mode was initialized
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4823 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-25 17:25:14 +00:00
Adi Oanca
cae8519232
added a new member: _resize_mode
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4822 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-25 17:24:42 +00:00
Adi Oanca
6a740855a9
*added handlers for AS_LAYER_(MOVE/RESIZE)TO messages
...
* added AS_LAYER_GET_COORD handler
* changed some methods to use BMessage class for sending messages to BWindow
* ALL handlers for BView State Functions. They wotk too! :-)))
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4807 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-25 12:31:11 +00:00
Adi Oanca
479547dbeb
* added Layer as a friend.
...
* added a new member: port_id winLooperPort; We'll use it to send flattened BMessages(like _UPDATE_ / B_VIEW_RESIZED(MOVED)) to our BWindow counterpart.
* SendMessageToClient( BMessage ) sends that message BWindow's looper port.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4806 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-25 12:28:08 +00:00
Adi Oanca
58db25dc6c
small changes. added a new parameter to ServerWindow's constructor
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4805 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-25 12:27:31 +00:00
Adi Oanca
f593251b36
* added a new member, BPoint _boundsLeftTop. Beside other uses, (DW don't forget!)it will be needed in redraw code.
...
* _flags is now declared as uint32
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4804 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-25 12:25:38 +00:00
Adi Oanca
d77e0cdb4c
added 2 new methods - DoMoveTo and DoResizeTo. They move/resize the frame rectangle of Layer class.
...
In DoResizeTo() I added some code for autoresizing(based on BView's resizeMask parameter) of children. Still, the effective code for resizing need to be written. :-) I could do that, but other things have greater priority. :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4803 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-25 12:25:13 +00:00
DarkWyrm
46ec4904d3
Added Layer functions for mouse transit events and for view cursors
...
Added app cursor support
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4736 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-17 19:28:31 +00:00
DarkWyrm
3231b95ed8
Un-kludged Decorator::GetFootprint. Much more elegant now. :)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4732 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-17 17:14:22 +00:00
DarkWyrm
ec50f74f8d
StrokeLineArray now uses the BView LineArray API internally
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4730 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-17 16:55:06 +00:00
DarkWyrm
af7ed6dda5
Removed a few compiler warnings
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4723 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-17 12:41:33 +00:00
DarkWyrm
2399b2c59a
tweaks to get server to build under R5 without using jam
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4716 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-17 00:03:47 +00:00
Adi Oanca
87bcd8f415
* Added a handler for AS_LAYER_SET_FONT_STATE message
...
* Modified a bit AS_LAYER_CREATE handler 'cause I forgot about AS_LAYER_SET_FONT_STATE and hidden state.
* Added a handler for AS_LAYER_GET_STATE message
* Added a handler for AS_LAYER_DELETE message
* Modified FindLayer() - now it works OK
* added debugging code for AS_LAYER_CREATE handler.
*** Tree structure is in place and working.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4691 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 19:14:45 +00:00
Adi Oanca
ffb9ea55f5
* added initialization in contructor to (0.0, 0.0) for _boundsLeftTop member.
...
* modified Bounds() to use that member.
* some changes into RemoveChild()
* added a debugging method: void PrintTree()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4690 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 19:11:52 +00:00
Adi Oanca
4a60209dc7
* added ServerFont::operator=(const ServerFont& font).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4689 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 19:09:13 +00:00
Adi Oanca
b6577e4da8
* added a new member, BPoint _boundsLeftTop. Beside other uses, (DW don't forget!)it will be needed in redraw code.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4688 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 19:08:44 +00:00
Adi Oanca
260ec753f4
* changed SetFont to acomodate(eng?) with LayerData's 'font' member witch is now allocated on stack.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4687 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 19:08:07 +00:00
Adi Oanca
957320d114
* Minor changes due to the fact that LayerData::font member is allocated on stack now...
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4686 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 19:07:45 +00:00
Ingo Weinhold
7cc4564205
Always put SubIncludes at the very end of a Jamfile.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4628 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-11 21:44:29 +00:00
DarkWyrm
3b7457281b
Moved font server header to private app_server headers location - unbroke the build
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4606 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-09 10:26:11 +00:00
DarkWyrm
9670d865c3
Re-fixing the jamfile to allow builds from the current directory
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4605 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-09 10:16:17 +00:00
Adi Oanca
b2a5444427
Moved FontServer.cpp into libappserver.so to avoid a linker error caused by modifications made in LayerData.h
...
... the line with: fontserver->GetSystemPlain().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4583 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-08 22:20:29 +00:00
Adi Oanca
32a9b6b6e2
debug code looks nicer...
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4581 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-08 22:09:10 +00:00
Adi Oanca
3ecfa8e102
debug code looks nicer...
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4580 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-08 21:48:35 +00:00
Adi Oanca
1f0ca0978a
debug code looks nicer... + others, use diff!!
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4579 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-08 21:45:26 +00:00
Adi Oanca
92e26ba96d
new code. use diff to see differences
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4577 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-08 21:18:39 +00:00
Adi Oanca
dacd6a469b
simplified debug code
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4575 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-08 21:08:27 +00:00
DarkWyrm
23d3981b3b
Size is now initialized before use in method Play
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-07 22:16:26 +00:00
DarkWyrm
c7c8500780
Tweak to fix building from the current directory
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4518 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-06 21:13:38 +00:00
DarkWyrm
d7f34b0231
Minor tweaks and improvements to the DefaultDecorator
...
Made toggle for RootLayer debug output
Optimization for ViewDriver::CopyRegion with 1-rectangle regions
Fixes and tweaks to WinBorder::MouseMoved()
Toggled debug output in ServerApp
More useful comments in code in general
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4517 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-06 21:09:11 +00:00
Adi Oanca
67f4247f6c
Now, a window properly displays and moves across screen. Yupyyy! That was possible before... but now the new window is drawn arround the rect passed by BWindow. I also made some changes in update mechanim of Winborder/Layer/RootLayer.
...
also made some methods virtual 'cause I think DW forgot about that! It's normal, app_server is SOOOO big! :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4489 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-03 21:43:09 +00:00
Adi Oanca
7641924e66
Modified some classes to succesfully comunicate with BWindow/BView. the default decorator has been impoved. From now borders are build ARROUND the window area.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-31 17:38:34 +00:00
shadow303
17e6de7a37
gcc 3 fixes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4227 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-04 00:46:53 +00:00
DarkWyrm
f5eabf0502
build fix as suggested by Andrew Bachmann
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4213 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-02 18:52:24 +00:00
DarkWyrm
5b1de832bd
Changed temporary font scan directories to home/config/psfonts and ttfonts
...
Added installation of official OBOS fonts to proper location in hierarchy
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4188 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-02 00:13:30 +00:00
DarkWyrm
e2c2a10c48
Another good, free Bitstream font for our use
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4180 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-01 18:35:50 +00:00
DarkWyrm
824c757a50
Added some free system fonts for OpenBeOS
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4178 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-01 18:23:09 +00:00