Commit Graph

51745 Commits

Author SHA1 Message Date
Stephan Aßmus
83f46c7198 HaikuDepot: Handle BMessage for rating comment language 2014-09-27 23:11:41 +02:00
Stephan Aßmus
da504dbcce HaikuDepot: Allow to set the rating comment's language. 2014-09-27 23:09:45 +02:00
Stephan Aßmus
4ff3d17ae8 HaikuDepot: Put supported languages into a StringList
* Added TODO to retrieve the list from the web-app, there is already an
  API for it. For now, the hard-coded list matches the web-app's and the
  next change in this regard will be to support any known language.
* Make the list accessible.
2014-09-27 23:07:39 +02:00
Stephan Aßmus
6bede507a9 HaikuDepot: Define StringList type for convenience. 2014-09-27 23:07:05 +02:00
Stephan Aßmus
c28b83041e HaikuDepot: Add actual rating to RatePackageWindow.
Implemented SetRatingView based on RatingView. It previews the rating
when hovering and makes it permanent when clicked.
2014-09-27 22:46:33 +02:00
Stephan Aßmus
63269a60e4 HaikuDepot: Allow RatingView to be wider than MinSize(). 2014-09-27 22:45:58 +02:00
Stephan Aßmus
823d2b88e9 HaikuDepot: Split generic and specific UI classes
* Also fixed placement of PackageManager which I must have
  dropped into the wrong folder by accident.
2014-09-27 22:03:10 +02:00
Stephan Aßmus
04c9d578d8 HaikuDepot: Organized source into sub-folders 2014-09-27 21:37:38 +02:00
Stephan Aßmus
2e19e8fc63 HaikuDepot: Extracted SharedBitmap into its own files 2014-09-27 21:28:54 +02:00
Stephan Aßmus
11d170047e HaikuDepot: Exract RatingView into its own source and header 2014-09-27 21:12:26 +02:00
Adrien Destugues
1d38b7a86a Geolocation: avoid static init of BUrl
* Fixes #11290.
2014-09-27 19:20:39 +02:00
Jérôme Duval
7d9fed52ad Updated packages for x86_64 2014-09-27 17:18:26 +02:00
autonielx
d2e55506ad Update translations from Pootle 2014-09-27 06:22:18 +02:00
Stephan Aßmus
91778eaa81 HaikuDepot: Added Cancel button to rating window.
Also, no need to have the Send button as a class member.
2014-09-26 21:47:28 +02:00
Stephan Aßmus
5c4c4e2ec6 HaikuDepot: UI for selecting a stability rating...
... in the rating window. Not functional.
2014-09-26 21:47:26 +02:00
Stephan Aßmus
967a281831 HaikuDepot: Definition for stability rating 2014-09-26 21:47:23 +02:00
Lioncash
a4a9dade68 boot: Fix some always false conditions 2014-09-26 20:56:04 +02:00
Lioncash
907046dc4d SudokuView: Check array index before the data array in _FilterString 2014-09-26 20:48:22 +02:00
Lioncash
040e39c534 MediaWriter: Fix mismatched delete call 2014-09-26 20:45:52 +02:00
Lioncash
8108b86980 usb_hid: Fix potential memory leak within HIDParser.cpp 2014-09-26 20:38:22 +02:00
Lioncash
ef36e92c05 scsi_cd: Use the size of a data buffer and not its pointer size 2014-09-26 20:37:14 +02:00
Lioncash
0ae5889578 ac97: Remove a redundant condition within ad1981_init 2014-09-26 20:34:51 +02:00
Lioncash
69acb96d8e radeon_hd: Fix array bounds check in encoder_name_lookup 2014-09-26 20:33:14 +02:00
Adrien Destugues
2a5e33a980 Move date formatting from BLocale to BDateFormat
* There is a little code duplication. This will be moved to BFormat once
the time and datetime formatting is also moved out of BLocale
* The way to create a BDateFormat from a BLocale is still open for
discussion. I'm undecided between making BDateFormat a member of
BLocale, or adding a BDateFormat(const BLocale&) constructor.
* Adjust all users of the API.
2014-09-26 18:31:11 +02:00
Adrien Destugues
a122146848 Remove BSnow from the default image.
We get several users on IRC asking for help on how to disable it. It
doesn't even look good, uses a lot of CPU, and we have better (useful)
ways to demonstrate replicants on the desktop. So this demo has no use
anymore.
2014-09-26 17:03:26 +02:00
Adrien Destugues
be37c44a19 style fix. 2014-09-26 16:16:52 +02:00
Adrien Destugues
2f36873105 UrlRequest: add empty SetTimeout for ease of use.
* Requests that support this can implement it, NetworkRequest does
* Build fix: no need to return status_t.
2014-09-26 15:51:36 +02:00
Adrien Destugues
5f8fd4c0db add libshared to the development packages.
* We install the headers for many things that are currently in libshared
(BColumnListView, BCalendarView, etc). So it makes sense to also provide
the lib in an "use at your own risk" way. Only the static library is
included, so apps linking against it should continue running on newer
Haiku versions even if the content of the lib changes.
* 3rd party application developers can now make use of those
experimental features without having to copypaste and fork the sources.
2014-09-26 15:43:00 +02:00
Adrien Destugues
654ae69aa6 NetworkRequest: add a SetTimeout method. 2014-09-26 15:21:54 +02:00
Adrien Destugues
efc5d0a2fe Add package for gtk_doc.
* Update docbook_xml_dtd to add older version aliases to the XML
catalog, as gtk_doc is looking for version 4.3.
2014-09-26 11:26:38 +02:00
Adrien Destugues
0ac93ce5d1 Add some cairo dependencies.
* Fontconfig and freetype are now building fine, so let's add correct
packages.
* Our pixman was way too old and cairo didn't want to use it
* itstool is used by gtk_doc, which will come in another commit.
2014-09-25 22:51:46 +02:00
Paweł Dziepak
9c5c599041 kernel: pagecache: provided buffers are not always in user memory
Source or destination buffers passed to pagecache functions may belong
to kernel memory (e.g. when the caller is packagefs). Because of that
we should tell vm_memcpy_{from, to}_physical() truth, not assume that all
buffers are in user memory. That's important because user memory page fault
handlers cannot be nested and these functions may be used while handling
a page fault.

With high probability fixes #11246.

Signed-off-by: Paweł Dziepak <pdziepak@quarnos.org>
2014-09-25 21:57:32 +02:00
Paweł Dziepak
ac97d35790 kernel/arch: remove leftover debug message
Polite fault handlers are nice, but we like the silent ones even more.

Signed-off-by: Paweł Dziepak <pdziepak@quarnos.org>
2014-09-25 21:57:32 +02:00
Stefano Ceccherini
ad7015bb1b SoundFont: Fix recognition rule 2014-09-25 21:46:26 +02:00
Stefano Ceccherini
7e5a18ae9e Added mime type and recognition rule for SoundFonts 2014-09-25 21:38:14 +02:00
Adrien Destugues
2f0be46386 Add freedroidrpg packages.
* Fixed sdl_image against correct version of libwebp.
* Fixed alphabetical order.
2014-09-25 15:08:54 +02:00
Stephan Aßmus
12f29d4441 HaikuDepot: Force preferred language to be supported
At the moment, the web-app has a defined, limited set of supported languages
for translations. JSON requests fail when asking for an unsupported language
code. For the time being, force the language code to be in the supported set.
2014-09-24 21:26:48 +02:00
Stephan Aßmus
89ec84a4cb HaikuDepot: Some usage of the BKeyStore API
... completely untested and premature. The idea is that after a successful
login with the web-app, the password used is stored in the keyring. Then
HaikuDepot will restore just last the used username on next launch and retrieve
the password from the keyring. One could also register multiple accounts in
HaikuDepot and switch between them.
2014-09-24 21:26:46 +02:00
Adrien Destugues
84e6fa8e2a Geolocation: use test key for tests.
Mozilla provide a test key (with usage restrictions) for testing
purpose. Make use of it in our unit tests.
2014-09-24 19:02:23 +02:00
Adrien Destugues
8a39d53d23 Geolocation: remove leftover print. 2014-09-24 19:01:58 +02:00
Adrien Destugues
80e7d92949 BGeolocation: make it work with the actual API.
* It seems openbmap is using a variation of the API that's not
compatible with what other providers use.
* Fix a ";" instead of "," in the JSON request. We should get a
BJsonBuilder to avoid such silly errors
* Improve indenting of the request to ease readability.
* Parse the latitude and longitude as doubles, not strings.

This was tested against Mozilla Location Services and I get accurate
results (withing a few hundred meters). However I'm not sure how to
share the MLS API key safely so it is used only in Haiku, I will discuss
this with the MLS team.
2014-09-24 18:32:03 +02:00
Adrien Destugues
7c9c3b6b5b Add DocumentViewer, with dependencies. 2014-09-24 18:32:00 +02:00
Stefano Ceccherini
f9a9cc3940 First draft of a midi preflet. 2014-09-24 07:36:54 +02:00
Adrien Destugues
13f0458896 Add BGeolocation experimental API.
A BGeolocation object can query an online service to get geolocation
and geotagging data:
 * LocateSelf() tries to locate the machine it is running on, by using an
online database of wifi access points
 * Locate() (not yet implemented) searches a BString and converts it to
lat/lon coordinates (reverse geotagging)
 * Name() (not yet implemented) finds a suitable name for the given
coordinates (address, building name, or anything fitting).

The default service used is openbmap.org, which is freely available but
not very accurate. A request has been sent to Mozilla to use MLS
(Mozilla Location Services), which is a bit more accurate but needs an
API key. MLS is used for geolocation on FirefoxOS, for mobile phones
which don't have a GPS, and the data can be contributed by Firefox for
Android or the dedicated MozStumbler app.

Alternatively, Google Maps also provide the service, but wants
people to pay for it. Google Maps data is more accurate as all Android
devices contribute data to it.

All 3 services use the same JSON-based API: we send a list of reachable
Wifi APs (mac address and signal strength), and we get lattitude and
longitude information, and possibly extra data which will currently be
unused.

This can be used to implement HTML5 geolocation with reasonably accurate
results, but it can also be used in other places. For example
FirstBootPrompt could try to guess a list of most likely languages and
keyboard layouts from it (if wifi is working at install time, that is).
2014-09-23 16:37:59 +02:00
Stefano Ceccherini
d3c865ecd8 BSoftSynth: Also look for softsynth in B_SYSTEM_SETTINGS_DIRECTORY and B_SYNTH_DIRECTORY.
Note that this will probably we changed again as we introduce a setting file
to locate the softsynth.
2014-09-23 06:31:57 +02:00
Adrien Destugues
3b7e5b40d0 Update sdl_image_x86 and smpeg_x86
* Fix dependencies problems which made these packages not installable.
2014-09-22 08:44:26 +02:00
Adrien Destugues
74635841cb rocksndiamonds: fix broken provides
Make the package installable.
2014-09-22 08:44:19 +02:00
Stefano Ceccherini
1d5966ca12 BSoftSynth: Revert to Pete's original code
When you change code that you don't understand correctly... just DON'T.
Fixes a crash.
2014-09-22 07:24:16 +02:00
Adrien Destugues
e4c33a936d Fix Python to include the ctypes package.
Fixes #11264.
2014-09-21 22:20:24 +02:00
Stefano Ceccherini
d553b90c86 BSynth/BSoftSynth: implemented GetAudio().
Patch by Pete Goodeve (modified by me, hopefully for the better and
without introducing bugs) which implements BSynth::GetAudio().
2014-09-21 19:46:04 +02:00