Extend MSG_SHOW_INSPECTOR_WINDOW to allow specifying an initial address.
This commit is contained in:
parent
0712121cdb
commit
544a66de68
@ -218,20 +218,26 @@ TeamWindow::MessageReceived(BMessage* message)
|
|||||||
{
|
{
|
||||||
if (fInspectorWindow) {
|
if (fInspectorWindow) {
|
||||||
fInspectorWindow->Activate(true);
|
fInspectorWindow->Activate(true);
|
||||||
break;
|
} else {
|
||||||
|
try {
|
||||||
|
fInspectorWindow = InspectorWindow::Create(fTeam,
|
||||||
|
fListener, this);
|
||||||
|
if (fInspectorWindow != NULL) {
|
||||||
|
BMessage settings;
|
||||||
|
fInspectorWindow->LoadSettings(fUISettings);
|
||||||
|
fInspectorWindow->Show();
|
||||||
|
}
|
||||||
|
} catch (...) {
|
||||||
|
// TODO: notify user
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
target_addr_t address;
|
||||||
fInspectorWindow = InspectorWindow::Create(fTeam, fListener,
|
if (message->FindUInt64("address", &address) == B_OK) {
|
||||||
this);
|
BMessage addressMessage(MSG_INSPECT_ADDRESS);
|
||||||
if (fInspectorWindow != NULL) {
|
addressMessage.AddUInt64("address", address);
|
||||||
BMessage settings;
|
fInspectorWindow->PostMessage(&addressMessage);
|
||||||
fInspectorWindow->LoadSettings(fUISettings);
|
}
|
||||||
fInspectorWindow->Show();
|
|
||||||
}
|
|
||||||
} catch (...) {
|
|
||||||
// TODO: notify user
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case MSG_INSPECTOR_WINDOW_CLOSED:
|
case MSG_INSPECTOR_WINDOW_CLOSED:
|
||||||
|
Loading…
Reference in New Issue
Block a user