The copyright line is now as large as the rest.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19135 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -37,7 +37,8 @@ GIFView::GIFView(BRect rect, const char *name)
|
||||
|
||||
font_height fh;
|
||||
be_bold_font->GetHeight(&fh);
|
||||
BRect r(10, 15, 10 + be_bold_font->StringWidth(translatorName), 15 + fh.ascent + fh.descent);
|
||||
BRect r(10, 15, 10 + be_bold_font->StringWidth(translatorName),
|
||||
15 + fh.ascent + fh.descent);
|
||||
|
||||
BStringView *title = new BStringView(r, "Title", translatorName);
|
||||
title->SetFont(be_bold_font);
|
||||
@@ -55,19 +56,17 @@ GIFView::GIFView(BRect rect, const char *name)
|
||||
version->SetFont(be_plain_font);
|
||||
AddChild(version);
|
||||
|
||||
BFont small(be_plain_font);
|
||||
small.SetSize(max_c(7.0, small.Size() * 0.7));
|
||||
const char *copyright_string = "© 2003 Daniel Switkin, [email protected]";
|
||||
const char *copyrightString = "©2003 Daniel Switkin, [email protected]";
|
||||
r.top = r.bottom + 5;
|
||||
r.left = 10;
|
||||
r.bottom = r.top + fh.ascent + fh.descent;
|
||||
r.right = rect.right - 10;
|
||||
|
||||
BStringView *copyright = new BStringView(r, "Copyright", copyright_string);
|
||||
copyright->SetFont(&small);
|
||||
BStringView *copyright = new BStringView(r, "Copyright", copyrightString);
|
||||
copyright->ResizeToPreferred();
|
||||
AddChild(copyright);
|
||||
|
||||
//menu fields (Palette & Colors)
|
||||
// menu fields (Palette & Colors)
|
||||
fWebSafeMI = new BMenuItem("Websafe", new BMessage(GV_WEB_SAFE), 0, 0);
|
||||
fBeOSSystemMI = new BMenuItem("BeOS System", new BMessage(GV_BEOS_SYSTEM), 0, 0);
|
||||
fGreyScaleMI = new BMenuItem("Greyscale", new BMessage(GV_GREYSCALE), 0, 0);
|
||||
@@ -91,7 +90,7 @@ GIFView::GIFView(BRect rect, const char *name)
|
||||
}
|
||||
fColorCount256MI = fColorCountMI[7];
|
||||
|
||||
r.top = r.bottom + 5;
|
||||
r.top = r.bottom + 14;
|
||||
r.bottom = r.top + 24;
|
||||
fPaletteMF = new BMenuField(r, "PaletteMenuField", "Palette",
|
||||
fPaletteM, B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW | B_NAVIGABLE);
|
||||
@@ -178,15 +177,18 @@ GIFView::GIFView(BRect rect, const char *name)
|
||||
}
|
||||
|
||||
RestorePrefs();
|
||||
|
||||
if (copyright->Frame().right + 10 > Bounds().Width())
|
||||
ResizeTo(copyright->Frame().right + 10, Bounds().Height());
|
||||
}
|
||||
|
||||
// destructor
|
||||
|
||||
GIFView::~GIFView()
|
||||
{
|
||||
delete fPrefs;
|
||||
}
|
||||
|
||||
// RestorePrefs
|
||||
|
||||
void
|
||||
GIFView::RestorePrefs()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user