Commit Graph

48 Commits

Author SHA1 Message Date
DarkWyrm
478bbd8507 Cruft removal -- server replies should be SERVER_TRUE if function call was successful and SERVER_FALSE if not
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8621 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-22 00:27:15 +00:00
DarkWyrm
3a340a8613 Messaging fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8542 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-08 22:34:36 +00:00
DarkWyrm
ad56ce66a3 Pahtz's changes to use BPortLink systemwide, with a few minor other changes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-30 15:16:59 +00:00
DarkWyrm
a596e677c7 AppServer.cpp: removed a memory leak from new_decorator
decorators now set appropriate fonts for their context
WinBorder: tweaked some debug output settings
Layer: tweaked some debug output settings
PicturePlayer: added some tentative code and notes for escapements in DrawString case for player
CursorManager: update to resemble OT style
RootLayer: removed testing-purposes-only Draw() function
	Implemented methods to read in workspace data
Workspace: Janitorial work
	Added methods for packing and unpacking settings
	Added some members for holding basic settings
Desktop: Moved workspace data functions to RootLayer
Other files: Janitorial work


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8172 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-26 02:15:48 +00:00
DarkWyrm
a64bba1208 Janitorial work, mostly
API tweaks in WinBorder
Removal of some unnecessary TODO comments
Decorators now draw buttons when clicked


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7899 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-11 02:46:48 +00:00
DarkWyrm
9e7c0e5d01 Removed unnecessary methods in ServerScreen and DisplayDriver
Bugfixes - cursor now works under new DisplayDriver cursor management
Currently still searching for a clipping bug in ViewDriver::CopyToBitmap


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-12 01:25:41 +00:00
DarkWyrm
06d841d5ea Major overhaul of DisplayDriver API - fewer virtual functions and less duplicated code
Removed Clipper from build
Removed ScreenDriver from build for the moment


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 00:38:14 +00:00
DarkWyrm
dbd08f22ac Moved keyboard message handling from AppServer to Desktop class
Moved style to more like OpenTracker in Deskbar class


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-22 00:32:07 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
DarkWyrm
c26d77e634 Implemented Screen::SetMode
Added Workspace::SetSpace
Removal of old, commented-out server emu code in ScreenDriver
Tweaks to ServerProtocol and ServerConfig to have all BApplication messages, main server port name
AppServer now works fully at prototype #3 level - really cool with ScreenDriver!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2814 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-23 21:40:44 +00:00
DarkWyrm
eee27b42ec Debugged cursor handling code. AFAICT it works properly
Retooled ScreenDriver mouse emu code - polls the mouse now.
Added mouse wheel support to ScreenDriver and ViewDriver emu code
AppServer handles mouse wheel messages now
Partially documented ScreenDriver code with DisplayDriver docs
Added ViewDriver::FillPolygon
Server has reached same functionality as prototype #3


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-22 20:23:22 +00:00
DarkWyrm
a8224b9257 Added CursorManager and BitmapManager to startup procedures
Work on cursor support.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2784 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-20 20:14:57 +00:00
DarkWyrm
2939a1dcc8 Added license to a number of files
More work on Desktop and DesktopClasses
minor API tweak to DisplayDriver
Added conditional compilation stuff to AppServer.cpp for debugging purposes
TokenHandler now uses BLockers instead of semaphores for locking
Can now run the server and see something


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2717 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-15 15:28:22 +00:00
DarkWyrm
3469d49d54 Implemented new_decorator()
Documented most Desktop functions and implemented some of them


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2705 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-14 11:04:01 +00:00
DarkWyrm
2a4228b556 Stubbed out WinBorder class
Uncommented code in other files dependent on WinBorder


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-14 01:53:53 +00:00
DarkWyrm
6e4bef603f More code written on ServerWindow
Added skeleton of new_decorator()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2695 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-12 01:11:55 +00:00
DarkWyrm
70acf9f9fb Added ServerWindow skeleton
Uncommented most ServerWindow dependencies in other files
Implemented and documented almost all of Layer class


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2646 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-07 12:53:57 +00:00
DarkWyrm
d55509c6be Implemented AppServer::HandleKeyEvent and FindApp
Minor tweaks to ServerApp::PostMessage to allow for regular message posting


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2629 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-04 00:20:15 +00:00
DarkWyrm
643c5cd11e Documented AppServer class.
Implemented most of the AppServer class - can actually *run* the server.:P
Minor tweaks to ServerApp to accomodate AppServer::Broadcast()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2586 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-27 19:43:15 +00:00
DarkWyrm
a3d04b0ebc Tweaked AccelerantDriver to utilize recent DisplayDriver changes
Added a number of new files to server
app_server now included in the build


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-20 20:38:49 +00:00