Get rid of the _Init() method in BAboutWindow, just the single constructor body.
This commit is contained in:
@@ -34,9 +34,6 @@ class BAboutWindow : public BWindow {
|
|||||||
|
|
||||||
BPoint AboutPosition(float width, float height);
|
BPoint AboutPosition(float width, float height);
|
||||||
|
|
||||||
protected:
|
|
||||||
void _Init(const char* appName, const char* signature);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
AboutView* fAboutView;
|
AboutView* fAboutView;
|
||||||
BHandler* fCaller;
|
BHandler* fCaller;
|
||||||
|
|||||||
@@ -259,7 +259,19 @@ BAboutWindow::BAboutWindow(const char* appName, const char* signature)
|
|||||||
B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE | B_NOT_RESIZABLE
|
B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE | B_NOT_RESIZABLE
|
||||||
| B_AUTO_UPDATE_SIZE_LIMITS)
|
| B_AUTO_UPDATE_SIZE_LIMITS)
|
||||||
{
|
{
|
||||||
_Init(appName, signature);
|
SetLayout(new BGroupLayout(B_VERTICAL));
|
||||||
|
|
||||||
|
const char* about = B_TRANSLATE_MARK("About");
|
||||||
|
about = gSystemCatalog.GetString(about, "AboutWindow");
|
||||||
|
|
||||||
|
BString title(about);
|
||||||
|
title << " " << appName;
|
||||||
|
SetTitle(title.String());
|
||||||
|
|
||||||
|
fAboutView = new AboutView(appName, signature);
|
||||||
|
AddChild(fAboutView);
|
||||||
|
|
||||||
|
MoveTo(AboutPosition(Frame().Width(), Frame().Height()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -453,25 +465,3 @@ BAboutWindow::AboutPosition(float width, float height)
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// #pragma mark -
|
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
BAboutWindow::_Init(const char* appName, const char* signature)
|
|
||||||
{
|
|
||||||
SetLayout(new BGroupLayout(B_VERTICAL));
|
|
||||||
|
|
||||||
const char* about = B_TRANSLATE_MARK("About");
|
|
||||||
about = gSystemCatalog.GetString(about, "AboutWindow");
|
|
||||||
|
|
||||||
BString title(about);
|
|
||||||
title << " " << appName;
|
|
||||||
SetTitle(title.String());
|
|
||||||
|
|
||||||
fAboutView = new AboutView(appName, signature);
|
|
||||||
AddChild(fAboutView);
|
|
||||||
|
|
||||||
MoveTo(AboutPosition(Frame().Width(), Frame().Height()));
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user