xref: /haiku/src/preferences/notifications/PrefletView.h (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 #ifndef _PREFLET_VIEW_H
7 #define _PREFLET_VIEW_H
8 
9 #include <Messenger.h>
10 #include <TabView.h>
11 
12 #include "GeneralView.h"
13 
14 class SettingsHost;
15 
16 const int32 kShowButtons = '_SHB';
17 #define kShowButtonsKey "showButtons"
18 
19 class PrefletView : public BTabView {
20 public:
21 						PrefletView(SettingsHost* host);
22 
23 			BView*		CurrentPage();
24 			BView*		PageAt(int32 index);
25 	virtual	void		Select(int32 index);
26 
27 private:
28 			GeneralView*	fGeneralView;
29 			BMessenger		fMessenger;
30 };
31 
32 #endif // PREFLETVIEW_H
33