Commit Graph

28071 Commits

Author SHA1 Message Date
Adrien Destugues
63b04e111b Updated msk and related mii to current freebsd head.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33716 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 20:37:18 +00:00
Adrien Destugues
e78ad19f6b Added new methods introduced in freebsd head that encapsulate macros to allow better binary compatibility if the locking way ever changes. These are not really useful, but needed for newer drivers sourcecode.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33714 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 20:26:40 +00:00
Oliver Tappe
32c8ab89a9 * added _TabExpandedStyledWidth(), which makes sure to expand all tab chars
during the width calculation
* used _TabExpandedStyledWidth() at all places that need to expand tabs,
  fixing #4822
* removed _StyledWidthUTF8Safe() as it didn't make sense - we now perform
  the same auto-scrolling horizontally as we do vertically


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33713 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 19:09:20 +00:00
Oliver Ruiz Dorantes
ee739a2777 Tab for spaces
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33712 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 18:10:12 +00:00
Axel Dörfler
d4563f903d * Use kprintf() instead of dprintf() in KDL.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33711 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 18:03:07 +00:00
Adrien Destugues
98c24e6fd3 Added lithuaninan locale done by Algirdas Buckus. Thanks !
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33710 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 17:31:33 +00:00
Axel Dörfler
e7baaab3ae * "sc" and "call" will no longer ignore if they couldn't find the thread you
asked them for.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33709 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 17:08:52 +00:00
Axel Dörfler
1192454dfc * Enabled and simplified the "double click team to front" feature, as it
actually works under Haiku (with a caveat, as there is apparently an
  app_server bug that prevents that most of the time).
* Simplified ExpandoMenuBar::MouseDown().
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33708 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 15:51:59 +00:00
Michael Lotz
6c4570c807 Also name these BLockers.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33707 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 15:29:31 +00:00
Michael Lotz
1d984896da Name the lockers to be able to identify them when debugging/analyzing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33706 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 15:27:22 +00:00
Michael Lotz
6fb91db708 We didn't acquire/release a BSound reference when playing using a BSoundPlayer
which lead to #4825.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33705 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 15:20:37 +00:00
Axel Dörfler
1c7348a787 * Moved the window item sort logic as static method into the TWindowMenuItem
class.
* Changed ExpandoMenuBar to use that logic as well, so that your entries will
  always keep the same sort order.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33704 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 13:59:55 +00:00
Oliver Tappe
b18f133db3 generally overhauled non-wrapping mode of BTextView, as it was considerably broken:
* switching from wrapping to non-wrapping mode triggers a recomputation of
  the text rect
* non-wrapping mode now triggers updating of the data rect for the horizontal 
  scrollbar as needed, fixing #4705
* corrected a couple of width computations that confused bounds and text
  rect width, leading to drawing artefacts at the end of a line
* unified computation of text rect width to always take all lines into
  account (not just the first one)
* some cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 13:42:25 +00:00
Oliver Tappe
3ee51068f7 * added helper method MaxWidth() to BTextView::LineBuffer
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33702 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 13:06:06 +00:00
Axel Dörfler
5441423d49 * Obviously, CalendarMenuItem.cpp was still part of the build, even though it
wasn't in use for quite some time anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33701 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 13:05:02 +00:00
Axel Dörfler
dd8bedc1a9 * Removed the CalendarMenuItem class as it's not used anymore.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33700 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 12:03:09 +00:00
Axel Dörfler
c5c6248e3d * Got rid of the _SHOW_CALENDAR_MENU_ITEM, and _SHOW_CALENDAR_MENU_WINDOW
defines - it's always in, and I don't think it makes any sense to make this
  an option (since it just uses a system widget).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33699 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 12:00:56 +00:00
Axel Dörfler
733ca9bd93 * Made the font size depend on the be_plain_font size, instead of a hard coded
one.
* Some coding style cleanups.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33698 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 11:30:21 +00:00
Axel Dörfler
a406b1e625 * When switching the workspace while moving a window around, that window got
added to the window list without considering its frontmost window. That caused
  problems with all feels that were always on top, like
  B_ALL_WINDOW_FLOATING_FEEL. This was causing bug #4700.
* Disabled the "previous window keep keyboard focus" heuristic - it doesn't
  really work that well. There should be a central mechanism that detects active
  typing that could also be used to disable touchpads.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33697 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 10:14:09 +00:00
François Revol
ff4169d224 Add checkitout to the build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33696 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 10:06:31 +00:00
François Revol
265078a6df Introducing CheckItOut: a small urlwrapper spin-off that handles SCM urls and checks them out for you where you want them.
Supports git: for now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33695 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 10:05:47 +00:00
Axel Dörfler
823808b52b * If you only want to search in text files, TextSearch will now guess the MIME
type if a file doesn't have one yet (and set it), instead of ignoring it
  completely.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33694 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 09:47:26 +00:00
Axel Dörfler
10075eae29 * Fixed search history: chicken and egg problem - it couldn't save the history
if it couldn't load it.
* Shortened license text.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33693 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 09:27:13 +00:00
François Revol
69955dd988 Add a --name argument to preset the name of the file to save.
I should probably use getopts() here...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33692 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 08:33:17 +00:00
François Revol
80351b4d41 - this should fix gcc2 build, sorry ;)
- style fixes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33691 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 08:21:53 +00:00
François Revol
223ae47d99 Extend the Ctrl-Alt-arrows shortcuts to also move the current window when shift is held, as on Gnome.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33690 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 23:45:18 +00:00
Michael Lotz
35e7c9642f Fix dirent handling. The d_reclen field contains the size of the whole record,
so it includes sizeof(dirent).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33689 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 22:52:35 +00:00
Adrien Destugues
b7c0cbd2f3 Bulgarian locale done by cssvb94. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33688 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 21:40:08 +00:00
Adrien Destugues
746499889c Italian localization done by Andrea Bernardi. Thanks !
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33687 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 21:25:13 +00:00
Adrien Destugues
207836f1b1 Added ukrainian catalogs, done by Alex Rudyk aka totish. Thanks!
--Cette ligne, et les suivantes ci-dessous, seront ignorées--

M    src/preferences/appearance/Jamfile
M    src/preferences/locale/Jamfile
M    src/preferences/bluetooth/Jamfile
M    src/preferences/cpufrequency/Jamfile
A    data/catalogs/preferences/appearance/ua.catkeys
A    data/catalogs/preferences/locale/ua.catkeys
M    data/catalogs/preferences/locale/fr.catkeys
A    data/catalogs/preferences/bluetooth/ua.catkeys
A    data/catalogs/preferences/cpufrequency/ua.catkeys


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33686 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 21:16:35 +00:00
Axel Dörfler
2edf7c4687 * I just checked, and BeOS actually does not update the query this way - this
must have been my very own stupid idea. It's removed now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33685 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 21:03:11 +00:00
François Revol
071d565cb5 Add missing api_version.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33684 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 20:07:02 +00:00
Axel Dörfler
6f8b6a0dfd * When an item was deleted, the order of the attributes decided whether or not
one or two remove messages were generated, as the query code produces
  remove/create notifications on renames. Will check next if that also happens
  on BeOS, as it doesn't really make much sense.
* This should fix the wrong mail count of the Deskbar replicant when you delete
  mail.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33683 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 20:06:46 +00:00
Stephan Aßmus
f5e3b4741a Applied patch by gamblore, which adds a Local mode to CodyCam and resolves ticket #3395. I've extended the patch to disable the FTP controls in Local mode and fix bugs which prevented this from working correctly. Some coding style fixes as well... Thanks a lot, gamblore!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33682 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 19:58:12 +00:00
Michael Lotz
432cc51cc7 Add small but very important missing detail. Before blocking it didn't set the
wait status and therefore would return directly without actually blocking.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33681 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 19:05:35 +00:00
Axel Dörfler
95087bc532 * Center window on screen on start.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33680 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 15:20:46 +00:00
Stephan Aßmus
78a6097283 Do not crash when a node tries to change the format during runtime, as long as
this is actually not implemented.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33679 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 14:14:00 +00:00
Stephan Aßmus
fa1a1c2980 All sorts of refactoring with regards to the audio node and format setup. At
first I tried adding support for changing the format during running the node
connection, but later found out that this is not implemented in the system
mixer (it has this weird setting to allow input format changes, but if you
do this, the media_server will just crash, since the backend does not support
it yet). Also, the Media Kit documentation is extremely lacking in this regard.
I ended up re-establishing the node connection when the audio format is
supposed to change, just like it is already done for video. This means that
audio files now play with their native channel count and frame rate. But it
isn't so well tested yet, if 48 kHz for example introduce some clicks. The
channel count should not be a problem though, I've also tested that with some
movies and it works fine.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33678 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 14:12:12 +00:00
Axel Dörfler
56376843c1 * Added command line application to use live queries. Useful for testing why
the new mail count is off that much on mail removal.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33677 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 09:59:09 +00:00
Axel Dörfler
99113e07df * Fixed Twitcher's arrow drawing glitches as described in ticket #4704.
* Unfortunately, there are remaining issues, but this is something I need to
  discuss with Stippi: B_OP_COPY does not work as expected due to anti-aliasing
  anymore, but there is no replacement one could possibly use to get the desired
  effect without having to clear the background every time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33676 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 01:45:04 +00:00
Axel Dörfler
3637e0e057 * Fixed double indirect ranges again: I've messed them up when I tried to make
them more BeOS compatible while still keeping them somewhat flexible.
* _GrowStream() did actually not check if the double indirect region was already
  filled up - this caused it to overwrite innocent memory. This fixes the bug
  Rudolf showed me on this laptop that happened while copying a large file.
* Loosened file size restriction on a heavy fragmented disk: the indirect block
  does not require a minimum array size anymore; before, you just couldn't let
  a stream grow into the indirect range if it couldn't allocate NUM_ARRAY_BLOCKS
  (4) blocks in a row. This considerably reduced the maximum file size in this
  case.
* Removed no longer valid TODO.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33675 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 00:29:11 +00:00
Axel Dörfler
aeb099b317 * Added a very simple way to fragment your disk.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33674 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 00:23:53 +00:00
Axel Dörfler
234d8e02b7 * Added ioctl command to quickly access some debug functionality in an FS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33673 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 00:18:32 +00:00
Oliver Tappe
4d09ea0d3a * restoring zip file I garbled in r33658
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33672 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 23:50:55 +00:00
Oliver Tappe
571d840abf * dropped svn:keywords property from all files that carried it
to avoid recurring problems during migration of subversion checkouts
  (restored binary files that were garbled by subversions during checkout)
* added appropriate svn:mime-type property for problematic (binary) files
* removed a single (mistyped) svn:mimetype property 
* dropped svn:eol-style property for cleanup (they all contained 'native')



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33670 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 22:42:52 +00:00
Axel Dörfler
9d3ca457dc * Restored forcing the post2 PLL divisor for display B. This should fix all
remaining problems introduced with r33633.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33669 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 22:34:08 +00:00
François Revol
cad8f65d22 m_getcl() can return NULL, so check for it. This would have spared me a KDL. :p
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33668 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 21:44:44 +00:00
Stephan Aßmus
0161825261 Fixed an annoying problem with the scroll bar repeat feature. If you clicked
a button or within the bar background within the timeout for the repeat-thread,
the thread would exit and there would be no repeating. I think there is still
a race condition somewhere since I managed to see it stall once again, probably
because it locks the looper twice in the loop...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33666 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 20:40:15 +00:00
François Revol
e19e3efd0d A test app showing that at least on R1/alpha1 there is a deadlock when quitting an BApplication started from another thread.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33665 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 20:37:45 +00:00
Clemens Zeidler
7f6d3afb1d Add ns_handle_to_pathname acpi function to the acpi module.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33663 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 19:00:26 +00:00
Stephan Aßmus
52a90fe6be Solved a few problems at program exit. The window needs to lock the playback
manager and inform it that the video target, ie the view will be gone. The
Controller needs to use the SetTo() method in order to actually close down
the nodes properly in the destructor. Otherwise asynchronous threads will use
the BMediaFile and tracks after it has been deleted (until the NodeManager
destructor is executed).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33662 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 18:27:48 +00:00
Stephan Aßmus
9e43353ce5 The media_server signature is actually defined.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33661 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 18:24:51 +00:00
Stephan Aßmus
169bcbe7c0 Most simplistic support for 5 channels. Not actually tested. Uses the first
two channels of five and ignores the rest.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33660 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 18:24:11 +00:00
Stephan Aßmus
15477ca556 Small cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33659 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 18:23:10 +00:00
Oliver Tappe
3287ee32c2 * trying to understand and recover a svn:kweyord problem that might have corrupted this file
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33658 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 18:13:20 +00:00
Stephan Aßmus
e445909631 Fixed a few problems with extracting the output audio buffer size and setting
it in the media_format (encoded versus raw).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33656 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 16:31:14 +00:00
Rudolf Cornelissen
b793b9cbd0 added dithering support for DAC1. Dithering is enabled for digitally connected panels on DAC1 on laptops. This should remove the 'colorbands' displayed previously on gradients. Bumped version to 1.06.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33653 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 10:33:01 +00:00
Michael Lotz
b5addd82d7 axeld:
Restore ignoring the BIOS provided width and height in case the timings
suggest a bigger dimension. Also re-add the corresponding comment. Should
fix #4810 and might affect #4807 as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33652 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 09:06:10 +00:00
Axel Dörfler
86860a0c07 * debug_printf() from userland actually only worked if serial debug output was
turned on. That should explain Bruno's problems to get debug output from an
  accelerant. Thanks to Michael for the hint!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33651 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 08:32:38 +00:00
Scott McCreary
f1b1e2fc9a updated freetype to 2.3.11
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33650 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 07:03:46 +00:00
Axel Dörfler
39e3058e5b * Reverted r33643 - while it doubled the performance for my test case (with
high contention of the read lock (I experimented with the VM page mapping
  lock)), it actually hurt the compile performance pretty obviously.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33647 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 00:16:54 +00:00
Jérôme Duval
095a7d8415 using chroot with a mount point wrongly exposed the mount point name: we now avoid resolving the volume root in case we hit the IO context root.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33645 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-18 22:58:29 +00:00
François Revol
58bcc3862a Fix the build (missing headers).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33644 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-18 20:16:38 +00:00
Axel Dörfler
22ea088498 * The rw_lock is now using a mutex to protect its reader/writer counts. This
makes the reader case a lot less expensive, and should relieve the thread
  spinlock contention a bit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33643 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-18 19:52:09 +00:00
Axel Dörfler
b2a7fcb404 * Added an arch_debug_stack_trace() function that is called from the KDL loop
in case there aren't any KDL commands available yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33642 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-18 19:50:13 +00:00
Stephan Aßmus
16e2755608 I didn't realize the generated headers are re-used elsewhere and located like
that. But I didn't think of any better solution either... Hopefully these are
all, but I will find out once I built a complete image.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33641 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-18 19:20:10 +00:00
Stephan Aßmus
55b42c2b4d Patch by Pieter Panman:
* Rewrote Devices application. -> Thanks a bunch!! Nice work!
* Put Devices onto the image.

Changes by myself:
* Merge some code from the old "preflet" which the new app still relied on.
* Fixed some coding style issues. I didn't review all of the code yet, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33640 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-18 17:59:07 +00:00
Stephan Aßmus
cb42b864b9 Moved Devices from preferences into apps. (Trying to maintain history
on some files when applying the new Devices patch...)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33639 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-18 15:40:39 +00:00
Michael Lotz
b501a0387d anevilyak+korli+mmlr:
* Check for overflows in memory allocation. If someone happened to (erroneously)
  try to allocate a negative amount of memory we could overflow and crash
  because of the sizes getting messed up.
* Review and update the alignment logic which was a bit broken for the huge
  allocation case (reaching the area threshold). Also assert the results so
  next time this will be easier to spot.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33638 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-18 12:35:49 +00:00
Adrien Destugues
afa09c2103 Added hungarian catalog made by miqlas for fonts and locale. Thanks !
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33636 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-18 12:21:23 +00:00
Clemens Zeidler
c0e2df641b Disable tap click when sensibility is 0. otherwise very hard taps could still cause a click. This should fix #4669.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33635 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-18 10:40:19 +00:00
Axel Dörfler
795bd7a697 * The save_lvds_mode() function did not correctly support the i965 chipset -
I've now removed that code, and factored out a retrieve_current_mode()
  function that can work on head A and B.
* This fixes Adrien's flickering problem on his laptop - I can't find the
  bug ticket, though. Hopefully it does not break other laptop chips. Testing
  would be welcome, as I don't have any other machine here.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33633 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-18 10:03:01 +00:00
Clemens Zeidler
4740a17020 Some small cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33632 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-18 09:31:57 +00:00
Stephan Aßmus
b24366c6d8 Implemented focusing the Name property on pressing Command-E. (Ticket #2742)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33631 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 23:27:02 +00:00
Stephan Aßmus
df01744a4f Fixed missing return...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33630 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 23:25:32 +00:00
Stephan Aßmus
2a5ee87029 Implemented enhencement ticket #4799.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33629 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 22:46:27 +00:00
Rudolf Cornelissen
0ccd8732ac preventing DDC/EDID use if monitor reports native mode below VGA mode. This prevents the driver exporting a modelist with zero modes, resulting in black screen. Seen this at BG on Mark's old Neovo screen. Seems a DDC firmware bug inside the screen.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33628 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 21:31:55 +00:00
Marcus Overhagen
2ca5f51b08 Fix for ticket #4543. This fixes the ATA
timeout waiting for interrupt / device busy / status 0x58


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33626 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 20:19:02 +00:00
Adrien Destugues
6886b5bf6a Language names are now written in their own language, making it easier to find your own even if you mistakenly set your preference to something very strange.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33625 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 19:28:00 +00:00
Adrien Destugues
e983ba85e9 Move the Locale Kit catalogs in a common place in data/catalogs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33624 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 19:04:55 +00:00
Michael Lotz
8da446a982 The fModel member wasn't initialized.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33623 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 17:25:47 +00:00
Michael Lotz
b7204bd774 Make the swap hash lock into a rw_lock to reduce lock contention a bit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33622 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 17:24:59 +00:00
Axel Dörfler
20a11271d0 * Added a (to be virtual) DefaultItemSpacing() method to control look. This is
what you should use in for example BGroupLayout as spacing/inset.
* Changed the label spacing to be dependent on the font size, too (and enlarged
  it a bit as well).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33621 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 17:01:22 +00:00
Axel Dörfler
1c9ae94636 * The panel display_mode::flags field was not correctly set, preventing direct
windows from working, for example.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33620 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 16:55:18 +00:00
François Revol
6c21b53416 This should fix m68k build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33619 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 16:01:10 +00:00
François Revol
c9f536d7b1 Fix ARM build, thx Axel :P
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33618 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 15:26:58 +00:00
Axel Dörfler
e0d8627a73 * When you pressed ctrl-alt-del during the boot process, interrupts are disabled
when you enter arch_cpu_shutdown(), so you must not try to load the ACPI
  module to reboot. DaaT, that should fix the problem you showed me.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33617 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 14:59:26 +00:00
Axel Dörfler
25295d1ede * Removed mail & inbox icons. Unless someone really objects; I would consider
them pretty much useless.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33616 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 14:39:35 +00:00
Axel Dörfler
07dbd4d523 * Cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33615 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 13:08:58 +00:00
François Revol
8be612127e When debugging interrupt handlers is enabled, keep count of handled irq for each handler, to ease tracking which driver is unfriendly to others for shared irqs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33614 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 12:05:02 +00:00
François Revol
766c94da2a A simple driver to get to KDL from Terminal, since the hotkey is quite uneasy to generate from VNC...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33613 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 12:02:31 +00:00
Bruno G. Albuquerque
c93b59197b - Fix hdb build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33612 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 11:58:42 +00:00
David McPaul
ff67bc43da Cleanup and preparation for h264/aac in mov
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33610 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-17 04:57:01 +00:00
Axel Dörfler
676ef01ba7 * Applied patch by Hong Yul Yang to update linprog.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33609 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-16 12:13:07 +00:00
Axel Dörfler
98b4079944 * When using localtime_r(), you might have to call tzset() yourself (the exact
behaviour is not specified in POSIX). This fixes Mail sometimes not having
  the correct timezone.
* Since it's not specified, we might want to do that always on libroot init?
  We could introduce a syscall that keeps the already parsed data, if there
  isn't already to make this cheap.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33608 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-16 09:16:17 +00:00
Axel Dörfler
ec2719329c * Fixed timezones directory path.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33607 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-16 08:26:56 +00:00
Axel Dörfler
7840f0faf5 * Always add a timezone field to the date message, before that was only done
if there was an actual shift.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33606 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-16 06:33:41 +00:00
Jonas Sundström
18ba9ea5c9 Make use of BWindow::CenterIn() for placing the error alert. Partial clean-up.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33605 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 22:09:37 +00:00
Stefano Ceccherini
51f2ac8647 Fix build with gcc4
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33604 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 21:01:57 +00:00
Siarzhuk Zharski
4d81a7b601 -add broadcast flag to Rx Control register during start of device.
This solves the "1200-seconds paradox" sorced by ignoring the 
 "arp who-has" requests send as broadcasts.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33603 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 19:11:38 +00:00
Axel Dörfler
3e236885ab * Replaced C with C++ files, should fix BOM's build problem, but will likely
introduce new ones I currently cannot check.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33602 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 15:10:01 +00:00
Axel Dörfler
481e448812 * Removed a work-around for an older mail_daemon version that never made it
to Haiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33601 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 14:40:58 +00:00
Axel Dörfler
f802f04acf * Removed BONE PPP support.
* Coding style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33600 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 14:40:06 +00:00
Axel Dörfler
358b93352e * Moved SIGABRT to the signals that kill the process. Not sure if it's a good
idea to always send SIGKILL to the main thread, though. I'm not really getting
  more insight by reading the POSIX specs.
* Anyway, in the mean time, this fixes bug #4784.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33599 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 11:53:19 +00:00
Axel Dörfler
f1488adbf7 * While r33037 fixed the alignment of areas put into reserved areas, it actually
broke their placement at the end of the reserved area, which was the main
  reason #4778 happened so often (it would have been more hidden else).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33598 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 11:35:31 +00:00
Axel Dörfler
4124f4801b * Reserved areas would also be created in existing reserved areas in case the
space was becoming tight. This actually fixes #4778.
* Fixed overflow problem in find_reserved_area().
* Cleaned up the test app, added license.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33597 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 11:23:38 +00:00
Axel Dörfler
8f10aa5da6 * Fixed warning, the ROUNDUP macro is already defined.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33595 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 10:07:31 +00:00
Ingo Weinhold
e3a631c0b4 * Introduced interface UserInterface, which abstracts the user interface code.
* Added implementation GraphicalUserInterface for the current GUI.

TeamDebugger does no longer know about TeamWindow.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33594 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 09:47:24 +00:00
Axel Dörfler
4b6cb4f5ad * Added test application that easily reproduces bug #4778.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33593 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 09:30:48 +00:00
Axel Dörfler
3066f3dbf8 * Reverted r33547, this closes bug #4782 - this is obviously a regression in
GCC4.
* Adapted code accordingly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33592 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 07:48:31 +00:00
Ingo Weinhold
1851e9f3e0 * Added a stopped reason and additional info to Thread. ThreadHandler sets
both accordingly.
* The threads view shows the thread states now. Also added tool tips with
  additional info.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33591 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 04:40:33 +00:00
Ingo Weinhold
acb006cb55 Added TableToolTipProvider interface that can be set on a Table to easily
provide per cell tool tips.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33590 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 04:40:04 +00:00
Ingo Weinhold
c4a5ca9322 Added ReadMemoryString(), reading a string from the team's memory.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33589 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 04:34:59 +00:00
Ingo Weinhold
c6952b68f0 Use debug_exception_type for the exception type.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33588 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 04:33:26 +00:00
Ingo Weinhold
2fc49d9b36 Added ColumnAt(BPoint) version.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33587 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 04:31:42 +00:00
Axel Dörfler
780d2d5df7 * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33584 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-14 12:23:48 +00:00
Axel Dörfler
8e52aee982 * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33583 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-14 12:12:52 +00:00
Axel Dörfler
af7fec0304 * A small test application that shows that our abort() implementation does not
work correctly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-14 11:05:30 +00:00
Axel Dörfler
d5a396a60b * r33037 broke the handling of reserved areas, more specifically, it ignored
the RESERVED_AVOID_BASE flag of those, and introduced a way to fill them
  from the start. This caused #4778.
* Turned IS_VALID_SPOT() macro into an inline function.
* Removed already resolved TODO comment.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33581 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-14 07:53:45 +00:00
Axel Dörfler
ea95b4d03e * Cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33580 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-14 07:50:53 +00:00
Ingo Weinhold
9ea0d9494e Added BoolStringTableColumn for boolean values.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33579 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-14 05:04:36 +00:00
Ingo Weinhold
0fc8a75c02 * Moved TargetAddressTableColumn into own source file in gui/util.
* Fixed misspelled MSG_*_BREAKPONT constants.
* model/Team: Added separate event class UserBreakpointEvent for user
  breakpoints.
* SourceView::MarkerManager: Invalidate the markers when new source code is
  set.
* Added breakpoints view.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33578 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-14 05:03:00 +00:00
Ingo Weinhold
5f73bbcdce Don't crash on stack frames without recognized function.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33577 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-14 04:50:27 +00:00
Jonas Sundström
3363f0c5bd Clean-up.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33576 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-14 00:14:34 +00:00
Michael Lotz
23d857d96a Fix missing initialization of fSpacing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33572 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-13 12:58:06 +00:00
Axel Dörfler
c679d93a10 * Correctly evaluate the TMailApp::ShowButtonBar() setting. This fixes bug
#4706.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33571 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-13 12:46:30 +00:00
Axel Dörfler
273dbd0916 * The network syscalls now check if you try to pass a non-userland address to
them (which you previously could use to easily crash/take over Haiku).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33570 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-13 07:19:18 +00:00
Michael Pfeiffer
2044d20e91 Hopefully fixed gcc4 build (untested).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33568 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-13 05:36:56 +00:00
Ingo Weinhold
42d7d768ca Removed unintentionally introduced code. Spotted by Stippi.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33567 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-13 03:17:35 +00:00
Michael Lotz
417f446051 The parameter to toFixPtString() only controls the decimal places, not the
actual digits. Therefore the buffer was always too small leading to memory
corruption. Use the version that allocates the string for us instead, then trim
it and assign it to the result.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33566 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-13 02:48:17 +00:00
Michael Lotz
baddb6942c Check for user buffers and properly use user_memcpy() in that case. Fixes #4770.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-13 00:13:08 +00:00
Jonas Sundström
8637183adf Laid out views to fit better on-screen. Made it use BAboutWindow and BWindow::CenterOnScreen(). Partial clean-up of code I passed by. A few obvious comments removed. Hopefully an improvement. Still needs a lot of work.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 23:59:35 +00:00
Michael Pfeiffer
11209c604f * Fixed crash at cancelation.
* Simplified class LprSetupDlg using DialogWindow.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 20:01:09 +00:00
Axel Dörfler
361f5cdfaf * Build fix for the boot loader (it's now using the new utility functions as
well). Sorry!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33560 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 19:42:50 +00:00
Michael Pfeiffer
daff73b116 Correction for style issue fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33559 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 19:27:18 +00:00
Michael Pfeiffer
3d9c7baae6 Fixed style issues.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33558 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 18:48:47 +00:00
Michael Pfeiffer
fe017baf74 Fixed style issues.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 17:17:25 +00:00
Axel Dörfler
f9ca76e8c6 * Applied patch by "v" to enable the TUI mode in gdb, see ticket #4738.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 16:43:23 +00:00
Stephan Aßmus
c1b274fd67 * Removed auto mounter code from Tracker.
* Tracker forwards auto mounter related messages to the mount_server.
* Rewrote AutoMounterSettings to not know AutoMounter and use
  the layout-management.
* Moved the "Eject When Unmounting" setting into the Mount Settings.
* Launch the mount_server during boot, but delay the script until all
  previously mounted volumes have been mounted. This solves some annoying
  timing bugs during boot. For example when you have desktop backgrounds
  on other volumes and some servers don't deal well with the situation
  of links to add-ons on other volumes becoming valid with a delay...
* src/kits/tracker/Commands.h includes the private headers/private/
  mount/MountServer.h header, which made adjustments to the DiskUsage
  Jamfile necessary.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33555 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 14:52:17 +00:00
Axel Dörfler
6392fa4dc9 * Now stores signatures and status files to "~/config/settings/Mail/" instead
of "bemail".
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33554 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 14:47:16 +00:00
Stephan Aßmus
206761086b Extend waitfor to except the syntax -s app_signature and wait until
the team with the signature becomes a valid target for BMessages.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33553 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 14:44:40 +00:00
Axel Dörfler
5762cbce56 * Fixed typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 14:37:49 +00:00
Axel Dörfler
16a821d968 * Inode::FindBlockRun() now checks the block run size of double indirect runs,
and stops processing if it finds something wrong.
* The default indirect/double array size differs from BeOS' BFS. I've changed
  the size for double indirect arrays only, since the other size should work
  either way (not tested yet, this change has a negative effect on the maximum
  file size, but improves BeOS compatibility).
* The read/write path of BFS is now double indirect block size agnostic, and
  should work with what it finds.
* Merged all double indirect size computation into some utility inline
  functions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 14:37:21 +00:00
Axel Dörfler
265694bb1f * Fixed warnings when compiled with DEBUG=1.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33550 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 14:33:22 +00:00
Axel Dörfler
8e13fac960 * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33549 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 14:30:48 +00:00
Axel Dörfler
b74a098352 * Got rid of the duplicated functionalities provided by RWLocker.cpp, and
Locker.cpp.
* The services are now using recursive_locks, and rw_locks instead.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33548 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 14:29:05 +00:00
Axel Dörfler
fd111c8162 * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33546 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 13:59:59 +00:00
Axel Dörfler
31cce05240 * Removed useless tool.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 13:42:00 +00:00
Michael Lotz
3bb69a8235 * Use mutex and rw_lock and the proper AutoLockers as in the kernel version, as
these interfaces are now available.
* Don't be quite so paranoid by default, the checks that are on by default
  should be enough to detect most memory corruptions.

This makes the debug heap way more usable, so much that you can even use it as
your normal everyday heap without noticing much performance impact (it has quite 
a bit of additional memory overhead though).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 11:29:25 +00:00
Michael Lotz
93b63126e1 Adding mutex and rw_lock with the same interface as the kernel versions to
libroot. The mutex is a simple benaphore, the rw_lock is pretty much the same
as the one from libkernelland_emu but uses a mutex per lock instead of emulating
a global thread lock. Also added MutexLocking and RWLock{Read|Write}Locking and
AutoLockers based on them. It's cased with __cplusplus so the locks are also
usable from C. Everything's currently exposed in shared/private/locks.h but I
think we should make these locking primitves public.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 11:19:33 +00:00
Ingo Weinhold
d75e3d6c23 Ignore unnamed function parameters in the stack frame.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33542 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 03:17:17 +00:00
Ingo Weinhold
fced6d136a Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33541 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 03:16:11 +00:00
Ingo Weinhold
6c4cad54ed Added TODO.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33540 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 03:15:17 +00:00
Ingo Weinhold
a7fb35d93d When rows are added to/removed from the model, we need to adjust the row
indices we store in the fields of subsequent BRows. Fixes the broken threads
list in Debugger (should be some ticket -- can't access Trac ATM).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33539 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 03:14:34 +00:00
François Revol
30580df348 The checksum should be inverted.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33536 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 20:48:43 +00:00
François Revol
dc33329747 First attempt at an Amiga boot sector, not yet working.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 20:28:44 +00:00
François Revol
e6f2508262 A tool to calculate Amiga bootsector checksums.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 20:26:39 +00:00
François Revol
1631cac3e3 Cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 20:25:45 +00:00
Michael Lotz
55146dd7f2 Disable code by #if 0 to make it more obvious.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33532 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 19:20:00 +00:00
Michael Pfeiffer
e551fa9a9d Implemented ioctl USB_PRINTER_GET_DEVICE_ID. Using my printer it always
times out, though.  


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 18:20:21 +00:00
Michael Pfeiffer
7a12ec8bf9 Correctly calculate height of partitions list. Closes ticket #4745.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33530 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 17:45:57 +00:00
Bruno G. Albuquerque
891a50b2ae - Fix typo that broke the GCC4 build but not the GCC2 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33529 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 17:31:00 +00:00
Axel Dörfler
d0276ac85a * Changed the way BRoster launches apps by signature: before, only the version
info would decide which one to start. Now, this is only the last comparison
  taken into account: first, the search path will be checked, then, any apps
  in the /system folder are selected. Only after that, the version check will
  be performed.
* This should improve the choices made, especially when you have a second set
  of binaries around due to having built Haiku.
* This therefore also fixes that Haiku would wait for the wrong input_server on
  shutdown, as the registrar didn't (and rightly so) recognize the input_server
  as a system app since the wrong one had been started.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 17:05:28 +00:00
Michael Lotz
7ebd7cfc40 Add a vm_page_allocate_page_run_no_base. It bases its search on the pages found
in the free and/or clear queue. This performs better in the case where only few
pages are free/clear but performs worse in the case where there are a lot of
usable pages. It's not used anywhere but it might come in handy one time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33527 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 16:55:21 +00:00
Michael Lotz
7a4d60459e Implement combining scattered physical pages using seperate iovecs in
PageWriteTransfer. This makes the transfer accept virtually contiguous pages,
where the offset is contiguous on either end of the current transfer, but where
the pages aren't physically contiguous. It will then add seperate iovecs for
these pages (32 at max right now). This reduces the number of IO requests
generated and allows for optimizations down the IO path (like in the physical to
virtual mapping case for example).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 16:52:19 +00:00
Michael Lotz
303727515e Virtualize the buffers using IOBuffer::GetNextVirtualVec(). This removes the
need for the IO -> InternalIO indirection as it is always fed virtual buffers,
which simplifies things a bit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33525 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 16:50:50 +00:00
Michael Lotz
32e2b6a118 Provide a way to directly request virtual vecs from an IOBuffer. If the buffer
is virtual already it just returns the vecs directly, if it is physical it takes
over the task of virtualizing the vecs either using vm_map_physical_memory_vecs,
if there are multiple vecs or more than one page, or falls back to page wise
mapping if mapping fails or is not needed. In the best case, scattered physical
pages are mapped into one linear virtual buffer so that subsystems operating on
virtual memory only get a single vector and can then burst read/write.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 16:49:44 +00:00
Michael Lotz
44778a8a28 Introduce vm_map_physical_memory_vecs. It is like vm_map_physical_memory but
takes a list of iovecs describing the physical pages to be mapped. With it one
can map a set of physically disjoint pages into one linear virtual range. This
is a private API right now, but we might want to make it public as
map_physical_memory_vecs alongside map_physical_memory.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 16:48:03 +00:00
Michael Lotz
c443d19cd2 Tiny style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33522 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 16:43:20 +00:00
Michael Lotz
3e12a70b0d A disabled debug helper to visualize reads/writes and if they would have been
contiguous. Was used to optimized CD boot before the alpha release.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 16:42:21 +00:00
Axel Dörfler
6e6b0851ca * Applied (cleaned up) patch by Stefano to fix bug #4742.
* Note while this fixed running BeOS apps using BJoystick, it breaks all apps
  (and SDL) that have been compiled for Haiku R1/alpha1. It's really bad that
  r27171 went through unnoticed. We should really try harder next time (and
  try to get the ABI change detection script working in an automated way).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 16:40:12 +00:00
Axel Dörfler
18a16affab * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33518 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 15:28:19 +00:00
Axel Dörfler
a1a928319d * This should fix #4760.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33517 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 14:33:53 +00:00
Adrien Destugues
d572484dd5 Added swedish translation, done by Johan Holmberg. Thanks ! Also fixed an error in Locale French localization.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33516 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 13:09:04 +00:00
Axel Dörfler
2786236c21 * Added -l option (--long) that will also show the contents of the attributes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33515 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 12:52:23 +00:00
Adrien Destugues
759e8f0181 Japanese catkeys for appearance, done by the JPBE.net team. Thanks !
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33514 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 12:32:08 +00:00
Axel Dörfler
6ba60f6392 * Making mountvolume an application broke invocating it without any arguments.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33513 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 10:02:21 +00:00
Ingo Weinhold
e8e4e613b2 The variables view does now save/restore part of its state when the stack
frame changes. Currently that's only the expanded/collapsed state of the
items in the tree view, but that already makes single stepping through code
much less annoying.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33512 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 05:46:45 +00:00
Ingo Weinhold
9f018b7c77 Fixed typos and indentation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 05:40:51 +00:00
Ingo Weinhold
aa311fb590 More debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33510 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 05:37:51 +00:00
Ingo Weinhold
6d17ef0d59 TreeTable:
* IsNodeExpanded(): It always returned false due to a missing return.
* _SetNodeExpanded(): We must call our version of ExpandOrCollapse() or the
  listeners won't be notified.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33508 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 05:36:27 +00:00
Michael Lotz
1af7d11504 * Rework page writing to combine page writes where possible. For now the pages
are required to be physically contiguos, which should be reworked to put them
  into seperate iovecs. Still this manages to combine a great deal of page
  writes into larger bursts already. Reduces the amount of IO requests being
  scheduled (and greatly benefits media where page wise writes are slow when
  they are accessed through a non-IOScheduler path, i.e. USB mass storage until
  that is properly implemented).
* Abstracted per page page writing tasks into a PageWriteWrapper class.
* Abstracted per transfer page writing tasks into PageWriteTransfer class which
  formerly was the PageWriterCallback.
* Use both classes from the PageWriterRun and from
  vm_page_write_modified_page_range to remove code duplication.
* Adjusted synchronous VMAnonymousCache::Write() to cope correctly with larger
  iovecs and more than one iovec. It assumed that there was exactly one page per
  vector previously.
* Introduced MaxPagesPerWrite() and MaxPagesPerAsyncWrite() to VMCache to allow
  a cache to specify restricitions. VMAnonymousCache does restrict the max pages
  to 1 for WriteAsync right now as I didn't feel like reworking that one to cope
  with non single page writes just yet.
* Pulled out PageWriteTransfer methods for better readability.
* Some typo fixes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33507 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-10 22:37:26 +00:00
Michael Lotz
101da8e486 Typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33505 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-10 21:14:06 +00:00
Michael Lotz
0986056934 Fix two space to tab indents.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-10 21:10:46 +00:00
Michael Lotz
f3bd145c09 When the need for physical to virtual mapping arises because of emulating IO
reads or writes for old style drivers, map the physical memory at once. Since
USB is pretty much the only one affected and there small reads/writes are
exponentially slower, the performance gain of the burst transfer far outweighs
the additional overhead of the mapping. Still this could be further optimized
and will eventually be superseeded by also providing a physical memory API in
USB. For now it should bring back USB reads to an acceptable level. Writes are
still page wise though because of how writing back memory works in general.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33503 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-10 19:55:13 +00:00
Michael Pfeiffer
0855dececa Look into user settings add-on Print folder for printer drivers too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33502 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-10 15:12:28 +00:00
Michael Pfeiffer
afa7938a8d - Cleaned up usb_printer driver.
- Fixed issues sending data over USB bus (actually write data when
requested to; increased timeout when writing data).
- Added usb_printer to build and Haiku image.
- Sending data to printer over USB bus works now in Haiku (cat ... >
/dev/priner/usb/0). Not sure if it works when printing from an
application as I don't have a driver that supports my printer yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33501 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-10 15:08:58 +00:00
Adrien Destugues
c2dee74390 Added finnish localization for all locale aware apps. Done by Jaakko Leikas aka "Garjala". Thanks! (hope it does not breazk the build this time... worked for me but you never know :))
--Cette ligne, et les suivantes ci-dessous, seront ignorées--

A    src/preferences/fonts/fi.catkeys
M    src/preferences/fonts/Jamfile
A    src/preferences/appearance/fi.catkeys
M    src/preferences/appearance/Jamfile
A    src/preferences/locale/fi.catkeys
M    src/preferences/locale/Jamfile
A    src/preferences/bluetooth/fi.catkeys
M    src/preferences/bluetooth/Jamfile
A    src/preferences/cpufrequency/fi.catkeys
M    src/preferences/cpufrequency/Jamfile


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33497 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-10 10:01:11 +00:00
Axel Dörfler
75f5498c0a * Fixed two problems of the OR operator (||): if the first of the equations
failed to evaluate, the whole term was ignored. Also, if the left term got
  the higher score (and was thus evaluated first), the second term was never
  evaluated anymore. This should fix, for example, MDR sometimes not sending
  out pending mails.
* Minor cleanup, improved comments.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33496 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-10 09:33:52 +00:00
Ingo Weinhold
d054be0d8c * Moved the data location resolution methods from StackFrameDebugInfo to the
respective Type classes. StackFrameDebugInfo is pretty much out of work now,
  but maybe something comes up later.
* Renamed GlobalTypeLookupContext to GlobalTypeCache and renamed its methods.
* A TeamDebugInfo does now have a GlobalTypeCache which is used for resolving
  types. Formerly it was created per stack frame, so all types had to be
  resolved after each single step. Single-stepping is usably fast again.
  The disadvantage is that DWARF theoretically allows types properties to
  depend on instruction/frame/frame base pointer and we don't support that
  anymore. I can't think of a reasonable application for that feature, though.
* Refactored DwarfStackFrameDebugInfo:
  - Moved the type classes into new DwarfTypes.{h,cpp}.
  - Moved the creation of types into new class DwarfTypeFactory.
  - Added class DwarfTypeContext which bundles all the dependencies of the type
    classes.
* Made DwarfFile a BReferenceable.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33495 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-10 05:05:33 +00:00
Axel Dörfler
41983084e2 * Style cleanups, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33493 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-09 14:59:57 +00:00
Axel Dörfler
786fa7359e * Fixed drawing glitch with B_FANCY_BORDER.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33492 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-09 10:25:22 +00:00
Michael Pfeiffer
0a10f2b5b7 Added vector icon created by zuMi.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33491 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-09 07:00:01 +00:00
Philippe Houdoin
e0aefacfbb Add vector icons
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33490 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-09 06:08:22 +00:00
Ingo Weinhold
aa6f54aa24 Amended the {user,debug}_strlcpy() fix: Due to the strlcpy() semantics to
always return the source string length, we can't really prevent an overflow
of the source address.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33489 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-09 03:07:11 +00:00
Jonas Sundström
10e3075f26 Use layout-friendly view constructors. Fixes drawing glitch.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33488 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-07 23:03:10 +00:00
Stephan Aßmus
994b23564f Cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33487 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-07 19:32:21 +00:00
Stephan Aßmus
011a4cdbfc * Removed now obsolete notification (this was not even used in Tracker
anymore).
* Added interface to get the current settings.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33486 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-07 19:31:57 +00:00
Stephan Aßmus
2cfe13f4b9 Reverted accidental commit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33485 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-07 19:29:49 +00:00
Stephan Aßmus
21f2402e20 Work in progress of moving the (audo-)mounting functionality from Tracker into
a dedicated mount server. This is pretty much a straight copy from the
AutoMounter code from Tracker, except
* the eject on unmount setting has been added (in Tracker, it's part of the
  general settings, not the mount specific ones),
* scripting features have been added, such that it becomes possible to trigger
  mounting the previoulsy mounted volumes from the outside, and most
  importantly block until the operation is done (waiting for the reply).

TODO:
* Change Tracker to not run it's own AutoMounter, but send messages to the
  new server.
* Move the eject when unmounting setting to the mount settings window.
* Enable the mount_server in the Bootscript.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33484 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-07 18:34:29 +00:00
Axel Dörfler
db7e5d1960 * This fixes the coding style violations Michael recently introduced.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33482 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-07 16:32:26 +00:00
Axel Dörfler
931cd377aa * Added a new flag kAcceptKeyboardFocusFlag that allows B_AVOID_FOCUS windows
to still receive keyboard events. This is now used for menu windows (before,
  the menu feel alone would trigger that behaviour).
* This also fixes bug #4691, as tool tip windows use the menu feel as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33481 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-07 16:26:32 +00:00
Axel Dörfler
7f954bd566 * This makes event messages work again in the app_server test environment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33480 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-07 16:02:27 +00:00
Michael Lotz
0b4d87da22 Add missing word in comment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33479 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-07 13:29:19 +00:00
Axel Dörfler
3c9dd7d78f * Build fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33478 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-07 11:58:28 +00:00
Ingo Weinhold
71f75cdcde * WIP regarding non comilation unit local types:
- Introduced GlobalTypeLookup interface and GlobalTypeLookupContext to look
    up types by name and cache them.
  - TeamDebugInfo implementes GlobalTypeLookup iterating through all
    ImageDebugInfos, which in turn iterate through all SpecificImageDebugInfos.
  - DwarfImageDebugInfo iterates through all compilation units, using
    a temporary DwarfStackFrameDebugInfo to create the type.
  - DwarfStackFrameDebugInfo no longer caches the types itself, but uses
    GlobalTypeLookupContext. It uses GlobalTypeLookup to look up types not
    defined in the compilation unit.
  - DwarfFile: Made expression evaluation more robust, so that it also works,
    when no subroutine entry, frame pointer, and instruction pointer are
    available (and not used by the expression).
  Basically works already, although the wrong compilation unit might be used
  when resolving values for global types. It's also horribly slow, when there
  are many types in the stack frame.
* DwarfStackFrameDebugInfo::ResolveArrayElementLocation(): The element location
  piece size was set incorrectly (multiplied by 8, although bytes were
  expected).



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33477 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-07 03:17:22 +00:00
Ingo Weinhold
d48ea308bf The type component path for the first array dimension was constructed
incorrectly. We must only replace the last component of the parent's path for
all following dimensions.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33476 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-07 03:16:43 +00:00
Alexandre Deckner
047eef826e * Sorry, that was supposed to be multiple launch.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33475 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-07 00:24:19 +00:00
Alexandre Deckner
d12a4384f1 * Fixed closing via deskbar's close all. The problem was that i forgot to
define the app_flags in the rdef, case that isn't well handled apparently
when creating a BMessenger targeting the app.
Thanks to Michael and Rene for helping! Fixes #4712

* Removed unneeded and faulty App::MessageReceived and a strange (probably
 copy pasted then forgotten) MainWindow::QuitRequested.
* Minor changes. Made App destructor virtual, moved init into ReadyToRun,
 fixed a few style violations.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33474 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-07 00:12:25 +00:00
Jonas Sundström
60cdc210a8 Changing license from public domain to MIT, to ease code sharing with other parts of Haiku and to avoid the gray area of public domain. I hope it's okay. I made the app, but a few others have a contribute fixes here and there.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33473 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 22:57:35 +00:00
Jonas Sundström
a138b6339f Remove bitmap icon.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33472 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 22:46:44 +00:00
Oliver Ruiz Dorantes
515209e338 Merge view class in the window object
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33471 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 20:03:36 +00:00
Axel Dörfler
34eb485aea * Refactored the former touchevent_to_movement() code to get rid of the gotos,
and some code duplication.
* Fixed the missing click count in the former "movement" label (now in the
  move_to_movement() function); the click count was always 0 in that case,
  this was most obvious with Firefox where you couldn't click anything as long
  as you had a finger on the touchpad.
* Made the functions static that aren't exported to the outside.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33469 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 16:19:34 +00:00
Axel Dörfler
fc548b41f3 * Removed the pretty useless "Multifinger scrolling" option - it's now always
the same as the two finger scrolling option (could be disabled, too, opinions
  welcome).
* Added a new settings to disable horizontal two finger scrolling, since it's
  not that easy to only scroll in one direction with this. Maybe a higher
  starting boundary would also be an option for this instead, Clemens what do
  you think?
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33468 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 14:30:57 +00:00
Axel Dörfler
a75c97c3ad * Allow the scrolling steps to have values lower than 1.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33467 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 14:26:11 +00:00
Stephan Aßmus
df78ef39ab Removed BeOS version of the code.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33466 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 13:51:49 +00:00
Axel Dörfler
ab7516c8f3 * Fixed a dead lock when drivers were scanned: we must not hold the devfs lock
when scanning for drivers, as that reverts the standard locking order with
  locks like the device manager lock. There is now a dedicated scan_lock for
  each directory.
* get_device_name() now locks itself which also adds a missing lock in the
  B_GET_PATH_FOR_DEVICE ioctl().
* Minor refactoring; the directory init code was duplicated over several places
  in the source file.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33465 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 12:56:21 +00:00
Stephan Aßmus
ffc86bf32c * Fixed pixel-alignment of shapes at 32x32 and 16x16.
* Fixed shadow shape and improved opacity.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33461 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 11:44:34 +00:00
Stephan Aßmus
5a41c9fb17 Sorry, should have tested the patch first. Now it actually works as intended.
I.e. you need to hold down exactly Ctrl+Alt for the server side window
modifiers.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33459 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 10:13:33 +00:00
Stephan Aßmus
a1d5d23476 Applied part of a patch from Caitlin Shaw (coding style cleaned up!):
* Trigger server side window modifiers only if exactly those modifiers are
  pressed.
* Add the new window flags defined in Window.h to what the server considers
  valid flags. Otherwise the new flags important to the server (only
  B_NO_SERVER_SIDE_WINDOW_MODIFIERS) get filtered out.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33458 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 09:29:26 +00:00
Stephan Aßmus
a1a5c7b1d1 If this flag would already work on the real app_server, one could test it in
the libbe_test environment... the classical chicken & egg problem.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33457 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 09:25:58 +00:00
Axel Dörfler
c0f44af061 * Fixed PXE boot loader build again (hey mmu_man!).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33456 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 09:25:35 +00:00
Stephan Aßmus
936c6d6c7d Sorry, missed this from the GCC4 fixes for libbe_test.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33455 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 09:22:10 +00:00
Stephan Aßmus
b7b32111a0 Leave out the cool new remote screen feature from the libbe_test app_server.
Otherwise libnetwork.so needs to be dragged in, which has some issues.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33454 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 09:21:16 +00:00
Stephan Aßmus
50de4a5e00 GCC4 fixes when compiling the test environment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33453 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 09:19:57 +00:00
Stephan Aßmus
1fc35b4f46 * Small cleanups
* Declaring the structs doesn't work so well for the libbe_test target.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33452 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 09:18:47 +00:00
Axel Dörfler
3bf4730590 * Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33451 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 08:56:18 +00:00
Stephan Aßmus
902738e735 * Fonts is definitely not BeOS compatible anymore.
* Remove Fonts from the app_server test environment build, since liblocal.so
  is not yet part of that target platform.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33450 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 08:54:27 +00:00
Axel Dörfler
a8e3e8b563 * Added missing license headers.
* Coding style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33449 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 08:19:49 +00:00
Axel Dörfler
ede7c33d8c * Removed some superfluous parenthesis.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33448 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 07:52:09 +00:00
Axel Dörfler
f229f56702 * Made the ps2_synactics.h header stand-alone.
* Coding style cleanup.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33447 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-06 07:47:53 +00:00
Axel Dörfler
9bc8c04496 * Improved spacing between the check boxen and the "Edit menu..." button.
* Simplified BBox labels (yes, there is a SetLabel(const char*) version :-))
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33446 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-05 18:22:43 +00:00
Axel Dörfler
b4a7d0bcc6 * Do not forward the Command-~ to the apps, like with the other workspace
switching keys.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33445 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-05 16:16:36 +00:00
Axel Dörfler
32ebacf299 * Build fix... sorry, I could have sworn I compiled it before committing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-05 14:18:32 +00:00
Michael Lotz
81c431d23d Include the terminating 0 byte when adding as string type. Otherwise someone
reading the message as an actual string will run into problems.
Should fix #4697.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33442 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-05 13:38:27 +00:00
Axel Dörfler
821b62c231 * Fixed app signature.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33441 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-05 13:27:39 +00:00
Axel Dörfler
cc592ed1fa * Fixed coding style.
* Fixed bug introduced with the last change: since the mbox is dumped to
  stdout, it's not a good idea to print status messages there as well.
* In the long run, I think we should replace the two conversion tools with a
  (better usable) single one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33440 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-05 13:27:21 +00:00
Stephan Aßmus
7a842ef77c Check negative out-of-bounds index in BTextView::OffsetAt(). According to
#4707, this is the BeOS behavior. I have not checked myself and the BeBook is
very brief on this, but similar methods do trim indices to be in range.
Another alternative would be returning an index indicating an error (-1).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33439 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-05 12:46:26 +00:00
Axel Dörfler
08c63a2d6b * Print the actual command name, not a hardcoded obsolete one. Fixes ticket
#4719.
* Added license header.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-05 12:32:07 +00:00
Bruno G. Albuquerque
b69dfc85c8 BnetEndPoint::Send() should use BytesRemaining() as the amount of data to be sent, not
Size(). This fixes #4724.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-05 10:31:47 +00:00
Ingo Weinhold
8a71915a9d Made the {debug,user}_{mem,strl}cpy() and user_memset() functions deal with
address overflows. Apparently at least the x86 string instructions generate
a general protection fault instead of a page fault, and we only use the fault
handler in the latter case (maybe we should change that, too). Fixes #4714.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-05 09:54:40 +00:00
Ingo Weinhold
4401e83384 Use correct tracing macros.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33435 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-05 03:13:20 +00:00
Ingo Weinhold
e10cb2838b * ArrayIndexPath::SetTo(): Changed return type from bool to status_t.
* Finished support for retrieving and displaying array element values.
* Added work-around for pointer types, if the base type isn't specified in the
  debug info (as it should per specification).
* Added support for unspecified types, function types, and pointer to member
  types. All types relevant for C++ should be supported now. There are still
  quite a few TODOs, though.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33434 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-05 03:12:16 +00:00
Ingo Weinhold
bdfb434cba * Introduced common base class DIEArrayIndexType for enumeration and subrange
types.
* Added/fixed some accessors.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33433 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-05 03:11:41 +00:00
Ingo Weinhold
9cad16b96e Fixed drawing of the marker line backgrounds. They were off by the font
descent.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-05 03:11:04 +00:00
Ryan Leavengood
d159cdcf4e Apply patch from Caitlin Shaw to allow for smaller screensaver tick times that 50 ms.
This fixes #4628.

I added the TODO because I think this code is getting hairy.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33431 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-05 01:01:35 +00:00
Philippe Houdoin
a02fe27649 Added OpenGL classical gears.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33430 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-04 22:00:35 +00:00
Ryan Leavengood
7d9b05f10d - Move Scott McCreary to current maintainers list.
- Add Caitlin Shaw to contributors list.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33429 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-04 21:29:16 +00:00
Ryan Leavengood
0d77a112bc A patch from Caitlin Shaw (aka rogueeve) to fix #4715, some Terminal
improvements:

* fixed text for "Use Text" radio button in Find dialog being cut off
* more user friendly error messages for Find dialog:
   "no search string" becomes "No search string was entered.", or "Nothing is
   selected." as appropriate.
* Preferences dialog opens unacceptably slow when a larger number of fonts are
installed due to AppearPrefView's "IsFontUsuable" routine. But was able to
cut opening time by about half with a minor optimization to the loop.

* Fixed an ugly word-wrap of Takashi Murai's name in About dialog


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33428 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-04 21:21:40 +00:00
Ryan Leavengood
0eab14cd22 Apply patch from Caitlin Shaw, aka rogueeve, to fix Tracker's replace behavior
for the case of 1 file.

Fixes #4717.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33427 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-04 20:52:04 +00:00