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:
@@ -188,6 +188,17 @@ DataView::MessageReceived(BMessage *message)
|
|||||||
break;
|
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:
|
case B_SELECT_ALL:
|
||||||
SetSelection(0, fDataSize - 1);
|
SetSelection(0, fDataSize - 1);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ class DataView : public BView {
|
|||||||
|
|
||||||
static const uint32 kMsgBaseType = 'base';
|
static const uint32 kMsgBaseType = 'base';
|
||||||
static const uint32 kMsgUpdateData = 'updt';
|
static const uint32 kMsgUpdateData = 'updt';
|
||||||
|
static const uint32 kMsgSetSelection = 'ssel';
|
||||||
|
|
||||||
// observer notices
|
// observer notices
|
||||||
static const uint32 kDataViewCursorPosition = 'curs';
|
static const uint32 kDataViewCursorPosition = 'curs';
|
||||||
|
|||||||
Reference in New Issue
Block a user