1 /* 2 * Copyright 2004-2010 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 10 #include "NetworkWindow.h" 11 12 #include <Application.h> 13 #include <Catalog.h> 14 #include <GroupLayout.h> 15 #include <Locale.h> 16 17 #include "EthernetSettingsView.h" 18 19 20 #undef B_TRANSLATE_CONTEXT 21 #define B_TRANSLATE_CONTEXT "NetworkWindow" 22 23 24 NetworkWindow::NetworkWindow() 25 : 26 BWindow(BRect(50, 50, 269, 302), B_TRANSLATE_SYSTEM_NAME("Network"), 27 B_TITLED_WINDOW, B_NOT_RESIZABLE | B_ASYNCHRONOUS_CONTROLS 28 | B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS | B_QUIT_ON_WINDOW_CLOSE) 29 { 30 SetLayout(new BGroupLayout(B_HORIZONTAL)); 31 GetLayout()->AddView(new EthernetSettingsView()); 32 } 33