Commit Graph

51966 Commits

Author SHA1 Message Date
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
Stefano Ceccherini
b2e8d9627a Style fixes 2014-09-21 19:21:34 +02:00
Stefano Ceccherini
94bfc1f561 BSoftSynth: pointer style, 80 column limit 2014-09-21 17:40:10 +02:00
Stephan Aßmus
36171a48e7 HaikuDepot: Only authorize requests where needed.
No requests are implemented yet which need to identify a user (such as rating
a package).
2014-09-21 00:17:25 +02:00
Stephan Aßmus
28075ee427 HaikuDepot: Implemented logging into haiku-depot-server
UserLoginWindow:
 * Focus nickname text field on tab switches
 * Implement testing the login info, the web-app replies with a token, if
   valid. It could be used for Token Bearer authorization of requests, but
   this is not used yet. Instead the username and password are set on the
   Model. Also after creating a new account successfully.
Model:
 * Use a member instance of WebAppInterface. Set the preferred language
   and the login-info only once.
2014-09-21 00:09:17 +02:00
Stefano Ceccherini
f511367b33 BSoftSynth::SetInstrumentsFile(): Check if file exists. 2014-09-20 19:57:03 +02:00
Stefano Ceccherini
c0622eb3d3 Fix spacing 2014-09-20 19:21:23 +02:00
Stefano Ceccherini
bd68cd0517 Midi Kit: SoftSynth: Implement reverb (patch by Pete Goodeve)
Applied patch by Pete Goodeve which implements reverb in the soft synthesizer.
2014-09-20 19:19:12 +02:00
Stefano Ceccherini
6cd948da2a Midi Kit: Actually look in /home/config/settings/synth/synth.sf2 2014-09-20 19:08:34 +02:00
Stefano Ceccherini
bee3de4dbb Midi Kit: Made it possible for the user to use a soundfont different
from the one supplied by default.
Since the PM move, it was not possible anymore to use a different soundfont,
since the /boot/system/data folder became read only.
Now the user has to put the soundfont (or, better,  a symbolic link to it)
into /home/config/settings/synth.sf2
In the future we'll supply a preflet to select the soundfont.
2014-09-20 19:01:41 +02:00
autonielx
937e70aa28 Update translations from Pootle 2014-09-20 06:22:44 +02:00
Stephan Aßmus
9be707603f HaikuDepot: Implemented creating web-app user accounts
The accounts are created for real, but the information is not yet stored.
Nothing which would need it is currently implemented, like rating packages.
It is recommended to create accounts with a valid email address. Otherwise
the password cannot be reset, and it will need to be soon, since there
is a small change to the password storage in the pipe.

The error response from the service is parsed and presented
to the user, when the account could not be created. However, other checks
before contacting the server are not performed, like if the two passphrases
actually match.

The UserLoginWindow now has the concept of a running worker thread, and
while it runs, the UI controls (except Cancel) are disabled.
2014-09-20 01:35:45 +02:00
Stephan Aßmus
dfee849828 HaikuDepot: Added WebAppInterface::CreateUser() 2014-09-20 01:35:42 +02:00
Stephan Aßmus
a067756a29 HaikuDepot: Get captcha image in UserLoginWindow 2014-09-20 01:35:40 +02:00
Stephan Aßmus
d07ca0696d HaikuDepot::Model: Set preferred language earlier
Added accessor for preferred language.
2014-09-20 01:35:38 +02:00
Stephan Aßmus
fe6f67b410 HaikuDepot: Added captcha request to WebAppInterface
Also removed some disabled debug output.
2014-09-20 01:35:35 +02:00
Adrien Destugues
ee2985c144 NetworkSetup: list and join wireless networks
* Reuse the logic from the old network preflet for now. Something better
can be done later.
2014-09-19 17:52:11 +02:00
Adrien Destugues
763cd902f6 NetworkSetup: simplify UI layout
* Temporarily disable the non-working Profiles popup
* Remove the currently single-tabbed TabView
* Remove duplicate apply and revert buttons in the interfaces add-on.

The goal here is to remove functionalities not available in the current
network preferences, and finish the other parts, so we can put this new
preferences panel in service now. We can re-add the extra functionality
later.
2014-09-19 17:52:10 +02:00
Humdinger
76a607d2fe BAboutWindow: use the standard "OK" instead of "Ok" 2014-09-19 17:26:30 +02:00
Adrien Destugues
126a04e6d6 NetworkSetup: put interface settings in main window
* The initial design was probably inspired by Windows network settings,
which are a mess of nested windows and hyperlinks.
* Instead, the settings can be put directly inside the main window, like
it is done inthe media preflet. This makes the information available at
a glance and makes the UI easier to navigate.
* Remove the "configure" button and popup menu item. A single click is
now enough to show the settings for an interface

For this to work properly, complete the move to layout kit (there were a
few BRect-based constructorls left which would mess the layout) and
remove unneeded rectangle computations (layout kit does the job
already).

Further cleanup pending:
* Removal of the duplicate "revert" button
* Removal of the "save" button and switch to applying settings realtime
* Move the disable/enable and renegociate buttons inside the interface
settings
* Remove the top-level tab view (nested tab views are not nice) and
use a hierarchized list with both interfaces and services on the side
(like the Media preflet has audio and video).
2014-09-19 14:13:01 +02:00
Adrien Destugues
941986f7f4 Add the ALM headers to the haiku_devel package.
We provide the library, so why not also provide the development headers
for it?
2014-09-19 10:26:51 +02:00
Adrien Destugues
5fae0bc1a2 Add some cppunit-based tests for BTextView.
Note that this does not reproduce #8447. I could not get more precise
details from involved people about how to reproduce this, and the patch
was already applied anyway, so I'm stopping my investigation for now.
Feel free to complete this with more test cases.
2014-09-19 09:59:38 +02:00
Stefano Ceccherini
0bbed9620a TextGapBuffer: Style changes
Change long to int32
Removed useless parenthesis
2014-09-19 09:28:14 +02:00
Stefano Ceccherini
0eb9b74e00 BTextView: Fixed GetText().
Patch by Pete Goodeve which fixes a problem in TextGapBuffer::GetString()
used by BTextView::GetText(). Thanks! Fixes #8447.
2014-09-19 09:17:17 +02:00
Stephan Aßmus
d6bd3409e5 HaikuDepot: Don't right-align publisher/copyright...
... in the available space in the package title area. Just looks too random.
2014-09-18 22:39:45 +02:00
Stephan Aßmus
81c000dd0d HaikuDepot: Add "Log in" menu item which shows new window 2014-09-18 22:39:43 +02:00
Stephan Aßmus
700a71bdb8 HaikuDepot: WIP interface for logging in...
... or creating a new account in the web application. Just the interface,
nothing is functional, yet.
2014-09-18 22:39:41 +02:00
Stephan Aßmus
4f4f859c1a HaikuDepot: Small code cleanups in PackageInfo. 2014-09-18 22:39:38 +02:00
Stefano Ceccherini
ef860b2e96 NetStack: Fix locking
Change the monitor_lock to be a recursive_lock, fixing #7039.
Notify_device_monitor acquires the monitor lock, then the
monitor unregisters itself, calling unregister_device_monitor, which
acquires the monitor lock again.
2014-09-18 21:45:44 +02:00
Adrien Destugues
3ae6595c39 Build fix. 2014-09-18 17:41:21 +02:00