1 /* 2 * Copyright 2006-2009 Haiku, Inc. All Rights Reserved. 3 * Copyright 1997, 1998 R3 Software Ltd. All Rights Reserved. 4 * Distributed under the terms of the MIT License. 5 * 6 * Authors: 7 * Timothy Wayper <timmy@wunderbear.com> 8 * Stephan Aßmus <superstippi@gmx.de> 9 */ 10 11 #ifndef CALC_OPTIONS_H 12 #define CALC_OPTIONS_H 13 14 #include <SupportDefs.h> 15 16 class BMessage; 17 18 struct CalcOptions { 19 bool auto_num_lock; // automatically activate numlock 20 bool audio_feedback; // provide audio feedback 21 bool show_keypad; // show or hide the buttons 22 23 CalcOptions(); 24 25 void LoadSettings(const BMessage* archive); 26 status_t SaveSettings(BMessage* archive) const; 27 }; 28 29 #endif // CALC_OPTIONS_H 30