Commit Graph

47628 Commits

Author SHA1 Message Date
Stephan Aßmus
15a557e69c HaikuDepot: Re-implemented TextLayout as ParagraphLayout
* Completely unfininished and untested, won't even compile,
   but is not included in the build. The idea being to wrap TextSpan
   objects and split them onto Lines each containing their own
   layouted TextSpan chunks. TextLayout will later be repurposed
   to off-load the layout of individual text paragraphs to
   ParagraphLayouts.
2013-09-02 12:15:18 +02:00
Stephan Aßmus
947ba26bd0 HaikuDepot: Redesign TextStyle as CharacterStyle ...
... following the example set by ParagraphStyle and
 ParagraphStyleData.
2013-09-02 12:15:17 +02:00
Stephan Aßmus
621cb2bf13 HaikuDepot: Fix passing back cloned StyleData objects
* In the methods that create a new style data object
   by cloning the object and changing the respective
   property, returning a Reference to a style data
   object makes it easier on the calling side to deal
   with the same object being returned or a new one.
2013-09-02 12:15:16 +02:00
Stephan Aßmus
6f1dbba164 HaikuDepot: Paragraph: Added Length() method. 2013-09-02 12:15:15 +02:00
Stephan Aßmus
4710193014 HaikuDepot: Work-in-progress on a TextDocument class.
* This is mostly still targeted at the use-case of parsing
   some mark up text and building a static representation
   of the styled document which can be layouted and rendered.
 * Lots of TODOs and almost nothing is tested.
2013-09-02 12:15:15 +02:00
Stephan Aßmus
fcf16d33e4 HaikuDepot: Fixed spelling of ascent and descent nouns 2013-09-02 12:15:14 +02:00
Oliver Tappe
fb99605f49 Handle rigged source packages when determining port name.
* I'm not sure this makes much of a difference, but I thought it's 
  better to play it safe.
2013-09-02 12:03:06 +02:00
Oliver Tappe
64c4bd1dc2 2nd attempt at fixing build of btrfs and packagefs.
* adding zlib to the kernel unfortunately introduces a cyclic dependency
  with respect to the zlib, haiku and haiku_devel packages (AFAICS)
* circumvent this by building kernel_zlib as a static library again,
  this time with PIC, such that it can be used by kernel add-ons
2013-09-02 12:03:05 +02:00
Oliver Tappe
0cb3f70926 Revert "Fix build problems of btrfs and packagefs for x86_64."
This reverts commit f272e63f393449d3a816970ca632764895a78cd6.
2013-09-02 12:03:05 +02:00
John Scipione
01f623b00f Leaves: Don't save the control, already have value.
I was looking at the Leaves screensaver for reference and I noticed
this peculiarity. It saves a pointer to each slider control
just so that it can later read their values, but, the values are
already provided in the message in the be:value property, so just
use that instead.
2013-09-02 02:53:50 -04:00
Jérôme Duval
51b735b342 hdaudio: enable MSI support
* disabled for nVidia and Creative Technology devices.
2013-09-01 21:11:51 +02:00
Adrien Destugues
a8dd17c9b9 UrlProtocolHttp: parse received cookies
* We didn't do anything with cookies received from the server, they are
now automatically added to the cookie jar.
 * Also make sure the UrlContext (which holds the cookie jar) is
forwarded from UrlRequest to UrlProtocol when it gets set.

this gets cookies working in Service Kit-based WebKit.
2013-09-01 19:40:57 +02:00
John Scipione
41e940ca3b MediaTrack: gaurd printf's behind TRACE_MEDIA_TRACK 2013-08-31 17:02:00 -04:00
John Scipione
ae96ed6dbe Use a stop alert when you can't open the file.
This is a fatal error that the user has no way to recover from
so using the info alert is not appropriate here.

Also rename the ret variable to result and omit extraneous braces.
2013-08-31 15:57:25 -04:00
John Scipione
72d0921ae8 MediaTrack: Calling debugger() crashes the program
So, call printf instead, which allows the program to print an error
rather than crashing.
2013-08-31 15:54:21 -04:00
John Scipione
8bcc3722ba MediaTrack: Style fixes 2013-08-31 15:40:18 -04:00
Ingo Weinhold
83462cc28d Refactor reusable pkgman code into libpackage
* Move RepositoryBuilder class to libpackage and add B* prefix to name.
* Pull BPackageManager class out of PackageManager and move to
  libpackage. The base class is customizable via three handler objects
  responsible for transaction handling, request execution, respectively
  user interaction.
* Reorganize _ApplyPackageChanges(): Now we first prepare the
  transactions for all affected installation locations (downloading
  files etc.) and then commit them.
2013-08-31 21:19:07 +02:00
John Scipione
0ef692e702 MediaConverter: Work-around crashing bug. 2013-08-31 05:07:45 -04:00
John Scipione
4dcf7ed2f5 MediaConverter: If path is truncated, set a tooltip 2013-08-31 05:06:50 -04:00
John Scipione
d1dd0b5889 MediaConverter: Fix folder selection bug.
If you select the same folder twice it would blank out the output folder.

Bug has been around at least since R1A4.
2013-08-31 02:40:08 -04:00
John Scipione
0e68593ea3 MediaConverter: Style fixes 2013-08-31 01:41:39 -04:00
John Scipione
f29499e726 MediaConverter: Set slider widths explicitly 2013-08-31 00:48:19 -04:00
John Scipione
a42b9a43df MediaConverter: output box fixes size, truncate long path
Update path truncation if output box is resized.

Other changes:
* Set duration text box to a smaller explicit width
* Increase min sources width and replace magic constant
* Some style fixes, especially to comments
2013-08-31 00:48:18 -04:00
John Scipione
83010212f7 MediaConverter: Add label and control explicitly 2013-08-31 00:48:18 -04:00
John Scipione
53bb96c547 MediaConverter: Set slider percentage live 2013-08-31 00:48:17 -04:00
John Scipione
4d891825cd MediaConverter: Set initial text in constructor 2013-08-31 00:48:17 -04:00
John Scipione
a9adf1a6b6 MediaConverter: Set ListView min size font relative 2013-08-31 00:48:16 -04:00
John Scipione
87077901ca MediaConverter: Make the window not vertically resizable 2013-08-31 00:48:16 -04:00
John Scipione
ce74de863f MediaConverter: Update copyright year 2013-08-31 00:48:14 -04:00
Niels Sascha Reedijk
27bee1b427 Update translations from Pootle 2013-08-31 06:14:04 +02:00
Pawel Dziepak
35cc5c9897 vfs: Allow non-null-terminated UNIX socket pathnames
This patch fix one of the compatibility issues mentioned in #3255. It
allows applications to call bind() or connect() passing an sockaddr_un
structure with a pathname that is not null-terminated.

Some systems did not require pathname in sockaddr_un::sun_path to be
null-terminated, instead the end of the string is determined by the size
of the structure passed as an argument of bind() or connect().

The standard is a bit vague in this matter but suggest that the path
should be null-terminated and the functions bind() and connect() should
be given sizeof(sockaddr_un) as a structure size.
2013-08-31 05:41:12 +02:00
John Scipione
d691c48ca6 Tracker: get StringWidth of menuField, not view 2013-08-30 23:17:03 -04:00
Ingo Weinhold
a0cb235c0e pkgman: Use BPackageInfo::FileName() instead of Canonical*() 2013-08-29 23:19:14 +02:00
Ingo Weinhold
dda51ada4c package daemon: Package: Set the package info file name 2013-08-29 23:19:14 +02:00
Ingo Weinhold
6692db5c1c BPackageInfo: Add fileName property
The property is archived and unarchived, but otherwise not yet stored.
If not set, FileName() returns CanonicalFileName(). Can be used for
packages like haiku.hpkg etc. that don't have a properly qualified file
name (yet).
2013-08-29 23:19:14 +02:00
Ingo Weinhold
08fb013f56 pkgman uninstall: Verify more specific locations
... after having determined the packages to remove from the selected
installation location. This uninstalls packages from the more specific
locations when their dependencies have been removed.
2013-08-29 23:19:14 +02:00
Ingo Weinhold
7af664c9d8 LibsolvSolver: change handling of fInstalledRepository
We update/set it in _AddRepositories() instead of in AddRepository(). In
code needing it earlier _InstalledRepository() can be used.

This change allows calling to SetInstalled() on a repository that has
already been added to the solver.
2013-08-29 23:19:13 +02:00
Ingo Weinhold
a54a50b48e pkgman: add support for [un]installing/updating in system 2013-08-29 23:19:13 +02:00
Oliver Tappe
c92aabd434 Fix build of pkgman with gcc2.
* I have no idea why, but gcc2 considers BSolverRepository* and
  PackageManager::InstalledRepository* as distinct pointer types, which
  it doesn't like to compare without a cast. Circumvent by static 
  casting to BSolverRepository*.
2013-08-29 23:11:14 +02:00
Oliver Tappe
c5c787ea41 Fix build problems of btrfs and packagefs for x86_64.
* Both filesystems used to link to a static kernel-zlib, which 
  was being built with -fno-pic. This doesn't work on x86_64 as the 
  filesystem add-ons are meant to be relocatable, which requires their 
  code to be compiled as position independent.
  Solve that by moving zlib into the kernel, so any add-on can just use
  it from there (packagefs is mandatory, so we can't really do without 
  zlib anyway).
2013-08-29 22:44:50 +02:00
Oliver Tappe
d1246f33f0 Drop use of non-existing variable in KernelAddon rule.
* TARGET_KERNEL_PIC_FLAGS was probably meant to be 
  TARGET_KERNEL_PIC_CCFLAGS at the time this had been added in 2005.
  As correcting the name would mean that kernel add-ons would be 
  compiled such that they wouldn't be position independent, dropping
  the variable makes more sense (which is just a cleanup and doesn't 
  change anything due to that variable being always empty)
2013-08-29 22:44:50 +02:00
Oliver Tappe
1e6177c22e Fix broken build of package kit (due to warnings) for x86_64. 2013-08-29 22:44:50 +02:00
Oliver Tappe
71046951f8 Fix build of pkgman on x86_64 by use of B_PRI... define. 2013-08-29 22:44:49 +02:00
Oliver Tappe
03aa9653d0 Move UsePrivateSystemHeaders into arch-specific block. 2013-08-29 22:44:49 +02:00
Jérôme Duval
86af5f159b VirtioRNG: add to the image 2013-08-29 18:47:48 +02:00
Jérôme Duval
8d2bf6953e random: add a Virtio RNG module
* The default module is replaced by the Virtio RNG module when found.
* This can have the undesired effect of rendering /dev/urandom slow.
* Tested with the following QEmu command line option:
-device virtio-rng-pci,rng=rng0 -object rng-random,filename=/dev/random,id=rng0
* moved random.h to private/drivers headers.
2013-08-29 18:47:48 +02:00
Jérôme Duval
eb5639c43e device_manager: tune the search paths
* the Virtio RNG PCI device has the class 0, so can't be found using usual
paths. Add 0 to _AlwaysRegisterDynamic() and "busses/virtio" in _GetNextDriverPath()
for non generic drivers to help finding virtio_pci.
* The RNG Virtio device is generic and needs "busses/random" to find virtio_rng.
2013-08-29 18:47:45 +02:00
Jérôme Duval
f73fb1051d random: added a bus interface for RNG modules.
* Yarrow RNG is the default RNG module.
2013-08-29 18:47:45 +02:00
Alexander von Gluck IV
8f7f28a7c3 OpenGL: Upgrade to Mesa 9.2
* The needed LLVM libraries are now within
  the Mesa optional build package.
* The swpipe renderer needs some work still
  and will likey change, swrast is fully
  functional.
2013-08-28 16:18:44 -05:00
Fredrik Holmqvist
f0aee2b4ea Enable targets for EFI on binutils.
objcopy needs to know about EFI targets if we want to build EFI Applications.
Also minor whitespace removal.
2013-08-28 19:59:56 +02:00