mirror of
https://review.haiku-os.org/haiku
synced 2025-02-19 12:09:30 +01:00
No functional change. * Surround email addresses in angle brackets. * Add myself to ExpressionParser.cpp and .h * Remove myself from ExpressionTextView.cpp and .h * Alphatetize authors by last name. Thanks Ingo and Axel.
39 lines
841 B
C++
39 lines
841 B
C++
/*
|
|
* Copyright 2006-2012 Haiku, Inc. All Rights Reserved.
|
|
* Copyright 1997, 1998 R3 Software Ltd. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors:
|
|
* Stephan Aßmus <superstippi@gmx.de>
|
|
* John Scipione <jscipione@gmail.com>
|
|
* Timothy Wayper <timmy@wunderbear.com>
|
|
*/
|
|
#ifndef CALC_OPTIONS_H
|
|
#define CALC_OPTIONS_H
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
enum {
|
|
KEYPAD_MODE_COMPACT,
|
|
KEYPAD_MODE_BASIC,
|
|
KEYPAD_MODE_SCIENTIFIC
|
|
};
|
|
|
|
class BMessage;
|
|
|
|
struct CalcOptions {
|
|
bool auto_num_lock; // automatically activate numlock
|
|
bool audio_feedback; // provide audio feedback
|
|
bool degree_mode; // radian or degree mode
|
|
uint8 keypad_mode; // keypad mode options
|
|
|
|
CalcOptions();
|
|
|
|
void LoadSettings(const BMessage* archive);
|
|
status_t SaveSettings(BMessage* archive) const;
|
|
};
|
|
|
|
#endif // CALC_OPTIONS_H
|