Skip to content

Commit

Permalink
Merge pull request #101 from africanmathsinitiative/master
Browse files Browse the repository at this point in the history
fetching latest copy
  • Loading branch information
maxwellfundi authored Aug 25, 2016
2 parents 2aad578 + dfded23 commit a8be94f
Show file tree
Hide file tree
Showing 23 changed files with 1,075 additions and 281 deletions.
2 changes: 1 addition & 1 deletion instat/clsRLink.vb
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ Public Class RLink
clsGetGraphNames.AddParameter("data_name", Chr(34) & strDataFrameName & Chr(34))
End If
expGraphNames = RunInternalScriptGetValue(clsGetGraphNames.ToScript(), bSilent:=True)
If Not expGraphNames.Type = Internals.SymbolicExpressionType.Null Then
If expGraphNames IsNot Nothing AndAlso Not expGraphNames.Type = Internals.SymbolicExpressionType.Null Then
chrGraphNames = expGraphNames.AsCharacter()
If chrGraphNames.Length > 0 Then
lstGraphNames.AddRange(chrGraphNames)
Expand Down
114 changes: 111 additions & 3 deletions instat/dlgAppend.Designer.vb

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

45 changes: 43 additions & 2 deletions instat/dlgAppend.vb
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,28 @@ Public Class dlgAppend
TestOKEnabled()
End Sub
Private Sub InitialiseDialog()
ucrReceiverAppendDataframe.Selector = ucrSelectorDataframes
ucrReceiverAppendDataframe.SetMeAsReceiver()
ucrBase.clsRsyntax.SetFunction("bind_rows")
ucrReceiverAppendDataframe.SetItemType("dataframe")
ucrInputIDColName.SetValidationTypeAsRVariable()

End Sub

Private Sub TestOKEnabled()

If ucrReceiverAppendDataframe.IsEmpty = False Then
ucrBase.OKEnabled(True)
Else
ucrBase.OKEnabled(False)
End If
End Sub

Private Sub SetDefaults()

ucrSelectorDataframes.Reset()
ucrInputIDColName.SetName("ID_Col")
ucrInputNewDataframeName.ResetText()
ucrInputIDColName.ResetText()
chkIncludeIDColumn.Checked = False
End Sub

Private Sub ReopenDialog()
Expand All @@ -49,4 +62,32 @@ Public Class dlgAppend
TestOKEnabled()
End Sub

Private Sub ucrReceiverAppendDataframe_SelectionChanged(sender As Object, e As EventArgs) Handles ucrReceiverAppendDataframe.SelectionChanged
If ucrReceiverAppendDataframe.IsEmpty = False Then
ucrBase.clsRsyntax.AddParameter("x", clsRFunctionParameter:=ucrReceiverAppendDataframe.GetVariables)
Else
ucrBase.clsRsyntax.RemoveParameter("x")
End If
TestOKEnabled()
End Sub

Private Sub chkIncludeIDColumn_CheckedChanged(sender As Object, e As EventArgs) Handles chkIncludeIDColumn.CheckedChanged
includeIDColumn()
End Sub

Private Sub ucrInputIDColName_NameChanged() Handles ucrInputIDColName.NameChanged
includeIDColumn()
End Sub

Private Sub includeIDColumn()
If chkIncludeIDColumn.Checked Then
ucrBase.clsRsyntax.AddParameter(".id", Chr(34) & ucrInputIDColName.GetText & Chr(34))
Else
ucrBase.clsRsyntax.RemoveParameter(".id")
End If
End Sub

Private Sub ucrInputNewDataframeName_NameChanged() Handles ucrInputNewDataframeName.NameChanged
ucrBase.clsRsyntax.SetAssignTo(ucrInputNewDataframeName.GetText(), strTempDataframe:=ucrInputNewDataframeName.GetText())
End Sub
End Class
1 change: 1 addition & 0 deletions instat/dlgBarAndPieChart.vb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Public Class dlgBarAndPieChart
ucrBarChartSelector.Reset()
ucrBarChartSelector.Focus()
ucrFactorReceiver.SetMeAsReceiver()
sdgPlots.Reset()
End Sub

Private Sub InitialiseDialog()
Expand Down
2 changes: 1 addition & 1 deletion instat/dlgBoxPlot.vb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Public Class dlgBoxplot
ucrSelectorBoxPlot.Focus()
ucrVariablesAsFactorForBoxplot.ResetControl()
chkHorizontalBoxplot.Checked = False
sdgPlots.Reset()
TestOkEnabled()
SetXParameter()
End Sub
Expand Down Expand Up @@ -145,7 +146,6 @@ Public Class dlgBoxplot

Private Sub ucrBase_ClickReset(sender As Object, e As EventArgs) Handles ucrBase.ClickReset
SetDefaults()
sdgPlots.Reset()
End Sub

Private Sub chkHorizontalBoxplot_CheckedChanged(sender As Object, e As EventArgs) Handles chkHorizontalBoxplot.CheckedChanged
Expand Down
Loading

0 comments on commit a8be94f

Please sign in to comment.