Commit Graph

307 Commits

Author SHA1 Message Date
DarkWyrm
2120f0b38d Eliminated a crash because of a race condition on server shutdown
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6206 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-21 01:17:12 +00:00
DarkWyrm
dd82cdacbb Fix from Adi to display a window only on the current workspace
Finished converting ServerWindow::DispatchMessage() to PortMessage use
removed a forgotten breakpoint from ServerApp


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6174 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 02:02:01 +00:00
DarkWyrm
247a93434e ViewDriver functions won't do anything if not initialized
Style tweaks to a number of files to better match OT guidelines
Added MsgCodeToBString to Utils.cpp
Removed a crash on new_decorator


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 22:18:37 +00:00
DarkWyrm
43c4c1eead Added header and credits to some files
made debug printfs in RootLayer to STRACE calls
Minor ServerApp and AppServer tweaks
comment fixes in many places


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6119 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-17 18:37:57 +00:00
Adi Oanca
0a8120dd1c * fixed some bugs, and improved some things.
* rendered BWindow::RemoveFromSubset operationable
That's it! I seems regular windows NORMAL/FLOATING/MODAL windows are shown when and how they should be.
There are other kind of windows, to be precise B_SYSTEM_LAST and B_SYSTEM_FIRST, with witch I played very little. I'll be back on them 2 weks from now when I hope I'll start codeing again. Till then... happy coding! :-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6114 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-17 16:33:22 +00:00
Adi Oanca
34168867a4 solved some problems with floating subset windows
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6108 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-16 16:09:36 +00:00
Adi Oanca
fa554b7dd8 Fixed focusing problem
some optimizations to "drawing code"(not the real one) because of more efficient locking.
... other improvements.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6074 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-14 15:55:10 +00:00
DarkWyrm
7d09d0620c Removed a couple of warnings from Accelerant, Screen, and BitmapDrivers
Beginning style changes to resemble OpenTracker guidelines
Added header to some files
Removed temporary code from ViewDriver and re-enabled cursor movement in Desktopmouse message handler


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6069 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-14 00:54:45 +00:00
Adi Oanca
47007fb071 MANY improvements since yesterday!
Now, we can have EVERY kind of window properly displayed in the *right* order!
You can even use BWindow::AddToSubset and - it works!

Also Mouse click works to change front/focus state between windows.

Unfortunately window movement hasn''t yet been implemented and there are *minor* problems with the focus.
That's all! If you want to see something... construct a project and use:
* new BWindow()
*BWindow::Show()
*BWindow::AddToSubset[Of]()
and link against libopenbeos.so.

Ok now, bye!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6068 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-14 00:26:15 +00:00
Adi Oanca
79cc4c5ae6 just #include "ServerScreen.h" instead of #include "Screen.h"
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6062 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-13 11:58:41 +00:00
Adi Oanca
ab8297f827 remove
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6061 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-13 11:01:19 +00:00
Adi Oanca
8ee0c850de I put all that was found in Screen.h and Screen.cpp because there is another Screen.h on the system. BScren's one!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6060 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-13 11:00:22 +00:00
Adi Oanca
037eadad77 new desktop management code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6059 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-13 01:03:29 +00:00
Adi Oanca
158c46331a new desktop management code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6057 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-13 00:56:36 +00:00
Adi Oanca
67e7217c89 new desktop management code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6056 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-13 00:38:42 +00:00
Adi Oanca
6b19651048 new desktop management code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6053 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-13 00:29:47 +00:00
Adi Oanca
155cec7523 addapted it to use the new desktop management code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6052 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-13 00:25:54 +00:00
Adi Oanca
d1ae1e49ae modified a little to make the cursor appear.
should be revised later to use internal cursor emulation(software cursor)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6050 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-13 00:23:21 +00:00
DarkWyrm
a0f01f6cba Integrated Adi's new desktop code into the server
Implemented a bunch of BScreen-related functions in ViewDriver


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6023 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-11 22:12:55 +00:00
DarkWyrm
49916ae455 Minor API tweak - RGBColor &color -> const RGBColor &color
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6003 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-10 13:39:22 +00:00
haydentech
1a4e801adc Minor cleanup of comments and duplicate includes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5838 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 22:43:46 +00:00
haydentech
bdfe7cf5d2 Minor cleanup of erroneous comments
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5837 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 22:41:50 +00:00
mahlzeit
4c20e0e8ad Simplified app_flags.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5728 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-22 17:51:32 +00:00
DarkWyrm
ab21b1ec0c Messaging fixes - removed inappropriate BSession use and converted to PortMessage and PortLink as necessary.
Life sucks when you can't sleep. :(


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5601 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-07 05:40:51 +00:00
shadow303
4106b3dbdc Convert to LayerData independent drawing API
Implement clipping routines for Lines and Rectangles
Fix workspace initialization problem
it's saturday night and I am writing code... bummer


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5599 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-07 03:22:15 +00:00
DarkWyrm
2d6fb9b82d Added methods for DPMS and device capabilities
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5440 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-22 00:47:01 +00:00
Philippe Houdoin
9842b3ba58 Keep moving from binary resource format to source resource (.rdef) files.
Fix midi_server.rdef file.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5418 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-20 01:40:54 +00:00
Adi Oanca
e9c5b47ef4 changed code for mouse input funtions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-15 00:29:14 +00:00
Adi Oanca
5580db514e very small changes: ordered code and liminated error because of the change if Decorator.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5363 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-15 00:28:40 +00:00
Adi Oanca
cfc7b758e0 Changed the names for some constants in Decorator.h so... here too
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5362 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-15 00:27:26 +00:00
DarkWyrm
98a70bba4b Converted all BSessions used for replies to PortLinks
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-14 01:41:04 +00:00
Adi Oanca
7052fe60fa new optinized clipping code
new optimized redrawing code
changes in some handlers in ServerWindow.
other minor changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-14 00:15:29 +00:00
DarkWyrm
a7ec3bbbea Added reader class for BSession message streams
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 23:57:14 +00:00
haydentech
2ef7083364 Janitorial work
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5302 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-10 19:50:27 +00:00
shadow303
a8cb43fea1 Reduce redundant code in drivers (we can unvirtualize stuff as speed requires after implementation is complete)
Fix some color handling for 15/16 bit.
Implement HLine functions for BitmapDriver.
I forget what I did to Clipper.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5243 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-03 01:51:50 +00:00
shadow303
922ec7f318 clean up some warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5174 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-27 00:47:01 +00:00
DarkWyrm
d6e461f029 Added system color, system font, and decorator update notification
Added a little server-side code to handle system color updates


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5088 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-19 00:03:06 +00:00
DarkWyrm
7d4ebd1ef0 Implemented some more handler code for different BPicture opcodes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5081 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-18 22:44:44 +00:00
shadow303
a9af2b0df0 Add GetDrawData function
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5060 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-16 22:25:06 +00:00
shadow303
4c4cad9f02 Add clipping wrapper for display drivers.
Fix minor bug with AccelerantDriver opening the stub device


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5039 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-15 00:25:24 +00:00
DarkWyrm
40b7eb39b2 Tweaks to handle the changes in messaging protocol formats
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5014 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-13 23:34:54 +00:00
shadow303
3ed46bec8c Disable screen mode change when not in TEST_MODE
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4985 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-10 20:29:39 +00:00
DarkWyrm
836656bf86 API tweaks
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4984 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-10 02:33:38 +00:00
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
DarkWyrm
10aef7cbc0 Retooled pattern passing - much neater now. :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4119 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-28 19:13:24 +00:00
DarkWyrm
591ceb9982 Fleshed out a few undone functions - RebuildRegions, SetDriver, etc
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4118 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-28 17:34:20 +00:00
DarkWyrm
cc986fa95d Quick fix for a cut & paste error
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4117 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-28 17:13:33 +00:00
DarkWyrm
a7e4fa4c55 DisplayDriver now has publically-accessible locking/unlocking
StrokeLineArray fixes for ViewDriver
Fixes to display multiple overlapping windows properly
Layer::RebuildRegions works right now. :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4116 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-28 17:09:49 +00:00
DarkWyrm
bb7791ec05 ViewDriver::StrokeLineArray works correctly now
Frame drawing properly implemented in DefaultDecorator


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4094 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-27 00:24:07 +00:00
DarkWyrm
16446063cc Moved BitmapManager and TokenHandler to libappserver
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4074 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-25 15:46:23 +00:00
DarkWyrm
9cdc27451e Numerous fixes - see previous checkin
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4061 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-24 19:41:15 +00:00
DarkWyrm
2a8283e420 Windows receive focus when shown
System cursor API and infrastructure largely implemented
Added Decorator::SetFont
Removed unnecessary parameter copying in WinBorder class API
Optimized screen updates when a decorator button is clicked
Moved TokenHandler and BitmapManager to libappserver to allow decorators to use bitmaps
Began reworking of DefaultDecorator::_DrawFrame to draw only what it is asked to
Partly implemented ViewDriver::StrokeLineArray - calls StrokeLine
Fixed a Layer init bug - visibility regions were initialized to Bounds() and not Frame()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4060 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-24 19:38:24 +00:00
DarkWyrm
ce072df2d0 Added move cursor data.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3991 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-16 00:43:10 +00:00
DarkWyrm
07dec7c1ca CursorManager is initialized with default system cursors - need to add move cursor.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3990 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-15 23:27:50 +00:00
DarkWyrm
512df4993d This is now a shared private app_server header
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3971 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-14 14:43:11 +00:00
DarkWyrm
f1b45a54bb Not sure how this got here. Official file is at current/src/kits/app
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3970 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-14 14:41:11 +00:00
DarkWyrm
5a75a61e5c ServerConfig now a shared (but private) app_server header
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3969 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-14 14:39:12 +00:00
DarkWyrm
9381d29b6f Massive reconfiguring to fix link problems with all things needing app_server so
urces


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3963 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-13 20:56:00 +00:00
DarkWyrm
44df48e0a1 server loads (but not utilizes) decorators now
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-11 22:30:55 +00:00
DarkWyrm
1268b04d96 Implemented hook function notifiers
Converted regular ServerWindow messaging to PortMessage usage


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3949 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 20:22:07 +00:00
DarkWyrm
cab59b7cf3 Added support to field calls for FFM functions and scroll_bar_info calls
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3937 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 17:48:04 +00:00
DarkWyrm
b951412ea7 Made _SetFocus hook function an optional function
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3921 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-09 20:40:10 +00:00
shadow303
64150e75b5 Begin adding clipping to graphics message processing.
Add sibling access functions to layers.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3912 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-09 02:28:33 +00:00
shadow303
f029162a70 Clean up a couple warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3911 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-09 00:41:50 +00:00
DarkWyrm
cc10522e49 Serious updates to DefaultDecorator
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3891 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-07 19:48:38 +00:00
DarkWyrm
dae7413e8a OBOS-only system colors are loaded and used
Added _SetColors() hook function to Decorator API


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3889 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-07 13:09:42 +00:00
DarkWyrm
ea39092263 Added code to read R5 workspace config data
Added some functions to handle global mouse, menu, and FFM data
Tweaks to DesktopClasses


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3876 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-06 19:48:17 +00:00
DarkWyrm
491a7680eb Server now loads (and uses) the GUI system colors and can save 'em, too
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3862 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-05 17:40:42 +00:00
DarkWyrm
16593e0a04 Tweaks to make screenshots work right. They work *perfectly* on Ctrl+Break. :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3861 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-05 16:48:04 +00:00
DarkWyrm
75fc960bd8 Implemented and documented MakeTopChild and MakeBottomChild
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3860 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-05 16:03:54 +00:00
shadow303
92db32b4b1 Add handling for view specific data in graphics messages.
Add viewcolor to LayerData.
gcc 3 fixes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3847 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-04 21:13:48 +00:00
DarkWyrm
a7699ce227 Added Stroke/FillRegion to DisplayDriver for convenience
Fixes to redraw code - buggy, but less so. :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3719 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-28 20:07:36 +00:00
DarkWyrm
de662b01c8 Window border movement fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3718 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-28 19:06:30 +00:00
DarkWyrm
a8c44e89f8 Added a *serious* speedup to window move code
Added a couple more empty message handlers to ServerWindow
Improved DefaultDecorator - works better now
DisplayDriver::CopyRegion added and implemented it for ViewDriver


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3637 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-24 13:55:18 +00:00
DarkWyrm
44e0bbe4be Removed some compiler warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3633 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-24 00:14:33 +00:00
shadow303
b511995b2f gcc3 fixes & other minor tweaks
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3619 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-23 02:54:52 +00:00
shadow303
3368f55060 Add partial handling of graphics messages
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3618 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-23 02:53:55 +00:00
shadow303
79441319f9 Fix FillArc and FillBezier
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-30 00:36:09 +00:00
shadow303
7be0e66c42 Tweak the hack test of drawing routines
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3128 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-30 00:35:18 +00:00
shadow303
c7b36220bb Fix ROUND macro
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3127 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-30 00:34:40 +00:00
DarkWyrm
511004cc7a Removed a couple problems caused by Adrian's recent changes in ServerProtocol.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3077 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-18 19:58:43 +00:00
shadow303
28adeff1cb Add some of the hardware acceleration
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3070 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-18 00:40:26 +00:00
shatty
fe5cc7b493 add newline to end of file
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3066 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-14 01:56:41 +00:00
DarkWyrm
47b0fc0ee3 Lots of minor tweaks here and there
Added debug code to a number of files
Enabled ServerWindow and WinBorder mouse-handling code
ScreenDriver is now double-buffered (exceedingly useful for testing)
I'm trying to think, but nothing happens! :D


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3052 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-05 01:51:35 +00:00
DarkWyrm
812870fc43 Added a couple hooks to DisplayDriver
app_server will now display a window. Can't do anything with it, at least not yet.
GUI colors are also used now


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3047 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-30 21:09:39 +00:00
DarkWyrm
0f434a0aad The mother of all commits. :P
Unremoved zlib and added libpng to public libs (C'mon DW, make up your mind... ;^)
Added screenshot support to app_server
Added full keyboard message support to app_server
Added UseLibraryHeaders and LibraryHeaders rules to jamrules
Updated ColorUtils to convert uint32 colors to rgb_colors
BAppServerLink now autolocks client-server communications on the client side (as it should)
app_server now also juliennes and makes french fries. Yum.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3045 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-30 00:17:50 +00:00
DarkWyrm
8374297262 Added print debug code to a number of classes
SendMessage allows for target specification
Included BMessage friend classes to allow building whilst they are absent from BMessage.cpp
More window-related code added


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3004 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-23 20:52:37 +00:00
DarkWyrm
bff387f17a Set up sources to begin work on added BPicture support
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2979 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-21 15:49:28 +00:00
DarkWyrm
1fd593cdd7 *Doh* Always check the build _before_ checking in, not after. *sigh*
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2949 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-19 01:20:20 +00:00
DarkWyrm
7b919e9ac2 Added BHandler token members to ServerApps and ServerWindows
Modified ServerApp and ServerWindow constructors to include BHandler tokens


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2948 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-19 01:12:53 +00:00
DarkWyrm
a0ffbf9588 Tweaks for adding Picture.cpp
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2942 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-18 21:57:34 +00:00
DarkWyrm
f098890e88 More bugfixes for BWindow construction
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2906 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-12 19:34:47 +00:00
DarkWyrm
c0a08539ac Implemented *very* basic server-side window creation code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2904 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-12 18:32:27 +00:00
DarkWyrm
59a15bb433 Added ServerApp code for BBitmap handling
Added some support functions to ServerBitmap
BitmapManager now adds ID tokens to ServerBitmaps


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2898 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-12 14:29:59 +00:00
DarkWyrm
d00757dea3 Added BitmapDriver for drawing on BBitmaps with BViews
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2884 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-11 23:17:56 +00:00
DarkWyrm
7a618fe9a9 Added PicturePlayer class based on Marc Flerackers' TPicture class
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2873 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-08 21:07:10 +00:00
DarkWyrm
b0decc9424 Finished out Desktop functions and tweaked some documentation
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2857 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-01 20:25:08 +00:00
DarkWyrm
193776bde4 Removed extra file - the file used is in headers/private/app
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2834 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-24 15:52:04 +00:00
DarkWyrm
e8cde26567 Finished up ServerApp
Implemented most of and documented all of ServerWindow
Miscellaneous necessary tweaks to other classes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2833 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-24 15:47:06 +00:00
shadow303
de34217176 Bug fixes for FillTriangle and FillPolygon
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2826 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-24 00:59:24 +00:00
shadow303
163b5adda5 Add tests for Fill/Stroke Triangle and Polygon
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2825 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-24 00:58:56 +00:00