Skip to content

Commit 2e66412

Browse files
authored
Merge pull request #231 from miroiu/chore/docs
Update StringMath and generated API reference
2 parents 239c055 + aad9055 commit 2e66412

File tree

6 files changed

+101
-3
lines changed

6 files changed

+101
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
> - Added the KeyComboGesture that requires a trigger key to be held down before pressing a combo key
2626
> - Added FocusVisualPen and FocusVisualPadding dependency properties to BaseConnection
2727
> - Added default focus visuals for base editor controls that can be included by referencing the FocusVisual.xaml file
28-
> - Added MaxHotKeys and HotKeysDisplayMode static configuration field to PendingConnection
28+
> - Added MaxHotKeys and HotKeysDisplayMode static configuration fields to PendingConnection
2929
> - Added HotKeyControl with its corresponding theme resources to display the hotkeys for a pending connection
3030
> - Bugfixes:
3131

Examples/Nodify.Calculator/Nodify.Calculator.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<LangVersion>8.0</LangVersion>
1111
</PropertyGroup>
1212
<ItemGroup>
13-
<PackageReference Include="StringMath" Version="4.1.2" />
13+
<PackageReference Include="StringMath" Version="4.1.3" />
1414
</ItemGroup>
1515

1616
<ItemGroup>

docs/api/API-Reference.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
- [EditorCommands Class](Nodify_EditorCommands)
2222
- [GroupingMovementMode Enum](Nodify_GroupingMovementMode)
2323
- [GroupingNode Class](Nodify_GroupingNode)
24+
- [HotKeyControl Class](Nodify_HotKeyControl)
25+
- [HotKeysDisplayMode Enum](Nodify_HotKeysDisplayMode)
2426
- [INodifyCanvasItem Interface](Nodify_INodifyCanvasItem)
2527
- [ItemContainer Class](Nodify_ItemContainer)
2628
- [KnotNode Class](Nodify_KnotNode)

docs/api/Nodify_HotKeyControl.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# HotKeyControl Class
2+
3+
**Namespace:** Nodify
4+
5+
**Assembly:** Nodify
6+
7+
**Inheritance:** [Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object)[DispatcherObject](https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Threading.DispatcherObject)[DependencyObject](https://docs.microsoft.com/en-us/dotnet/api/System.Windows.DependencyObject)[Visual](https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Media.Visual)[UIElement](https://docs.microsoft.com/en-us/dotnet/api/System.Windows.UIElement)[FrameworkElement](https://docs.microsoft.com/en-us/dotnet/api/System.Windows.FrameworkElement)[Control](https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Controls.Control)[HotKeyControl](Nodify_HotKeyControl)
8+
9+
```csharp
10+
public class HotKeyControl : Control
11+
```
12+
13+
## Constructors
14+
15+
### HotKeyControl()
16+
17+
```csharp
18+
public HotKeyControl();
19+
```
20+
21+
## Properties
22+
23+
### Number
24+
25+
```csharp
26+
public int Number { get; set; }
27+
```
28+
29+
**Property Value**
30+
31+
[Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32)
32+
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# HotKeysDisplayMode Enum
2+
3+
**Namespace:** Nodify
4+
5+
**Assembly:** Nodify
6+
7+
**References:** [PendingConnection](Nodify_PendingConnection)
8+
9+
Specifies how hotkeys are displayed for a pending connection.
10+
11+
```csharp
12+
public enum HotKeysDisplayMode
13+
```
14+
15+
## Fields
16+
17+
### All
18+
19+
Display hotkeys for both mouse and keyboard.
20+
21+
```csharp
22+
All = 2;
23+
```
24+
25+
### Keyboard
26+
27+
Display hotkeys for keyboard only.
28+
29+
```csharp
30+
Keyboard = 1;
31+
```
32+
33+
### None
34+
35+
No hotkeys will be displayed for the pending connection.
36+
37+
```csharp
38+
None = 0;
39+
```
40+

docs/api/Nodify_PendingConnection.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
**Inheritance:** [Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object)[DispatcherObject](https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Threading.DispatcherObject)[DependencyObject](https://docs.microsoft.com/en-us/dotnet/api/System.Windows.DependencyObject)[Visual](https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Media.Visual)[UIElement](https://docs.microsoft.com/en-us/dotnet/api/System.Windows.UIElement)[FrameworkElement](https://docs.microsoft.com/en-us/dotnet/api/System.Windows.FrameworkElement)[Control](https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Controls.Control)[ContentControl](https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Controls.ContentControl)[PendingConnection](Nodify_PendingConnection)
88

9-
**References:** [ConnectionDirection](Nodify_ConnectionDirection), [Connector](Nodify_Connector), [ItemContainer](Nodify_ItemContainer), [NodifyEditor](Nodify_NodifyEditor), [PendingConnectionEventArgs](Nodify_Events_PendingConnectionEventArgs), [PendingConnectionEventHandler](Nodify_Events_PendingConnectionEventHandler), [StateNode](Nodify_StateNode)
9+
**References:** [ConnectionDirection](Nodify_ConnectionDirection), [Connector](Nodify_Connector), [HotKeysDisplayMode](Nodify_HotKeysDisplayMode), [ItemContainer](Nodify_ItemContainer), [NodifyEditor](Nodify_NodifyEditor), [PendingConnectionEventArgs](Nodify_Events_PendingConnectionEventArgs), [PendingConnectionEventHandler](Nodify_Events_PendingConnectionEventHandler), [StateNode](Nodify_StateNode)
1010

1111
Represents a pending connection usually started by a [Connector](Nodify_Connector) which invokes the [PendingConnection.CompletedCommand](Nodify_PendingConnection#completedcommand) when completed.
1212

@@ -110,6 +110,18 @@ public bool EnableSnapping { get; set; }
110110

111111
[Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean)
112112

113+
### HotKeysDisplayMode
114+
115+
Gets or sets whether hotkeys are enabled for pending connections.
116+
117+
```csharp
118+
public static HotKeysDisplayMode HotKeysDisplayMode { get; set; }
119+
```
120+
121+
**Property Value**
122+
123+
[HotKeysDisplayMode](Nodify_HotKeysDisplayMode)
124+
113125
### IsVisible
114126

115127
Gets or sets the visibility of the connection.
@@ -122,6 +134,18 @@ public bool IsVisible { get; set; }
122134

123135
[Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean)
124136

137+
### MaxHotKeys
138+
139+
Gets or sets the maximum number of hotkeys that can be displayed for a pending connection.
140+
141+
```csharp
142+
public static uint MaxHotKeys { get; set; }
143+
```
144+
145+
**Property Value**
146+
147+
[UInt32](https://docs.microsoft.com/en-us/dotnet/api/System.UInt32)
148+
125149
### PreviewTarget
126150

127151
Gets or sets the [Connector](Nodify_Connector) or the [ItemContainer](Nodify_ItemContainer) (if [PendingConnection.AllowOnlyConnectors](Nodify_PendingConnection#allowonlyconnectors) is false) that we're previewing. See [PendingConnection.EnablePreview](Nodify_PendingConnection#enablepreview).

0 commit comments

Comments
 (0)