/haiku/src/apps/haikudepot/ui_generic/ |
H A D | RatingView.cpp | 42 user interface in order to signify the rating given by a user. It could 43 be grey if no rating is assigned. 85 RatingView::SetRating(float rating) argument 87 fRating = rating;
|
H A D | RatingView.h | 28 void SetRating(float rating);
|
/haiku/src/apps/haikudepot/packagemodel/ |
H A D | PackageInfo.cpp | 419 PackageInfo::AddUserRating(const UserRatingRef& rating) argument 421 fUserRatings.push_back(rating); 458 float rating = fUserRatings[i]->Rating(); local 460 if (rating < 0.0f) 461 rating = -1.0f; 462 else if (rating > 5.0f) 463 rating = 5.0f; 465 if (rating >= 0.0f) 466 ratingSum += rating; 468 if (rating < [all...] |
H A D | UserRating.cpp | 24 UserRating::UserRating(const UserInfo& userInfo, float rating, argument 29 fRating(rating),
|
H A D | UserRating.h | 19 float rating,
|
H A D | PackageInfo.h | 126 void AddUserRating(const UserRatingRef& rating);
|
/haiku/src/apps/haikudepot/ui/ |
H A D | RatePackageWindow.cpp | 133 message.AddFloat("rating", fPermanentRating); 137 void SetPermanentRating(float rating) argument 139 fPermanentRating = rating; 140 SetRating(rating); 143 /*! By setting this to false, this indicates that there is no rating for the 144 set; ie NULL. The indeterminate rating is indicated by a pale grey 188 BStringView* ratingLabel = new BStringView("rating label", 189 B_TRANSLATE("Your rating:")); 193 fRatingDeterminateCheckBox = new BCheckBox("has rating", NULL, 199 "rating scrol 502 double rating; local 633 int rating = (int)fRating; local [all...] |
H A D | PackageListView.cpp | 92 RatingField(float rating); 95 void SetRating(float rating); 252 RatingField::RatingField(float rating) argument 256 SetRating(rating); 266 RatingField::SetRating(float rating) argument 268 if (rating < 0.0f) 269 rating = 0.0f; 270 if (rating > 5.0f) 271 rating = 5.0f; 273 if (rating [all...] |
H A D | PackageInfoView.cpp | 95 // #pragma mark - rating stats 208 RatingView("package rating view"), 273 fAvgRating = new BStringView("package average rating", ""); 293 BView* ratingStack = new BView("rating stack", 0); 828 RatingItemView(const UserRatingRef rating) argument 839 rating->User().NickName()); 848 if (rating->Rating() >= 0) { 849 RatingView* ratingView = new RatingView("package rating view"); 850 ratingView->SetRating(rating->Rating()); 857 rating 1032 UserRatingRef rating = package->UserRatingAtIndex(i); local [all...] |
/haiku/src/apps/haikudepot/server/ |
H A D | WebAppInterface.h | 41 /*! This constant can be used to indicate the lack of a rating. */ 85 int rating, 95 int rating, bool active,
|
H A D | WebAppInterface.cpp | 189 return _SendJsonRequest("user-rating/search-user-ratings", 248 "user-rating/get-user-rating-by-user-and-pkg-version", 556 const BString& stability, int rating, BMessage& message) 603 if (rating > 0.0f) { 604 requestEnvelopeWriter.WriteObjectName("rating"); 605 requestEnvelopeWriter.WriteInteger(rating); 620 return _SendJsonRequest("user-rating/create-user-rating", 632 const BString& stability, int rating, boo 547 CreateUserRating(const BString& packageName, const BPackageVersion& version, const BString& architecture, const BString& webAppRepositoryCode, const BString& webAppRepositorySourceCode, const BString& naturalLanguageCode, const BString& comment, const BString& stability, int rating, BMessage& message) argument 627 UpdateUserRating(const BString& ratingID, const BString& naturalLanguageCode, const BString& comment, const BString& stability, int rating, bool active, BMessage& message) argument [all...] |
/haiku/src/kits/tracker/ |
H A D | WidgetAttributeText.cpp | 270 if (!strncmp(column->DisplayAs(), "rating", 6)) 1905 // #pragma mark - RatingAttributeText (display as: rating) 1938 int64 rating; local 1942 rating = fValue.int8t; 1946 rating = fValue.int16t; 1950 rating = fValue.int32t; 1954 rating = 0; 1958 rating = 0; 1960 if (rating > fMax) 1961 rating [all...] |
/haiku/src/apps/mediaplayer/ |
H A D | MainWin.h | 116 void _SetRating(int32 rating);
|
H A D | MainWin.cpp | 1242 int32 rating; local 1243 if (msg->FindInt32("rating", &rating) == B_OK) 1244 _SetRating(rating); 1836 setRatingMsg->AddInt32("rating", i); 1841 message->AddInt32("rating", 0); 1842 fResetRatingItem = new BMenuItem(B_TRANSLATE("Reset rating"), message); 2817 int32 rating = -1; local 2823 node.ReadAttr(kRatingAttrName, B_INT32_TYPE, 0, &rating, 2824 sizeof(rating)); 2835 _SetRating(int32 rating) argument [all...] |
/haiku/src/apps/showimage/ |
H A D | ShowImageWindow.cpp | 287 message->AddInt32("rating", 0); 288 fResetRatingItem = new BMenuItem(B_TRANSLATE("Reset rating"), message); 411 message->AddInt32("rating", i); 1068 int32 rating; local 1069 if (message->FindInt32("rating", &rating) != B_OK) 1074 file.WriteAttr("Media:Rating", B_INT32_TYPE, 0, &rating, 1075 sizeof(rating)); 1608 int32 rating; 1609 ssize_t size = sizeof(rating); [all...] |
/haiku/src/apps/haikudepot/model/ |
H A D | Model.cpp | 602 HDERROR("corrupt user rating at index %" B_PRIi32, 611 HDERROR("ignored user rating [%s] without a user " 619 double rating; local 622 if (item.FindDouble("rating", &rating) != B_OK) 623 rating = -1; 624 if (comment.Length() == 0 && rating == -1) { 625 HDERROR("rating [%s] has no comment or rating so will" 630 // For which version of the package was the rating [all...] |