mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
Added CalculatorMode and InputMethod enums.
This commit is contained in:
parent
977a39a01f
commit
6f2a9e7425
1 changed files with 52 additions and 5 deletions
|
@ -1,8 +1,27 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
namespace CalculatorApp
|
namespace CalculatorApp
|
||||||
{
|
{
|
||||||
|
public enum TraceLoggerCalculatorModeEnum
|
||||||
|
{
|
||||||
|
Standard,
|
||||||
|
Scientific,
|
||||||
|
Programmer,
|
||||||
|
DateCalculation,
|
||||||
|
CurrencyConverter,
|
||||||
|
VolumeConverter,
|
||||||
|
LengthConverter,
|
||||||
|
WeightMassConverter,
|
||||||
|
TemperatureConverter,
|
||||||
|
EnergyConverter,
|
||||||
|
AreaConverter,
|
||||||
|
SpeedConverter,
|
||||||
|
TimeConverter,
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
public enum TraceLoggerButtonIdEnum
|
public enum TraceLoggerButtonIdEnum
|
||||||
{
|
{
|
||||||
|
// Numberpad
|
||||||
ZeroButton,
|
ZeroButton,
|
||||||
OneButton,
|
OneButton,
|
||||||
TwoButton,
|
TwoButton,
|
||||||
|
@ -14,19 +33,27 @@ namespace CalculatorApp
|
||||||
EightButton,
|
EightButton,
|
||||||
NineButton,
|
NineButton,
|
||||||
DecimalButton,
|
DecimalButton,
|
||||||
|
|
||||||
|
// Standard Operators
|
||||||
NegateButton,
|
NegateButton,
|
||||||
EqualsButton,
|
EqualsButton,
|
||||||
PlusButton,
|
PlusButton,
|
||||||
MinusButton,
|
MinusButton,
|
||||||
MultiplyButton,
|
MultiplyButton,
|
||||||
DivideButton,
|
DivideButton,
|
||||||
BackspaceButton,
|
|
||||||
ClearButton,
|
|
||||||
ClearEntryButton,
|
|
||||||
PercentButton,
|
PercentButton,
|
||||||
SquareRootButton,
|
SquareRootButton,
|
||||||
XPower2Button,
|
XPower2Button,
|
||||||
XPower3Button,
|
XPower3Button,
|
||||||
|
OpenParenthesisButton,
|
||||||
|
CloseParenthesisButton,
|
||||||
|
|
||||||
|
// Display Controls
|
||||||
|
BackspaceButton,
|
||||||
|
ClearButton,
|
||||||
|
ClearEntryButton,
|
||||||
|
|
||||||
|
// Scientific Operators
|
||||||
InvertButton,
|
InvertButton,
|
||||||
SinButton,
|
SinButton,
|
||||||
CosButton,
|
CosButton,
|
||||||
|
@ -46,8 +73,6 @@ namespace CalculatorApp
|
||||||
LogBaseEButton,
|
LogBaseEButton,
|
||||||
DmsButton,
|
DmsButton,
|
||||||
DegreesButton,
|
DegreesButton,
|
||||||
OpenParenthesisButton,
|
|
||||||
CloseParenthesisButton,
|
|
||||||
FactorialButton,
|
FactorialButton,
|
||||||
PowerOf10Button,
|
PowerOf10Button,
|
||||||
PowerOfEButton,
|
PowerOfEButton,
|
||||||
|
@ -56,6 +81,28 @@ namespace CalculatorApp
|
||||||
YSquareRootButton,
|
YSquareRootButton,
|
||||||
PowerButton,
|
PowerButton,
|
||||||
|
|
||||||
|
// Programmer Operators
|
||||||
|
RolButton,
|
||||||
|
RorButton,
|
||||||
|
LshButton,
|
||||||
|
RshButton,
|
||||||
|
OrButton,
|
||||||
|
XorButton,
|
||||||
|
NotButton,
|
||||||
|
AndButton,
|
||||||
|
|
||||||
|
// Programmer Numberpad
|
||||||
|
AButton,
|
||||||
|
BButton,
|
||||||
|
CButton,
|
||||||
|
DButton,
|
||||||
|
EButton,
|
||||||
|
FButton
|
||||||
|
};
|
||||||
|
|
||||||
|
public enum TraceLoggerInputMethodEnum
|
||||||
|
{
|
||||||
|
PhysicalKeyboard,
|
||||||
|
OnScreenKeyboard
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue