Commit Graph
100 Commits
Author SHA1 Message Date
Stefano Ceccherini 17495d0b40 Fixed some spelling errors in some comments and added more of them
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-09 11:14:31 +00:00
Stefano Ceccherini 06a6652107 BRect::Intersects() should return false if the passed rect is invalid
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-09 07:56:50 +00:00
Stefano Ceccherini 61c93e14bc Researched and removed a TODO item
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-09 07:13:03 +00:00
Stefano Ceccherini 6fb34cf9b2 Work in progress, almost synched with the code on my hard drive:
Moved some functionalities to private methods,
some small fix.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-07 07:04:37 +00:00
Stefano Ceccherini 3f9ae8a3ce Looks like SetFullScreen wasn't correct and could crash.
Fixed.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8295 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-05 07:11:22 +00:00
Stefano Ceccherini edc6e254f3 Fixed the outstanding BRegion bug. It turned out that rects_intersect() returned true in some cases when called with an invalid clipping_rect. Added an ASSERT() call to BRegion::_AddRect(), which would've saved my day.
Added some comments


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8246 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-01 06:16:00 +00:00
Stefano Ceccherini eb1086edb6 A fix for some broken code, adjusted some comments, adjusted copyright notice
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8244 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-30 11:00:26 +00:00
Stefano Ceccherini a5f7275d76 Adding some more or less complete classes from Marc Flerackers
(BDragger, BShelf and ZombieReplicantView). Not yet added to the build


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8231 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-29 12:20:32 +00:00
Stefano Ceccherini 39ffb98012 Added some comments and some (commented, for now) code as an example for the app_server communication.
DarkWyrm (or Adi, or whoever else), please feel free to implement the needed code on the app_server side when you want ^_^ (or when it's possible, not so important right now)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8229 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-29 08:24:33 +00:00
Stefano Ceccherini f3e0a5e9a5 Just a quick fix for some obviously wrong code. Added SetDrawingMode(B_OP_COPY) in AttachedToWindow, before starting work on asynchronous mouse tracking.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8215 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-28 09:50:51 +00:00
Stefano Ceccherini ddffb5d813 Forgot to add Screen.cpp & PrivateScreen.cpp to the build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8212 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-28 09:27:04 +00:00
Stefano Ceccherini 359aeca0f5 Should use private interface headers
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8211 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-28 08:19:30 +00:00
Stefano Ceccherini 6542ca9b70 Added gPrivateScreen declaration
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8210 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-28 08:14:57 +00:00
Stefano Ceccherini 624df6c6b5 Rewrote some parts BPrivateScreen (in a hurry) to make libbe compile
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8209 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-28 08:12:32 +00:00
Stefano Ceccherini 5a5aa2e3c5 Now it checks (on KeyDown()) if the entered charachter is allowed, and it doesn't insert (and beeps) if not.
More documentation,
some more cleanups,
started implementing input methods messages handling (but don't hold your breath)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-25 10:00:29 +00:00
Stefano Ceccherini 75ad89705f - Started documenting the class
- Added the B_INPUT_METHOD_AWARE flag to the constructor
- Fixed an obvious error in ResolveSpecifier()
- Added some ToDO items


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-24 13:46:58 +00:00
Stefano Ceccherini a667ca3cde Implemented MakeResizable more correctly (at least, it looks like it). Replaced LONG_MAX with the right lines number in Refresh() calls. Started work to make the widget double buffered. More cleanups.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-22 15:20:51 +00:00
Stefano Ceccherini 7889e7c9ed Fixed a crash when undoing an "internal text drop", some cleanups.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8091 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-21 12:56:46 +00:00
Stefano Ceccherini 895207da06 Implemented BTextView::SetText(BFile *.... etc.)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8038 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-18 09:51:10 +00:00
Stefano Ceccherini e3a2e77198 Be nice and explain why we don't free fBasePtr. Implemented Area()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8037 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-18 08:36:18 +00:00
Stefano Ceccherini 843f00a15e Removes a crash in the BApplication tests. Some tests work now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8036 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-18 06:34:30 +00:00
Stefano Ceccherini 20b628d310 Some cleanups for BStopWatch. Added the check for B_INTERRUPTED to the semaphore acquisition in BLocker
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8019 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-17 08:10:36 +00:00
Stefano Ceccherini 6ed18b369b Fixes the build with gcc 3.2.2 (still has many warnings, though)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-14 08:46:38 +00:00
Stefano Ceccherini f59a054710 Should always count to 10 before committing. Another comment
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7856 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 14:26:22 +00:00
Stefano Ceccherini 741f96a162 Added a comment
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7855 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 14:03:38 +00:00
Stefano Ceccherini 0bedbce52c Fixes the build when TRACE_SCHEDULER is defined
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7663 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-27 14:46:10 +00:00
Stefano Ceccherini f0fbfe24dc Some gcc 3 fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7662 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-27 08:37:19 +00:00
Stefano Ceccherini 215b13a369 A patch from Sergei Panteleev:
- for very high resolutions, the preview image wasn't drawn. Fixed.
- preview image wasn't drawn if you clicked the Return/Default buttons without applying the changes. Fixed.

Took the chance to cleanup some code a bit.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7661 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-27 07:19:38 +00:00
Stefano Ceccherini 9b167d37f1 Added a TODO item
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7630 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-24 09:06:20 +00:00
Stefano Ceccherini 389b7216d6 Fixed "team" debugger command (should be the last one)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7625 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-21 10:17:08 +00:00
Stefano Ceccherini aa19f785d4 Added the __INTEL__ define in the Jamrules. That way, it's easier to compile on platform different from BeOS (i.e. linux)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7623 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-20 07:23:18 +00:00
Stefano Ceccherini c5e0e48352 Remove unused files. This should fix the build of the preflet (as it was including the local ScreenSaver.h instead of the system one)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7612 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-19 08:16:01 +00:00
Stefano Ceccherini 55bd207b20 Added a test for the bug found by Pahtz, and fixed the bug. Simplified a bit the code in BRegion::Support::RSub()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-12 06:37:18 +00:00
Stefano Ceccherini 8af87c1dcc Ok, last time (at least for today). 0 is a valid fd number
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7222 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-16 10:32:59 +00:00
Stefano Ceccherini 7d60c514f8 Last famous words... Corrected some issues pointed out by Axel
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-16 08:39:12 +00:00
Stefano Ceccherini 2e90a0fca0 Finally BSerialPort works !!
- Fixed I/O Error issue
- switched from sprintf to snprintf where appropriate
- added O_EXCL flag to open()
- added many TODO items (mostly for further investigation, the class should be complete)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7220 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-16 06:24:59 +00:00
Stefano Ceccherini df5ce07bff Reverted last change since, as Axel pointed out, old version is "a bit" faster than the new one
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7219 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-16 06:21:42 +00:00
Stefano Ceccherini 6746ac963e Some cleanups
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7189 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-09 11:12:13 +00:00
Stefano Ceccherini ac41b0f103 Added license
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7188 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-09 11:07:35 +00:00
Stefano Ceccherini 64e8448a05 Removed some fields, simplified the header. Added the license
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7187 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-09 07:59:42 +00:00
Stefano Ceccherini 37b835fc06 This should fix the build for StyledEdit (we need to link against our libtextencodings.so). Note that, for StyledEdit to work, you need our libtextencodings.so either in a lib subfolder in the stylededit folder or in a system library directory.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7182 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-08 09:47:52 +00:00
Stefano Ceccherini 5cfa0d90a5 This should fix the build of jam under linux (and gcc 3.2.2). At least, it wasn't building here.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7181 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-08 07:59:47 +00:00
Stefano Ceccherini 8ffd36efd9 Stripped down Stars demo, to test DirectWindow
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7180 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-07 06:54:51 +00:00
Stefano Ceccherini f6dc8f8d6b Hm, how come I removed that ?
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7169 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-06 08:40:08 +00:00
Stefano Ceccherini fcb11fb123 Added a TODO reminder
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7168 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-06 08:12:18 +00:00
Stefano Ceccherini 88b0acbe91 Accidentally enabled debug in the latest commit.
The driver is fully working.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7165 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-05 07:46:30 +00:00
Stefano Ceccherini 85bbb77938 Almost completely rewritten the interrupt handler, some cleanups
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7164 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-05 07:06:26 +00:00
Stefano Ceccherini 29ed6a85c3 This should fix the build of media_decoder
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-01 09:27:27 +00:00
Stefano Ceccherini bf7833a73a BRegion tests results, for reference
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-31 10:58:22 +00:00
Stefano Ceccherini 015dd75715 Fixed warnings, some cleanups
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-31 06:56:34 +00:00
Stefano Ceccherini f1ca7ea60b Some more test cases for BRegion
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7128 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-31 06:53:40 +00:00
Stefano Ceccherini a1e1747413 IOBase() is not supported
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7114 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-30 09:19:08 +00:00
Stefano Ceccherini 36eaad35e1 Accidentally removed Marcus name from the authors's list
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7113 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-30 08:05:42 +00:00
Stefano Ceccherini 272b2685ed WindowScreen implemented by Caz and myself, fully working (well, at least with the pageflipper demo) on BeOS R5.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7112 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-30 07:29:49 +00:00
Stefano Ceccherini 684349b37a Implemented link detection and speed autonegotiation
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7098 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-29 06:36:33 +00:00
Stefano Ceccherini a88479e2a9 Should fix the build of libgame.so. It was linking against R5 libmedia.so
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7059 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-23 15:19:03 +00:00
Stefano Ceccherini bfc3bb1838 Finished SetFullscreen() implementation
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7058 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-23 07:19:07 +00:00
Stefano Ceccherini 09ea309293 A working SetFullscreen() implementation, courthesy of Caz. Added a comment. Enlarged the license section.
More to come.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7051 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-22 14:23:50 +00:00
Stefano Ceccherini 3d6ebe9645 Added a missing include
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7018 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-18 07:41:04 +00:00
Stefano Ceccherini e2aecd091e Some tests for _BWidthBuffer_
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7017 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-18 07:40:05 +00:00
Stefano Ceccherini e064995715 Removed an unneeded dependency
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7016 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-18 07:37:38 +00:00
Stefano Ceccherini 7446a252ed Fixed a crash when running beshare with our BTextView (thanks to Andrew Bachmann for reporting), though it's a bit hackish, added some printfs to TextView.cpp to help finding/fixing bugs, a small optimization to WidthBuffer. Should convert and commit WidthBuffer's tests to cppunit tests sooner or later.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6989 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-15 07:19:27 +00:00
Stefano Ceccherini 80127f8edb Some fixes, some warning fixed, added a lot of code for the MII handling (almost completely "stolen" from Axel's sis900 driver), not yet working.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6988 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-15 07:13:03 +00:00
Stefano Ceccherini 3927f78a36 ... and a jamfile for it (shamelessly stolen from Axel's sis900 driver). Not (yet) included into the build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6951 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-11 12:48:22 +00:00
Stefano Ceccherini d8ee7d30df Driver for the Winbond 840 NIC, written by myself. It's working. It lacks speed autonegotiation, and some other cool things.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-11 11:09:38 +00:00
Stefano Ceccherini 805bba9456 Fixed the debugger "region" command (still looking for others like that one)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6938 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-09 09:53:54 +00:00
Stefano Ceccherini 7667c061fe Simplified an expression (which was even wrong before)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6859 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-02 16:29:04 +00:00
Stefano Ceccherini b2fece1ec0 renamed some global variables to have the "g" prefix
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6858 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-02 16:16:11 +00:00
Stefano Ceccherini a8c7c591fa from Korli: lib link order reversed to allow finding the symbol launch_media_server in our libmedia.so
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6752 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-26 08:34:25 +00:00
Stefano Ceccherini e1e76c7813 Moved these files to /current/headers/private/interface
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6095 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-15 07:18:38 +00:00
Stefano Ceccherini 8db7015c26 Fixed warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6094 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-15 07:17:18 +00:00
Stefano Ceccherini 1ad8f49ef2 Uncommented _BWidthBuffer_ constructor call
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6093 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-15 07:16:46 +00:00
Stefano Ceccherini f1569dbb9e Moved some headers here so they can be included by Globals.cpp in the interface kit folder
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6092 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-15 07:15:37 +00:00
Stefano Ceccherini d8b4d83df2 Changed a bit the behaviour of BOptionPopUp::SetValue(). We now differ a bit from what R5 does. The old implementation is still there and just ifdeffed out, though.
Added some private unimplemented methods I had forgot, fixed some spelling errors, finished documenting what was missing.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5989 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-08 07:26:57 +00:00
Stefano Ceccherini 37a821f6cf BOptionPopUp and its abstract class BOptionControl, completed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5795 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-29 07:19:42 +00:00
Stefano Ceccherini 53b9eef827 Implemented AboutRequested(), reorganized a bit the connection to app server, added a call to _init_interface_kit_()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5712 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-19 07:19:14 +00:00
Stefano Ceccherini 8f62ceb96f Started implementing _init_interface_kit_(). WidthBuffer initialization is commented until I move its header to an accessible place
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5711 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-19 07:17:19 +00:00
Stefano Ceccherini 008cfb1db2 WidthBuffer complete,
Changed some methods name,
reordered class members in TextViewSupportBuffer.h, now they are in the same order
OpenTracker says


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5679 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-17 07:48:58 +00:00
Stefano Ceccherini 356acd7d45 Fixed artifacts when highlighing text, added Hiroshi Lockheimer to the authors list (BTextView is based on his SteEngine), reformatted the code some more to comply with our guidelines
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-04 14:19:30 +00:00
Stefano Ceccherini 76f6f6ff76 With the help of Andrew Bachmann, I finally fixed the multi-byte charachter deleting / Undoing.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5422 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-20 14:02:58 +00:00
Stefano Ceccherini 2e7ea41af1 With the help of Andrew Bachmann, I finally fixed the multi-byte charachter deleting / Undoing.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5421 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-20 14:00:36 +00:00
Stefano Ceccherini aa4d8c571d Synching with the code on my hard drive... Archiving/unarchiving should (partially) work now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5400 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-17 10:34:29 +00:00
Stefano Ceccherini e38721600a Fixed a warning
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5399 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-17 10:31:38 +00:00
Stefano Ceccherini 5480b4590e Another patch from Oliver Tappe: BString behaves better when the user supplies out-of bounds values in Insert(), Remove(), etc.
Code is refactored, and it fully complies with our guidelines.
Tests have been updated too (hint: try the replace tests with R5 and our implementation...)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5348 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 07:35:16 +00:00
Stefano Ceccherini d8a7172a91 simplified rects_intersect(). Now it's very similar to BRect::Intersects()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5138 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-24 10:50:41 +00:00
Stefano Ceccherini bdd02a033d Added WidthBuffer to the build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5136 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-24 10:13:58 +00:00
Stefano Ceccherini 76f8475798 Some more work on the undo buffer. Added a quick and dirty implementation of WidthBuffer (it's needed by OpenTracker). We'll want to implement it correctly.
Multi-byte character insertion/deletion works now in TextView (thanks to Marc Flerackers)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-24 10:12:35 +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
Stefano Ceccherini b17e9812fd Fixed the long outstanding bug that made BRect::Intersects() return false when one rect was completely contained into the other. Cleaned up (a bit) the code.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5041 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-16 08:00:44 +00:00
Stefano Ceccherini b032f97253 - Fixed text pasting
- Fixed text moving
- Almost completely implemented Undo capabilities
- in BTextView::GetSupportedSuites(BMessage *data): added the suites name
- fixed BTextView::Insert(int32, const char *, int32, const text_run_array *), it didn't
  take offset into account
- undo is disabled by default (even if the BeBook says the opposite)
- added B_SELECT_ALL message handler
- now it doesn't select anything if the object isn't selectable
- drag message is now filled in BTextView::GetDragMessage() as it should, and not in
  BTextView::InitiateDrag()
- changed all deprecated SetCursor() calls to SetViewCursor()
- added some NormalizeFont() calls, while trying to fix the multi-byte insertion bug


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5009 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-13 14:38:43 +00:00
Stefano Ceccherini cafaa5aa29 Added a BDirectWindow implementation which works with BeOS R5 (at least, with the Chart demo app)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4755 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-18 13:39:39 +00:00
Stefano Ceccherini 8d1a0ee7c1 Fixed a bug in BRegion copy constructor. If one constructed a BRegion with
BRegion region(region), the region would have been put into an unitialized state. Took the chance to cleanup a bit the code, using some methods of clipping.h. Changed the way offset_rect works, and changed its name too. Added a note to Region.cpp


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4512 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-05 10:16:34 +00:00
Stefano Ceccherini bf6e990eb6 Added UndoBuffer.cpp to the build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4499 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-04 09:17:10 +00:00
Stefano Ceccherini ba92606354 Fixed SetRunArray(). It was callign StyleBuffer::SetStyleRange() with a BFont** pointer instead of a BFont* one (that fix is by Marc Flerackers, as the whole class, BTW :)). Refactored CharClassification(), also added some more separator characters. Also foreign characters should be added here (Andrew?). Fixed [Allow][Disallow]Chars(). Fixed a linking issue when we don't link to libbe.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4399 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-29 09:29:25 +00:00
Stefano Ceccherini e6404469ad added offsect_rect, fixed a spelling error
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4362 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-22 09:12:56 +00:00
Stefano Ceccherini bc0ea15dd4 On behalf of Jeremy Rand, BRegion tests
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4235 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-06 06:46:06 +00:00
Stefano Ceccherini a5b449ce66 Added BScreen implementation, which uses BPrivateScreen (not yet implemented).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4114 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-28 14:35:02 +00:00
Stefano Ceccherini 2a0863af09 Some more clipping_rects methods, based on BRects methods. Currently unused, but could be used in the Game Kit and, why not, also in the app server itself.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4053 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-22 12:49:49 +00:00
Stefano Ceccherini 19787aaf71 Removed BGA's uint32 utf8_char_len(uchar c)
function from this public header, since it's not safe, and it's slower than parsing bytes one by one.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4006 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-17 15:35:39 +00:00
Stefano Ceccherini ec35b786c8 Fixed the build, and added some more comments
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4003 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-17 06:43:03 +00:00