renaissance1: #i107215# First draft of the new slide sorter design.

This commit is contained in:
Andre Fischer
2010-01-27 11:41:30 +01:00
parent 5c2d284b0f
commit 23a61a9969
75 changed files with 6676 additions and 2492 deletions

View File

@@ -48,10 +48,12 @@ namespace sd { namespace slidesorter { namespace cache {
PageCache::PageCache (
const Size& rPreviewSize,
const bool bDoSuperSampling,
const SharedCacheContext& rpCacheContext)
: mpImplementation(
new GenericPageCache(
rPreviewSize,
bDoSuperSampling,
rpCacheContext))
{
}
@@ -66,38 +68,39 @@ PageCache::~PageCache (void)
void PageCache::ChangeSize(const Size& rPreviewSize)
void PageCache::ChangeSize (
const Size& rPreviewSize,
const bool bDoSuperSampling)
{
mpImplementation->ChangePreviewSize(rPreviewSize);
mpImplementation->ChangePreviewSize(rPreviewSize, bDoSuperSampling);
}
BitmapEx PageCache::GetPreviewBitmap (
CacheKey aKey,
const Size& rSize)
BitmapEx PageCache::GetPreviewBitmap (CacheKey aKey)
{
return mpImplementation->GetPreviewBitmap(aKey, rSize);
return mpImplementation->GetPreviewBitmap(aKey);
}
void PageCache::RequestPreviewBitmap (
CacheKey aKey,
const Size& rSize)
void PageCache::RequestPreviewBitmap (CacheKey aKey)
{
return mpImplementation->RequestPreviewBitmap(aKey, rSize);
return mpImplementation->RequestPreviewBitmap(aKey);
}
void PageCache::InvalidatePreviewBitmap (
CacheKey aKey)
const CacheKey aKey,
const bool bRequestPreview)
{
mpImplementation->InvalidatePreviewBitmap(aKey);
if (bRequestPreview)
RequestPreviewBitmap(aKey);
}