-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
82 changed files
with
6,470 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
############################################################################### | ||
# Set default behavior to automatically normalize line endings. | ||
############################################################################### | ||
* text=auto | ||
|
||
############################################################################### | ||
# Set default behavior for command prompt diff. | ||
# | ||
# This is need for earlier builds of msysgit that does not have it on by | ||
# default for csharp files. | ||
# Note: This is only used by command line | ||
############################################################################### | ||
#*.cs diff=csharp | ||
|
||
############################################################################### | ||
# Set the merge driver for project and solution files | ||
# | ||
# Merging from the command prompt will add diff markers to the files if there | ||
# are conflicts (Merging from VS is not affected by the settings below, in VS | ||
# the diff markers are never inserted). Diff markers may cause the following | ||
# file extensions to fail to load in VS. An alternative would be to treat | ||
# these files as binary and thus will always conflict and require user | ||
# intervention with every merge. To do so, just uncomment the entries below | ||
############################################################################### | ||
#*.sln merge=binary | ||
#*.csproj merge=binary | ||
#*.vbproj merge=binary | ||
#*.vcxproj merge=binary | ||
#*.vcproj merge=binary | ||
#*.dbproj merge=binary | ||
#*.fsproj merge=binary | ||
#*.lsproj merge=binary | ||
#*.wixproj merge=binary | ||
#*.modelproj merge=binary | ||
#*.sqlproj merge=binary | ||
#*.wwaproj merge=binary | ||
|
||
############################################################################### | ||
# behavior for image files | ||
# | ||
# image files are treated as binary by default. | ||
############################################################################### | ||
#*.jpg binary | ||
#*.png binary | ||
#*.gif binary | ||
|
||
############################################################################### | ||
# diff behavior for common document formats | ||
# | ||
# Convert binary document formats to text before diffing them. This feature | ||
# is only available from the command line. Turn it on by uncommenting the | ||
# entries below. | ||
############################################################################### | ||
#*.doc diff=astextplain | ||
#*.DOC diff=astextplain | ||
#*.docx diff=astextplain | ||
#*.DOCX diff=astextplain | ||
#*.dot diff=astextplain | ||
#*.DOT diff=astextplain | ||
#*.pdf diff=astextplain | ||
#*.PDF diff=astextplain | ||
#*.rtf diff=astextplain | ||
#*.RTF diff=astextplain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@echo OFF | ||
rem PowerShell Build.ps1 Script Wrapper | ||
SETLOCAL | ||
color 1F | ||
set PS_FILE="%~dpn0.ps1" | ||
TITLE Executing PowerShell %PS_FILE% script . . . | ||
|
||
if NOT exist %SystemRoot%\system32\config\system ( | ||
echo ERROR: You must run this script as Administrator | ||
goto :ExitScript | ||
) | ||
|
||
powershell.exe -ExecutionPolicy RemoteSigned -NoLogo -File %PS_FILE% | ||
|
||
:ExitScript | ||
ENDLOCAL | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Build.ps1 -- Builds MyJournal.Notebook VS2017 Solution using MSBuild | ||
#Requires –Version 4 | ||
#Requires -RunAsAdministrator | ||
|
||
# Load the common script library | ||
. "$PSScriptRoot\scripts\Common-Library.ps1" | ||
|
||
if ($global:MSBuild_EXE -eq $null) { | ||
Set-Variable ` | ||
-Name MSBuild_EXE -Value $(Find-MSBuild-v15) ` | ||
-Option Constant -Scope Global | ||
} | ||
|
||
Set-Location $PSScriptRoot | ||
|
||
#------------------------------------------------------------------------------- | ||
# MSBuild properties | ||
#------------------------------------------------------------------------------- | ||
# NOTE: THE FOLLOWING 2 PROPERTIES ARE MUTUALLY EXCLUSIVE; USE ONE OR THE OTHER | ||
# | ||
# To specify a semantic version, use the /p:Version property: | ||
# EXAMPLE: '/p:Version=16.0.0-rc.1' | ||
# | ||
# To specify Git Commit SHA-1 hash, use the /p:SourceRevisionId property: | ||
# EXAMPLE: "/p:SourceRevisionId=g$(Git-Latest-Commit)" | ||
#------------------------------------------------------------------------------- | ||
$properties = @('/p:Configuration=Release', '/p:Platform=x86', | ||
"/p:SourceRevisionId=g$(Git-Latest-Commit)") | ||
|
||
$sln = '"{0}"' -f "$PSScriptRoot\src\MyJournal.Notebook.sln" | ||
|
||
& $MSBuild_EXE $sln $properties /t:Restore | ||
|
||
# MSBuild registers the OneNote COM Add-in; requires Run as Administrator option | ||
& $MSBuild_EXE $sln $properties /t:'Clean;Build' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# *MyJournal.Notebook* | ||
--- | ||
## Usage | ||
### :star: How-to: Create a Journal Page | ||
>![screenshot](usage/create-journal-page.gif) | ||
>Screen capture recorded with [ScreenToGif](https://www.screentogif.com/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# *MyJournal.Notebook* | ||
--- | ||
## Usage | ||
### :star: How-to: Select a Journal Page Template | ||
>![screenshot](usage/select-page-template.gif) | ||
>Screen capture recorded with [ScreenToGif](https://www.screentogif.com/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# *MyJournal.Notebook* | ||
--- | ||
## Usage | ||
### :star: How-to: Select a Journal Page Color | ||
>![screenshot](usage/select-page-color.gif) | ||
>Screen capture recorded with [ScreenToGif](https://www.screentogif.com/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# *MyJournal.Notebook* | ||
--- | ||
## Usage | ||
### :star: How-to: Select a Journal Page Title Date Format | ||
>![screenshot](usage/select-page-title-date-format.gif) | ||
>Screen capture recorded with [ScreenToGif](https://www.screentogif.com/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# *MyJournal.Notebook* | ||
--- | ||
## Usage | ||
### :star: How-to: Select a Journal Page Rule Lines Style | ||
>![screenshot](usage/select-page-rule-lines-format.gif) | ||
>Screen capture recorded with [ScreenToGif](https://www.screentogif.com/) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
DebugView Filter Definition File v1.0 | ||
[DEBUG] | ||
[DEBUG];[TRACE];[ " ];[INFO ];[WARN ];[ERROR] | ||
|
||
[TRACE];[ " ] | ||
[INFO ] | ||
[WARN ] | ||
[ERROR] | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
FFFFFF | ||
AA1977 | ||
0 | ||
E6D8AD | ||
FFFFFF | ||
BB00 | ||
0 | ||
73F7FE | ||
FFFFFF | ||
300FF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF | ||
FFFFFF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# About the DebugView-Filters.ini file | ||
|
||
The **`DebugView-Filters.ini`** file is a [Sysinternals DebugView](https://docs.microsoft.com/en-us/sysinternals/downloads/debugview) filters file for debugging the **MyJournal.Notebook** add-in. | ||
|
||
---------- | ||
|
||
### DebugView Menu Settings | ||
- Capture | ||
- Select Capture Win32 (Ctrl+W) | ||
- Select Capture Events (Ctrl+E) | ||
|
||
- Options | ||
- Deselect Win32 PIDs | ||
- Select Clock Time (Ctrl+T) | ||
- Select Show Milliseconds | ||
|
||
- Computer | ||
- Select Connect Local | ||
|
||
---------- | ||
|
||
### How to load the **`DebugView-Filters.ini`** file | ||
1. From the DebugView menu, select Edit > Filter/Highlight... (Ctrl+L) | ||
2. Click the Load button | ||
3. Navigate to the repo `docs\debugging` subdirectory and select the `DebugView-Filters.ini` file | ||
4. Click the Open button | ||
5. Click the OK button | ||
6. Save the filters configuration by closing and reopening DebugView | ||
|
||
---------- | ||
|
||
### Debugging the MyJournal.Notebook Add-in | ||
To debug the add-in, update the following ``appSettings`` values in ``App.config``: | ||
Set ``key="Diagnostics.OutputWriter.Type.Name" value="TraceOutputWriter"`` | ||
Set ``key="Diagnostics.TraceSwitch.Level" value="Verbose"`` | ||
|
||
**NOTE:** When creating a ``Debug`` build, the ``App.config`` file will be automatically configured by the Microsoft VisualStudio [SlowCheetah](https://marketplace.visualstudio.com/items?itemName=vscps.SlowCheetah-XMLTransforms) package. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# About-MyJournal-Notebook.ps1 | ||
|
||
If ( [IntPtr]::Size * 8 -ne 32 ) | ||
{ | ||
$this = $MyInvocation.MyCommand.Path | ||
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\PowerShell.exe -File $this | ||
Exit | ||
# NOTE: The Assembly::LoadFile statement below must run in 32-bit instance | ||
# of PowerShell in order to successfully load the COM Add-in assembly. | ||
} | ||
|
||
# Load the common script library | ||
. "$PSScriptRoot\Common-Library.ps1" | ||
|
||
# Load the COM Add-in assembly | ||
$assembly = [Reflection.Assembly]::LoadFile("$(Get-ComAddIn-CodeBase)") | ||
|
||
$description = [Reflection.CustomAttributeExtensions]::GetCustomAttribute(` | ||
$assembly, [Reflection.AssemblyDescriptionAttribute]).Description | ||
|
||
$copyright = [Reflection.CustomAttributeExtensions]::GetCustomAttribute(` | ||
$assembly, [Reflection.AssemblyCopyrightAttribute]).Copyright | ||
|
||
$version = [Reflection.CustomAttributeExtensions]::GetCustomAttribute(` | ||
$assembly, [Reflection.AssemblyInformationalVersionAttribute]).` | ||
InformationalVersion | ||
|
||
$msg = "{0}`r`n{1}`r`nProduct Version: {2}" -f $description, $copyright, $version | ||
Display-MsgBox $msg | Out-Null |
Oops, something went wrong.