mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Merge remote-tracking branch 'upstream/master' into FixIssuesWithEquKey
This commit is contained in:
commit
8b140e5f52
4 changed files with 7 additions and 9 deletions
|
@ -6,7 +6,7 @@
|
||||||
#include "Header Files/CalcEngine.h"
|
#include "Header Files/CalcEngine.h"
|
||||||
#include "Header Files/Rational.h"
|
#include "Header Files/Rational.h"
|
||||||
|
|
||||||
class CParentheses : public IParenthesisCommand
|
class CParentheses final : public IParenthesisCommand
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CParentheses(_In_ int command);
|
CParentheses(_In_ int command);
|
||||||
|
@ -18,7 +18,7 @@ private:
|
||||||
int m_command;
|
int m_command;
|
||||||
};
|
};
|
||||||
|
|
||||||
class CUnaryCommand : public IUnaryCommand
|
class CUnaryCommand final : public IUnaryCommand
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CUnaryCommand(int command);
|
CUnaryCommand(int command);
|
||||||
|
@ -33,7 +33,7 @@ private:
|
||||||
std::shared_ptr<CalculatorVector<int>> m_command;
|
std::shared_ptr<CalculatorVector<int>> m_command;
|
||||||
};
|
};
|
||||||
|
|
||||||
class CBinaryCommand : public IBinaryCommand
|
class CBinaryCommand final : public IBinaryCommand
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CBinaryCommand(int command);
|
CBinaryCommand(int command);
|
||||||
|
@ -46,7 +46,7 @@ private:
|
||||||
int m_command;
|
int m_command;
|
||||||
};
|
};
|
||||||
|
|
||||||
class COpndCommand : public IOpndCommand
|
class COpndCommand final : public IOpndCommand
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
COpndCommand(
|
COpndCommand(
|
||||||
|
|
|
@ -158,7 +158,6 @@ void UnitConverterDataLoader::GetUnits(_In_ unordered_map<ViewMode, vector<Order
|
||||||
{
|
{
|
||||||
// US + Federated States of Micronesia, Marshall Islands, Palau
|
// US + Federated States of Micronesia, Marshall Islands, Palau
|
||||||
bool useUSCustomaryAndFahrenheit = m_currentRegionCode == L"US" ||
|
bool useUSCustomaryAndFahrenheit = m_currentRegionCode == L"US" ||
|
||||||
m_currentRegionCode == L"PW" ||
|
|
||||||
m_currentRegionCode == L"FM" ||
|
m_currentRegionCode == L"FM" ||
|
||||||
m_currentRegionCode == L"MH" ||
|
m_currentRegionCode == L"MH" ||
|
||||||
m_currentRegionCode == L"PW";
|
m_currentRegionCode == L"PW";
|
||||||
|
|
|
@ -488,7 +488,7 @@ void StandardCalculatorViewModel::HandleUpdatedOperandData(Command cmdenum)
|
||||||
m_selectedExpressionLastData = L"";
|
m_selectedExpressionLastData = L"";
|
||||||
if (ch == 'x')
|
if (ch == 'x')
|
||||||
{
|
{
|
||||||
temp = L'\0';
|
temp[0] = L'\0';
|
||||||
commandIndex = 0;
|
commandIndex = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -505,7 +505,7 @@ void StandardCalculatorViewModel::HandleUpdatedOperandData(Command cmdenum)
|
||||||
{
|
{
|
||||||
if (commandIndex == 0)
|
if (commandIndex == 0)
|
||||||
{
|
{
|
||||||
delete temp;
|
delete [] temp;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -553,7 +553,7 @@ bool StandardCalculatorViewModel::IsOperator(Command cmdenum)
|
||||||
{
|
{
|
||||||
if ((cmdenum == Command::Command0) || (cmdenum == Command::Command1) || (cmdenum == Command::Command2) || (cmdenum == Command::Command3) || (cmdenum == Command::Command4) || (cmdenum == Command::Command5)
|
if ((cmdenum == Command::Command0) || (cmdenum == Command::Command1) || (cmdenum == Command::Command2) || (cmdenum == Command::Command3) || (cmdenum == Command::Command4) || (cmdenum == Command::Command5)
|
||||||
|| (cmdenum == Command::Command6) || (cmdenum == Command::Command7) || (cmdenum == Command::Command8) || (cmdenum == Command::Command9) || (cmdenum == Command::CommandPNT) || (cmdenum == Command::CommandBACK)
|
|| (cmdenum == Command::Command6) || (cmdenum == Command::Command7) || (cmdenum == Command::Command8) || (cmdenum == Command::Command9) || (cmdenum == Command::CommandPNT) || (cmdenum == Command::CommandBACK)
|
||||||
|| (cmdenum == Command::CommandEXP) || (cmdenum == Command::CommandFE) || (cmdenum == Command::ModeBasic) || (cmdenum == Command::ModeBasic) || (cmdenum == Command::ModeProgrammer) || (cmdenum == Command::ModeScientific)
|
|| (cmdenum == Command::CommandEXP) || (cmdenum == Command::CommandFE) || (cmdenum == Command::ModeBasic) || (cmdenum == Command::ModeProgrammer) || (cmdenum == Command::ModeScientific)
|
||||||
|| (cmdenum == Command::CommandINV) || (cmdenum == Command::CommandCENTR) || (cmdenum == Command::CommandDEG) || (cmdenum == Command::CommandRAD) || (cmdenum == Command::CommandGRAD)
|
|| (cmdenum == Command::CommandINV) || (cmdenum == Command::CommandCENTR) || (cmdenum == Command::CommandDEG) || (cmdenum == Command::CommandRAD) || (cmdenum == Command::CommandGRAD)
|
||||||
|| ((cmdenum >= Command::CommandBINEDITSTART) && (cmdenum <= Command::CommandBINEDITEND)))
|
|| ((cmdenum >= Command::CommandBINEDITSTART) && (cmdenum <= Command::CommandBINEDITEND)))
|
||||||
{
|
{
|
||||||
|
|
|
@ -30,7 +30,6 @@ CalculatorProgrammerBitFlipPanel::CalculatorProgrammerBitFlipPanel() :
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
auto booleanToVisibilityConverter = ref new Converters::BooleanToVisibilityConverter;
|
auto booleanToVisibilityConverter = ref new Converters::BooleanToVisibilityConverter;
|
||||||
auto booleanToVisibilityNegationConverter = ref new Converters::BooleanToVisibilityNegationConverter;
|
|
||||||
SetVisibilityBinding(BitFlipPanel, L"IsBinaryBitFlippingEnabled", booleanToVisibilityConverter);
|
SetVisibilityBinding(BitFlipPanel, L"IsBinaryBitFlippingEnabled", booleanToVisibilityConverter);
|
||||||
|
|
||||||
AssignFlipButtons();
|
AssignFlipButtons();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue