Lines Matching defs:package

31 #include <package/hpkg/PackageReader.h>
32 #include <package/hpkg/NoErrorOutput.h>
33 #include <package/hpkg/PackageContentHandler.h>
34 #include <package/hpkg/PackageEntry.h>
208 RatingView("package rating view"),
239 fIconView = new BitmapView("package icon view");
240 fTitleView = new BStringView("package title view", "");
241 fPublisherView = new BStringView("package publisher view", "");
265 fVersionInfo = new BStringView("package version info", "");
273 fAvgRating = new BStringView("package average rating", "");
277 fVoteInfo = new BStringView("package vote info", "");
286 B_TRANSLATE("Rate package" B_UTF8_ELLIPSIS),
360 void SetPackage(const PackageInfoRef package)
364 package->Name(), BITMAP_SIZE_64, bitmap);
371 fTitleView->SetText(package->Title());
373 BString publisher = package->Publisher().Name();
381 fVersionInfo->SetText(package->Version().ToString());
383 RatingSummary ratingSummary = package->CalculateRatingSummary();
478 void SetPackage(const PackageInfoRef package)
480 if (package->State() == DOWNLOADING) {
481 AdoptDownloadProgress(package);
483 AdoptActions(package);
487 void AdoptActions(const PackageInfoRef package)
492 // TODO: if the given package is either a system package
497 manager.CollectPackageActions(package, actionsCollector);
507 void AdoptDownloadProgress(const PackageInfoRef package)
525 fStatusBar->SetTo(package->DownloadProgress() * 100.0);
664 // all other screenshots associated with the package to the same folder
776 void SetPackage(const PackageInfoRef package)
778 fDescriptionView->SetText(package->ShortDescription(), package->FullDescription());
780 _SetContactInfo(fEmailLinkView, package->Publisher().Email());
782 _SetContactInfo(fWebsiteLinkView, package->Publisher().Website());
849 RatingView* ratingView = new RatingView("package rating view");
977 BGroupView("package ratings view", B_HORIZONTAL)
1010 void SetPackage(const PackageInfoRef package)
1015 fRatingSummaryView->SetToSummary(package->CalculateRatingSummary());
1017 int count = package->CountUserRatings();
1032 UserRatingRef rating = package->UserRatingAtIndex(i);
1074 BGroupView("package contents view", B_HORIZONTAL)
1091 void SetPackage(const PackageInfoRef package)
1093 fPackageContents->SetPackage(package);
1113 BGroupView("package changelog view", B_HORIZONTAL)
1139 void SetPackage(const PackageInfoRef package)
1141 const BString& changelog = package->Changelog();
1197 void SetPackage(const PackageInfoRef package, bool switchToDefaultTab)
1203 package.IsSet() && package->HasChangelog());
1205 package.IsSet()
1206 && (package->State() == ACTIVATED || package->IsLocalFile()));
1210 fAboutView->SetPackage(package);
1211 fUserRatingsView->SetPackage(package);
1212 fChangelogView->SetPackage(package);
1213 fContentsView->SetPackage(package);
1238 BView("package info view", 0),
1246 BGroupView* noPackageCard = new BGroupView("no package card", B_VERTICAL);
1249 BStringView* noPackageView = new BStringView("no package view",
1250 B_TRANSLATE("Click a package to view information"));
1260 BGroupView* packageCard = new BGroupView("package card", B_VERTICAL);
1316 const PackageInfoRef& package = fPackageListener->Package();
1317 if (package->Name() != name)
1329 fPagesView->SetPackage(package, false);
1334 fTitleView->SetPackage(package);
1338 fPackageActionView->SetPackage(package);
1361 // When asked to display the already showing package ref,
1367 // but it has the same package title as the already showing
1370 // same package as before the refresh.
1385 // previous package before switching all the views to the new package.
1388 // example, keeps references to stuff from the previous package and
1389 // access it while switching to the new package.
1401 PackageInfoView::_SetPackageScreenshotThumb(const PackageInfoRef& package)
1403 ScreenshotCoordinate desiredCoordinate = _ScreenshotThumbCoordinate(package);
1410 HDERROR("unable to ascertain if screenshot is present for pkg [%s]", package->Name().String());
1413 HDDEBUG("screenshot is already cached for [%s] -- will load it", package->Name().String());
1414 _HandleScreenshotCached(package, desiredCoordinate);
1417 HDDEBUG("screenshot is not cached [%s] -- will cache it", package->Name().String());
1425 HDDEBUG("no screenshot for pkg [%s]", package->Name().String());
1433 PackageInfoView::_ScreenshotThumbCoordinate(const PackageInfoRef& package)
1435 if (!package.IsSet())
1437 if (package->CountScreenshotInfos() == 0)
1439 return ScreenshotCoordinate(package->ScreenshotInfoAtIndex(0)->Code(), kScreenshotSize, kScreenshotSize);
1457 PackageInfoView::_HandleScreenshotCached(const PackageInfoRef& package,
1460 ScreenshotCoordinate desiredCoordinate = _ScreenshotThumbCoordinate(package);