Commit Graph

92 Commits

Author SHA1 Message Date
Axel Dörfler
9793d44045 Removed superfluous BView::findView() and moved its functionality to BView::FindView().
Fixed it on the way - it's a bad idea to pass NULL pointers to strcmp().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13288 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-27 01:54:12 +00:00
Axel Dörfler
62bb447ee0 In order to be binary compatible, one should not change the location
of private members if the class has friends (and BWindow has a lot of
them...), stupid Axel!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 22:04:29 +00:00
Axel Dörfler
dd10337fd0 Renamed BAppServerLink to AppServerLink, BPortLink to PortLink, LinkMsgReader
to LinkReceiver, LinkMsgSender to LinkSender, and put everything into the
BPrivate namespace.
Made AppServerLink a cheap object - it will use the applications receiver/sender
and not create its own buffers.
Fixed broken communication stuff here and there (mostly Font.cpp).
Put the newly introduced set|get_system_colors() into the BPrivate namespace -
please don't introduce private functions into the public namespace!!!
Also fixed their broken communication use, as Darkwyrm obviously forgot about
it again: the sequence Flush(); GetNextMessage() without error checking is
purely wrong and can make the app hang and/or crash! :-)
Other minor cleanup.
The input_server used some test mode with the haiku build target which is
probably wrong.
Hopefully I did not forget anything this time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13128 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 21:28:56 +00:00
Stefano Ceccherini
8f9d0f685d Removed unused stuff
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13078 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-12 14:48:49 +00:00
Axel Dörfler
e17b33e56b The window was removing the app_server connection too early, and thus hang in Quit().
Removed the stopConnection() method.
Cleaned up header a bit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-05 18:57:55 +00:00
Axel Dörfler
a01d14b2db Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12954 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-04 15:15:42 +00:00
Stephan Aßmus
c10a3393e2 huge BSlider cleanup, it doesn't use an offscreen bitmap anymore by default (compile time switch), updated drawing for Haiku features and disabled look, work in progress
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12948 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-03 19:57:34 +00:00
Stephan Aßmus
0c3344f4a1 no Invalidate in BControl::SetValue, I figure more controls need to be updated for this change
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-03 19:55:49 +00:00
Stefano Ceccherini
1d95a5ff3a Renamed the private BScrollBarPrivateData class to be an internal BScrollBar's class
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12916 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-31 12:58:08 +00:00
Stephan Aßmus
85b226041a Added B_BITMAP_NO_SERVER_LINK to the BBitmap flags. It constructs a BBitmap without a server link, which consequently cannot be drawn by the app_server, but which is nevertheless very useful. It essentially does the same thing as RUN_WITHOUT_APP_SERVER. I also added a CleanUp() function and moved the cleanup code from InitObject() there. CleanUp() is now called in the destructor, which means that the app_server now knows when to free the server side bitmap.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12814 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-25 18:10:20 +00:00
Michael Lotz
c2da902f2e Implemented BPortLink::AttachShape and BPortLink::ReadShape and used them for passing the shapes in AS_GET_GLYPH_SHAPES.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12215 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-01 07:29:04 +00:00
Stefano Ceccherini
370ca4b97c Corrected forward declaration
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12193 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-31 15:21:34 +00:00
Stephan Aßmus
0985210969 added this very useful compare function
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12122 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 16:30:46 +00:00
Adi Oanca
a1ce489220 added a method for properly calling 'Attached' hooks
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11452 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-22 20:05:47 +00:00
Adi Oanca
239fc54e70 changed one private method's prototype
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11240 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-03 22:44:06 +00:00
Ingo Weinhold
102267997c Vertical() can be const and should be, when invoked on a const instance.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11213 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-02 13:33:34 +00:00
Stefano Ceccherini
422c07914d Applied our style guide as someone (cough! *** Axel *** cough!) bugged me (correctly) about it :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11181 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-01 14:29:06 +00:00
Adi Oanca
2a8a80a764 Added BPortLink class as friend
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10942 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-22 09:34:59 +00:00
DarkWyrm
04ab15f96d Gave _font_control() friend status so we can init the system fonts
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10765 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-15 22:07:32 +00:00
Axel Dörfler
7f34794009 Reserved private virtuals don't really have to return a status code.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10748 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-15 04:36:47 +00:00
Axel Dörfler
a4023b87c1 Reserved private virtuals don't really need to return a value.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10746 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-15 04:27:57 +00:00
Axel Dörfler
9551dd1cd3 Added rgb_color == and != operators - inline only.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10742 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-15 02:38:52 +00:00
Stefano Ceccherini
860ec9a8ac Moved BSeparatorItem's interface to its own file. Everything still builds, amazing :P
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10550 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-30 10:11:38 +00:00
DarkWyrm
01e4e91366 Stupidman strikes again. :D
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10291 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-29 23:51:28 +00:00
DarkWyrm
6c41be783c FBC fix
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10290 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-29 23:40:20 +00:00
shatty
d601f6e882 rename RecalLineBreaks to RecalculateLineBreaks ; use ceil() when computing the origins for lines
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9913 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-11 10:07:40 +00:00
Jérôme Duval
739131e728 clean up
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9496 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-25 08:31:38 +00:00
DarkWyrm
da0209e2e4 Some fixes and tweaks by Kevin Field
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9262 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-08 22:36:54 +00:00
Jérôme Duval
2ba29ed514 R5 needs a 3 buttons map only
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9247 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-07 15:14:29 +00:00
DarkWyrm
3713534518 Tweak to FindClosestColor
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8853 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-05 00:46:37 +00:00
DarkWyrm
5a9fed59c3 I hate forgetting to check in files. :(
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-12 12:43:36 +00:00
Jérôme Duval
f7128f5688 clean up
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8502 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-29 12:43:30 +00:00
Adi Oanca
9839e74132 modified one method's name
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8322 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-05 20:42:03 +00:00
Axel Dörfler
d73fcb0e62 Removed deprecated BShape API as it broke the build.
If we intend to keep compatibility to this R4.5 API, we should complete
what I started in interface/Shape.cpp.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8204 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-27 22:55:28 +00:00
Adi Oanca
66c852a764 Forgot about this one. Removed ReadMessageFromPort() 'cause there is no need for it. BLooper does already a great job, we will not complicate things. As you may have seen I also removed some code from Window.cpp because it really was not needed, for the same reason.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-22 22:03:11 +00:00
Axel Dörfler
28632c48ce Added a private static BorderSize() method. I wonder why those functions
are exposed at all...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6663 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-20 18:43:34 +00:00
Axel Dörfler
a76953d909 Renamed ModFlags() to ModifyFlags() and made it static (it's private anyway,
so this is no problem).
On second thought, I like "archive" better than "data" for the Archive message
name.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6659 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-20 15:01:04 +00:00
Axel Dörfler
50a4d43e91 Removed the private InitObject() method - it's not even exported in R5.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6653 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-19 17:46:37 +00:00
Axel Dörfler
26021c2c52 Fixed two bugs.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6643 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-19 02:50:31 +00:00
Axel Dörfler
dfa1093a41 Rewrote the BScrollView header from scratch.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6642 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-19 02:06:12 +00:00
DarkWyrm
e0c894a088 Added a member PortLink for non-streamed communications with the server
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5621 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-07 22:37:40 +00:00
DarkWyrm
dcb1e9166d Replaced _view_attr with comparable ViewAttr class and removed a crash
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5619 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-07 22:09:58 +00:00
DarkWyrm
f9f5f26473 Added OBOS header. I don't think there was anything else. :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-15 20:48:22 +00:00
Stefano Ceccherini
4be90e7fc1 Fixed a possible buffer overflow in r_or() and r_sub() (thanks to Ingo Weinhold for his advices), stripped BRegion of all his friends, and moved them into a single class (BRegion::Support()). Removed "find_small_bottom()", as we didn't use it at all. Added some debugging output to BRegion::Support (that will help fixing bugs)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-24 07:33:41 +00:00
shadow303
37c324a741 Distinguish between 15bit and 16bit color routines
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4986 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-10 20:34:45 +00:00
Adi Oanca
98b01e2f16 removed ReadRawFromPort(...)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4797 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-25 12:07:41 +00:00
Adi Oanca
36845b1281 * added PrintToStream() method for debugging BView.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4681 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 18:56:48 +00:00
Adi Oanca
6f274814d1 use diff. I don't remembr now the differences
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4570 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-08 21:02:31 +00:00
Adi Oanca
a3c09a41f6 changed something... I do not remember now... check with diff
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4486 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-03 21:23:25 +00:00
Adi Oanca
f62402a785 added const to void Scale(); uncommented one method...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4485 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-03 21:22:24 +00:00