1 /* 2 * Copyright 2004-2008 Haiku Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Author: 6 * Andre Alves Garzia, andre@andregarzia.com 7 */ 8 9 #include "NetworkWindow.h" 10 11 #include <Application.h> 12 #include <GroupLayout.h> 13 14 #include "EthernetSettingsView.h" 15 16 17 NetworkWindow::NetworkWindow() 18 : BWindow(BRect(50, 50, 269, 302), "Network", B_TITLED_WINDOW, 19 B_NOT_RESIZABLE | B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE 20 | B_AUTO_UPDATE_SIZE_LIMITS) 21 { 22 SetLayout(new BGroupLayout(B_HORIZONTAL)); 23 fEthernetView = new EthernetSettingsView(); 24 GetLayout()->AddView(fEthernetView); 25 } 26 27 28 NetworkWindow::~NetworkWindow() 29 { 30 } 31 32 33 void 34 NetworkWindow::MessageReceived(BMessage* message) 35 { 36 switch (message->what) { 37 default: 38 BWindow::MessageReceived(message); 39 } 40 41 } 42 43 44 bool 45 NetworkWindow::QuitRequested() 46 { 47 be_app->PostMessage(B_QUIT_REQUESTED); 48 return true; 49 } 50