* transmit correct type in BView::BeginRectTracking()
* put message codes for Begin/EndRectTracking() into giant switch... not actually implemented though git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22220 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1274,7 +1274,7 @@ BView::BeginRectTracking(BRect startRect, uint32 style)
|
|||||||
if (do_owner_check()) {
|
if (do_owner_check()) {
|
||||||
fOwner->fLink->StartMessage(AS_LAYER_BEGIN_RECT_TRACK);
|
fOwner->fLink->StartMessage(AS_LAYER_BEGIN_RECT_TRACK);
|
||||||
fOwner->fLink->Attach<BRect>(startRect);
|
fOwner->fLink->Attach<BRect>(startRect);
|
||||||
fOwner->fLink->Attach<int32>(style);
|
fOwner->fLink->Attach<uint32>(style);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1934,6 +1934,27 @@ ServerWindow::_DispatchViewMessage(int32 code,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case AS_LAYER_BEGIN_RECT_TRACK:
|
||||||
|
{
|
||||||
|
DTRACE(("ServerWindow %s: Message AS_LAYER_BEGIN_RECT_TRACK\n", Title()));
|
||||||
|
BRect dragRect;
|
||||||
|
uint32 style;
|
||||||
|
|
||||||
|
link.Read<BRect>(&dragRect);
|
||||||
|
link.Read<uint32>(&style);
|
||||||
|
|
||||||
|
// TODO: implement rect tracking (used sometimes for selecting
|
||||||
|
// a group of things, also sometimes used to appear to drag something,
|
||||||
|
// but without real drag message)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case AS_LAYER_END_RECT_TRACK:
|
||||||
|
{
|
||||||
|
DTRACE(("ServerWindow %s: Message AS_LAYER_END_RECT_TRACK\n", Title()));
|
||||||
|
// TODO: implement rect tracking
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case AS_LAYER_BEGIN_PICTURE:
|
case AS_LAYER_BEGIN_PICTURE:
|
||||||
{
|
{
|
||||||
DTRACE(("ServerWindow %s: Message AS_LAYER_BEGIN_PICTURE\n", Title()));
|
DTRACE(("ServerWindow %s: Message AS_LAYER_BEGIN_PICTURE\n", Title()));
|
||||||
@@ -2337,8 +2358,10 @@ ServerWindow::_DispatchViewDrawingMessage(int32 code, BPrivate::LinkReceiver &li
|
|||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
printf("ServerWindow %s received unexpected code - message offset %ld\n",
|
BString codeString;
|
||||||
Title(), code - B_OK);
|
string_for_message_code(code, codeString);
|
||||||
|
printf("ServerWindow %s received unexpected code: %s\n",
|
||||||
|
Title(), codeString.String());
|
||||||
|
|
||||||
if (link.NeedsReply()) {
|
if (link.NeedsReply()) {
|
||||||
// the client is now blocking and waiting for a reply!
|
// the client is now blocking and waiting for a reply!
|
||||||
|
|||||||
Reference in New Issue
Block a user