- Avoid referencing project headers from precompiled headers.
Before this change, the pchs for CalcViewModel and Calculator project referenced project headers. If those project headers (or any of their dependencies) were to change, then the pch would be recompiled, slowing local build times. By removing references to project headers, the pch will be compiled once and is resilient to changes in the project. Now that project headers are explicit about their dependencies, when there is a change to a project header only the translation units referencing the modified header will need to be rebuilt. - Manually tested by ensuring Calculator project builds locally. @Microsoft/calculator-team
This commit is contained in:
parent
56fe16349d
commit
f210290ddc
@ -2,8 +2,11 @@
|
|||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "CalculatorHistory.h"
|
#include "CalculatorHistory.h"
|
||||||
#include "Header Files\Rational.h"
|
#include "Header Files/CalcEngine.h"
|
||||||
|
#include "Header Files/Rational.h"
|
||||||
|
#include "Header Files/ICalcDisplay.h"
|
||||||
|
|
||||||
namespace CalculationManager
|
namespace CalculationManager
|
||||||
{
|
{
|
||||||
|
@ -17,9 +17,9 @@
|
|||||||
#include "scimath.h"
|
#include "scimath.h"
|
||||||
#include "CCommand.h"
|
#include "CCommand.h"
|
||||||
#include "EngineStrings.h"
|
#include "EngineStrings.h"
|
||||||
#include "Command.h"
|
#include "../Command.h"
|
||||||
#include "CalculatorVector.h"
|
#include "../CalculatorVector.h"
|
||||||
#include "ExpressionCommand.h"
|
#include "../ExpressionCommand.h"
|
||||||
#include "History.h" // for History Collector
|
#include "History.h" // for History Collector
|
||||||
#include "CalcInput.h"
|
#include "CalcInput.h"
|
||||||
#include "ICalcDisplay.h"
|
#include "ICalcDisplay.h"
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "../CalculatorVector.h"
|
||||||
|
#include "../ExpressionCommandInterface.h"
|
||||||
|
|
||||||
// Callback interface to be implemented by the clients of CCalcEngine
|
// Callback interface to be implemented by the clients of CCalcEngine
|
||||||
class ICalcDisplay {
|
class ICalcDisplay {
|
||||||
public:
|
public:
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
//
|
//
|
||||||
// RETAIL version of NUMOBJ math that uses Infinite Precision
|
// RETAIL version of NUMOBJ math that uses Infinite Precision
|
||||||
//
|
//
|
||||||
#include "Ratpack/ratpak.h"
|
#include "../Ratpack/ratpak.h"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Unary functions
|
// Unary functions
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "ApplicationViewModel.h"
|
#include "ApplicationViewModel.h"
|
||||||
|
#include "Common\TraceLogger.h"
|
||||||
|
#include "Common\AppResourceProvider.h"
|
||||||
#include "StandardCalculatorViewModel.h"
|
#include "StandardCalculatorViewModel.h"
|
||||||
#include "DateCalculatorViewModel.h"
|
#include "DateCalculatorViewModel.h"
|
||||||
#include "Common\AppResourceProvider.h"
|
|
||||||
#include "DataLoaders\CurrencyHttpClient.h"
|
#include "DataLoaders\CurrencyHttpClient.h"
|
||||||
#include "DataLoaders\CurrencyDataLoader.h"
|
#include "DataLoaders\CurrencyDataLoader.h"
|
||||||
#include "DataLoaders\UnitConverterDataLoader.h"
|
#include "DataLoaders\UnitConverterDataLoader.h"
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "CalculatorButtonUser.h"
|
||||||
|
#include "Utils.h"
|
||||||
|
|
||||||
namespace CalculatorApp
|
namespace CalculatorApp
|
||||||
{
|
{
|
||||||
namespace Common
|
namespace Common
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "CalcManager/Command.h"
|
||||||
|
|
||||||
namespace CalculatorApp
|
namespace CalculatorApp
|
||||||
{
|
{
|
||||||
namespace CM = CalculationManager;
|
namespace CM = CalculationManager;
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "CalcManager/Header Files/ICalcDisplay.h"
|
||||||
|
|
||||||
namespace CalculatorApp
|
namespace CalculatorApp
|
||||||
{
|
{
|
||||||
// Callback interface to be implemented by the CalculatorManager
|
// Callback interface to be implemented by the CalculatorManager
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "CopyPasteManager.h"
|
#include "CopyPasteManager.h"
|
||||||
|
#include "Common\TraceLogger.h"
|
||||||
#include "Common\LocalizationSettings.h"
|
#include "Common\LocalizationSettings.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "AppResourceProvider.h"
|
#include "AppResourceProvider.h"
|
||||||
|
#include "NavCategory.h"
|
||||||
|
|
||||||
namespace CalculatorUnitTests
|
namespace CalculatorUnitTests
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "Utils.h"
|
||||||
|
|
||||||
namespace CalculatorApp::Common
|
namespace CalculatorApp::Common
|
||||||
{
|
{
|
||||||
public enum class TokenType
|
public enum class TokenType
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "CalcManager\CalculatorResource.h"
|
||||||
|
|
||||||
namespace CalculatorApp
|
namespace CalculatorApp
|
||||||
{
|
{
|
||||||
class EngineResourceProvider : public CalculationManager::IResourceProvider
|
class EngineResourceProvider : public CalculationManager::IResourceProvider
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "CalcManager/ExpressionCommand.h"
|
||||||
|
|
||||||
namespace CalculatorApp
|
namespace CalculatorApp
|
||||||
{
|
{
|
||||||
namespace Common
|
namespace Common
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "CalcManager/ExpressionCommand.h"
|
||||||
|
|
||||||
namespace CalculatorApp
|
namespace CalculatorApp
|
||||||
{
|
{
|
||||||
namespace Common
|
namespace Common
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "Utils.h"
|
||||||
|
#include "MyVirtualKey.h"
|
||||||
|
|
||||||
namespace CalculatorApp
|
namespace CalculatorApp
|
||||||
{
|
{
|
||||||
namespace Common
|
namespace Common
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "Utils.h"
|
||||||
|
|
||||||
namespace CalculatorApp { namespace Common
|
namespace CalculatorApp { namespace Common
|
||||||
{
|
{
|
||||||
namespace LocalizationServiceProperties
|
namespace LocalizationServiceProperties
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
/* The NavCategory group of classes and enumerations is intended to serve
|
/* The NavCategory group of classes and enumerations is intended to serve
|
||||||
@ -14,6 +14,9 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "Utils.h"
|
||||||
|
#include "MyVirtualKey.h"
|
||||||
|
|
||||||
namespace CalculatorApp
|
namespace CalculatorApp
|
||||||
{
|
{
|
||||||
namespace Common
|
namespace Common
|
||||||
@ -59,7 +62,7 @@ namespace CalculatorApp
|
|||||||
wchar_t const * nameKey,
|
wchar_t const * nameKey,
|
||||||
wchar_t const * glyph,
|
wchar_t const * glyph,
|
||||||
CategoryGroupType group,
|
CategoryGroupType group,
|
||||||
CalculatorApp::Common::MyVirtualKey vKey,
|
MyVirtualKey vKey,
|
||||||
bool categorySupportsNegative)
|
bool categorySupportsNegative)
|
||||||
:
|
:
|
||||||
viewMode(mode),
|
viewMode(mode),
|
||||||
@ -78,7 +81,7 @@ namespace CalculatorApp
|
|||||||
const wchar_t * const nameResourceKey;
|
const wchar_t * const nameResourceKey;
|
||||||
const wchar_t * const glyph;
|
const wchar_t * const glyph;
|
||||||
const CategoryGroupType groupType;
|
const CategoryGroupType groupType;
|
||||||
const CalculatorApp::Common::MyVirtualKey virtualKey;
|
const MyVirtualKey virtualKey;
|
||||||
const bool supportsNegative;
|
const bool supportsNegative;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -173,7 +176,7 @@ namespace CalculatorApp
|
|||||||
static int GetIndexInGroup(ViewMode mode, CategoryGroupType type);
|
static int GetIndexInGroup(ViewMode mode, CategoryGroupType type);
|
||||||
static int GetPosition(ViewMode mode);
|
static int GetPosition(ViewMode mode);
|
||||||
|
|
||||||
static ViewMode GetViewModeForVirtualKey(CalculatorApp::Common::MyVirtualKey virtualKey);
|
static ViewMode GetViewModeForVirtualKey(MyVirtualKey virtualKey);
|
||||||
|
|
||||||
internal:
|
internal:
|
||||||
NavCategory(Platform::String^ name, Platform::String^ automationName, Platform::String^ glyph, Platform::String^ accessKey, Platform::String^ mode, ViewMode viewMode, bool supportsNegative) :
|
NavCategory(Platform::String^ name, Platform::String^ automationName, Platform::String^ glyph, Platform::String^ accessKey, Platform::String^ mode, ViewMode viewMode, bool supportsNegative) :
|
||||||
@ -188,7 +191,7 @@ namespace CalculatorApp
|
|||||||
m_position = NavCategory::GetPosition(m_viewMode);
|
m_position = NavCategory::GetPosition(m_viewMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::vector<CalculatorApp::Common::MyVirtualKey> GetCategoryAcceleratorKeys();
|
static std::vector<MyVirtualKey> GetCategoryAcceleratorKeys();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static bool IsModeInCategoryGroup(ViewMode mode, CategoryGroupType groupType);
|
static bool IsModeInCategoryGroup(ViewMode mode, CategoryGroupType groupType);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
@ -6,6 +6,7 @@
|
|||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "TraceLogger.h"
|
#include "TraceLogger.h"
|
||||||
#include "NetworkManager.h"
|
#include "NetworkManager.h"
|
||||||
|
#include "CalculatorButtonUser.h"
|
||||||
|
|
||||||
using namespace CalculatorApp;
|
using namespace CalculatorApp;
|
||||||
using namespace CalculatorApp::Common;
|
using namespace CalculatorApp::Common;
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "CalcManager/Command.h"
|
||||||
#include "TraceActivity.h"
|
#include "TraceActivity.h"
|
||||||
|
#include "NavCategory.h"
|
||||||
|
|
||||||
static const int maxFunctionSize = (int)CalculationManager::Command::CommandBINEDITEND;
|
static const int maxFunctionSize = (int)CalculationManager::Command::CommandBINEDITEND;
|
||||||
|
|
||||||
|
@ -1,8 +1,12 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "CalcManager/CalculatorVector.h"
|
||||||
|
#include "CalcManager/ExpressionCommandInterface.h"
|
||||||
|
#include "DelegateCommand.h"
|
||||||
|
|
||||||
// Utility macros to make Models easier to write
|
// Utility macros to make Models easier to write
|
||||||
// generates a member variable called m_<n>
|
// generates a member variable called m_<n>
|
||||||
#define PROPERTY_R(t, n)\
|
#define PROPERTY_R(t, n)\
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "CurrencyDataLoader.h"
|
#include "CurrencyDataLoader.h"
|
||||||
#include "UnitConverterDataConstants.h"
|
|
||||||
#include "Common\AppResourceProvider.h"
|
#include "Common\AppResourceProvider.h"
|
||||||
#include "Common\LocalizationStringUtil.h"
|
#include "Common\LocalizationStringUtil.h"
|
||||||
#include "Common\LocalizationService.h"
|
#include "Common\LocalizationService.h"
|
||||||
#include "Common\LocalizationSettings.h"
|
#include "Common\LocalizationSettings.h"
|
||||||
|
#include "Common\TraceLogger.h"
|
||||||
|
#include "UnitConverterDataConstants.h"
|
||||||
|
|
||||||
using namespace CalculatorApp;
|
using namespace CalculatorApp;
|
||||||
using namespace CalculatorApp::Common;
|
using namespace CalculatorApp::Common;
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "CalcManager\UnitConverter.h"
|
||||||
#include "Common\NetworkManager.h"
|
#include "Common\NetworkManager.h"
|
||||||
#include "ICurrencyHttpClient.h"
|
#include "ICurrencyHttpClient.h"
|
||||||
|
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "CalcManager\UnitConverter.h"
|
||||||
|
#include "Common/NavCategory.h"
|
||||||
|
|
||||||
namespace CalculatorApp
|
namespace CalculatorApp
|
||||||
{
|
{
|
||||||
namespace ViewModel
|
namespace ViewModel
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "DateCalculatorViewModel.h"
|
#include "DateCalculatorViewModel.h"
|
||||||
|
#include "Common\TraceLogger.h"
|
||||||
#include "Common\LocalizationStringUtil.h"
|
#include "Common\LocalizationStringUtil.h"
|
||||||
#include "Common\LocalizationService.h"
|
#include "Common\LocalizationService.h"
|
||||||
#include "Common\LocalizationSettings.h"
|
#include "Common\LocalizationSettings.h"
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Common\DateCalculator.h"
|
#include "Common/Utils.h"
|
||||||
|
#include "Common/DateCalculator.h"
|
||||||
|
|
||||||
const int c_maxOffsetValue = 999;
|
const int c_maxOffsetValue = 999;
|
||||||
|
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "CalcManager/CalculatorVector.h"
|
||||||
|
#include "CalcManager/ExpressionCommandInterface.h"
|
||||||
|
|
||||||
namespace CalculatorApp
|
namespace CalculatorApp
|
||||||
{
|
{
|
||||||
namespace ViewModel
|
namespace ViewModel
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "HistoryViewModel.h"
|
#include "HistoryViewModel.h"
|
||||||
|
#include "Common\TraceLogger.h"
|
||||||
#include "Common\LocalizationStringUtil.h"
|
#include "Common\LocalizationStringUtil.h"
|
||||||
#include "Common\LocalizationSettings.h"
|
#include "Common\LocalizationSettings.h"
|
||||||
|
|
||||||
@ -17,7 +18,6 @@ using namespace Windows::Storage;
|
|||||||
using namespace Windows::Storage::Streams;
|
using namespace Windows::Storage::Streams;
|
||||||
using namespace Windows::Security::Cryptography;
|
using namespace Windows::Security::Cryptography;
|
||||||
using namespace Windows::Foundation::Collections;
|
using namespace Windows::Foundation::Collections;
|
||||||
using CalculatorApp::TraceLogger;
|
|
||||||
|
|
||||||
static StringReference HistoryVectorLengthKey{ L"HistoryVectorLength" };
|
static StringReference HistoryVectorLengthKey{ L"HistoryVectorLength" };
|
||||||
|
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "Common\Automation\NarratorAnnouncement.h"
|
|
||||||
#include "Common\CalculatorDisplay.h"
|
#include "CalcManager/CalculatorManager.h"
|
||||||
|
#include "Common/Automation/NarratorAnnouncement.h"
|
||||||
|
#include "Common/CalculatorDisplay.h"
|
||||||
|
#include "Common/NavCategory.h"
|
||||||
#include "HistoryItemViewModel.h"
|
#include "HistoryItemViewModel.h"
|
||||||
|
|
||||||
namespace CalculatorApp
|
namespace CalculatorApp
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "Common/Utils.h"
|
||||||
|
|
||||||
namespace CalculatorApp
|
namespace CalculatorApp
|
||||||
{
|
{
|
||||||
namespace ViewModel
|
namespace ViewModel
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
#include "Common\LocalizationStringUtil.h"
|
#include "Common\LocalizationStringUtil.h"
|
||||||
#include "Common\LocalizationSettings.h"
|
#include "Common\LocalizationSettings.h"
|
||||||
#include "Common\CopyPasteManager.h"
|
#include "Common\CopyPasteManager.h"
|
||||||
|
#include "Common\TraceLogger.h"
|
||||||
|
|
||||||
using namespace CalculatorApp;
|
using namespace CalculatorApp;
|
||||||
using namespace CalculatorApp::Common;
|
using namespace CalculatorApp::Common;
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "Common\Automation\NarratorAnnouncement.h"
|
#include "Common\Automation\NarratorAnnouncement.h"
|
||||||
#include "Common\DisplayExpressionToken.h"
|
#include "Common\DisplayExpressionToken.h"
|
||||||
#include "Common\CalculatorDisplay.h"
|
#include "Common\CalculatorDisplay.h"
|
||||||
|
#include "Common\EngineResourceProvider.h"
|
||||||
|
#include "Common\CalculatorButtonUser.h"
|
||||||
#include "HistoryViewModel.h"
|
#include "HistoryViewModel.h"
|
||||||
#include "MemoryItemViewModel.h"
|
#include "MemoryItemViewModel.h"
|
||||||
#include "Common\EngineResourceProvider.h"
|
|
||||||
|
|
||||||
namespace CalculatorFunctionalTests
|
namespace CalculatorFunctionalTests
|
||||||
{
|
{
|
||||||
|
@ -1,13 +1,15 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "UnitConverterViewModel.h"
|
#include "UnitConverterViewModel.h"
|
||||||
|
#include "CalcManager/Header Files/EngineStrings.h"
|
||||||
#include "Common\CalculatorButtonPressedEventArgs.h"
|
#include "Common\CalculatorButtonPressedEventArgs.h"
|
||||||
#include "Common\CopyPasteManager.h"
|
#include "Common\CopyPasteManager.h"
|
||||||
#include "Common\LocalizationStringUtil.h"
|
#include "Common\LocalizationStringUtil.h"
|
||||||
#include "Common\LocalizationService.h"
|
#include "Common\LocalizationService.h"
|
||||||
#include "Common\LocalizationSettings.h"
|
#include "Common\LocalizationSettings.h"
|
||||||
|
#include "Common\TraceLogger.h"
|
||||||
#include "DataLoaders\CurrencyHttpClient.h"
|
#include "DataLoaders\CurrencyHttpClient.h"
|
||||||
#include "DataLoaders\CurrencyDataLoader.h"
|
#include "DataLoaders\CurrencyDataLoader.h"
|
||||||
#include "DataLoaders\UnitConverterDataLoader.h"
|
#include "DataLoaders\UnitConverterDataLoader.h"
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Common\NetworkManager.h"
|
#include "CalcManager/UnitConverter.h"
|
||||||
#include "Common\Automation\NarratorAnnouncement.h"
|
#include "Common/Utils.h"
|
||||||
#include "Common\ConversionResultTaskHelper.h"
|
#include "Common/NetworkManager.h"
|
||||||
|
#include "Common/Automation/NarratorAnnouncement.h"
|
||||||
|
#include "Common/ConversionResultTaskHelper.h"
|
||||||
|
#include "Common/CalculatorButtonUser.h"
|
||||||
|
#include "Common/NavCategory.h"
|
||||||
|
|
||||||
namespace CalculatorApp
|
namespace CalculatorApp
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
@ -43,19 +43,3 @@
|
|||||||
namespace StandardPeers = Windows::UI::Xaml::Automation::Peers;
|
namespace StandardPeers = Windows::UI::Xaml::Automation::Peers;
|
||||||
namespace CalculatorApp::Common::Automation {}
|
namespace CalculatorApp::Common::Automation {}
|
||||||
namespace CustomPeers = CalculatorApp::Common::Automation;
|
namespace CustomPeers = CalculatorApp::Common::Automation;
|
||||||
|
|
||||||
// CalcManager Headers
|
|
||||||
#include "CalcManager\CalculatorVector.h"
|
|
||||||
#include "CalcManager\ExpressionCommand.h"
|
|
||||||
#include "CalcManager\CalculatorResource.h"
|
|
||||||
#include "CalcManager\CalculatorManager.h"
|
|
||||||
#include "CalcManager\UnitConverter.h"
|
|
||||||
|
|
||||||
// Project Headers
|
|
||||||
#include "Common\DelegateCommand.h"
|
|
||||||
#include "Common\Utils.h"
|
|
||||||
#include "Common\MyVirtualKey.h"
|
|
||||||
#include "Common\NavCategory.h"
|
|
||||||
#include "Common\TraceLogger.h"
|
|
||||||
#include "Common\CalculatorButtonUser.h"
|
|
||||||
|
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "AboutFlyout.xaml.h"
|
#include "AboutFlyout.xaml.h"
|
||||||
#include "CalcViewModel\Common\AppResourceProvider.h"
|
#include "CalcViewModel/Common/AppResourceProvider.h"
|
||||||
#include "CalcViewModel\Common\LocalizationService.h"
|
#include "CalcViewModel/Common/LocalizationService.h"
|
||||||
#include "CalcViewModel\Common\LocalizationStringUtil.h"
|
#include "CalcViewModel/Common/LocalizationStringUtil.h"
|
||||||
|
#include "CalcViewModel/Common/TraceLogger.h"
|
||||||
|
|
||||||
using namespace CalculatorApp;
|
using namespace CalculatorApp;
|
||||||
using namespace CalculatorApp::Common;
|
using namespace CalculatorApp::Common;
|
||||||
|
@ -8,11 +8,12 @@
|
|||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "App.xaml.h"
|
#include "App.xaml.h"
|
||||||
#include "CalcViewModel\ViewState.h"
|
#include "CalcViewModel/Common/TraceLogger.h"
|
||||||
#include "CalcViewModel\Common\Automation\NarratorNotifier.h"
|
#include "CalcViewModel/Common/Automation/NarratorNotifier.h"
|
||||||
#include "CalcViewModel\Common\AppResourceProvider.h"
|
#include "CalcViewModel/Common/AppResourceProvider.h"
|
||||||
#include "CalcViewModel\Common\LocalizationSettings.h"
|
#include "CalcViewModel/Common/LocalizationSettings.h"
|
||||||
#include "Views\MainPage.xaml.h"
|
#include "CalcViewModel/ViewState.h"
|
||||||
|
#include "Views/MainPage.xaml.h"
|
||||||
|
|
||||||
using namespace CalculatorApp;
|
using namespace CalculatorApp;
|
||||||
using namespace CalculatorApp::Common;
|
using namespace CalculatorApp::Common;
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "CalcViewModel/Common/Utils.h"
|
||||||
|
|
||||||
namespace CalculatorApp
|
namespace CalculatorApp
|
||||||
{
|
{
|
||||||
namespace Controls
|
namespace Controls
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "CalcViewModel/Common/Utils.h"
|
||||||
|
#include "CalcViewModel/Common/CalculatorButtonUser.h"
|
||||||
|
|
||||||
namespace CalculatorApp
|
namespace CalculatorApp
|
||||||
{
|
{
|
||||||
namespace Controls
|
namespace Controls
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "CalcViewModel/Common/Utils.h"
|
||||||
|
#include "CalcViewModel/Common/CalculatorButtonUser.h"
|
||||||
|
|
||||||
namespace CalculatorApp
|
namespace CalculatorApp
|
||||||
{
|
{
|
||||||
namespace Controls
|
namespace Controls
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "CalcViewModel/Common/Utils.h"
|
||||||
|
|
||||||
namespace CalculatorApp
|
namespace CalculatorApp
|
||||||
{
|
{
|
||||||
namespace Controls
|
namespace Controls
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "CalcViewModel\Common\AppResourceProvider.h"
|
|
||||||
#include "RadixToStringConverter.h"
|
#include "RadixToStringConverter.h"
|
||||||
|
#include "CalcManager/Header Files/CalcEngine.h"
|
||||||
using namespace CalculatorApp::Common;
|
#include "CalcViewModel/Common/AppResourceProvider.h"
|
||||||
|
|
||||||
using namespace Platform;
|
using namespace Platform;
|
||||||
using namespace Windows::Foundation;
|
using namespace Windows::Foundation;
|
||||||
using namespace Windows::UI::Xaml::Interop;
|
using namespace Windows::UI::Xaml::Interop;
|
||||||
using namespace Windows::ApplicationModel::Resources;
|
using namespace Windows::ApplicationModel::Resources;
|
||||||
|
|
||||||
namespace CalculatorApp
|
namespace CalculatorApp
|
||||||
{
|
{
|
||||||
namespace Converters
|
namespace Converters
|
||||||
|
@ -4,10 +4,11 @@
|
|||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "Calculator.xaml.h"
|
#include "Calculator.xaml.h"
|
||||||
#include "CalculatorStandardOperators.xaml.h"
|
#include "CalculatorStandardOperators.xaml.h"
|
||||||
#include "CalcViewModel\Common\CopyPasteManager.h"
|
#include "CalcViewModel/Common/TraceLogger.h"
|
||||||
#include "CalcViewModel\StandardCalculatorViewModel.h"
|
#include "CalcViewModel/Common/CopyPasteManager.h"
|
||||||
#include "CalcViewModel\ViewState.h"
|
#include "CalcViewModel/StandardCalculatorViewModel.h"
|
||||||
#include "CalcViewModel\Common\LocalizationSettings.h"
|
#include "CalcViewModel/ViewState.h"
|
||||||
|
#include "CalcViewModel/Common/LocalizationSettings.h"
|
||||||
#include "Memory.xaml.h"
|
#include "Memory.xaml.h"
|
||||||
#include "HistoryList.xaml.h"
|
#include "HistoryList.xaml.h"
|
||||||
|
|
||||||
|
@ -8,8 +8,9 @@
|
|||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "CalculatorProgrammerBitFlipPanel.xaml.h"
|
#include "CalculatorProgrammerBitFlipPanel.xaml.h"
|
||||||
#include "CalcViewModel\Common\LocalizationSettings.h"
|
#include "CalcViewModel/Common/TraceLogger.h"
|
||||||
#include "Converters\BooleanToVisibilityConverter.h"
|
#include "CalcViewModel/Common/LocalizationSettings.h"
|
||||||
|
#include "Converters/BooleanToVisibilityConverter.h"
|
||||||
|
|
||||||
using namespace CalculatorApp;
|
using namespace CalculatorApp;
|
||||||
using namespace CalculatorApp::Common;
|
using namespace CalculatorApp::Common;
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "CalculatorProgrammerDisplayPanel.xaml.h"
|
#include "CalculatorProgrammerDisplayPanel.xaml.h"
|
||||||
|
#include "CalcViewModel/Common/TraceLogger.h"
|
||||||
|
|
||||||
using namespace CalculatorApp;
|
using namespace CalculatorApp;
|
||||||
using namespace CalculatorApp::ViewModel;
|
using namespace CalculatorApp::ViewModel;
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "CalculatorProgrammerOperators.xaml.h"
|
#include "CalculatorProgrammerOperators.xaml.h"
|
||||||
#include "CalcViewModel\StandardCalculatorViewModel.h"
|
#include "CalcViewModel/Common/TraceLogger.h"
|
||||||
#include "CalcViewModel\Common\CopyPasteManager.h"
|
#include "CalcViewModel/Common/CopyPasteManager.h"
|
||||||
|
#include "CalcViewModel/StandardCalculatorViewModel.h"
|
||||||
|
|
||||||
using namespace CalculatorApp;
|
using namespace CalculatorApp;
|
||||||
using namespace CalculatorApp::Common;
|
using namespace CalculatorApp::Common;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -8,7 +8,8 @@
|
|||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "CalculatorScientificAngleButtons.xaml.h"
|
#include "CalculatorScientificAngleButtons.xaml.h"
|
||||||
#include "CalcViewModel\StandardCalculatorViewModel.h"
|
#include "CalcViewModel/Common/TraceLogger.h"
|
||||||
|
#include "CalcViewModel/StandardCalculatorViewModel.h"
|
||||||
|
|
||||||
using namespace CalculatorApp;
|
using namespace CalculatorApp;
|
||||||
using namespace CalculatorApp::ViewModel;
|
using namespace CalculatorApp::ViewModel;
|
||||||
|
@ -8,9 +8,10 @@
|
|||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "DateCalculator.xaml.h"
|
#include "DateCalculator.xaml.h"
|
||||||
#include "CalcViewModel\Common\CopyPasteManager.h"
|
#include "CalcViewModel/Common/TraceLogger.h"
|
||||||
#include "CalcViewModel\Common\LocalizationSettings.h"
|
#include "CalcViewModel/Common/CopyPasteManager.h"
|
||||||
#include "CalcViewModel\DateCalculatorViewModel.h"
|
#include "CalcViewModel/Common/LocalizationSettings.h"
|
||||||
|
#include "CalcViewModel/DateCalculatorViewModel.h"
|
||||||
|
|
||||||
using namespace CalculatorApp;
|
using namespace CalculatorApp;
|
||||||
using namespace CalculatorApp::Common;
|
using namespace CalculatorApp::Common;
|
||||||
|
@ -3,13 +3,14 @@
|
|||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "MainPage.xaml.h"
|
#include "MainPage.xaml.h"
|
||||||
#include "Views\Memory.xaml.h"
|
#include "CalcViewModel/Common/TraceLogger.h"
|
||||||
#include "Converters\BooleanToVisibilityConverter.h"
|
#include "CalcViewModel/Common/KeyboardShortcutManager.h"
|
||||||
#include "CalcViewModel\Common\KeyboardShortcutManager.h"
|
#include "CalcViewModel/Common/LocalizationService.h"
|
||||||
#include "CalcViewModel\Common\LocalizationService.h"
|
#include "CalcViewModel/Common/Automation/NarratorNotifier.h"
|
||||||
#include "CalcViewModel\Common\Automation\NarratorNotifier.h"
|
#include "CalcViewModel/Common/AppResourceProvider.h"
|
||||||
#include "CalcViewModel\Common\AppResourceProvider.h"
|
#include "Views/Memory.xaml.h"
|
||||||
#include "Common\AppLifecycleLogger.h"
|
#include "Converters/BooleanToVisibilityConverter.h"
|
||||||
|
#include "Common/AppLifecycleLogger.h"
|
||||||
|
|
||||||
using namespace CalculatorApp;
|
using namespace CalculatorApp;
|
||||||
using namespace CalculatorApp::Common;
|
using namespace CalculatorApp::Common;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
/* The AspectRatioTrigger class is a custom trigger for use with a VisualState. The trigger is designed to fire when the
|
/* The AspectRatioTrigger class is a custom trigger for use with a VisualState. The trigger is designed to fire when the
|
||||||
@ -9,6 +9,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "CalcViewModel/Common/Utils.h"
|
||||||
|
|
||||||
namespace CalculatorApp::Views::StateTriggers
|
namespace CalculatorApp::Views::StateTriggers
|
||||||
{
|
{
|
||||||
public enum class Aspect
|
public enum class Aspect
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
#include "WindowFrameService.h"
|
#include "WindowFrameService.h"
|
||||||
#include "CalcViewModel\Common\KeyboardShortcutManager.h"
|
#include "CalcViewModel/Common/KeyboardShortcutManager.h"
|
||||||
|
#include "CalcViewModel/Common/TraceLogger.h"
|
||||||
|
|
||||||
using namespace concurrency;
|
using namespace concurrency;
|
||||||
using namespace Platform;
|
using namespace Platform;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||||
// Licensed under the MIT License.
|
// Licensed under the MIT License.
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -42,21 +42,5 @@ namespace StandardPeers = Windows::UI::Xaml::Automation::Peers;
|
|||||||
namespace CalculatorApp::Common::Automation {}
|
namespace CalculatorApp::Common::Automation {}
|
||||||
namespace CustomPeers = CalculatorApp::Common::Automation;
|
namespace CustomPeers = CalculatorApp::Common::Automation;
|
||||||
|
|
||||||
// CalcManager Headers
|
|
||||||
#include "CalcManager\CalculatorVector.h"
|
|
||||||
#include "CalcManager\ExpressionCommand.h"
|
|
||||||
#include "CalcManager\CalculatorResource.h"
|
|
||||||
#include "CalcManager\CalculatorManager.h"
|
|
||||||
#include "CalcManager\UnitConverter.h"
|
|
||||||
|
|
||||||
//CalcViewModel Headers
|
|
||||||
#include "CalcViewModel\Common\DelegateCommand.h"
|
|
||||||
#include "CalcViewModel\Common\Utils.h"
|
|
||||||
#include "CalcViewModel\Common\CalculatorButtonUser.h"
|
|
||||||
#include "CalcViewModel\Common\MyVirtualKey.h"
|
|
||||||
#include "CalcViewModel\Common\NavCategory.h"
|
|
||||||
#include "CalcViewModel\Common\TraceLogger.h"
|
|
||||||
|
|
||||||
// Project Headers
|
// Project Headers
|
||||||
|
|
||||||
#include "App.xaml.h"
|
#include "App.xaml.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user