Commit Graph

257 Commits

Author SHA1 Message Date
Adi Oanca
296a7f991d completely rewritten!
This is the CORE of the NEW drawing code, which WORKS very well! :-)
ATM, only WinBorder remains to be rewritten, but that would be an easy job, because the core is here in Layer class and WinBorder is just a subclass of it...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6725 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 12:02:47 +00:00
Adi Oanca
6844f6d0eb small changes because of the new redrawing code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6724 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 11:59:11 +00:00
Adi Oanca
91cf2bda4a Modified a few constrctors so this is the actualized version
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6723 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 11:58:25 +00:00
Adi Oanca
e0947c82c8 small fixes because of the new redrawing code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6722 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 11:56:43 +00:00
Adi Oanca
01f14b6c8c reduced to a minimum. It's the next on my TODO list to make redrawing code work it also.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6721 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 11:56:03 +00:00
Adi Oanca
8fca004965 replaced PortLink with BSession as the default hanlding system in DispatchMessage()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6720 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 11:54:44 +00:00
Adi Oanca
a00a89d9c6 fixed a virtual method to method to return properly
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6719 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 11:53:35 +00:00
DarkWyrm
67387a90b7 Removed the crash in ViewDriver when moving the cursor off the bottom edge of the screen
Replaced LayerData component of Decorator with DrawData
Fixed unfocused draw bug in DefaultDecorator::DrawBlendedRect
Added some copying methods to FBBitmap and ServerBitmap
Removed a lot of disabled code from ViewDriver file
Implemented and fixed font functions in DisplayDriver
Updates to the BitmapDriver to the reflect changes in DisplayDriver


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6602 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-15 20:27:26 +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
b7af05771d Added UtilityBitmap class for general-purpose bitmaps in the server
Implemented  blit methods in ViewDriver - doesn't quite work yet :(
Implmemented cursor methods in DisplayDriver - doesn't quite work yet, but wil be fixed later
Color tweak to DefaultDecorator


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-07 13:50:36 +00:00
DarkWyrm
e56432f3cd More work done on ViewDriver - most stuff implemented, but not yet done.
Same for DisplayDriver
Moved Angle to libappserver for DisplayDriver code


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6478 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 00:52:40 +00:00
DarkWyrm
5d0cc8ac2e Implmented a couple more methods
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-28 02:20:12 +00:00
DarkWyrm
dfd2e47c90 Updated sources to remove Pattern parameter from DisplayDriver function calls
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6384 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-28 02:07:28 +00:00
DarkWyrm
b4fe4d74fe Major overhaul of DisplayDriver API
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 00:39:01 +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
da1903328a Updated look so inactive window tabs look right
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6224 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-22 02:23:08 +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
31b34533a7 Converted numerous printf() calls to STRACE(()) calls
Added some mouse click handling code to WinBorder
Made WinBorder mouse hooks simpler
Added some mouse handling code to ServerWindow


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6207 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-21 02:58:39 +00:00
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