Skip to content

Commit

Permalink
Merge pull request #8879 from Fidel365/help_changes
Browse files Browse the repository at this point in the history
More improvements to help ids
  • Loading branch information
N-thony authored Mar 15, 2024
2 parents e84ce6e + b00a5e9 commit acf75cf
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions instat/dlgMergeAdditionalData.vb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Public Class dlgMergeAdditionalData
End Sub

Private Sub InitialiseDialog()
ucrBase.iHelpTopicID = 186
ucrToDataFrame.SetParameter(New RParameter("x", 0))
ucrToDataFrame.SetParameterIsRFunction()
ucrToDataFrame.SetLabelText("To Data Frame:")
Expand Down
2 changes: 1 addition & 1 deletion instat/dlgTwoWayFrequencies.vb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Public Class dlgTwoWayFrequencies
End Sub

Private Sub InitialiseDialog()
ucrBase.iHelpTopicID = 415
ucrBase.iHelpTopicID = 289
ucrBase.clsRsyntax.bExcludeAssignedFunctionOutput = False

ucrReceiverColumnFactor.Selector = ucrSelectorTwoWayFrequencies
Expand Down
20 changes: 19 additions & 1 deletion instat/dlgVisualizeData.vb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
Imports instat.Translations

Public Class dlgVisualizeData
Public enumVisualizeMode As String = VisualizeMode.Prepare
Public Enum VisualizeMode
Prepare
Describe
Climatic
End Enum
Private bFirstLoad As Boolean = True
Private bReset As Boolean = True
Private clsVisDatFunction As New RFunction
Expand All @@ -41,6 +47,7 @@ Public Class dlgVisualizeData
SetDefaults()
End If
SetRCodeForControls(bReset)
SetHelpOptions()
bReset = False
autoTranslate(Me)
TestOkEnabled()
Expand Down Expand Up @@ -328,6 +335,17 @@ Public Class dlgVisualizeData
End If
End Sub

Private Sub SetHelpOptions()
Select Case enumVisualizeMode
Case VisualizeMode.Prepare
ucrBase.iHelpTopicID = 54
Case VisualizeMode.Describe
ucrBase.iHelpTopicID = 600
Case VisualizeMode.Climatic
ucrBase.iHelpTopicID = 524
End Select
End Sub

Private Sub ucrNudMaximumSize_ControlValueChanged(ucrChangedControl As ucrCore) Handles ucrNudMaximumSize.ControlValueChanged
MaximumDataPoint()
End Sub
Expand Down Expand Up @@ -407,7 +425,7 @@ Public Class dlgVisualizeData
End If
Dim lstvariable As List(Of String) = ucrReceiverVisualizeData.GetVariableNamesAsList
Dim strFacetvariable As String = ucrByFactorsReceiver.GetVariableNames(False)
If Not ucrByFactorsReceiver.IsEmpty AndAlso (rdoVisDat.Checked OrElse rdoVisMiss.Checked) AndAlso Not Lstvariable.Contains(StrFacetvariable) Then
If Not ucrByFactorsReceiver.IsEmpty AndAlso (rdoVisDat.Checked OrElse rdoVisMiss.Checked) AndAlso Not lstvariable.Contains(strFacetvariable) Then
lstvariable.Add(strFacetvariable)
End If
clsGetVariableFunction.AddParameter("data_name", Chr(34) & ucrSelectorVisualizeData.ucrAvailableDataFrames.strCurrDataFrame & Chr(34), iPosition:=0)
Expand Down
4 changes: 4 additions & 0 deletions instat/frmMain.vb
Original file line number Diff line number Diff line change
Expand Up @@ -2281,7 +2281,9 @@ Public Class frmMain
End Sub

Private Sub mnuPrepareCheckDataVisualiseData_Click(sender As Object, e As EventArgs) Handles mnuPrepareCheckDataVisualiseData.Click
dlgVisualizeData.enumVisualizeMode = dlgVisualizeData.VisualizeMode.Prepare
dlgVisualizeData.ShowDialog()
' ucrBase.iHelpTopicID = 54
End Sub

Private Sub mnuClimaticCompareCalculation_Click(sender As Object, e As EventArgs) Handles mnuClimaticCompareCalculation.Click
Expand Down Expand Up @@ -2485,6 +2487,7 @@ Public Class frmMain
End Sub

Private Sub mnuDescribeOneVariableVisualiseData_Click(sender As Object, e As EventArgs) Handles mnuDescribeOneVariableVisualiseData.Click
dlgVisualizeData.enumVisualizeMode = dlgVisualizeData.VisualizeMode.Describe
dlgVisualizeData.ShowDialog()
End Sub

Expand Down Expand Up @@ -2672,6 +2675,7 @@ Public Class frmMain
End Sub

Private Sub mnuClimaticExamineEditDataVisualiseData_Click(sender As Object, e As EventArgs) Handles mnuClimaticExamineEditDataVisualiseData.Click
dlgVisualizeData.enumVisualizeMode = dlgVisualizeData.VisualizeMode.Climatic
dlgVisualizeData.ShowDialog()
End Sub

Expand Down

0 comments on commit acf75cf

Please sign in to comment.