Commit Graph

157 Commits

Author SHA1 Message Date
haydentech
64b98d2378 gcc3 namespace fix
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5300 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-10 19:45:55 +00:00
François Revol
9326cb6d82 better error report from BDeskbar::RemoveItem(), though OpenDeskbar should be fixed too
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5219 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-31 19:53:37 +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
shadow303
a74c4d3064 Replace floating point math with bit shifts
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5000 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-12 22:23:06 +00:00
shadow303
16ce773582 Fix & rename 16-bit routines to 15-bit
Add real 16-bit routines


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4987 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-10 20:37:32 +00:00
DarkWyrm
99991325e3 Bugfixes. AFAIK everything works properly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4945 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-04 21:51:16 +00:00
DarkWyrm
45799af7b5 Tweaked all messaging classes to comply with new message protocol policies
AppServerLink no longer inherits from BSession
Modified client files which talk to the server to sync with changes in messaging classes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4942 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-04 19:08:06 +00:00
DarkWyrm
55c8a39e56 Conversion of PortLink::FlushWithReply calls from deprecated API calls
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4934 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-03 22:21:37 +00:00
DarkWyrm
39cdc12637 Conversion to BSession API
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4924 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-02 01:02:10 +00:00
Adi Oanca
da024ab387 *modified ReadRawFromPort() and ConvertToMessage() methods to use BSession class.
*modified/added B_VIEW_(MOVED/RESIZED) handlers in ConvertToMessage()/DispatchMessage()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4802 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-25 12:15:49 +00:00
Adi Oanca
6e62790567 some changes in ConvertXXXYYYY(...) methods.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4801 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-25 12:15:11 +00:00
DarkWyrm
b1454af53a Added __set_window_decor() to allow Tracker to link properly against libopenbeos
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4724 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-17 12:56:35 +00:00
Adi Oanca
b81089db11 * made fLastViewToken member equal with top_view's token. This avoids an unnecessary message to be sent to app_server.
* added some debugging code?
* other changes...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4685 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 19:05:07 +00:00
Adi Oanca
2f8db4e46a * Modified a few lines from BSession::WriteInt32( uint32 ) into WriteUInt32( uint32 )
* in updateCachedState(), now all font attributes are received at once; I realized app_server doesn't need the flag based system. :-)
* added a new method: PrintToStream() - used for debugging.
* now the view state is allocated and initialized in BView::InitData(...)
* modified a few things in addToList(...) 'cause I don't know what was in my head when I wrote it?!
* added _ReservedView2-18() methods because of linker errors.
* a new method used for debugging: PrintTree()
* added debugging messages for a few methods
* TESTED view hierarchy methods like AddChild() and RemoveChild() RemoveSelf() - They WORK! :-)))
* minor but significant :-) ( = instead of == ) change in findView(...)
*** Tree structure is in place now, mirrored on app_server ... and working :-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4684 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 19:03:59 +00:00
Adi Oanca
eaedbddb89 added code for appserver sync/communication...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-08 22:15:16 +00:00
Adi Oanca
c73714dbb4 some appserver connection code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-08 21:06:34 +00:00
DarkWyrm
6e3d9752e7 Implemented a couple more functions
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-07 03:17:33 +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
haydentech
6cb536dd5b malloc.h is obsolete, use stdlib.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4508 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-04 19:57:56 +00:00
haydentech
e8cf08732d gcc3 compile fixes: default arguments in implementation no longer allowed
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4507 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-04 19:55:47 +00:00
haydentech
a91e36bf1b Fix null statement and remove an unused variable
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4506 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-04 19:45:47 +00:00
haydentech
d8ad69ebf2 Minor cleanup
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4505 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-04 19:43:31 +00:00
haydentech
a6e9b97ba4 Remove unused variable
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-04 19:42:05 +00:00
haydentech
8e449e70e9 Eliminate one warning and one bug
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4503 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-04 19:41:08 +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
Marc Flerackers
b140f1de88 Some more work on TextView by Jack Burton and me, Undo partially works now
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4498 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-04 08:45:34 +00:00
Adi Oanca
072a83e4b9 changed to avoid some compiler warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4488 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-03 21:27:18 +00:00
Adi Oanca
46eecea483 added scripting support - stil needs some work, and others...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4487 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-03 21:26:10 +00:00
DarkWyrm
edd19f3d5c Removed a few compiler warnings
Added app-side support for font list
Added mostly-empty global font functions and documented them


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4439 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-01 17:08:34 +00:00
DarkWyrm
bd3f48e8bf Patch submitted by Jack Burton
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4435 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-01 14:12:53 +00:00
Adi Oanca
bf17b6ac95 Modified to use the new BSession class
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4431 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-31 17:34:24 +00:00
Adi Oanca
b56bbfdf4e WELL... here you go: from 5% to more than 95% !!!!!! :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4430 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-31 17:33:22 +00:00
ejakowatz
80a4aa919d Fixed compile errors; references to BFont* when should have been BFont&
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4404 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-29 22:33:17 +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
shatty
323ddd5728 update from jack burton
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4245 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-08 09:55:12 +00:00
shatty
9fdfaac6f3 unix linefeeds
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4244 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-08 09:53:59 +00:00
shadow303
72f334d12f gcc 3 fixes; strip ^M characters from TextView.cpp
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4226 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-04 00:42:51 +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
DarkWyrm
dfa226a101 WindowLookToInteger and WindowFeelToInteger return the values specified in R5's Window.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4063 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-24 19:47:52 +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
Stefano Ceccherini
7e3a607f22 Whoops! Forgot to update this file..
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3966 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-14 09:11:38 +00:00
Stefano Ceccherini
791e557c1b Implemented the last missing function, r_sub (it could be written a bit better, though). Moved the helper methods to a separate file, cleaned up a bit the implementation, changed some things in the license.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3965 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-14 06:22:47 +00:00
shadow303
19de29789a Updates for changes in PortLink & PortMessage
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3958 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-11 23:14:02 +00:00
haydentech
c0b3b8475f major warning reduction for gcc3, plus namespace and other gcc3 fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-11 15:51:59 +00:00
DarkWyrm
642c6c32e4 Implemented FFM calls and scroll_bar_info calls
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3936 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 17:42:34 +00:00
DarkWyrm
87048db9e0 Simplified BAppServerLink interface
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3934 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 16:56:57 +00:00