1de9dcd41SStephan Aßmus /* 2*6aa05872SBrian Hill * Copyright 2010-2017, Haiku, Inc. All Rights Reserved. 3de9dcd41SStephan Aßmus * Copyright 2009, Pier Luigi Fiorini. 4de9dcd41SStephan Aßmus * Distributed under the terms of the MIT License. 5de9dcd41SStephan Aßmus */ 6de9dcd41SStephan Aßmus #ifndef _SETTINGS_PANE_H 7de9dcd41SStephan Aßmus #define _SETTINGS_PANE_H 8de9dcd41SStephan Aßmus 9de9dcd41SStephan Aßmus #include <View.h> 10de9dcd41SStephan Aßmus 11de9dcd41SStephan Aßmus class BNode; 12de9dcd41SStephan Aßmus 13de9dcd41SStephan Aßmus class SettingsHost; 14de9dcd41SStephan Aßmus 15de9dcd41SStephan Aßmus 16de9dcd41SStephan Aßmus class SettingsPane : public BView { 17de9dcd41SStephan Aßmus public: 18de9dcd41SStephan Aßmus SettingsPane(const char* name, SettingsHost* host); 19de9dcd41SStephan Aßmus 20*6aa05872SBrian Hill void SettingsChanged(bool showExample); 21de9dcd41SStephan Aßmus 22015a928bSAdrien Destugues virtual status_t Load(BMessage&) = 0; 23015a928bSAdrien Destugues virtual status_t Save(BMessage&) = 0; 24de9dcd41SStephan Aßmus virtual status_t Revert() = 0; 25*6aa05872SBrian Hill virtual bool RevertPossible() = 0; 26*6aa05872SBrian Hill virtual status_t Defaults() = 0; 27*6aa05872SBrian Hill virtual bool DefaultsPossible() = 0; 28*6aa05872SBrian Hill virtual bool UseDefaultRevertButtons() = 0; 29de9dcd41SStephan Aßmus 30de9dcd41SStephan Aßmus protected: 31de9dcd41SStephan Aßmus SettingsHost* fHost; 32de9dcd41SStephan Aßmus }; 33de9dcd41SStephan Aßmus 34de9dcd41SStephan Aßmus #endif // _SETTINGS_PANE_H 35