| 29 | |
| 30 | |
| 31 | tString Viewer::MakeImageTooltipString(Viewer::Image* image, const tString& filename) |
| 32 | { |
| 33 | tString tooltip; |
| 34 | if (!image) |
| 35 | return tooltip; |
| 36 | |
| 37 | if (image->Cached_PrimaryWidth && image->Cached_PrimaryHeight) |
| 38 | tsPrintf |
| 39 | ( |
| 40 | tooltip, "%s\n%s\n%'d Bytes\nW:%'d\nH:%'d\nArea:%'d", |
| 41 | filename.Chr(), |
| 42 | tSystem::tConvertTimeToString(tSystem::tConvertTimeToLocal(image->FileModTime)).Chr(), |
| 43 | image->FileSizeB, |
| 44 | image->Cached_PrimaryWidth, |
| 45 | image->Cached_PrimaryHeight, |
| 46 | image->Cached_PrimaryArea |
| 47 | ); |
| 48 | else |
| 49 | tsPrintf |
| 50 | ( |
| 51 | tooltip, "%s\n%s\n%'d Bytes", |
| 52 | filename.Chr(), |
| 53 | tSystem::tConvertTimeToString(tSystem::tConvertTimeToLocal(image->FileModTime)).Chr(), |
| 54 | image->FileSizeB |
| 55 | ); |
| 56 | |
| 57 | |
| 58 | return tooltip; |
| 59 | } |
| 60 | |
| 61 | |
| 62 | void Viewer::DoSortParameters(bool singleLine) |
nothing calls this directly
no outgoing calls
no test coverage detected