Added a message to change the selection.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6788 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4fa250ba8d
commit
5d8680c0bb
@ -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;
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user