Commit Graph

51592 Commits

Author SHA1 Message Date
Adrien Destugues
cedd1e158b Add tests for BDurationFormat and BTimeUnitFormat. 2014-10-01 16:29:13 +02:00
Adrien Destugues
44f11d0982 Make BDateFormat inherit from BFormat again
* Move relevant parts up into BFormat so other format classes can use
those
* Adjust BDurationFormat and BTimeUnitFormat for the changes
* Remove the "default" date format, it is better to keep only a default
locale and let applications create B*Formats from it as needed.
* Creating a B*Format without arguments to the constructor now
configures it for the default locale, which allows for easy use in
standard cases (formatting something with the current language and
format)
* Creating a B*Format is potentially an expansive operation, it is
advised to keep the instance around and reuse it whenever possible.
However it must be "refreshed" when the locale changes, for apps which
supports that, since it keeps a copy of the language and formatting
convention, rather than a pointer to the locale as it did before.
2014-10-01 16:29:12 +02:00
Adrien Destugues
13d147b12b Introduce "invalid" text controls.
* MarkAsInvalid is used to enable or disable the mark
* The B_INVALID BControlLook flag is used
* invalid BTextControls are drawn with a red border.
* You ar encouraged to let the user know more precisely what's wrong, by
showing an helpful error message next to the control or in a tooltip.
2014-10-01 12:12:16 +02:00
Adrien Destugues
48ea56bf32 Interface Kit tests: add test for BTextControl.
* Only tests very basic functionality, and size of the class, which must
not change for BeOS compatibility.
* Also add "manual" test for disabled and invalid controls (just check
it looks right)
2014-10-01 12:12:14 +02:00
Adrien Destugues
a8f520f2a8 Test harness: 64bit warnings fixes. 2014-10-01 10:59:07 +02:00
Adrien Destugues
d5f1b898ef jam TestRules: whitespace fixes. 2014-10-01 10:57:59 +02:00
Jessica Hamilton
58844015bf BNotification: correct SetIcon documentation 2014-10-01 19:01:15 +13:00
Jérôme Duval
61ab6b26cd Add bash packages. 2014-10-01 00:14:18 +02:00
Stephan Aßmus
1bbda92dc7 HaikuDepot: Request to login before rating a package
* There is now a flow of logging in or creating an account before being
   able to rate a package and the user is not yet logged in. The
   UserLoginWindow stores an "on success" BMessenger and BMessage which are
   send after the alert which confirms successful login or account creation.
   This is used to make the RatePackageWindow show once logged in successfully.
2014-09-30 22:35:46 +02:00
Stephan Aßmus
fb303f1987 HaikuDepot: Be more verbose about how to update ratings 2014-09-30 22:35:44 +02:00
Stephan Aßmus
bf62b1f845 HaikuDepot: Changed alert message for updating a rating 2014-09-30 22:35:41 +02:00
Stephan Aßmus
504501a9cb HaikuDepot: Fixed creating/updating ratings.
* The HTTP Basic authentication never worked. BHttpRequest.SetUserName()
   and SetPassword() have no effect at all, unless there is a
   BHttpAuthentication set for the given URL on the BUrlContext. This part
   of the services API isn't very intuitive, yet.
 * UpdateUserRating() forgot to append the "filter" array which specifies
   to the web app which fields of the rating are updated by the request.
2014-09-30 22:35:39 +02:00
Adrien Destugues
b4a3be8e2f Jamfile missing from previous commit. 2014-09-30 16:09:13 +02:00
Adrien Destugues
afd5ec11d2 Add setters to BDate and BCalendarView
* BDate setters don't perform any validation, use with caution.
* BCalendarView setters do perform validation checks, and will adjust
the day so it fits the requested month or year.
* Add tests for the BCalendarView setters.
2014-09-30 15:38:24 +02:00
Adrien Destugues
526d483999 Make BDateFormat mutable
* Add setters for the language and formatting conventions
* Add shortcut getter and setter for the date format
* Use those in the locale roster to make the BDateFormat actually use
the system preferred language and format.
* Applications can also use this to extract specific information from
the system format (eg. set date format to "LLLL" to extract month
names), or define specific formats more easily (eg. for parsing and
generating e-mail headers or HTTP cookies).
2014-09-30 11:49:47 +02:00
Adrien Destugues
f188c1defa BDateFormat: improve API
* Use a reference rather than a pointer for the output string, removing
the need for NULL checks (which were missing, anyway)
* Adjust callers to that change
* Add new Format variant taking a BDate argument
2014-09-30 09:47:02 +02:00
Adrien Destugues
dd21b4666e Add tests for BDateFormat. 2014-09-30 09:37:03 +02:00
Stephan Aßmus
6e80c1ca11 HaikuDepot: Implemented creating/updating ratings...
... from the RatePackageWindow. It does not work yet, the errors
are reported. To be investigated...
2014-09-29 23:19:55 +02:00
Stephan Aßmus
e824035985 HaikuDepot: Fixed missing space in error alert. 2014-09-29 23:19:25 +02:00
Stephan Aßmus
fca4717406 HaikuDepot: Implemented creating and updating ratings...
... in WebAppInterface. Both types of requests fail at the moment.
Creating a rating failes due to invalid authentication (I thought I am doing
it correctly), updating fails with a NullPointerException on the server.
2014-09-29 23:05:43 +02:00
Stephan Aßmus
24cde1e4ef HaikuDepot: Added WebAppInterface getter to Model 2014-09-29 23:05:11 +02:00
Stephan Aßmus
965707a9bb HaikuDepot: Rating and login window have no system names. 2014-09-29 22:30:59 +02:00
Stephan Aßmus
8ecb43af28 HaikuDepot: Display check box to deactivate rating
... if a rating already exists for the given package and version.
2014-09-29 22:23:15 +02:00
Stephan Aßmus
0ba9258d0f HaikuDepot: Use B_USE_WINDOW_INSETS in login window 2014-09-29 22:22:30 +02:00
Stephan Aßmus
cec1192ea0 HaikuDepot: Use getUserRatingByUserAndPkgVersion...
... instead of searching for a rating from the given user. This API will
also return deactivated ratings, so the user could re-activate it.
2014-09-29 22:05:00 +02:00
Stephan Aßmus
46bcb34d05 HaikuDepot: Store BPackageVersion in PackageInfo...
...instead of the string representation. This makes it easier to
get the major, minor, micro, prerelease and revision parts later on.
2014-09-29 22:04:59 +02:00
Adrien Destugues
d7f449e9bc Convert language tests to cppunit. 2014-09-29 18:37:50 +02:00
Adrien Destugues
706f3f5396 Convert collator test to cppunit. 2014-09-29 18:37:49 +02:00
Adrien Destugues
af59f5ca42 Convert BUnicodeChar tests to cppunit. 2014-09-29 18:37:49 +02:00
Adrien Destugues
bd0644183c localeTest: fix corrupted characters.
This file used to hold iso-8859-15 encoded bytes for testing our char
conversion ability. However something went wrong and they all got
replaced by unicode "invalid character" mark. Use \x notation to escape
the actual bytes we want to test.
2014-09-29 18:37:48 +02:00
Adrien Destugues
27a2d2c7ef ICUTest: style and output formatting fixes 2014-09-29 18:37:48 +02:00
Adrien Destugues
9d1cbc67a6 localeTest: fix build. 2014-09-29 18:37:47 +02:00
Stephan Aßmus
9ddea57b38 HaikuDepot: Better order of stability ratings 2014-09-29 13:31:12 +02:00
Stephan Aßmus
9586185a7c HaikuDepot: Aligned stability rating names with web app. 2014-09-29 13:31:11 +02:00
Lioncash
0faffc061a ResourceUsageWindow: Fix mismatching alloc/deallocs
* Fixes #11291.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2014-09-29 08:39:47 +02:00
Augustin Cavalier
cda4988751 Template Makefile: stupid fix to get it working again.
No idea how I escaped this backslash...

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2014-09-29 11:44:50 +13:00
Stefano Ceccherini
611ef1414f BSoftSynth: Select the soundfont from the settings file 2014-09-28 18:23:57 +02:00
Stefano Ceccherini
db5b5dfa14 Integrate MIDI settings with the Media preflet.
More or less working.
2014-09-28 18:23:56 +02:00
Adrien Destugues
dad7e9177d HaikuWebkit 1.4.5 for x86_64. 2014-09-28 15:34:33 +00:00
Stephan Aßmus
046dc04e83 HaikuDepot: Now retrives existing rating for a package...
... if there is one and fills the RatePackageWindow UI accordingly.
This will allow a user to edit her earlier rating for a given package.
The button labels will need to be adjusted. Uploading a rating still not
implemented.
2014-09-28 14:53:10 +02:00
Stephan Aßmus
3cc6e28126 HaikuDepot: Remember PackageInfoRef in PackageInfoView
* Added getter
2014-09-28 14:53:09 +02:00
Stephan Aßmus
8f331d41fa HaikuDepot: Removed invalid TODO from UserLoginWindow 2014-09-28 14:53:08 +02:00
Stephan Aßmus
054139a2d4 HaikuDepot: Get existing rating from a user for a package 2014-09-28 14:53:06 +02:00
Adrien Destugues
03598119a7 libcolumnlistview: hybrid arch build, add to image
* This is a very useful control, and 3rd-party apps should be able to
use it.
* But, there are planned improvements (making a better model/view
interface) which prevents making it part of the stable API yet.
2014-09-28 11:51:03 +02:00
Adrien Destugues
b1218ae576 HaikuWebKit 1.4.5. 2014-09-28 09:00:02 +02:00
Stephan Aßmus
8f03a0f9f2 HaikuDepot: Restore logged in user across sessions.
* Store the username in the app settings. The password was already stored
   in the keyring. Restore the username upon next launch.
 * Display the logged in user in the main window.
 * Added "Log out" menu entry.
 * When the password could not be retrieved from the keyring (also because
   the user rejects the keyring dialog), unset the username.
 * Allow unsetting the username by passing an empty name.
2014-09-28 00:33:20 +02:00
Stephan Aßmus
3e3d0effdc HaikuDepot: Limit language selection for account creation
For the time being, there is a limited amount of supported languages
when creating accounts, reflect this in the UI and use a BMenuField.
Creating accounts with other languages fails, the error reporting was
not ideal and could be improved. The server responded with "object not found",
which was reported in the alert, but the response actually contains the
object which was not found (NaturalLanguageCode).
2014-09-28 00:29:50 +02:00
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