1 /* 2 * Copyright 2010, Haiku, Inc. All Rights Reserved. 3 * Copyright 2009, Pier Luigi Fiorini. 4 * Distributed under the terms of the MIT License. 5 * 6 * Authors: 7 * Pier Luigi Fiorini, pierluigi.fiorini@gmail.com 8 */ 9 10 #include <Message.h> 11 #include <Node.h> 12 #include <Path.h> 13 #include <FindDirectory.h> 14 #include <Directory.h> 15 16 #include "SettingsPane.h" 17 #include "SettingsHost.h" 18 19 20 SettingsPane::SettingsPane(const char* name, SettingsHost* host) 21 : 22 BView(name, B_WILL_DRAW), 23 fHost(host) 24 { 25 } 26 27 28 void 29 SettingsPane::MessageReceived(BMessage* msg) 30 { 31 switch (msg->what) { 32 case kSettingChanged: 33 fHost->SettingChanged(); 34 break; 35 default: 36 BView::MessageReceived(msg); 37 } 38 } 39