Commit Graph

49425 Commits

Author SHA1 Message Date
Stephan Aßmus cb3dc4b2cf Uninitialized members CID 1162813 and 1162814 2014-01-22 17:41:51 +01:00
Stephan Aßmus 8db7af4f5f LaunchBox: Fixed uninitialized member CID 1162820 2014-01-22 17:41:51 +01:00
Oliver Tappe 68f8b94e2a Drop --remote-user configuration option again.
* as Ingo has pointed out, the remote user settings doesn't
  relate to the build configuration at all, so setting the
  remote user via HAIKU_REMOTE_USER in UserBuildConfig or
  via shell environment is the way to go
* additionally: drop debug output
2014-01-22 17:31:26 +01:00
Adrien Destugues e0d1cc186a BView: move ClipToPicture code to app_server
Now that DrawingContext makes it possible to draw on a ServerBitmap
without the need for a BView, we can replay pictures on app_server side,
avoiding the cost of creating a BBitmap, offscreen BWindow, and BView
from the application side.

The offscreen drawing context gets the same state as the view it's
rendering the picture for, so font size, drawing mode, etc are used.

The implementation is still the suboptimal one, converting the BBitmap
to a BRegion, and using that for clipping. Changing that comes next.
2014-01-22 17:30:12 +01:00
Adrien Destugues 70ebf47bab Add test for ClipToPicture
This draws a rect clipped by a text, and a text clipped by a rect. They
should look the same, but they don't because of lack of antialiasing
support in ClipToPicture.
2014-01-22 16:18:51 +01:00
Adrien Destugues c2dcc4d500 Get test_app_server to run again
* We should have the buildbots compile this to make sure it still works
* I had to split two ServerApp methods to a searate C++ file to link
them in libtestappserver.so
* some fixes related to the switch to PM and better hybrid support in
jam rules; moving of MIME stuff from registrar to storage kit, merge of
Locale Kit and ICU in libbe, and a few more.
* Modified the test_app_server hwinterface and rdef file so it is not a
background app, and the window isn't floating. Otherwise, hiding the
window would leave you without a way to recover it.
2014-01-22 11:12:22 +01:00
Oliver Tappe 86d7e28306 Add support for specifying remote ssh login user.
* add option --remote-user to configure, which sets HAIKU_REMOTE_USER
* add evaluation of HAIKU_REMOTE_USER variable when ssh-ing
  into git.haiku-os.org
2014-01-22 09:36:26 +01:00
Adrien Destugues 492ac4160a Fixes CID 1162805, 1162804, 1162773, 1162759. 2014-01-22 08:15:32 +01:00
Alexander von Gluck IV e1cb851018 mesa: update x86 packages to 10.0.2-2
* Revision bump goes from llvm-3.2 to llvm-3.4 internally
* mesa_swpipe gallium llvmpipe renderer is working again, enjoy!
2014-01-22 00:55:54 -06:00
Alexander von Gluck IV 1fe66815b7 mesa: update x86 packages to 10.0.2-1
* Fixes x86 primary side of #10456
* x86 secondary still needs rebuilt
2014-01-21 22:08:06 -06:00
Pawel Dziepak 5d79095e44 scheduler: Do not update load of disabled cores 2014-01-22 03:04:01 +01:00
Stephan Aßmus c9b30004b8 TextEditor: Dump the TextDocument on all edits for now. 2014-01-22 00:18:47 +01:00
Stephan Aßmus 04b0e36ac0 TextDocument: More fixes.
* Handle shifting the contents of the next paragraph into the preceeding
   paragraph if text up to and including the line break of the preceeding
   paragraph is removed.
 * Fixed removing the correct paragraph in the loop when it hits the last
   paragraph. (though that code is still untested)
2014-01-22 00:16:44 +01:00
Stephan Aßmus 5aabe5e88f TextDocumentTest: Give the text view initial focus. 2014-01-22 00:15:53 +01:00
Stephan Aßmus 5cad1e1cc9 TextDocumentLayout: Fixed finding the right paragraph for an offset.
It was not possible to place the cursor at the beginning of a paragraph
once they actually contain the \n at the end.
2014-01-22 00:14:09 +01:00
Stephan Aßmus 41889b59f3 ParagraphLayout: Refactored _GetEmptyLayoutBounds().
Even for an empty Paragraph, some meaningful bounds can be computed when
it contains an empty TextSpan. However, this is not yet achieved, since
no LineInfo is generated for such an empty Paragraph.
2014-01-22 00:12:11 +01:00
Stephan Aßmus b3299ecd73 Paragraph: Added simple PrintToStream(). 2014-01-22 00:10:49 +01:00
Stephan Aßmus 0e36794492 MarkupParser: Append \n to each paragraph. 2014-01-22 00:09:55 +01:00
Stephan Aßmus f944b405c4 TextEditor: Comment on up/down behavior for first/last line. 2014-01-21 23:02:19 +01:00
Stephan Aßmus 0cd95bf315 TextDocumentView: Don't blink cursor when not in focus. 2014-01-21 23:01:56 +01:00
Adrien Destugues 8e7d9c7245 Attempt to fix test_appserver build again.
There seem to be a problem with the architecture, when building for an
x86_gcc2 system things are generated in libbe_test/x86, and then fail
with a lot of undefined references. Help welcome.
2014-01-21 17:17:58 +01:00
Adrien Destugues 77bf4d8d51 Style fixes. 2014-01-21 13:59:35 +01:00
Adrien Destugues 2585a0c5c9 Fix build. 2014-01-21 12:31:28 +01:00
Adrien Destugues e1a301151f Introduce DrawingContext View superclass
In order to properly implement ClipToPicture in BView, we need to render
a Picture to a Bitmap. This is currently done client-side, but the
overhead for this (creating a BBitmap that accepts views, including a
window thread, adding a view to it, and rendering the picture to the
view, then sending the result to app_server) isn't acceptable. Moreover,
the bitmap drawn this way is clipped to the view size, and the clipping
won't work when the view is scaled or translated. So, we need to move
the Bitmap creation server-side.

However, app_server currently have no means of doing this. Factor out the
relevant parts of View: a DrawingState stack with PushState/PopState, a
DrawingEngine, and a ConvertToScreen transformation. Another implementation
of the DrawingContext will allow us to also draw a picture directly using
a Painter and low-level pixel buffer, in a format suitable for use as an
AGG alpha mask.
2014-01-21 12:05:59 +01:00
Pawel Dziepak ae81c98aaf intel_cstates: Fix integer division inaccuracy
Integer division could have result in an out of bound substate.
2014-01-21 04:18:20 +01:00
Pawel Dziepak d01fa1ffe3 scheduler: Always update core load at thread reenqueue 2014-01-21 03:50:26 +01:00
Alexander von Gluck IV bcbd6e6cfe intel_extreme: Fix crash of driver on multiple open
* open_count only got raised on initial open,
  subsequent opens didn't increment the counter
  thus when they exited the driver unloaded
  causing app_server to crash
* Thanks to hamishm for pointing out that
  the if checks the pre-increment number
* Resolves #10452
2014-01-20 20:51:46 -06:00
Alexander von Gluck IV 7b59f29e9e radeon_hd: Fix crash of driver on multiple open
* open_count only got raised on initial open,
  subsequent opens didn't increment the counter
  thus when they exited the driver unloaded
  causing app_server to crash
* Thanks to hamishm for pointing out that
  the if checks the pre-increment number
* Resolves #10452
* Add a kdl debug command to radeon_hd
2014-01-20 20:51:46 -06:00
Rene Gollent 701a5d6b79 Resolve #10435.
Adjust Database{Location} to only attempt to create a mimetype when
actually necessary, and fail otherwise if a writable version doesn't yet
exist. Correspondingly, adjust callers such as
DatabaseLocation::DeleteAttribute(). Fixes a problem where a caller asking
to perform a mimeset could fail early due to SetSupportedTypes() attempting
to update the read-only mime database entry supplied by a package, and
consequently most of the mimeset operations would be skipped.
2014-01-20 20:52:32 -05:00
Humdinger d56476656e Added menu item "Move to Trash"
Changed shortcut of "Show tool bar" to ALT+B.
Assigned shortcut ALT+T zu "Move to Trash", having the same as
e.g. Tracker and MediaPlayer playlist.
DELETE still works as alternative shortcut (if there's an active
selection, it will get unselected instead, as before).
2014-01-20 14:54:22 +01:00
Adrien Destugues a1fc792e37 Web+: handle about: URLs internally
Trying to open those using the MIME repo would lead to opening
AboutSystem, probably not what you expected.

Note that WebKit currently redirects all those URLs to about:blank. We
could implement some of them, if really wanted.

Fixes #9611.
2014-01-20 09:49:25 +01:00
Alexander von Gluck IV fd78b6df3f ppc: Modernize atomic.S.
* Stub out atomic_get_and_set. This needs completed.
2014-01-19 23:39:19 -06:00
Alexander von Gluck IV 24f0b1e29e libroot: Drop volatile in syscall atomic functions
* Per 077c84eb27, atomics are no longer volatile.
* Was changed in SupportDefs.h, but no one told libroot
  that it was no-longer volatile.
2014-01-19 22:31:37 -06:00
Alexander von Gluck IV 749a60bf39 ppc: atomic is no longer volatile per 077c84eb27 2014-01-19 22:14:28 -06:00
Alexander von Gluck IV 14919567d1 kernel: Add more architecture code post-scheduler
* Fix incorrect cpu vendor name mapping
* Add additional CPU architectures
* Add additional CPU vendors
* Rework PowerPC arch_system_info passing
  PVR back for cpu model
2014-01-19 21:53:56 -06:00
Pawel Dziepak e1720098c6 kernel: No need for arch specific ifdefs in arch/atomic.h 2014-01-20 04:09:17 +01:00
Pawel Dziepak 1a5afe0404 add-ons/kernel: Use UsePrivateKernelHeaders where appropriate 2014-01-20 04:09:12 +01:00
Pawel Dziepak 59b9b52aaf scheduler: system_time() may be unreliable
On multisocket systems as well as under virtual machines logical CPUs
may use separate TSC. We could attempt to synchronize them what probably
would solve problems on multisocket systems. Unfortunately, when running
under hypervisor there is still a chance that TSC will get out of sync
again (e.g. cpufreq enabled on host when there is no invariant TSC). As
long as we use RDTSC as our main time source the scheduler must accept the
fact that time may go backwards (what isn't really a serious problem).
2014-01-20 03:22:04 +01:00
Pawel Dziepak 73db12ab31 kernel: Align user_thread objects to CACHE_LINE_SIZE 2014-01-20 03:22:04 +01:00
Alexander von Gluck IV 88c54b5485 kernel: Rework ppc (and m68k) atomic functions post-scheduler
* Make atomic function more like current x86
* Remove fake fallback atomic code for ppc as hardware spinlocks exist
2014-01-19 19:33:21 -06:00
Alexander von Gluck IV c9e66bfc9b kernel: Add missing smp memory barrier calls. Set max cpu to 1
* Set max cpu to 1 for PPC until atomic functions are finished
* We have atomic functions inline in the kernel and assembly
  code in libroot post-scheduler merge... isn't that a lot of
  duplication?
2014-01-19 19:33:21 -06:00
Pawel Dziepak cf87df8ba3 libroot: Fix gcc2 build 2014-01-20 00:54:52 +01:00
Stephan Aßmus 22626dc027 TextDocument::Insert() fixed line break case.
* Always add back the second part of the split paragraph, even if it has
   a length of 0.
2014-01-20 00:50:38 +01:00
Stephan Aßmus 57246b1477 TextDocumentLayout: Fixed invalidating
* Add new ParagraphLayouts for new Paragraphs in the TextDocument.
 * Actually mark layout invalid, so that height changes in paragraphs
   are accounted for and newly added paragraphs are positioned.
2014-01-20 00:50:38 +01:00
Stephan Aßmus fa8b5d525e TextDocument: More fixes
* Fixed ParagraphIndexFor() not returning the last paragraph when the
   requested text offset was right at the text end.
 * Fixed off-by-one error detecting inserted line-breaks.
2014-01-20 00:50:37 +01:00
Stephan Aßmus 2188476555 TextEditor: Correct line up/down on first/last line.
* Move to beginning of first line, or end of last line respectively.
2014-01-20 00:50:37 +01:00
Stephan Aßmus e809325835 ParagraphLayout: Bugfixes.
* Fixed off-by-one errors in FirstOffsetOnLine() and LastOffsetOnLine().
 * Fixed GetLineBounds() not returning anything y2 and overwriting y1.
2014-01-20 00:50:36 +01:00
Stephan Aßmus 9fff2ecb3f List: Fixed off-by-one check in Add().
Of course we can add right at the end...
2014-01-20 00:50:35 +01:00
Stephan Aßmus 0d8b8ca63a ParagraphStyleData: Fixed line spacing not being set/adopted/compared. 2014-01-20 00:50:35 +01:00
Stephan Aßmus 300c690eb6 Text stuff: Fixed various issues with editing.
* Insert/Remove now works for simple typing.
 * Inserting multiple paragaphs not yet tested.
 * Renamed TextSpan::CharCount() to CountChars() for consistency.
2014-01-20 00:50:34 +01:00