Commit Graph

8891 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
Stefano Ceccherini
ca8ed92280 Moved gPrivateScreen into the BPrivate namespace. Small cleanups to Application.cpp. Refined some comments. Used strdup() instead of new because it`s nicer for strings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10514 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-21 10:44:31 +00:00
Axel Dörfler
e372dc78c8 Added handling of B_QUIT_REQUESTED messages, even if it might not be complete.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10513 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-21 01:32:55 +00:00
Rudolf Cornelissen
f5bfcc05a4 doc update.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 18:30:38 +00:00
Rudolf Cornelissen
a652e7726f updated driver version number (0.31)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10510 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 18:27:39 +00:00
Rudolf Cornelissen
9c609269f4 modified a struct's type name, now the driverinterface works in MESA if needed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10508 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 15:29:04 +00:00
Rudolf Cornelissen
6960f5fe9c on-the-fly FIFO channel reassignments should now be useable.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10507 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 15:24:03 +00:00
Axel Dörfler
50df61f891 Fixed warnings.
Applied our style guide.
Removed fHeight from comparisons, fSize should be enough. Clarified comparisons.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10506 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 13:56:14 +00:00
Axel Dörfler
dfb4723fdf _kern_open_query() syscall had been changed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 13:30:00 +00:00
Rudolf Cornelissen
2a85b5e2c7 updated more acc commands to use pointers, one more to go until completion.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10502 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 13:06:57 +00:00
Axel Dörfler
c18d84297a Grouped all constructors together.
Moved InitData() to be close to the constructors.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10501 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 13:04:16 +00:00
Axel Dörfler
72f5d8600c Moved the quit window code into window_quit_loop() which is now called by
quit_all_windows(). I've also implemented the file panel quit mechanism,
but I'm not sure it's correctly done yet.
The BApplication destructor now locks the looper. Added commented out
deletion of fServerTo port and a ToDo comment if this should be done.
Run() no longer checks fMsgPort somewhere, but fInitError at the beginning;
if a missing fMsgPort doesn't set this, I guess InitData() is broken (or
better, BRoster::Private::CompleteRegistration() is). It now also deletes
any fPulseRunner (could be moved to ~BApplication, though).
QuitRequested() now correctly calls quit_all_windows().
Added a question to Quit() about the usefulness of special casing calling
the function from another thread.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10500 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 12:57:00 +00:00
Axel Dörfler
af34fbf1c5 Moved the unmaintainable list of initializers for the different constructors
to InitData(). Also fixed the initial value of fPulseRate (was 500000 but
according to the BeBook, it should have been 0).
Implemented SetPulseRate() (untested, but should be okay).
Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10499 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 11:09:56 +00:00
Waldemar Kornewald
1d34350c71 Renamed "Dial" to "Connect".
ppp_up now checks for "AskBeforeConnecting" flag


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10498 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 10:41:35 +00:00
Waldemar Kornewald
7577e5e2c4 Renamed "Dial" to "Connect".
Added checkbox for setting default interface (not yet implemented).
Simplified "Options" tab (no ConnectOnDemand anymore).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10497 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 10:39:04 +00:00
Waldemar Kornewald
0cbb739d3b Renamed "Dial" to "Connect" (only modems dial).
Removed DialOnDemand settings key.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10496 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 10:36:43 +00:00
Axel Dörfler
beabca50a7 Collision with our style guide.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10495 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 10:30:50 +00:00
Axel Dörfler
bae6988e7d Fixed some bugs and added some missing functionality:
- DispatchMessage() would swallow all handled messages, no matter if they were
  intended for this handler.
- B_REFS_RECEIVED does now maintain the recent folder/document lists.
- Now calls Pulse() when a B_PULSE is received.
- No longer calls ReadyToRun() more than once, no matter how many B_READY_TO_RUN
  are sent to the app.
- Added B_APP_ACTIVATED to the yet unhandled messages; furthermore, the known
  unhandled messages now dump themselves to stdout.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10494 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 10:04:28 +00:00
Rudolf Cornelissen
3c327b5379 added on-the-fly engine FIFO channel re-assigning, one cmd is now done via a struct-ptr instead of fixed defines, rest still needs to be updated.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10492 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 09:17:44 +00:00
François Revol
7508daf790 Added trash --list and untrash --all
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10491 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-19 01:09:21 +00:00
François Revol
03136b8b3c Use BPath to normalise paths so [un]trash foo/ actually works
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10490 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-19 00:35:16 +00:00
François Revol
8c0d307dcb don't use system("hey") but the Clean Way(tm).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10489 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-19 00:25:04 +00:00
François Revol
b03a7f8292 [un]trash command, to trash (eh) files, and get them back. Could be useful with alias rm=trash :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10488 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-19 00:17:36 +00:00
Rudolf Cornelissen
be75af5b13 included new header file
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10486 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-18 13:36:09 +00:00
Jérôme Duval
d1e2263502 untested uname implementation
still lacking some way of getting/setting hostname in our kernel


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10484 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-17 16:23:22 +00:00
Axel Dörfler
cfa4cb788c Now uses DataEditor::AttributeRef() where appropriate.
The definition of BEOS_R5_COMPATIBLE is no longer necessary, due to improvements
to our build system.
For root directories, the attributes are now taken from that directory; previously,
only the device was tested for attributes (which doesn't have any in BeOS).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10483 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-17 08:41:01 +00:00
Axel Dörfler
86daa6f28c Now also shows the volume name instead of the entry_ref name for root directories.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10482 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-17 08:37:50 +00:00
Axel Dörfler
9e98ea36fd The DataEditor now has a separate entry_ref for attributes - that's used
to have access to the attributes of a root directory. Internally, only
this ref is used when accessing attribute data.
Also fixed an initialization bug in case the stream couldn't be properly
opened; some values were just set too late (could lead to strange things
as well as a crash).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10481 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-17 08:34:34 +00:00
Stefano Ceccherini
6f633eb2a6 Some comments on possible changes, before I forget about them. Compacted some code.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10480 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-17 08:29:08 +00:00
Rudolf Cornelissen
89d37d46d0 added preliminary bit of support for 3D add-on driver, more needed probably.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10478 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-16 21:17:07 +00:00
Rudolf Cornelissen
4b1d83dfef added/'completed' extra info on engine setup, adding new options that are now theoretically possible for us.
Also enabled global 3D engine initialisation code, as my cards tested stay in fully working order with it (rest will be tested as well before any new driver release of course).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10477 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-16 11:32:41 +00:00
Stefano Ceccherini
0115269685 When Clear() was called, an undo action was created even if undo was disabled. Fixed, and added a comment to it. Some more checks for NULL, some variable renaming.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10476 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-16 08:27:09 +00:00
Axel Dörfler
87f158f3f5 Now only replaces the directory's name with the volume name for root directories for the window title.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10474 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-16 02:45:44 +00:00
Axel Dörfler
d8e0549fd4 ArgvReceived() no longer calls Probe() directly, but builds a BMessage
for RefsReceived().
Probe() now accepts a BEntry instead of an entry_ref, and all entries, too;
unacceptable nodes should be sorted out before.
RefsReceived() now sorts out BDirectories and will open one alert for
all directories, no longer one for each.
Added temporary hidden feature: pressing shift when opening a file will
make it possible to open symlinks and directories (to be able to access
their attributes).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10473 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-16 02:38:51 +00:00
Axel Dörfler
61784ba644 The DataEditor class now only redirects root directories to volumes; it
can now also open directories and symlinks, in which case nothing can be
done (but theoretically, the attributes could be changed).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10472 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-16 02:32:56 +00:00
Nathan Whitehorn
7279b97ee9 Fixed an amazingly moronic mistake that kept anything from working with SSL support compiled in.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10471 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-16 02:06:42 +00:00
Axel Dörfler
56904be516 The DataView can now also accept drop messages from others and itself; the
mouse is tracked when you're dragging over the view, and the affected area
is selected.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10470 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-16 01:14:42 +00:00
shatty
4dda1ae47d steps towards ssl for smtp
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10469 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-16 00:32:54 +00:00
Rudolf Cornelissen
34c6e0572b yet more engine setup programming unraveled! (a bit more to come..)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10468 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-15 21:36:45 +00:00
Nathan Whitehorn
bac0321de0 Eliminated some unnecessary code.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10467 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-15 20:45:13 +00:00
Jérôme Duval
8f8f6df533 Replaced delete[] by free() as noticed by Konrad on IRC
Better style


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10466 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-15 17:18:09 +00:00
Axel Dörfler
8e9afca70f Started implementing drag&drop - for now, you can drag contents out of the
DiskProbe window only. Only ASCII clippings will contain "text/plain" data,
so don't be surprised if Tracker sometimes doesn't create a clipping file
(if you drop on Tracker).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10465 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-15 14:46:39 +00:00
Axel Dörfler
fc1658382d Fixed a bug that I introduced with revision 1.9 when fixing the selection
deletion: you just couldn't delete over a ' ' with backspace...
Merged B_BACKSPACE and B_DELETE handling again.
Applied suggestions made by Stefano, like using ByteAt(x) over Text()[x].


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10464 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-15 14:03:56 +00:00
Jérôme Duval
5622a2e2c5 added get_rtc_info, needed in the kernel for services which use local timestamps such as the dos filesystem
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10463 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-15 09:23:50 +00:00
Axel Dörfler
e93e8b9a66 Removed unused mount/unmount commands.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10462 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-15 00:13:25 +00:00
François Revol
d24299a52d update doc url since bedriven is no more
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10461 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-14 23:37:38 +00:00
François Revol
bcc306b637 10000l do return somethng from main (how the hell did I forgot that ? I always do it usually) :)
Also dump some usage for --help


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10460 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-14 23:36:03 +00:00
Rudolf Cornelissen
549831215d unraveled engine's FIFO channels setup a bit for routing method to actual engine hardware commands.. (a bit more to come :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10459 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-14 22:28:30 +00:00
Axel Dörfler
dbef8d930c As suggested by Ingo, the "subsystem" parameter is now a string. That allows
modules to use their module name directly.
Also introduced a whole range of reserved syscall functions in case we want
to add some more.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10458 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-14 17:09:06 +00:00
Jérôme Duval
2830eed70b Added dstcheck.
It is run once at system startup after app_server and co are running.
Its job is to make sure the system clock took daily saving time into account.
To do this, it compares DST from a config file with DST from current RTC info.
If they differ, a time-updated alert is showed to let the user choose what to do.
A system call was used on R5 to get the current RTC info.
Unless someone comes with a good reason to still use a syscall, it should stay as is.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10455 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-14 16:28:23 +00:00
Axel Dörfler
f4160aedf9 Renamed semaphore syscalls to the new scheme.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10454 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-14 16:07:23 +00:00
Axel Dörfler
483a56e2fa Implemented a generic syscall mechanism. For example, kernel modules can use
this during runtime to add and remove specific syscalls. You can also use this
to add debugging or temporary kernel calls without messing up the syscall
table (the syscall numbers will stay constant).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10452 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-14 15:49:20 +00:00
Axel Dörfler
a36b16ba28 Added MIME types for WMA/WMV media.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10450 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-14 11:58:37 +00:00
Axel Dörfler
dd2e2231b0 Fixed a warning.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10449 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-14 11:56:29 +00:00
Stefano Ceccherini
f19d9d3b36 Moved functionality of do_argv() into a new static helper function called fill_argv_message(). Now do_argv() handles the B_ARGV_RECEIVED message (incidentally, thats almost how its done in beos). That made DispatchMessage() a bit cleaner.Added some comments. B_PATH_NAME_LENGTH + 1 --> B_PATH_NAME_LENGTH.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10448 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-14 11:18:42 +00:00
Axel Dörfler
836356a0ca Since we now have a working B_BASE_ADDRESS, we don't need the "RLD_padding"
area anymore.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10447 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-14 04:02:42 +00:00
Axel Dörfler
c3808a9e47 Address specifier B_BASE_ADDRESS actually didn't work at all - it now does.
Renamed find_reserved_region() to find_reserved_area(), and
find_and_insert_region_slot() to find_and_insert_area_slot().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10446 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-14 04:02:11 +00:00
Axel Dörfler
8a16a1a0c9 lock_memory() now at least makes sure that the memory range is mapped in.
It's a bit hackish due to the iospace area, and it also might not work
perfectly in all situations, but it does fulfill the current needs.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10445 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-14 02:39:37 +00:00
Axel Dörfler
09eaf756d0 Included some code from NewOS to set up a double fault handler. Doesn't seem to work yet, though.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-14 01:46:04 +00:00
Stefano Ceccherini
bd6c26014a Now it calls ScriptReceived if it receives a scripting message in MessageReceived(). Falls back to BLooper::MessageReceived() in case something goes wrong (just to be safe).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10442 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 23:29:03 +00:00
Axel Dörfler
e082899afe Replaced SYS_MAX_PATH_LEN with B_PATH_NAME_LENGTH.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10441 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 23:15:25 +00:00
Axel Dörfler
220a60685b Updated because of some header changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10440 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 23:14:56 +00:00
Axel Dörfler
84a910b64f Updated because of header changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10439 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 23:02:18 +00:00
Axel Dörfler
a1d0963176 Locking of the vm_cache_ref was almost completely missing...
cache_node_{opened|closed}() now correctly get the file_cache_ref from a vm_cache_ref.
Implemented cache_prefetch(): for now, it always prefetches the first 64 kB from the file.
Renamed read_from_cache() to read_into_cache().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 22:58:40 +00:00
Axel Dörfler
fcab2bafe0 Added a pointer to the file_cache_ref to the vnode_store.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 22:47:41 +00:00
Axel Dörfler
d316037c89 Updated because of header changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 22:46:11 +00:00
Axel Dörfler
64e7394c50 PARANOID_POINTER_CHECK is now only defined if DEBUG is defined, too, by default.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10435 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 22:44:17 +00:00
Axel Dörfler
b2ac251743 Replaced SYS_MAX_PATH_LEN with B_PATH_NAME_LENGTH.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 22:19:26 +00:00
Axel Dörfler
204db7744a get_new_fd() now has a separate fs_mount parameter, so you no longer need to cast
different types to vnodes.
Renamed vfs_get_vnode() to vfs_lookup_vnode() as it doesn't grab a ref to the node.
Added new vfs_get_vnode() that actually grabs such a ref.
vfs_get_vnode_cache() now fills a vm_cache_ref instead of a void pointer.
Replaced SYS_MAX_NAME_LEN constants with the B_FILE_NAME_LENGTH that should have
been used there.
vnode::cache should have been a vm_cache_ref and is now.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10431 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 22:17:00 +00:00
Axel Dörfler
5d45bbd482 Now uses ASSERT_LOCKED_MUTEX() some more.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10429 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 22:05:47 +00:00
Axel Dörfler
3a5d1279cf vm_create_vnode_cache() now fills a vm_cache_ref instead a void pointer.
Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10428 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 22:05:05 +00:00
Jérôme Duval
1e5cafe522 changed location for some filesystem addons
This implies to clean this location before the build


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10424 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 21:26:58 +00:00
Axel Dörfler
cb44b765b0 Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10423 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 21:21:06 +00:00
Jérôme Duval
0c46f3c6e9 add lowercase short filenames support
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10422 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 21:13:45 +00:00
Jérôme Duval
e0169612c9 added serial_mouse to the build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10417 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 14:22:09 +00:00
Rudolf Cornelissen
a8a807c705 (hopefully) completed global 3D engine initialization.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10415 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 13:34:28 +00:00
Rudolf Cornelissen
ad6f3cd184 added programming of set of unknown registers for 3D acc setup
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 12:04:17 +00:00
Stefano Ceccherini
833a592226 Added B_SILENT_RELAUNCH handler. Expanded a comment.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 10:59:35 +00:00
Axel Dörfler
6363d47567 Better debug output to ease userland debugging while we don't have any tools.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10411 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 03:41:32 +00:00
Axel Dörfler
071ac2932a Implemented bfs_get_vnode_name().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10410 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 02:43:42 +00:00
Axel Dörfler
299e521546 Added buffer size parameter to Inode::GetName().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10409 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 02:43:02 +00:00
Axel Dörfler
c838911b01 Improved error handling, error messages now go to stderr, the (real) program
name is now always prepended.
Now prepends a "name=" infront of the query predicate in case BQuery::Fetch()
returned B_BAD_VALUE, so we accept things like "query foo" just like Be's
version.
Also improved the usage text information.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10408 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-12 23:19:48 +00:00
Axel Dörfler
66340e6747 get_vnode_name() for file system's that do not export the fs_get_vnode_name()
function was slightly broken :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10407 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-12 23:12:08 +00:00
Axel Dörfler
4692c99460 Added function that allocates more than one page at a time, but without
the need for having them in a run.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10406 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-12 20:53:47 +00:00
Axel Dörfler
c02ff3b775 Reenabled query support for the Haiku kernel.
Implemented bfs_rewind_query().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10405 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-12 20:51:50 +00:00
Axel Dörfler
467954408f Added Query::Rewind() method - not yet tested.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10404 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-12 20:50:45 +00:00
Axel Dörfler
0ddccfdc7a We now have atomic_test_and_set() and atomic_set() in the kernel directly.
Removed Metrowerks support.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10403 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-12 20:49:51 +00:00
Axel Dörfler
62986df7c4 Added a MakeEmpty() method.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10402 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-12 20:48:40 +00:00
Axel Dörfler
805cd92d90 Just a commentary changed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10401 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-12 20:47:50 +00:00
Axel Dörfler
4d875b0525 Adapted because of the changes made to _kern_open_query().
Implemented BQuery::Rewind() - there is no reason not to do this, as the
kernel has no extra work because of this.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10400 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-12 20:41:10 +00:00
Axel Dörfler
f6743bd145 Added query support - it's more or less the same as found in R5 for now.
Later on (but before R1), we should find a better balance between what
the FS has to implement, and what the kernel delivers to them.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10399 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-12 20:39:45 +00:00
Axel Dörfler
62ceb50f43 Refactored fs_open_query() calls a bit - there is no only one internal
implementation that the two public functions call.
Adapted to the changes to _kern_open_query().
Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10398 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-12 20:35:27 +00:00
Axel Dörfler
71a81208ef Fixed build and warnings. Thanks to Jonas for reporting this.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10395 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-12 16:19:46 +00:00
Matthew Wilber
34d0fe82c4 Initial check in for SlideShowSaver. Currently, it shows a slide show of images from the folder chosen by the user. There are no fancy transitions yet.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10394 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-11 22:05:17 +00:00
Matthew Wilber
07892552b0 Initial check in for screen_savers Jamfile, the list of screen_savers to build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-11 22:02:25 +00:00
Matthew Wilber
01423f6b24 Added screen_savers directory
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10392 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-11 22:00:00 +00:00
Stefano Ceccherini
b1ce1640cd Renamed gApplicationPropInfo to sPropertyInfo and made it static.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10390 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-11 10:15:11 +00:00
Stefano Ceccherini
a8fc5954c0 Implemented get_window_list(), and used it in count_windows() and window_at(). That simplified the code a lot. Removed some unused headers.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10389 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-11 10:12:59 +00:00
Michael Pfeiffer
c387247ebe Check in for Dr.H.Reh. The usability of MarginView has been increased.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10388 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-11 09:52:39 +00:00
Michael Pfeiffer
3c39e6e0d5 Check in for Dr.H.Reh. The preview margin is set correctly and usability of MarginView has been increased.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10387 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-11 09:51:01 +00:00
Stefano Ceccherini
ff6f3ceb3c Line wrapping was done a character off. Added 1 to the line origins calculation.Lines have now the same height of the be's version. Note that this last change made some visual glitches appear again when selecting. Need to research that.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-11 08:27:49 +00:00
DarkWyrm
41f6b937f7 Submission of Stefano's BApplication patch - archiving support
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10383 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-09 22:54:46 +00:00
Rudolf Cornelissen
cba5bd4452 corrected some colorspace related info, added first 3D specific comments
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10382 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-09 20:01:25 +00:00
shatty
d9c9c29b59 do not block program-invoked edits when read-only
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-09 19:03:17 +00:00
Axel Dörfler
247c75991c The block selection is now drawn incrementally if possible which removes flicker.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10380 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-09 02:34:35 +00:00
Nathan Whitehorn
d72c6cc87b Fixed issue with old libtextencodings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-08 23:42:06 +00:00
Nathan Whitehorn
def182781d Fixed spam server launch problem
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-08 23:34:51 +00:00
Axel Dörfler
d48f7182eb Enabled full attribute support under the Haiku kernel.
It's not as clean as it could, but it works for now.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10377 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-08 04:18:44 +00:00
Axel Dörfler
1bcd71834b I can even mess up command line parsing :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10376 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-08 03:51:25 +00:00
Axel Dörfler
19ab5531d8 messages.h no longer exists.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10375 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-08 03:46:26 +00:00
Axel Dörfler
2ae45f0c5f Brought "addattr" command into shape, and got rid off a lot of
weird stuff - and libbe.so; it now uses the attribute functions
as exported by libroot.so :)
Improved handling of boolean values, improved error messages a lot.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10374 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-08 03:44:30 +00:00
Axel Dörfler
e96f985d95 fs_read_attr() and fs_write_attr() transferred bytes from/to the provided
file descriptor, not from/to the attribute...
Added ToDo comment about eventually adding syscalls for these functions.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10373 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-08 02:15:09 +00:00
Axel Dörfler
a3d814e271 "catattr" no longer needs additional libraries.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10372 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-08 01:34:45 +00:00
Axel Dörfler
983e69d5dd Improved error messages (and how they are done).
No longer locks the file during attribute retrieval.
No longer needs libbe.so.
Added support for some additional types.
Will no longer try to read in a 4GB attribute - at max, it will read
64 kB from an attribute. Also changed output style of the raw data
type - please contact me if you desperately think we should revert
that back (ie. in case the old output was actually of use for something).
As the original author suggested, we're now using isgraph() to improve
the character preview of the raw data.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10371 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-08 01:34:09 +00:00
Axel Dörfler
b075015208 Removed unneeded include.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10370 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-08 01:28:35 +00:00
Axel Dörfler
6780f6f417 The open attr dir syscalls didn't work correctly in the FD modes.
fd_and_path_to_vnode() now accepts NULL as path argument.
Added some more debug output and comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-07 16:15:57 +00:00
Axel Dörfler
4e0e3bf35d Some cosmetics. The string for unknown types no longer tries to print
unprintable characters, but replaces them with '.'; when there is more
than one unprintable character in the type code, it will show the hexcode
instead.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10367 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-07 16:10:03 +00:00
Stefano Ceccherini
4ce5abc64b Stupid me: kBlackColor is a static, and so it's initialized to 0, so text was drawn in a transparent color, if no default color was specified.
Added +1 to the pen position to draw text more correctly.
Thanks to Andrew for reporting


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10366 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-07 10:32:04 +00:00
Nathan Whitehorn
98757be96d Updated install script to deal with new spam filter, updated README, etc.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10365 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-07 04:14:44 +00:00
Nathan Whitehorn
90ccec14e5 Fixed net_server compilation
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-07 03:41:38 +00:00
Axel Dörfler
8a9c92207f Minor fix: the return value of BNode::GetAttrInfo() was not checked.
Now understands a lot more types than before.
Accepts "--help" and "-h" on the command line to print out usage info.
Prints out how many bytes the attributes add up to.
Instead of printing out the hex value, the attribute type is now
printed as %c%c%c%c 4-character tupel.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10363 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-07 02:31:03 +00:00
Nathan Whitehorn
69d6550b12 Fixed the spam filter so it works correctly now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10362 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-07 01:14:05 +00:00
Axel Dörfler
069694a22a Rounding up a value can be soooo hard...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-07 00:57:45 +00:00
Stefano Ceccherini
5bac5044b7 Fixed warnings and added a comment
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-06 12:37:11 +00:00
Oliver Tappe
37e9be2eb0 - fixed compilation issue with gcc-2.95.3, resulting code needs testing to
see if the problems are indeed fixed now...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-05 13:44:07 +00:00
Stefano Ceccherini
322853c8d3 Last fix screwed selection in other places: Fixed. Some more cleanups. Inline inputted text now highlights at least line, in case of multiple lines.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-04 17:49:09 +00:00
Axel Dörfler
e15a7ad3a3 Fixed a big allocation leak: preallocation was done for all streams, but
only regular files were stripped back when bfs_close() was called.
Now, we don't preallocate any blocks for attributes, attribute directories,
and symbolic links (which do have a stream when longer than 144 bytes).
Also, bfs_release_vnode() now trims back all streams that need to be
trimmed - this catches standard directories, which could also slip through
before.
Removed the remaining blocks of INODE_NO_CACHE support as this is not
needed for Haiku.
Added method Inode::NeedsTrimming() that determines if its data stream
can be trimmed (indices are never trimmed to reduce fragmentation).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10356 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-04 01:21:12 +00:00
Axel Dörfler
7c012c2316 Accidently used level 2 cache format to print out level 1 instruction cache
on AMD and other CPUs - thanks to BiPolar for reporting this!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-03 08:25:34 +00:00
Stefano Ceccherini
6e6f8fff95 Line wrapping didn't work with multi byte charachters. Fixed.
If the view was resized when there was a selection, the selection disappeared. Fixed.
Added some more documentation and some more comments. Improved comments.
Removed some debug output.
Improved some code here and there.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10353 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-02 18:26:49 +00:00
Axel Dörfler
e4f5a3a3b0 Turned off debug output.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-02 03:21:05 +00:00
Jérôme Duval
7335fda5b4 Everyone should have read chgrp instead of chgroup :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 17:37:05 +00:00
Jérôme Duval
08f17bb51b Everyone should have read chown instead of chmod :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 17:31:06 +00:00
Ingo Weinhold
3f6a966e41 I apparently misunderstood Matthijs. This re-adds the app version.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 17:15:57 +00:00
Ingo Weinhold
2d4896f90e Simplified as suggested by Matthijs.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 15:54:40 +00:00
Ingo Weinhold
eea1d4c47d Add the resources to the StatCacheServer, so that it is a background app.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 15:39:38 +00:00
Ingo Weinhold
f08f5b9bd3 Make the server a BApplication for a smoother shutdown (I've never
experienced this problem, but others have). Original changes by Axel,
though edited quite a bit by myself.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 15:38:12 +00:00
Axel Dörfler
53b0609a4a Initial support for cache modules.
Also fixed a minor bug in dec_vnode_ref_count(): the unusued vnode counter
was not decremented again when one vnode was removed.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 07:41:07 +00:00
Axel Dörfler
324fc66b90 Fixed another stupid bug in cache_io(): if one request needed new pages
more than once, the size requested was only correct for the first time.
Added preliminary support for cache modules.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 07:38:27 +00:00
Axel Dörfler
097fa44066 Now also prints out power management information for AMD CPUs if present.
For Intel CPUs, the cache code 0x40 is now handled manually, as it changes
its meaning depending on the cpu type.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 07:29:12 +00:00
Axel Dörfler
1ec6a65f39 No longer prints out the extended processor signature on Intel CPUs as
it's only reserved but not defined or used for those.
If you have a stupid BIOS, the name string might not have been set; this
is now supported, and the standard vendor string is used in that case.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 07:00:50 +00:00
Axel Dörfler
2e507eba4a Factored out printing the processor signature.
The processor signature now correctly handles the extended family/model fields.
The cpuid 0x80000001 field is actually the same as cpuid_info::eax_1, so
dumping it now behaves in the same way, too.
Added printing of Transmeta specific features.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 06:35:05 +00:00
Axel Dörfler
b99d92939a Fixed some minor bugs that made it into the last version; for example
the 0x80000001 generation/model/stepping was displayed incorrectly.
Only the new features in cpuid 0x80000001 are printed, added support for
No-Execute ("NX") and Long Mode ("64").
Improved non-Intel TLB display, added page sizes, 2nd level cache is now
also displayed correctly (unlike the BeOS version which has a wrong
associativity).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 06:12:38 +00:00
Axel Dörfler
78ba30ed0e sysinfo needs private/shared headers.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 04:50:06 +00:00
Axel Dörfler
26a78aa41d Removed broken _user_exit(), and implemented working _user_exit_team().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 04:26:10 +00:00
Axel Dörfler
71463c834e Now uses _kern_exit_team().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 04:24:15 +00:00
Axel Dörfler
72013b22a5 Now uses _kern_exit_team().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 04:17:57 +00:00
Axel Dörfler
2f9720f07d exit_thread() was using _kern_exit() instead of _kern_exit_thread().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10324 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 04:10:12 +00:00
Axel Dörfler
f0e5f76de9 Almost rewrote sysinfo: it will now print out more information, and that
information is also visually more appealing.
It now also uses the private/shared/cpu_type.h header to get the CPU string.
Determining the availability of the extended cpuid info was broken - whoever
had problems with the previous "change_extended = 1" should test again, thanks.
Cleaned up.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10322 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 03:51:38 +00:00