1 /* 2 * Copyright 2006-2007, Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Axel Dörfler, axeld@pinc-software.de 7 */ 8 9 10 #include "NetworkStatusWindow.h" 11 #include "NetworkStatusView.h" 12 13 #include <Application.h> 14 15 16 NetworkStatusWindow::NetworkStatusWindow() 17 : BWindow(BRect(150, 150, 249, 249), "NetworkStatus", B_TITLED_WINDOW, 18 B_NOT_ZOOMABLE | B_ASYNCHRONOUS_CONTROLS) 19 { 20 BView* topView = new BView(Bounds(), NULL, B_FOLLOW_ALL, B_WILL_DRAW); 21 topView->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); 22 AddChild(topView); 23 24 SetSizeLimits(25, 265, 25, 265); 25 26 topView->AddChild(new NetworkStatusView(Bounds().InsetByCopy(5, 5), 27 B_FOLLOW_ALL)); 28 } 29 30 31 NetworkStatusWindow::~NetworkStatusWindow() 32 { 33 } 34 35 36 bool 37 NetworkStatusWindow::QuitRequested() 38 { 39 be_app->PostMessage(B_QUIT_REQUESTED); 40 return true; 41 } 42