* Scale down a bit the picture view, now using the same ration than

official (passport, ID card) photos
* Add a tooltip to give user some hints on the picture "field"


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40774 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin 2011-03-02 09:54:30 +00:00
parent 8d60218fa5
commit e5dca0c2c0
2 changed files with 6 additions and 2 deletions

View File

@ -62,8 +62,8 @@ PersonView::PersonView(const char* name, const char* categoryAttribute,
BGridLayout* layout = GridLayout();
layout->SetInsets(spacing, spacing, spacing, spacing);
// Add picture "field"
fPictureView = new PictureView(96, 112, ref);
// Add picture "field", using ID photo 35mm x 45mm ratio
fPictureView = new PictureView(70, 90, ref);
layout->AddView(fPictureView, 0, 0, 1, 5);
layout->ItemAt(0, 0)->SetExplicitAlignment(

View File

@ -86,6 +86,10 @@ PictureView::PictureView(float width, float height, const entry_ref* ref)
{
SetViewColor(255, 255, 255);
SetToolTip(B_TRANSLATE(
"Drop an image here.\n"
"Or use the contextual menu" B_UTF8_ELLIPSIS));
BSize size(width + 2 * kPictureMargin, height + 2 * kPictureMargin);
SetExplicitMinSize(size);
SetExplicitMaxSize(size);