Skip to content

Commit

Permalink
Merge pull request #698 from shadrackkibet/summary
Browse files Browse the repository at this point in the history
Summary
  • Loading branch information
lilyclements authored Sep 4, 2017
2 parents 9e8f125 + 43ec4ec commit 68c7969
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 77 deletions.
44 changes: 22 additions & 22 deletions instat/dlgColumnStats.Designer.vb

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

8 changes: 5 additions & 3 deletions instat/dlgColumnStats.vb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ Public Class dlgColumnStats
ucrChkOmitMissing.SetText("Omit Missing Values")
ucrChkOmitMissing.SetValuesCheckedAndUnchecked("TRUE", "FALSE")
ucrChkOmitMissing.SetRDefault("FALSE")

'TODO:Disabling this for now still needs discussions.
cmdProportionsPercentages.Enabled = False
End Sub

Private Sub SetDefaults()
Expand All @@ -101,7 +104,6 @@ Public Class dlgColumnStats
clsDefaultFunction.AddParameter("silent", "TRUE")
ucrBase.clsRsyntax.SetBaseRFunction(clsDefaultFunction)
bResetSubdialog = True
bResetSubdialog = True
End Sub

Public Sub SetRCodeForControls(bReset As Boolean)
Expand All @@ -128,7 +130,7 @@ Public Class dlgColumnStats
End Sub

Public Sub TestOKEnabled()
If Not ucrReceiverByFactor.IsEmpty AndAlso Not clsSummariesList.clsParameters.Count = 0 Then
If Not ucrReceiverByFactor.IsEmpty AndAlso (ucrChkStoreResults.Checked OrElse ucrChkPrintOutput.Checked) AndAlso Not clsSummariesList.clsParameters.Count = 0 Then
ucrBase.OKEnabled(True)
Else
ucrBase.OKEnabled(False)
Expand All @@ -148,7 +150,7 @@ Public Class dlgColumnStats
TestOKEnabled()
End Sub

Private Sub CoreControls_ControlContentsChanged(ucrChangedControl As ucrCore) Handles ucrReceiverSelectedVariables.ControlContentsChanged, ucrReceiverByFactor.ControlContentsChanged
Private Sub CoreControls_ControlContentsChanged(ucrChangedControl As ucrCore) Handles ucrReceiverSelectedVariables.ControlContentsChanged, ucrReceiverByFactor.ControlContentsChanged, ucrChkPrintOutput.ControlContentsChanged, ucrChkStoreResults.ControlContentsChanged
TestOKEnabled()
End Sub

Expand Down
56 changes: 23 additions & 33 deletions instat/sdgSummaries.Designer.vb

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

14 changes: 10 additions & 4 deletions instat/sdgSummaries.vb
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,18 @@ Public Class sdgSummaries
ucrChkSn.SetParameter(New RParameter("summary_Sn", 20), bNewChangeParameterValue:=True, bNewAddRemoveParameter:=True, strNewValueIfChecked:=Chr(34) & "summary_Sn" & Chr(34), strNewValueIfUnchecked:=Chr(34) & Chr(34))
ucrChkSn.SetText("Sn")

ucrPnlMissingOptions.AddRadioButton(rdoNumber)
ucrPnlMissingOptions.AddRadioButton(rdoPercentage)
'ucrPnlMissingOptions.AddRadioButton(rdoNumber)
'ucrPnlMissingOptions.AddRadioButton(rdoPercentage)

ucrPnlMissingOptions.AddToLinkedControls({ucrNudNumber}, {rdoNumber}, bNewLinkedAddRemoveParameter:=True, bNewLinkedHideIfParameterMissing:=True)
ucrPnlMissingOptions.AddToLinkedControls({ucrNudPercentage}, {rdoPercentage}, bNewLinkedAddRemoveParameter:=True, bNewLinkedHideIfParameterMissing:=True)
'ucrPnlMissingOptions.AddToLinkedControls({ucrNudNumber}, {rdoNumber}, bNewLinkedAddRemoveParameter:=True, bNewLinkedHideIfParameterMissing:=True)
'ucrPnlMissingOptions.AddToLinkedControls({ucrNudPercentage}, {rdoPercentage}, bNewLinkedAddRemoveParameter:=True, bNewLinkedHideIfParameterMissing:=True)
ucrNudPercentage.SetLinkedDisplayControl(lblPercentage)
ucrNudNumber.SetLinkedDisplayControl(lblNumber)

lstCheckboxes = New List(Of ucrCheck)
lstCheckboxes.AddRange({ucrChkNTotal, ucrChkNonMissing, ucrChkNMissing, ucrChkMean, ucrChkMinimum, ucrChkMode, ucrChkMaximum, ucrChkMedian, ucrChkStdDev, ucrChkVariance, ucrChkRange, ucrChkSum, ucrChkUpperQuartile, ucrChkLowerQuartile, ucrChkMedianAbsoluteDeviation, ucrChkKurtosis, ucrChkCoefficientOfVariation, ucrChkSkewness, ucrChkQn, ucrChkSn})
'TODO: This needs modifying summaries functions to allow this options to be implemented.
tbMissingOptions.Enabled = False
For Each ctrTemp As ucrCheck In lstCheckboxes
ctrTemp.SetParameterIncludeArgumentName(False)
ctrTemp.SetRDefault(Chr(34) & Chr(34))
Expand All @@ -110,6 +112,10 @@ Public Class sdgSummaries
End If
clsListFunction = clsNewRFunction
SetRCode(Me, clsListFunction, bReset)

If bReset Then
tbSummaries.SelectedIndex = 0
End If
End Sub

Public ReadOnly Property SummaryCount As Integer
Expand Down
Loading

0 comments on commit 68c7969

Please sign in to comment.