[haiku-commits] r40774 - haiku/trunk/src/apps/people

  • From: philippe.houdoin@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 2 Mar 2011 10:54:30 +0100 (CET)

Author: phoudoin
Date: 2011-03-02 10:54:30 +0100 (Wed, 02 Mar 2011)
New Revision: 40774
Changeset: http://dev.haiku-os.org/changeset/40774

Modified:
   haiku/trunk/src/apps/people/PersonView.cpp
   haiku/trunk/src/apps/people/PictureView.cpp
Log:
* 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"


Modified: haiku/trunk/src/apps/people/PersonView.cpp
===================================================================
--- haiku/trunk/src/apps/people/PersonView.cpp  2011-03-02 02:15:56 UTC (rev 
40773)
+++ haiku/trunk/src/apps/people/PersonView.cpp  2011-03-02 09:54:30 UTC (rev 
40774)
@@ -62,8 +62,8 @@
        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(

Modified: haiku/trunk/src/apps/people/PictureView.cpp
===================================================================
--- haiku/trunk/src/apps/people/PictureView.cpp 2011-03-02 02:15:56 UTC (rev 
40773)
+++ haiku/trunk/src/apps/people/PictureView.cpp 2011-03-02 09:54:30 UTC (rev 
40774)
@@ -86,6 +86,10 @@
 {
        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);


Other related posts: