Commit Graph

29348 Commits

Author SHA1 Message Date
Michael Lotz
9bc8951dc9 * Simplify the way fragmented transfers are resubmited.
* This also paves the way for a different way to handle transfer freeing.
* Also fixes that errors in reappending would previously not be propagated to
  the caller.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30712 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-11 23:37:30 +00:00
Michael Lotz
60a3c33b87 In case we already did initialize and prepare kernel access, no need to do it
again. Especially not because it'd likely fail because we are now most probably
in the kernel.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30711 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-11 23:32:59 +00:00
Michael Lotz
aa3ca9ed30 * Move the actual and maximum length calculation into two inline functions.
* Use those to make sure the size is retrieved correctly in all cases (which
  it wasn't in the short packet tests).
* Don't detect short packets for control transfers as we need the status packet
  to finish the transfer and cannot quit earlier.
* Only check for short packets when we also have the short packet flag set.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30710 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-11 22:35:50 +00:00
Jonas Sundström
b8bc570a12 Partial revert. Reimplementing the previous behaviour of accounting for differences in current working directory between the running single-launch process and later invocations of the same, as this is necessary to handle correctly any relative paths given on the command-line. Added comment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30709 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-11 19:31:18 +00:00
Rene Gollent
e0e7fdd350 Patch by Matt Madia: Update OpenSSL to v0.9.8k. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30708 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-11 16:39:21 +00:00
Joachim Seemer
f45c0ffde7 The apps-people.html wasn't supposed to be commited yet, but what done is done, so here's the rest... :)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30707 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-11 16:12:53 +00:00
Joachim Seemer
8e125d19c2 Removed out of date installation.html which was moved to /installation/install-source-linux.html a while back. Thanks for noticing, Matt.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30706 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-11 16:08:21 +00:00
Joachim Seemer
cac3cbcda8 It was brought to my attention that 'HAIKU_DONT_CLEAR_IMAGE = 1' is supposed to be redundant in case of a @disk build. I'm woefully ignorant of the intricacies of our buildsystem, so I just accepted that and ran with it. :) Thanks Matt (and Urias by proxy).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30705 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-11 15:36:40 +00:00
Stephan Aßmus
94aabcd393 * Fix by Cyan: Do the offset calculation taking the rate base into account.
Fixes using the HDA driver with frame rates based on 44100Hz.
* Automatic white space cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30704 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-11 08:05:51 +00:00
Bruno G. Albuquerque
2a2eb31535 Work in progress. Just commiting so I don't lose this code due to OpenBFS bugs
for the third time. :P

- Implement CDDBServer class.
- Include relevant CDDB commands.
- Initial processing of CDDB data. Change device name.

This is close to be complete but I hit some cdda-fs bugs that need to be fixed
before I will finish this.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-11 00:55:42 +00:00
Jonas Sundström
28e8dc8e80 Move Url class out of /bin/urlwrapper into BPrivate::Support. I plan to add a Launch()-method that will make it useful to /bin/open, AboutSystem, People and other applications.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30702 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-11 00:48:03 +00:00
Jonas Sundström
13e9a630b9 Make StyledEdit check its open windows before launching a new one for an entry_ref. Simplify the application class somewhat by removing DispatchMessage() and replacing the custom made ArgvReceivedEx() with a standard ArgvReceived(). Rely on BPath to take care of paths relative to the current working directory - don't do it manually.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30701 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-10 21:33:23 +00:00
Stephan Aßmus
7f33d2c159 I am trying to help a bit with the transition from IDE to ATA stack.
* Copied ide_adapter.h as ata_adapter.h in attempt to further
  separate the two stacks.
* Continued renaming stuff in drivers/bus/ATA.h
* Make all the busses/ata drivers include the new headers,
  specifically ata_types.h, ata_adapter.h and bus/ATA.h,
  they were all including ide_types and bus/IDE.h still
* Some renaming of global variables for coding style consistency
* Removed the promise driver from the build, it's not used on the
  image and I don't believe it compiled even for the old IDE stack.
* There is no more Command Queueing in the new ATA stack, so I
  removed the capability indication from the busses/ata drivers
  and ata_adapter.h.

The new ATA stack still boots fine on my computer and I proof-read
the diff like two times. Basically, this was a careful search&replace
job only. The only things I am not sure about is renaming some
publishing related strings, but it seems to all work fine.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30700 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-10 17:04:04 +00:00
Oliver Tappe
8365643720 * dead keys can now be enabled/disabled via middle mouse button
* fDragKey must be reset in MouseUp() as otherwise it is not possible to
  drag a key from one keymap to the textview and then from the textview to the
  same key of another keymap
* _HandleDeadKey() now ignores modifier keys as otherwise dead keys that
  required pressing a modifier (like the tilde on the German keyboard) failed 
  to highlight the resulting characters
What's still missing is a way to edit the resulting characters for each dead key, but I am not yet sure how to do that in an elegant way

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30699 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-10 13:47:54 +00:00
Oliver Tappe
6f260d075b Fixed two bug(let)s in BTextView that I encountered when working on the
Keymap preflet:
* obscure the cursor only if the textview has the focus
* initiate a drag not only if the cursor has moved to another index, but also
  when the cursor has moved more than three pixels, since otherwise it was
  impossible to drag the first character to the left or top of the view
  (as the corresponding index was always zero)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30698 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-10 13:09:41 +00:00
Stephan Aßmus
b4dce77e73 * Repurposed the calculator icon. The icon only shows when the keypad is hidden,
so someone using it to trigger evaluation is highly unlikely, since he can
  just press return/enter. But when DeskCalc is embedded into the Desktop, it
  is convenient to clear the text view. (Clicking anywhere in DeskCalc already
  gives the text view focus.)
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30697 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-10 11:26:03 +00:00
Stephan Aßmus
1c0f89a7fd Fixed small coding style violations.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30696 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-10 11:21:24 +00:00
Stephan Aßmus
f04362eac3 * Change the drivers that use the ATA stack (ata_adapter) to publish
themselves in busses/ata instead of busses/ide.
* Re-introduce Francois change to install these drivers in busses/ata
  when building with HAIKU_ATA_STACK = 1.
* Adopted the device manager to look for drivers in busses/ata
  additionally to busses/ide.

This change works fine with a clean installation on a computer where I can
(and indeed have to) use the new ATA stack.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30695 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-10 09:22:35 +00:00
Stephan Aßmus
8f014243f3 Fixed indentation
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30694 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-10 09:13:44 +00:00
Stephan Aßmus
270b97c8ab Added tracing facilities and more tracing in some error code paths.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30693 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-10 09:12:49 +00:00
Stephan Aßmus
874f5afe32 Removed this old code left-overs. I've looked through everything and AFAIKT,
every code has been moved to and adopted in the new Disk Device API backend.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30692 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-10 09:07:21 +00:00
Stephan Aßmus
3641abdf0f Whitespace cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30691 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-10 09:02:13 +00:00
Stephan Aßmus
7ba970b9cc Added optional tracing facilities.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30690 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-10 09:00:19 +00:00
Philippe Saint-Pierre
91ad692e57 Make ScrollToSelection() use "Contains" rather than an "Intersects" to determine if it should scroll.
This make the end key work (trigger the scroll) if the last item is overlapping the bottom boundary.

This fixes bug #1820.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30689 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-10 04:04:06 +00:00
Philippe Saint-Pierre
e3bf105abf When adding a new view in Activity Monitor, make sure the new view use the same refresh interval as the already existing views, to avoid having different refresh intervals active in the monitor.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30688 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-09 23:46:44 +00:00
Philippe Saint-Pierre
db75c41bf8 This adds a Text Size menu to increase/decrease the size of the font.
This follows the enhancement suggestion #3203.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30687 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-09 22:48:22 +00:00
Jonas Sundström
301d5cab23 Adding URL mime types. An application listing support for such a mime type signals being able to receive such a URL via argv. Each URL mime type is meant to have an application set as the preferred handler.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30686 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-09 20:19:57 +00:00
Ingo Weinhold
2d11730a27 After setting the model resize the table columns to their preferred sizes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30685 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-09 18:48:45 +00:00
Ingo Weinhold
3688802f19 Added ResizeColumnToPreferred() and ResizeAllColumnsToPreferred().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30684 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-09 18:48:01 +00:00
Ingo Weinhold
d571c5835d * Introduced methods ResizeColumnToPreferred() and
ResizeAllColumnsToPreferred().
* Automatic white space cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30683 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-09 18:47:19 +00:00
Ingo Weinhold
b8b22908a4 Pulled common base class AbstractTable out of Table and TreeTable.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30682 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-09 18:30:20 +00:00
Ingo Weinhold
ff74dc2e8b Search the license files in the standard user/common/system licenses
directories.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30681 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-09 17:00:41 +00:00
Ingo Weinhold
9f463a1917 * ThreadActivityData::GetSamples():
- When guessing the initial thread state for an unschedule event also check
    the previous event, so we can decide whether the thread is still ready.
    Previously the time to the first schedule event could be accounted
    incorrectly.
  - Made the main loop a bit more robust with respect to unexpected thread
    states.
* The check boxes for latency and preemption time were labeled the wrong way
  around.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30680 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-09 16:09:57 +00:00
Philippe Saint-Pierre
51e404fde5 Fixed the initial size of the DeskCalc window.
For some reason, it was resizing the window to the size of the dragger frame :-) (the frame variable was reused to a different purpose)

Fixes ticket #3896


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30679 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-09 15:22:52 +00:00
Ingo Weinhold
11f2f57fd9 Removed/commented out debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30678 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-09 15:17:06 +00:00
Ingo Weinhold
6b5090f2f6 When copying attributes only, it suffices to open the target read-only. Fixes
the image build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30677 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-09 12:39:33 +00:00
Stephan Aßmus
04080048df Use a BShape do draw the chart lines:
-> Significant speed up, since there is much less app_server communication.
-> Much improved looks, since the line is now drawn as one connected line.
   The StrokeLine(BPoint to) version cannot do this.
Hope I am not interfering, Ingo!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30676 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-08 20:20:21 +00:00
Axel Dörfler
a786c139ef * Removed the work-around that allowed to open directories read/write.
See ticket #3875.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30675 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-08 14:48:51 +00:00
Axel Dörfler
9532f6844f * Removed the "cd" to home in /etc/profile, made sure that Tracker/Deskbar are
started from /boot/home. This closes ticket #3090.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30674 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-08 14:29:29 +00:00
David McPaul
e5d9cba691 They seek him here, they seek him there.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30673 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-08 13:04:27 +00:00
Axel Dörfler
5561b695a1 * Fixed a typo that prevented the right context menu copy action to work
on directories. See ticket #3575.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30672 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-08 10:14:25 +00:00
Stephan Aßmus
b8435574d1 * Currently, it's always supposed to be busses/ide. All the drivers there
publish themselves in busses/ide, so you cannot just move them to busses/ata
  without changing that in the source as well. The object files are still built
  in the separate busses/ata under generated.
* src/system/kernel/device_manager/device_manager.cpp also hardcodes
  busses/ide in two places.

I tried changing all of this to add busses/ata, but my system remains
unbootable with the new ATA stack. I do have another system, and because
of the previous mixup in HaikuImage, there it installed the drivers in
busses/ide when building for the new ATA stack (by mistake), but those
drivers actually publish themselves in busses/ide, so this system actually
boots with the new ATA stack, because of the mixup. Therefore My change here
to install into busses/ide for either stack should be correct for now and should
actually fix building the *old* stack.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30671 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-08 09:53:21 +00:00
Axel Dörfler
35e29efeef * Messed up IsFontUsable(), this closed bug #3895 if I understand diver
correctly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30670 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-08 07:14:18 +00:00
Ingo Weinhold
639e61ad42 Added checkboxen for toggling the displayed data.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30669 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-08 02:13:48 +00:00
Ingo Weinhold
ba8490bedf A check box with a small color indicator.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30668 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-08 02:12:07 +00:00
Ingo Weinhold
25398949d1 Invalidate() when removing a data source.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30667 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-08 02:10:39 +00:00
Ingo Weinhold
89c7f409e9 Squashed TODO in Chart::_UpdateScrollBar(): We set both scroll bar range and
value -- make sure to ignore feedback when setting the range (happens when the
old value doesn't fit the range anymore). Fixes unexpected jumps when zooming
out.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30666 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-08 01:22:58 +00:00
Michael Lotz
aaeffcf7a6 Adding missing license headers.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30665 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-07 22:23:14 +00:00
Michael Lotz
e7fcf08d76 Adding a complete HID parser and report handling facility. This is generic code,
so should be reusable for bluethooth HID as well (which is the same). The only
missing part so far is the logical collections that would allow nicer
enumeration of the report structure but is otherwise not useful. It should
support all of the HID specs except for usage aliases (even long items that
aren't actually defined should just work if they ever are). Not integrated into
the USB specific device framework and there are no actual drivers making use
of provided functionallity. The parsing was tested and works for all of the 3
devices I had available, but actual interpretation of data is not tested as the
driver side is missing. Will close that gap as a next step and then port the
mouse and keyboard drivers to that framework. Eventually a generic driver that
makes unknown fields available to userland apps in some way should be fairly
easy to implement with that.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30664 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-07 22:16:50 +00:00
Axel Dörfler
99d1bfb5de * The code in fs_walk() duplicates the one in ISOReadDir() mostly, and suffered
from the same "associated file" problem as the latter. This now finally fixes
  bug #3861. This badly needs some cleanup.
* Fixed a possible problem I introduced in ISOReadDir() (did not read the next
  block even if it should have).
* Fixed warnings with debug output turned on.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30663 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-07 21:38:56 +00:00