Bring AboutRequested() method back, not sure why I removed it.
This commit is contained in:
@@ -426,27 +426,7 @@ ProcessController::MessageReceived(BMessage *message)
|
|||||||
}
|
}
|
||||||
|
|
||||||
case B_ABOUT_REQUESTED:
|
case B_ABOUT_REQUESTED:
|
||||||
if (fAboutWindow == NULL) {
|
AboutRequested();
|
||||||
const char* extraCopyrights[] = {
|
|
||||||
"1997-2001 Georges-Edouard Berenger",
|
|
||||||
NULL
|
|
||||||
};
|
|
||||||
|
|
||||||
const char* authors[] = {
|
|
||||||
"Georges-Edouard Berenger",
|
|
||||||
NULL
|
|
||||||
};
|
|
||||||
|
|
||||||
fAboutWindow = new BAboutWindow(
|
|
||||||
B_TRANSLATE_SYSTEM_NAME("ProcessController"), kSignature);
|
|
||||||
fAboutWindow->AddCopyright(2007, "Haiku, Inc.", extraCopyrights);
|
|
||||||
fAboutWindow->AddAuthors(authors);
|
|
||||||
fAboutWindow->Show();
|
|
||||||
} else if (fAboutWindow->IsHidden())
|
|
||||||
fAboutWindow->Show();
|
|
||||||
else
|
|
||||||
fAboutWindow->Activate();
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@@ -455,6 +435,32 @@ ProcessController::MessageReceived(BMessage *message)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
ProcessController::AboutRequested()
|
||||||
|
{
|
||||||
|
if (fAboutWindow == NULL) {
|
||||||
|
const char* extraCopyrights[] = {
|
||||||
|
"1997-2001 Georges-Edouard Berenger",
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
const char* authors[] = {
|
||||||
|
"Georges-Edouard Berenger",
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
fAboutWindow = new BAboutWindow(
|
||||||
|
B_TRANSLATE_SYSTEM_NAME("ProcessController"), kSignature);
|
||||||
|
fAboutWindow->AddCopyright(2007, "Haiku, Inc.", extraCopyrights);
|
||||||
|
fAboutWindow->AddAuthors(authors);
|
||||||
|
fAboutWindow->Show();
|
||||||
|
} else if (fAboutWindow->IsHidden())
|
||||||
|
fAboutWindow->Show();
|
||||||
|
else
|
||||||
|
fAboutWindow->Activate();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ProcessController::DefaultColors()
|
ProcessController::DefaultColors()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ class ProcessController : public BView {
|
|||||||
static ProcessController* Instantiate(BMessage* data);
|
static ProcessController* Instantiate(BMessage* data);
|
||||||
virtual status_t Archive(BMessage *data, bool deep = true) const;
|
virtual status_t Archive(BMessage *data, bool deep = true) const;
|
||||||
|
|
||||||
|
void AboutRequested();
|
||||||
void Update();
|
void Update();
|
||||||
void DefaultColors();
|
void DefaultColors();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user