This repository has been archived by the owner on Apr 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix send of tool offset setting, Issue #79 - Expand Macro editing box, Issue #80 - Add indicator colour when Overrides active, Issue #80 - Add Grbl/GrblPanel version info to Settings page, Issue #80 - Add Single Step to file panel, Issue #80, Issue #23
- Loading branch information
gerritv
committed
Dec 15, 2016
1 parent
68d6e32
commit 41ab58c
Showing
17 changed files
with
6,965 additions
and
3,630 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 |
---|---|---|
|
@@ -29,3 +29,4 @@ _ReSharper*/ | |
[Tt]est[Rr]esult* | ||
.vs/ | ||
|
||
/Grbl-Panel/*.user |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,57 @@ | ||
Partial Class GrblGui | ||
''' <summary> | ||
''' A Class to handle Grbl VER and OPT messages | ||
''' </summary> | ||
''' | ||
|
||
Public Class GrblInfo | ||
Private _gui As GrblGui | ||
|
||
Public Sub New(ByRef gui As GrblGui) | ||
' Get ref to parent object | ||
_gui = gui | ||
' For Connected events | ||
AddHandler(GrblGui.Connected), AddressOf Me.GrblConnected | ||
|
||
End Sub | ||
''' <summary> | ||
''' Activate Info object to request/process VER/OPT messages | ||
''' </summary> | ||
''' <param name="msg"></param> | ||
Private Sub GrblConnected(ByVal msg As String) ' Handles GrblGui.Connected Event | ||
If msg = "Connected" Then | ||
_gui.grblPort.addRcvDelegate(AddressOf _gui.processVerOptMessages) | ||
' We are connected to Grbl so populate the State | ||
gcode.sendGCodeLine("$I") | ||
once = True | ||
End If | ||
End Sub | ||
|
||
Private _single As Boolean | ||
Public Property once() As Boolean | ||
Get | ||
Return _single | ||
End Get | ||
Set(ByVal value As Boolean) | ||
_single = value | ||
End Set | ||
End Property | ||
End Class | ||
''' <summary> | ||
''' Handle incoming VER and OPT message from $I request | ||
''' </summary> | ||
''' <param name="data"></param> | ||
Public Sub processVerOptMessages(ByVal data As String) | ||
If info.once = True Then | ||
If data.StartsWith("[VER:") Then | ||
Dim str As String = data.Remove(data.Length - 3) | ||
tbGrblVersion.Text = str.Remove(0, 5) | ||
End If | ||
If data.StartsWith("[OPT") Then | ||
Dim str As String = data.Remove(data.Length - 3) | ||
tbGrblOptions.Text = str.Remove(0, 5) | ||
info.once = False | ||
End If | ||
End If | ||
End Sub | ||
End Class |
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
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
Oops, something went wrong.