diff --git a/src/apps/diskprobe/DataView.cpp b/src/apps/diskprobe/DataView.cpp index df384b0eca..3016aef6e5 100644 --- a/src/apps/diskprobe/DataView.cpp +++ b/src/apps/diskprobe/DataView.cpp @@ -188,6 +188,17 @@ DataView::MessageReceived(BMessage *message) break; } + case kMsgSetSelection: + { + int64 start, end; + if (message->FindInt64("start", &start) != B_OK + || message->FindInt64("end", &end) != B_OK) + break; + + SetSelection(start, end); + break; + } + case B_SELECT_ALL: SetSelection(0, fDataSize - 1); break; diff --git a/src/apps/diskprobe/DataView.h b/src/apps/diskprobe/DataView.h index 12f33ee470..a5dbea8ed7 100644 --- a/src/apps/diskprobe/DataView.h +++ b/src/apps/diskprobe/DataView.h @@ -100,6 +100,7 @@ class DataView : public BView { static const uint32 kMsgBaseType = 'base'; static const uint32 kMsgUpdateData = 'updt'; +static const uint32 kMsgSetSelection = 'ssel'; // observer notices static const uint32 kDataViewCursorPosition = 'curs';