Commit Graph

29406 Commits

Author SHA1 Message Date
Stephan Aßmus
0c7085458e Make the partition ID check more flexible, if partitions just pop up out of
nowhere, we still want to be able to automount them, even though the
notification is not for a device.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30720 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-12 18:35:31 +00:00
Stephan Aßmus
be5788f81c Fixed a number of remaining problems with the AutoMounter:
* During boot, the mount mode was ignored for any removable volumes, they
  simply got mounted always.
* When automounting later, all partitions on all removable devices would
  be mounted, not only the ones on the newly inserted device.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30719 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-12 18:32:11 +00:00
Oliver Tappe
83936c1c26 * Added support for selecting the dead key trigger characters from a menubar,
offering two choices for acute and diaeresis as well as allowing to switch
  off each dead key completely.
* moved the textview on a line of its own such that the dead key menu and
  the modifier-switching button live together on one line
* added enum dead_key_index and used it at a couple of places instead of
  having to use the magic numbers 1-5
* refactored the actual updating of the fChars buffer from SetKey() into
  _SetChars(), which is now being invoked by SetDeadKeyTrigger(), too

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30718 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-12 18:31:17 +00:00
Ingo Weinhold
4d8f5338bd When sending a B_ARGV_RECEIVED message also add a "cwd" field.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30717 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-12 18:11:46 +00:00
Stephan Aßmus
3908951b11 * When inserting USB sticks, the read-only mount suggestion was completely
bypassed, same for invoking "Mount All". Now, the "initial scan" parameter
  is used to decide if the user should be alarmed. Basically, it means you
  get to decide for every mounted volume if you want it rather read-only.
In the old code:
- If you wanted a stick mounted read-only, you had to go to "Tracker Settings"
  and disabled auto-ejecting, unmount the stick, then re-mount to get it to
  ask you for read-only mounting.
- But then, it would remember this setting, so when you unplugged the stick
  and then replugged it, it would mount it read-only again. This may be nice
  for later, but for now, I want to decide if I am willing to take the risk
  each time.
* The new code also has the implication that when you plug a drive with more
  than one partition, you are being asked for each one. I extended the alert
  to also mention the partition name.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30716 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-12 18:03:36 +00:00
David McPaul
05f452c37c Implement SniffRef
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30715 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-12 14:27:26 +00:00
Michael Lotz
527e6eefef Do not free the descriptor chains and transfer queue head directly when
finishing transfers. The host controller might still be using some of those
structures. In the (unlikely) case that a freed memory chunk would be
immediately re-used and filled with new values this would lead the controller
to either find invalid values and assert a process error or it could follow
invalid list links leading to host system errors. We have to wait with freeing
until the controller processing the next frame to make sure this cannot happen.
The unlikely case should also have been the cause of bug #2481.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30714 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-12 01:55:15 +00:00
Michael Lotz
aaf7738499 Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30713 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-11 23:56:26 +00:00
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