Skip to content

Commit

Permalink
Merge pull request #162 from africanmathsinitiative/master
Browse files Browse the repository at this point in the history
update main branch
  • Loading branch information
stevekogo authored Oct 13, 2016
2 parents 02bde5b + 69dd00b commit 6f54a04
Show file tree
Hide file tree
Showing 32 changed files with 1,238 additions and 654 deletions.
27 changes: 27 additions & 0 deletions instat/My Project/Resources.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions instat/My Project/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1513,4 +1513,13 @@
<data name="Location" xml:space="preserve">
<value>Location</value>
</data>
<data name="Beta" xml:space="preserve">
<value>Beta</value>
</data>
<data name="Negative_Binomial" xml:space="preserve">
<value>Negative Binomial</value>
</data>
<data name="Students_t" xml:space="preserve">
<value>Students t</value>
</data>
</root>
14 changes: 13 additions & 1 deletion instat/dlgCalculator.designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 33 additions & 6 deletions instat/dlgCalculator.vb
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ Public Class dlgCalculator
Dim clsAttach As New RFunction
Dim clsDetach As New RFunction
Public bFirstLoad As Boolean = True
Public iHelpCalcID As Integer


Private Sub dlgCalculator_Load(sender As Object, e As EventArgs) Handles MyBase.Load
autoTranslate(Me)
ucrBase.iHelpTopicID = 14
If bFirstLoad Then
InitialiseDialog()
SetDefaults()
bFirstLoad = False
Else
Else
ReopenDialog()
End If
TestOKEnabled()
Expand Down Expand Up @@ -69,6 +70,7 @@ Public Class dlgCalculator
End Sub

Private Sub InitialiseDialog()
ucrBase.iHelpTopicID = 14
ucrReceiverForCalculation.Selector = ucrSelectorForCalculations
ucrReceiverForCalculation.SetMeAsReceiver()
clsAttach.SetRCommand("attach")
Expand All @@ -81,8 +83,9 @@ Public Class dlgCalculator
ucrSaveResultInto.SetDefaultTypeAsColumn()
ucrSaveResultInto.SetDataFrameSelector(ucrSelectorForCalculations.ucrAvailableDataFrames)
ucrSelectorForCalculations.Reset()
ucrInputCalOptions.SetItems({"Basic", "Maths", "Logical and Symbols", "Statistics", "Strings", "Probability", "Dates"})
ucrInputCalOptions.SetItems({"Basic", "Maths", "Logical and Symbols", "Summary", "Text", "Runoff", "Dates"})
ucrSaveResultInto.SetValidationTypeAsRVariable()

End Sub

Private Sub cmd0_Click(sender As Object, e As EventArgs) Handles cmd0.Click
Expand Down Expand Up @@ -212,6 +215,10 @@ Public Class dlgCalculator
End Sub

Private Sub ucrInputCalOptions_NameChanged() Handles ucrInputCalOptions.NameChanged
CalculationsOptions()
End Sub

Private Sub CalculationsOptions()
Select Case ucrInputCalOptions.GetText
Case "Maths"
grpStatistics.Visible = False
Expand All @@ -220,6 +227,7 @@ Public Class dlgCalculator
grpBasic.Visible = True
grpStrings.Visible = False
grpProbabilty.Visible = False
iHelpCalcID = 126
Me.Size = New System.Drawing.Size(614, 377)
Case "Logical and Symbols"
grpDates.Visible = False
Expand All @@ -230,7 +238,10 @@ Public Class dlgCalculator
grpStrings.Visible = False
Me.Size = New System.Drawing.Size(580, 377)
grpProbabilty.Visible = False
Case "Statistics"
iHelpCalcID = 127


Case "Summary"
grpDates.Visible = False
grpStatistics.Visible = True
grpLogical.Visible = False
Expand All @@ -239,7 +250,8 @@ Public Class dlgCalculator
Me.Size = New System.Drawing.Size(552, 377)
grpStrings.Visible = False
grpProbabilty.Visible = False
Case "Strings"
iHelpCalcID = 128
Case "Text"
grpDates.Visible = False
grpStrings.Visible = True
grpStatistics.Visible = False
Expand All @@ -248,7 +260,8 @@ Public Class dlgCalculator
grpBasic.Visible = True
grpProbabilty.Visible = False
Me.Size = New System.Drawing.Size(580, 377)
Case "Probability"
iHelpCalcID = 338
Case "Runoff"
grpDates.Visible = False
grpProbabilty.Visible = True
grpStrings.Visible = False
Expand All @@ -257,6 +270,7 @@ Public Class dlgCalculator
grpMaths.Visible = False
grpBasic.Visible = True
Me.Size = New System.Drawing.Size(749, 377)
iHelpCalcID = 120
Case "Dates"
grpDates.Visible = True
grpProbabilty.Visible = False
Expand All @@ -266,6 +280,7 @@ Public Class dlgCalculator
grpMaths.Visible = False
grpBasic.Visible = True
Me.Size = New System.Drawing.Size(589, 377)
iHelpCalcID = 130
Case Else
grpDates.Visible = False
Me.Size = New System.Drawing.Size(424, 377)
Expand Down Expand Up @@ -957,4 +972,16 @@ Public Class dlgCalculator
Private Sub cmdTry_Click(sender As Object, e As EventArgs) Handles cmdTry.Click
TryScript()
End Sub

Private Sub cmdHelp_Click(sender As Object, e As EventArgs) Handles cmdHelp.Click
HelpContent()
End Sub

Private Sub HelpContent()
If iHelpCalcID > 0 Then
Help.ShowHelp(Me.Parent, frmMain.strStaticPath & "\" & frmMain.strHelpFilePath, HelpNavigator.TopicId, iHelpCalcID.ToString())
Else
Help.ShowHelp(Me.Parent, frmMain.strStaticPath & "\" & frmMain.strHelpFilePath, HelpNavigator.TableOfContents)
End If
End Sub
End Class
6 changes: 4 additions & 2 deletions instat/dlgCorrelation.vb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ Public Class dlgCorrelation
ucrReceiverMultipleColumns.Selector = ucrSelectorDataFrameVarAddRemove
ucrReceiverFirstColumn.SetDataType("numeric")
ucrReceiverSecondColumn.SetDataType("numeric")
ucrSelectorDataFrameVarAddRemove.Reset()
ucrSelectorDataFrameVarAddRemove.Focus()
ucrReceiverMultipleColumns.SetSingleTypeStatus(True)
ucrReceiverMultipleColumns.SetDataType("numeric")
ucrBase.iHelpTopicID = 186
End Sub
Expand All @@ -45,11 +48,10 @@ Public Class dlgCorrelation
End Sub

Private Sub SetDefaults()
ucrSelectorDataFrameVarAddRemove.Reset()
ucrSelectorDataFrameVarAddRemove.Focus()
rdoPearson.Checked = True
rdoMultipleColumns.Checked = True
sdgCorrPlot.SetDefaults()
ucrReceiverMultipleColumns.SetMeAsReceiver()
TestOKEnabled()
End Sub

Expand Down
26 changes: 13 additions & 13 deletions instat/dlgDescribeTwoVarGraph.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6f54a04

Please sign in to comment.