25667 Commits

Author SHA1 Message Date
Rene Gollent
671eb7421d If I owed Axel a beer for every style violation, I'd quite likely be bankrupt by now...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30578 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 17:42:13 +00:00
Stephan Aßmus
6ed1dfa1b0 GCC4 build fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30577 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 17:31:24 +00:00
François Revol
5db3b6c9b3 Actually no need to pass the NULL either...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30576 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 17:23:54 +00:00
Stefano Ceccherini
c1f949908a get_device_hid() now has a 'size_t bufferLength' parameter, to avoid the risk of buffer overflow
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30575 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 16:04:15 +00:00
Oliver Tappe
10169155a9 * fixed one more gcc4 warning
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 15:41:48 +00:00
Oliver Tappe
89b5d39790 err, fix for my fix:
* its __GNUC__, not __GCC__, tsk!

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30572 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 15:00:44 +00:00
Oliver Tappe
6449afb193 fix gcc2 build:
* __gnu_cxx namespace is unknown to gcc2

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30571 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 14:58:41 +00:00
Rene Gollent
0d487f65e9 Move using directives into the cpp files so they don't leak into apps making use of the locale kit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30570 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 14:52:54 +00:00
Rene Gollent
cbb809dc42 gcc4 build fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30569 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 14:45:56 +00:00
Oliver Tappe
a0352959ac * followed advice by Rene to explicitly import the used std-classes instead
of simply importing the whole namespace - thanks for proofreading!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30568 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 14:28:32 +00:00
Oliver Tappe
3a268d9080 * applied several fixes to make locale kit buildable with gcc4, too
* actually, all those fixes were already contained in PulkoMandys patch,
  but I just missed that :-/


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30566 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 13:44:35 +00:00
Michael Lotz
5c3441b4a2 We are generally interested in those error bits so print them always.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30565 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 13:36:49 +00:00
Oliver Tappe
214cf2d02b * catalogTestAddOn was missing from LocaleKitTests
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 13:27:17 +00:00
Stephan Aßmus
c65cf0ae1a Fixed warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 12:31:53 +00:00
Stephan Aßmus
cb298dba15 Added Mark to list of contributors.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30560 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 11:04:40 +00:00
Ingo Weinhold
bfb8f4ca06 * BTabView::AddTab(): Call Select() only when already attached to the window.
It's only necessary in this case and apparently there are applications that
  rely on Select() not being called before the tab is attached to the window.
  Fixes #3852.
* Automatic white-space cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30558 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 10:24:06 +00:00
Rudolf Cornelissen
404077189c EDID test: only check on wired buses.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 10:15:30 +00:00
Rudolf Cornelissen
bb0ac35825 added partial DDC/EDID support using the accelerants common staticlibrary. Only dumping config, monitor info to logfile. logfiles are welcome as the CRTC/DAC to I2Cport relationchip is not known by me yet. Bumped version to 0.89.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30553 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 09:58:11 +00:00
David McPaul
4d97ad948b return LAST_BUFFER_ERROR when last buffer reached
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30549 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 04:32:01 +00:00
David McPaul
008c3af957 Now plays 2 out of 3 files and that is good yes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30548 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 04:29:36 +00:00
François Revol
95ba950511 Fix missing NULLs corresponding to io() and cancel_io() hooks which made all other calls shifted... This should fix #3500 and #3832.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30546 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 00:54:10 +00:00
Oliver Tappe
723383c0f4 Applied patch by PulkoMandy, adjusted and extended by myself:
* integrating most of the locale kit into the build (and image)
* removed LocaleBuild.h and _IMPEXP_LOCALE since that does not make
  sense for elf (which usually exports all symbols anyway)
* added a couple of locale kit related pseudo targets for convenience
Hey, some of that stuff already seems to work :-)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 21:56:16 +00:00
Ingo Weinhold
28b2684912 * StringChartLegendRenderer can now take a font on construction.
* Resolved TODOs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 21:26:56 +00:00
Ingo Weinhold
e062a32ba9 When there's an axis set the low color to the panel background. This causes the
axis legends to be antialiased against the right color.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30542 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 20:59:17 +00:00
Ingo Weinhold
02b4901e4c Removed obsolete ChartLegendRenderer::MaximumLegendSize().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30541 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 20:54:03 +00:00
Oliver Tappe
c3ac87e8fc * Copied imported OpenTracker Locale Kit files from the vendor branch
into their new homes (at least for now, might need some adjustment).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30540 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 19:23:59 +00:00
Alexandre Deckner
4465d9277f * Fix broken copy of a BString into a fixed size char[]. Input/output
endpoints names would be broken and "Save Nodes" would create a broken file.
 Open/Save nodes now works (again?) and endpoint names display correctly in info
 windows/views.
 
 That detail is fixed but it's the design of Cortex that's broken here really :)
 To be continued... some day


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30539 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 18:52:27 +00:00
Michael Lotz
c8d10a521f * Ensure that we don't clear a combined B_*_KEY as long as one of the
B_{LEFT|RIGHT}_*_KEYs is pressed for shift, command, control and option.
  This fixes bug #3841.
* Only send a B_MODIFIERS_CHANGED message when the modifiers actually changed.
* Minor simplification to only check for the lock keys once.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30538 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 18:43:57 +00:00
Rudolf Cornelissen
ce6115a180 added support for all HDTV modes video overlay for all GeForce cards that have overlay support. TNT1/2/2-M64 users remain in bitmap mode: the overlay engine there can't handle above DVD quality. Bumped version to 0.88.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 15:05:43 +00:00
Oliver Tappe
73af36d459 * maintain width of 80 chars per line
* automatic whitespace cleanup

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 14:27:52 +00:00
Oliver Tappe
5cc8dc2fe3 * unified application of style into a separate method _ApplyStyleRange()
in order to maintain the null-style appropriately, if required
* finally fix #3040 for real (a single style is now maintained at all times
  for non-stylable textviews)
* the caret is now being drawn with the correct size, even if it is on
  the empty line at the end of the buffer and a specific font size has been
  requested


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30532 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 13:59:13 +00:00
Rudolf Cornelissen
a6cde944e6 fixed (at least NV34) card hanging after failed boot-time kernel VESA modeswitch. Updated docs. Bumped version to 0.87.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 10:09:22 +00:00
Jérôme Duval
7a282f3b28 * combine MovePenTo() with DrawString()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30530 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 08:39:02 +00:00
Philippe Saint-Pierre
fadee6b0dd Make the CharacterMap start with a reasonnable window size on first
launch (without saved settings). As it was before, the window took all 
the space it needed i.e. each section was on a single line.  

Maybe a better way would be to just start it zoomed.

Maybe it fixes ticket #3752.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30529 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-30 23:52:59 +00:00
Ingo Weinhold
45febed680 Added the other three axes to the activity chart.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-30 23:52:35 +00:00
Ingo Weinhold
314f0e011f * Added a maximum size parameter to ChartAxis::PreferredSize(), specifying how
big the axis can maximally become. This helps to solve the chicken and egg
  problem that the axis can't compute a size without knowing what legends to
  use, which in turn requires knowing the size.
* Reimplemented LegendChartAxis accordingly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30527 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-30 23:51:43 +00:00
Ingo Weinhold
5664cf424e An axis legend source regarding the range as ordinary numbers and producing
string legends for them.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-30 22:58:55 +00:00
Ingo Weinhold
707b2f9a94 Cosmetical.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30525 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-30 22:53:47 +00:00
Ingo Weinhold
b8c273de21 Generalized the axis drawing code. All four sides of the chart area are
supported, now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-30 22:52:59 +00:00
Ingo Weinhold
d7c160d3e6 Take the one pixel wide border around the chart area into account when
computing the axes' frames.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-30 22:50:01 +00:00
David McPaul
ce487efa98 Slight performance optimisations
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30522 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-30 22:41:56 +00:00
David McPaul
527e8f9dd4 modfy debug a bit, no functional change
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-30 22:37:57 +00:00
David McPaul
2cbce7bb7a Add support for mpeg audio in wav format files
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-30 22:36:22 +00:00
Oliver Tappe
435455abc1 * textviews that aren't editable no longer perform cut or paste actions (again
reported by kirilla, thanks!)
* when tracking the mouse in order to detect drags, it is not necessary to
  check if the pointer is within the selection, as that causes problems when
  you e.g. click on the border of the selection and then move the mouse outside
  of it (we'd still want to initiate a drag in that case)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30519 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-30 20:19:43 +00:00
Oliver Tappe
c27ffb3a23 Fixed a bug reported by kirilla:
* the textview now only initiates a drag after the mouse has been moved to 
  another offset, making it possible to click into the selection in order to 
  position the caret at the offset corresponding to the point of the click
  (just as R5 does it)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30518 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-30 19:56:54 +00:00
Axel Dörfler
c39ecc608f * If getting a new port message failed, we must release the port's write sem
again, or else the port loses capacity.
* This fixes bug #2720.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30517 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-30 19:07:38 +00:00
Oliver Tappe
819c98a383 Fixing #3040 (DeskCalcs textview showing wrong/multiple styles)
* fixed crash in StyleBuffer::SetStyleFromMode() if any of the given pointers
  is NULL (which is perfectly valid)
* BTextView::SetFontAndColor() now syncs the null style before it sets the 
  range, thus making sure that there is only one style if the view is not 
  stylable

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30516 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-30 18:44:26 +00:00
Axel Dörfler
d5ad762913 Fixed several problems of the prefetching code:
* Did claim to have reserved pages when calling vm_page_allocate_page(), but
  didn't have any (copy&paste bug). We cannot use it without reserved pages,
  as we need to call vm_page_allocate_page() with a cache locked.
* No longer use low_resource_state() to determine whether to precache or not,
  but use the new vm_page_num_used_pages() instead.
* Also don't (try to) precache when the cache already has more than 2/3 of its
  pages to safe some unnecessary work.
* The size to precache was limited to the file size incorrectly.
* When precaching failed, the cache reference was not released.
* The precaching started one page too late, causing bug #3835.
* Reenabled precaching.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30515 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-30 15:53:41 +00:00
Axel Dörfler
2d8073a9dc * Added a TODO about a problematic use of vm_page_allocate_page() in combination
with vm_cache_acquire_locked_page_cache().
* Added new function vm_page_num_unused_pages() which returns the pages that are
  actually completely free and unused.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30514 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-30 15:46:55 +00:00
Jonas Sundström
bb048d75be Move Deskbar Restart and Shutdown options into a submenu and ask Registrar not to question the user's intent.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30512 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-30 15:31:50 +00:00