13
13
#include <resources/ginkgoresourcesmanager.h>
16
wxHistoryImageThumbnailItem::wxHistoryImageThumbnailItem(const wxString& filename, TItemType type, long series_pk, long file_pk, bool linked):wxImageThumbnailItem(filename)
16
wxHistoryImageThumbnailItem::wxHistoryImageThumbnailItem(const wxString& filename, TItemType type, long series_pk, long file_pk, GNC::GCS::IHistoryController::TLocation source):wxImageThumbnailItem(filename)
19
19
m_filepk = file_pk;
20
20
m_seriespk = series_pk;
24
24
bool wxHistoryImageThumbnailItem::Draw(wxDC& dc, wxThumbnailCtrl* ctrl, const wxRect& rect, int style)
26
26
wxImageThumbnailItem::Draw(dc, ctrl, rect, style);
28
wxBitmap tagBitmap = GinkgoResourcesManager::History::GetIcoLinked();
31
int x = rect.x + ctrl->GetThumbnailMargin();
32
int y = rect.y + ctrl->GetThumbnailMargin();
33
dc.DrawBitmap(tagBitmap, x, y, true);
29
case GNC::GCS::IHistoryController::TL_LocalDatabase:
30
bmp = GinkgoResourcesManager::History::GetIcoLocalFile();
32
case GNC::GCS::IHistoryController::TL_LocalLinked:
33
bmp = GinkgoResourcesManager::History::GetIcoLocalLinked();
35
case GNC::GCS::IHistoryController::TL_WadoLinked:
36
bmp = GinkgoResourcesManager::History::GetIcoWadoLinked();
42
int x = rect.x + ctrl->GetThumbnailMargin();
43
int y = rect.y + ctrl->GetThumbnailMargin();
44
dc.DrawBitmap(bmp, x, y, true);