2 * Copyright 2004-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
7 #include "ProbeWindow.h"
10 #include <Application.h>
14 ProbeWindow::ProbeWindow(BRect rect
, entry_ref
*ref
)
15 : BWindow(rect
, ref
->name
, B_DOCUMENT_WINDOW
,
16 B_ASYNCHRONOUS_CONTROLS
| B_AUTO_UPDATE_SIZE_LIMITS
),
22 ProbeWindow::~ProbeWindow()
28 ProbeWindow::MessageReceived(BMessage
*message
)
30 switch (message
->what
) {
31 case B_MOUSE_WHEEL_CHANGED
:
32 if (BView
*view
= FindView("dataView"))
33 view
->MessageReceived(message
);
38 BMessage
refsReceived(*message
);
39 refsReceived
.what
= B_REFS_RECEIVED
;
40 be_app_messenger
.SendMessage(&refsReceived
);
45 BWindow::MessageReceived(message
);
51 ProbeWindow::QuitRequested()
53 BMessage
update(kMsgSettingsChanged
);
54 update
.AddRect("window_frame", Frame());
55 be_app_messenger
.SendMessage(&update
);
57 be_app_messenger
.SendMessage(kMsgWindowClosed
);