Commit Graph

10452 Commits

Author SHA1 Message Date
Axel Dörfler
e709e3665e The parser now uses a BBufferIO stream to speed things up.
Text::Parse() now converts bigger chunks at once.
Default RTF element destination is visible in text now, only known
other destinations are marked that way (using a lookup table).
Added virtual method IsDefinitionDelimiter() to Element to make
definition iterating nicer.
";" now always forms a separated Text object - this fixes the
definition handling.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10565 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 08:33:19 +00:00
Axel Dörfler
64214d4cce Mostly adapted to the refactored RTF classes hierarchy.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 02:04:44 +00:00
Axel Dörfler
a7e0bca0f7 Refactored the code: put everything in the RTF namespace, separated group
functions from the former RTFElement (now RTF::Element).
Put the parsing basics into a separate class RTF::Parser (used to be in
the static RTFHeader::Parse()).
RTF::Header is now always correctly set to RTF::TEXT_DESTINATION.
Some minor other related changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 02:03:34 +00:00
Axel Dörfler
40d9768b92 Added a simple RTF translator.
It only supports colors and bold fonts beside plain ASCII text, but it's a
start.
The RTF* class hierarchy should get a cleanup, though (and will soon).
You'll need Haiku's StyledEdit to make use of this translator.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-02 23:28:30 +00:00
Matthew Wilber
e940fe0597 Fixed button so that it stays depressed when mouse button is down, changed to support click and drag-off, centered button label vertically as Be's version is centered. Still need to add white line below focus line, need to verify the button's value is set at the correct times, need to verify that invoke is being used properly, need to test behavior and drawing when button is disabled.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-02 20:05:39 +00:00
beveloper
153863ba18 made filename start with upper case
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10560 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-01 14:03:55 +00:00
beveloper
069df2acea Updated from OpenBeOS to Haiku
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10559 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-01 13:54:38 +00:00
beveloper
a2d91eb6ea Added OpenBeOS text screensaver, renamed to Haiku
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10558 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-01 13:52:59 +00:00
Stefano Ceccherini
c38a7df2a8 Accidentally commented the DrawContent call. I promise, this is the last commit for this year.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-31 11:52:39 +00:00
Stefano Ceccherini
92aa9dcf85 some more cleanups. The AddItem() variation which accepts a BRect parameter now calls the debugger if called when the layout is not B_ITEMS_IN_MATRIX.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-31 11:44:04 +00:00
Stefano Ceccherini
9944a2998d Now items are removed correctly. All RemoveItem() call pass now through the private RemoveItems() method. ComputeLayout now uses a switch block, and prints a warning if B_ITEMS_IN_MATRIX is used, since it's not supported yet. Some cleanups.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10555 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-31 09:44:56 +00:00
Stefano Ceccherini
7ca9166efa Now BSeparatorItem's Draw() checks the separator type. Implemented separator type "1". Please, someone with a better "artistic" skill than me, feel free to implement separator type "2" and check if the drawing of the others is correct :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10554 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-31 09:04:14 +00:00
Stefano Ceccherini
efa306a09d BMenu now does even work correctly and doesn't flicker anymore. Submenus does not yet, though, and sticky mode is not yed supported.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10553 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-30 15:37:33 +00:00
Stefano Ceccherini
b0d01b5f78 MenuWindow now uses the private window_feel "1025", which I guess we'll need to implement server side too, since it behaves differently than B_MODAL_WINDOW_FEEL. Menu items added to a menubar didn't appear immediately, so I forced an Invalidate(). Could be made better, I think.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-30 13:27:00 +00:00
Stefano Ceccherini
31e911da16 Fixed BMenuBar drawing. Managed to have BMenu working (partially) with BMenuBar.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-30 11:03:36 +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
Stefano Ceccherini
36d4f05908 Style changes, some checks for NULL values
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10549 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-30 10:02:39 +00:00
Stefano Ceccherini
1b925bd5ae Moved BSeparatorItem`s implementation to its own file. Will split headers later.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10548 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-30 09:54:48 +00:00
Stefano Ceccherini
ddd7b87d8e Small cleanup, added a TODO comment.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10547 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-30 09:42:46 +00:00
Stefano Ceccherini
a5e772c9c2 Fixed the other bug reported by Axel: the blinking caret spuriously drawn at a wrong position.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10546 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-30 07:59:24 +00:00
beveloper
7f7e65c79a Disable PCI device address decoding before writing to BARs.
Make header_type behave like in BeOS.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-29 22:53:24 +00:00
Stefano Ceccherini
d5aba99a5e Refresh() has to do some operations even if there is no window available.
This fixes a bug in Diskprobe, thanks to Axel for reporting.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-29 11:15:22 +00:00
Axel Dörfler
c05649ebef Fixed a typo reported by John Drinkwater.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10542 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-28 16:38:48 +00:00
Waldemar Kornewald
e91b737412 Implemented support for default interface and ConnectOnDemand within core. IPCP will probably need more tweaking, did not have a look at that.
Interface statistics are now maintained.
If I did not forget anything the core stack is now feature-complete.
Only ppp_up must be finished, bugs and hacks found, and modem support added; that's it for R1, I hope.
Everyting untested!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10541 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-27 15:02:14 +00:00
Waldemar Kornewald
eb89d62ca5 Implemented support for default interface. Not tested.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10540 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-27 14:55:07 +00:00
Stefano Ceccherini
cc9f6bbded Implemented RestoreFocus(). Thanks to Ingo and Marc for the help
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10539 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-27 14:16:56 +00:00
Stefano Ceccherini
e411c65862 Mmmmh, I love Cut & Paste...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10538 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-27 09:56:01 +00:00
Stefano Ceccherini
14260ebb3b Small style changes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10537 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-27 09:48:15 +00:00
Stefano Ceccherini
446b8c194e Moved BMenuWindow to its own file
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10536 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-27 09:05:16 +00:00
Stefano Ceccherini
86832512bb Now includes MenuWindow.h instead of duplicating the declaration
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-27 09:04:28 +00:00
beveloper
a7871de286 Flushing local repository changes to server. Mostly new copyright headers.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-25 19:44:47 +00:00
beveloper
dfac3f8555 added matroska to jamfile
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-25 19:41:23 +00:00
Rudolf Cornelissen
5f8c3a7f30 updated 'line' command remarks to now be correct I think. Sometimes sitting back helps to get a fix on things ;-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10532 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-24 22:46:55 +00:00
Rudolf Cornelissen
ff20b3ad82 fixed GeForce AGP/PCIe 6600 PLL trouble (refreshrate), added fifo assignment usage remark. Note that GeForce 6600 and 6800 have the acc and overlay engines still down. Apart from that, they work (if you try the code now, the driver will still hang though..)
Hope to fix these remaining issues soon..


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-24 22:43:06 +00:00
Stefano Ceccherini
872e52f249 DOS-->BeOS endlines
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10530 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-24 17:55:42 +00:00
Stefano Ceccherini
c74996495a Hacked BMenuBar into something working, not yet with our own BMenu but with beos's one. B_WILL_FIX our BMenu. Not everything work, though.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10529 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-24 17:45:36 +00:00
Stefano Ceccherini
baab695f35 Removed StringItem.cpp as its implementation is in ListItem.cpp
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-24 11:39:14 +00:00
Jérôme Duval
281cd6b56f forgot to add these files
part of Canna Input Method addon
from Nec Corporation, modified by T.Murai


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10527 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-23 22:08:39 +00:00
Jérôme Duval
025d0733f2 It seems libRK and libCanna don't like this CCFLAGS position
Hope it doesn't break anything


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-23 21:30:32 +00:00
Jérôme Duval
076ccc5c5c Added Canna Input Method addon
lib/* and rk/* are from Nec Corporation, modified by T.Murai
CannaIM addon from M.Kawamura
Tested on R5, data files are needed
Thanks to M.Kawamura and T.Murai for donation


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10525 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-23 21:23:50 +00:00
Rudolf Cornelissen
a2308843f3 removed two remarks that where not correct I think.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-23 21:13:37 +00:00
Rudolf Cornelissen
12faecd4c1 added recognition for 7 new cards, mostly GF 6600 and 6800 ones
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-23 15:54:21 +00:00
Rudolf Cornelissen
dbedfe516e added recognition for 7 new cards, mostly GF 6600 and 6800 ones.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10522 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-23 15:48:40 +00:00
Stefano Ceccherini
fd99e7194c Made the (private) 'JAHA' message a constant, and moved it to ViewAux.h. Maybe it doesn't fit much in there, but I didn't want to create a new header just for it. Feel free to move it to a better place.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-23 14:03:28 +00:00
Stefano Ceccherini
3a15790e0f Fixed a couple of infinite loops, small style changes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-23 13:27:14 +00:00
Rudolf Cornelissen
0e0eb256d8 added more engine command defines.. 8-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10519 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-23 12:54:35 +00:00
Rudolf Cornelissen
00742759be modified a few comments
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10518 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-23 12:49:59 +00:00
Stefano Ceccherini
bc6981cc74 Switch synchronous and asynchronous mouse tracking code as it was wrongly placed. Style changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10517 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-23 12:13:56 +00:00
Rudolf Cornelissen
b88dbb0c84 added missing color and Z buffer setup cmd struct (nolonger existing in XFree86 > 4.2.0!)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10516 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-22 12:25:17 +00:00
Stefano Ceccherini
3583227ca5 Style changes, moved some functionalities to private methods
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10515 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-22 10:43:40 +00:00