1/*
2 * Copyright 2006-2012 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 *		Stephan A��mus, superstippi@gmx.de
8 *		John Scipione, jscipione@gmail.com
9 *		Timothy Wayper, timmy@wunderbear.com
10 */
11#ifndef CALC_OPTIONS_H
12#define CALC_OPTIONS_H
13
14
15#include <SupportDefs.h>
16
17
18enum {
19	KEYPAD_MODE_COMPACT,
20	KEYPAD_MODE_BASIC,
21	KEYPAD_MODE_SCIENTIFIC
22};
23
24class BMessage;
25
26struct CalcOptions {
27	bool auto_num_lock;		// automatically activate numlock
28	bool audio_feedback;	// provide audio feedback
29	bool degree_mode;		// radian or degree mode
30	uint8 keypad_mode;		// keypad mode options
31
32				CalcOptions();
33
34	void		LoadSettings(const BMessage* archive);
35	status_t	SaveSettings(BMessage* archive) const;
36};
37
38#endif // CALC_OPTIONS_H
39