xref: /haiku/src/preferences/notifications/SettingsPane.cpp (revision 6aa0587222b965a635512f99861a5f6a9ad465a8)
1 /*
2  * Copyright 2010-2017, 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  *		Brian Hill, supernova@tycho.email
9  */
10 
11 #include <Message.h>
12 
13 #include "SettingsPane.h"
14 #include "SettingsHost.h"
15 
16 
SettingsPane(const char * name,SettingsHost * host)17 SettingsPane::SettingsPane(const char* name, SettingsHost* host)
18 	:
19 	BView(name, B_WILL_DRAW),
20 	fHost(host)
21 {
22 }
23 
24 
25 void
SettingsChanged(bool showExample)26 SettingsPane::SettingsChanged(bool showExample)
27 {
28 	fHost->SettingChanged(showExample);
29 }
30