2 * Copyright 2006-2007, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
6 * Axel Dörfler, axeld@pinc-software.de
10 #include "NetworkStatusWindow.h"
11 #include "NetworkStatusView.h"
13 #include <Application.h>
17 #undef B_TRANSLATION_CONTEXT
18 #define B_TRANSLATION_CONTEXT "NetworkStatusWindow"
21 NetworkStatusWindow::NetworkStatusWindow()
23 BWindow(BRect(150, 150, 249, 249), B_TRANSLATE_SYSTEM_NAME("NetworkStatus"),
24 B_TITLED_WINDOW
, B_NOT_ZOOMABLE
| B_ASYNCHRONOUS_CONTROLS
)
26 BView
* topView
= new BView(Bounds(), NULL
, B_FOLLOW_ALL
, B_WILL_DRAW
);
27 topView
->SetViewUIColor(B_PANEL_BACKGROUND_COLOR
);
30 SetSizeLimits(25, 265, 25, 265);
32 topView
->AddChild(new NetworkStatusView(Bounds().InsetByCopy(5, 5),
37 NetworkStatusWindow::~NetworkStatusWindow()
43 NetworkStatusWindow::QuitRequested()
45 be_app
->PostMessage(B_QUIT_REQUESTED
);