From 529d132025824a3cd1627730d46182f2dd8dd012 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 22 Jun 2005 03:11:00 +0000 Subject: [PATCH] hover help --- lib/WebGUI/Asset/File/Image.pm | 5 +++- lib/WebGUI/Help/Asset_Image.pm | 15 ++++++++++ lib/WebGUI/i18n/English/Asset_Image.pm | 40 +++++++++++++++----------- 3 files changed, 42 insertions(+), 18 deletions(-) diff --git a/lib/WebGUI/Asset/File/Image.pm b/lib/WebGUI/Asset/File/Image.pm index 0576124a8..80975cb1a 100644 --- a/lib/WebGUI/Asset/File/Image.pm +++ b/lib/WebGUI/Asset/File/Image.pm @@ -118,16 +118,19 @@ sub getEditForm { $tabform->getTab("properties")->integer( -name=>"thumbnailSize", -label=>WebGUI::International::get('thumbnail size', 'Asset_Image'), + -hoverHelp=>WebGUI::International::get('Thumbnail size description', 'Asset_Image'), -value=>$self->getValue("thumbnailSize") ); $tabform->getTab("properties")->textarea( -name=>"parameters", -label=>WebGUI::International::get('parameters', 'Asset_Image'), + -hoverHelp=>WebGUI::International::get('Parameters description', 'Asset_Image'), -value=>$self->getValue("parameters") ); if ($self->get("filename") ne "") { $tabform->getTab("properties")->readOnly( - -label=>WebGUI::International::get('thumbnail', 'Asset_Image'), + -label=>WebGUI::International::get('Thumbnail', 'Asset_Image'), + -hoverHelp=>WebGUI::International::get('thumbnail description', 'Asset_Image'), -value=>'thumbnail' ); my ($x, $y) = $self->getStorageLocation->getSizeInPixels($self->get("filename")); diff --git a/lib/WebGUI/Help/Asset_Image.pm b/lib/WebGUI/Help/Asset_Image.pm index 853e9454c..8e2433275 100644 --- a/lib/WebGUI/Help/Asset_Image.pm +++ b/lib/WebGUI/Help/Asset_Image.pm @@ -6,6 +6,21 @@ our $HELP = { title => 'image add/edit title', body => 'image add/edit body', fields => [ + { + title => 'Thumbnail size', + description => 'Thumbnail size description', + namespace => 'Asset_Image', + }, + { + title => 'Parameters', + description => 'Parameters description', + namespace => 'Asset_Image', + }, + { + title => 'Thumbnail', + description => 'Thumbnail description', + namespace => 'Asset_Image', + }, ], related => [ { diff --git a/lib/WebGUI/i18n/English/Asset_Image.pm b/lib/WebGUI/i18n/English/Asset_Image.pm index ae88e5c2d..b88f204df 100644 --- a/lib/WebGUI/i18n/English/Asset_Image.pm +++ b/lib/WebGUI/i18n/English/Asset_Image.pm @@ -11,26 +11,32 @@ our $I18N = { message => q|

Image Assets are used to store images that you want displayed on your site.

Since Images are a subset of File Assets, they have the properties that all Assets do as well -as File Assets. Below are the properties that are specific to Image Assets:

- -

Thumbnail size
-A thumbnail of the Image will be created and available for use in -templates. The longest side of the thumbnail will be set to this size -in pixels. It defaults to the value from the sitewide setting. - -

Parameters
-This is a set of extra parameters to the <IMG> tag that is generated for -the image. You can use this to set alignment or to set the text that is displayed -if the image cannot be displayed (such as to a text-only browser). - -

Thumbnail
-If an image is currently stored in the Asset, then its thumbnail will be -shown here. -|, +as File Assets. Below are the properties that are specific to Image Assets:

|, context => 'Describing image add/edit form specific fields', - lastUpdated => 1106764520, + lastUpdated => 1119409764, }, + 'Thumbnail size description' => { + message => q|A thumbnail of the Image will be created and available for use in +templates. The longest side of the thumbnail will be set to this size +in pixels. It defaults to the value from the sitewide setting.|, + lastUpdated => 1119409747, + }, + + 'Parameters description' => { + message => q|This is a set of extra parameters to the <IMG> tag that is generated for +the image. You can use this to set alignment or to set the text that is displayed +if the image cannot be displayed (such as to a text-only browser).|, + lastUpdated => 1119409747, + }, + + 'Thumbnail description' => { + message => q|If an image is currently stored in the Asset, then its thumbnail will be +shown here.|, + lastUpdated => 1119409747, + }, + + 'thumbnail size' => { message => q|Thumbnail Size|, context => q|label for Image asset form|,