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 enum { 17 KEYPAD_MODE_COMPACT, 18 KEYPAD_MODE_BASIC, 19 KEYPAD_MODE_SCIENTIFIC 20 }; 21 22 class BMessage; 23 24 struct CalcOptions { 25 bool auto_num_lock; // automatically activate numlock 26 bool audio_feedback; // provide audio feedback 27 uint8 keypad_mode; // keypad mode options 28 29 CalcOptions(); 30 31 void LoadSettings(const BMessage* archive); 32 status_t SaveSettings(BMessage* archive) const; 33 }; 34 35 #endif // CALC_OPTIONS_H 36