Stefano Ceccherini
b282b9018e
Implemented separator style 2, courtesy of Olivier Milla
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10584 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-04 13:13:42 +00:00
Stefano Ceccherini
a3dff518f0
Updated header
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10583 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-04 13:00:33 +00:00
Stefano Ceccherini
5b7528754d
The frame around the BMenu is now drawn by a special class (as happens in beos), and not by BMenu::DrawBackground(). Refactored BMenuWindow to support scrolling (not implemented yet). The AddItem() functions now call the private _AddItem(). Implemented AddList(), but it's not tested. BMenus are now offsetted by 2, 2, as in BeOS.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-04 12:59:49 +00:00
François Revol
a583b8b54d
added a script to build the table from setmime; fix (c)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10581 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-04 10:38:32 +00:00
François Revol
d9574bb892
A kernel mime_table module, so not every fs will bundle its own.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10580 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-04 10:08:27 +00:00
François Revol
e189e3d779
header for a kernel mime_table module, so not every fs will bundle its own.
...
The API makes it possible to later use faster indexed search on the table.
The table could probably also be regenerated by running a script on setmime -dump.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10579 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-04 10:03:05 +00:00
François Revol
8a90bc6132
puni is already pointing outside of the string, no need for +1 here!
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10578 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-04 09:21:21 +00:00
Axel Dörfler
0bf9534d45
Now stacks up group text_runs correctly - previously, the run on the stack could
...
still be changed by the new group (which lead, surprisingly, to wrong results :).
Added \line and \'hh commands (first part of charset support beyond plain ASCII).
Renamed GetStyle() to PrepareTextRun().
Added some support functions to copy and compare text_runs.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10577 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 23:55:39 +00:00
Axel Dörfler
37ec8144ed
The \'hh command is now also correctly interpreted (it's not a standard command).
...
The Text class no longer likes '\n' and '\r' and will throw those away happily.
parse_integer() can now parse integers with different radix.
Improved debug output a bit.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10576 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 23:46:08 +00:00
François Revol
11ad2d6866
because uni_str is incremented in utf8_to_u_hostendian() UNICODE is moved inside the loop in _utf8_to_sjis_bendian() to avoid crashing. (it points to a single unicode char!!) (other option is to not increment uni_str, but it's kept for consistency).
...
some cosmetic changes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10575 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 22:37:46 +00:00
Stefano Ceccherini
92044c244d
Removed the frame parameter from BMenuWindow
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 16:05:46 +00:00
Stefano Ceccherini
1664b981f2
Added some todo items, cleanups. Removed the frame parameter from BMenuWindow as it's not needed.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10573 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 16:05:05 +00:00
François Revol
a565beb2d9
report error correctly (*len = 0) when read()ing a dir; some comments; don't tell BEOS:TYPE changed for folders since they don't have it.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10572 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 15:27:18 +00:00
Stefano Ceccherini
4e876d126e
implemented B_ITEMS_IN_MATRIX layout correctly. Small cleanups all around.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10571 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 13:33:03 +00:00
Stefano Ceccherini
9a8540fb4e
Now menuitems are highlighted correctly, and submenus open, at least.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10570 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 11:34:14 +00:00
Axel Dörfler
8bf6d9ff50
No longer uses the RTF::Iterator to process the document; it now subclasses
...
the RTF::Worker for this task (TextOutput).
Cleaned the sources a bit, TextOutput now also contains the functionality
of the former AppServerConnection class.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10569 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 10:13:32 +00:00
Axel Dörfler
63c6a88ba0
Added a simple RTF::Worker class that can be subclassed in order to work
...
with the RTF document step by step.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10568 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 10:10:46 +00:00
Axel Dörfler
9932029846
Extended support of RTF features. Ie. the conversion/group context is now
...
maintained, and should work more or less correctly.
Monospaced fonts can now be chosen (the font table is partially parsed),
italics works, and many other things.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10567 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 08:38:48 +00:00
Axel Dörfler
e815584a4f
We're not really yet version 1.0.0 :)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10566 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 08:34:23 +00:00
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