Skip to content

Commit

Permalink
Merge pull request #174 from africanmathsinitiative/master
Browse files Browse the repository at this point in the history
fetching latest copy
  • Loading branch information
maxwellfundi authored Nov 7, 2016
2 parents 87fa0ea + 04d067d commit b4986d6
Show file tree
Hide file tree
Showing 32 changed files with 787 additions and 716 deletions.
44 changes: 22 additions & 22 deletions instat/UcrGeomListWithAes.designer.vb

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

14 changes: 14 additions & 0 deletions instat/dlgBarAndPieChart.Designer.vb

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

22 changes: 21 additions & 1 deletion instat/dlgBarAndPieChart.vb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Public Class dlgBarAndPieChart
ucrFactorReceiver.SetMeAsReceiver()
ucrSaveBar.Reset()
sdgPlots.Reset()
chkFlipCoordinates.Checked = False
End Sub

Private Sub InitialiseDialog()
Expand Down Expand Up @@ -133,6 +134,8 @@ Public Class dlgBarAndPieChart
cmdPieChartOptions.Visible = False
ucrSecondReceiver.Visible = True
lblSecondFactor.Visible = True
chkFlipCoordinates.Visible = True
SetCoordFlip()
ElseIf rdoPieChart.Checked = True Then
ucrSaveBar.strPrefix = "Pie"
clsRaesFunction.AddParameter("x", Chr(34) & Chr(34))
Expand All @@ -144,15 +147,18 @@ Public Class dlgBarAndPieChart
cmdPieChartOptions.Visible = True
ucrSecondReceiver.Visible = False
lblSecondFactor.Visible = False
chkFlipCoordinates.Visible = False
ucrBase.clsRsyntax.RemoveOperatorParameter("coord_flip")
End If
SetSecondFactorReceiverParameter() 'Warning: need to set second factor first, as in the pie chart case, it erases "fill" parameter (in clsRaesFunction), which is the parameter that takes the value in the first factor receiver.
SetFactorReceiverParameter()
SetSecondFactorReceiverParameter()
TestOKEnabled()
End Sub

Private Sub cmdOptions_Click(sender As Object, e As EventArgs) Handles cmdOptions.Click
sdgPlots.SetDataFrame(strNewDataFrame:=ucrBarChartSelector.ucrAvailableDataFrames.cboAvailableDataFrames.Text)
sdgPlots.ShowDialog()
'Warning, when coordinate flip is added to coordinates tab on sdgPLots, then link with chkFlipCoordinates...
End Sub

Private Sub cmdBarChartOptions_Click(sender As Object, e As EventArgs) Handles cmdBarChartOptions.Click
Expand Down Expand Up @@ -197,4 +203,18 @@ Public Class dlgBarAndPieChart
Private Sub ucrSaveBar_ContentsChanged() Handles ucrSaveBar.ContentsChanged
TestOKEnabled()
End Sub

Public Sub SetCoordFlip()
Dim clsTempRFunc As New RFunction
If chkFlipCoordinates.Checked Then
clsTempRFunc.SetRCommand("coord_flip")
ucrBase.clsRsyntax.AddOperatorParameter("coord_flip", clsRFunc:=clsTempRFunc)
Else
ucrBase.clsRsyntax.RemoveOperatorParameter("coord_flip")
End If
End Sub

Private Sub chkFlipCoordinates_CheckedChanged(sender As Object, e As EventArgs) Handles chkFlipCoordinates.CheckedChanged
SetCoordFlip()
End Sub
End Class
18 changes: 9 additions & 9 deletions instat/dlgCanonicalCorrelationAnalysis.Designer.vb

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

Loading

0 comments on commit b4986d6

Please sign in to comment.