Skip to content

Commit

Permalink
Merge pull request #79 from africanmathsinitiative/master
Browse files Browse the repository at this point in the history
updating master
  • Loading branch information
Vitalis95 authored Aug 8, 2022
2 parents 6a39f61 + 2ac8b31 commit 084c06f
Show file tree
Hide file tree
Showing 13 changed files with 591 additions and 526 deletions.
36 changes: 36 additions & 0 deletions instat/dlgHistogram.vb
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,32 @@ Public Class dlgHistogram
TestOkEnabled()
End Sub

Private Sub cmdHistogramOptions_Click(sender As Object, e As EventArgs) Handles cmdHistogramOptions.Click
sdgLayerOptions.SetupLayer(clsNewGgPlot:=clsRggplotFunction, clsNewGeomFunc:=clsRgeomPlotFunction, clsNewGlobalAesFunc:=clsRaesFunction, clsNewLocalAes:=clsLocalRaesFunction, bFixGeom:=True, ucrNewBaseSelector:=ucrHistogramSelector, bApplyAesGlobally:=True, bReset:=bResetHistLayerSubdialog)
sdgLayerOptions.ShowDialog()
bResetHistLayerSubdialog = False
For Each clsParam In clsRaesFunction.clsParameters
If clsParam.strArgumentName = "x" AndAlso (clsParam.strArgumentValue <> "value" OrElse ucrVariablesAsFactorforHist.bSingleVariable) Then
ucrVariablesAsFactorforHist.Add(clsParam.strArgumentValue)
ElseIf (clsParam.strArgumentName = "fill" AndAlso rdoHistogram.Checked) OrElse (clsParam.strArgumentName = "colour" AndAlso (rdoFrequencyPolygon.Checked OrElse (rdoDensity_ridges.Checked AndAlso Not ucrChkRidges.Checked))) OrElse (clsParam.strArgumentName = "y" AndAlso (rdoDensity_ridges.Checked AndAlso ucrChkRidges.Checked)) Then
ucrFactorReceiver.Add(clsParam.strArgumentValue)
End If
Next
'this is here because of the subdialog
clsRgeomPlotFunction.AddParameter("mapping", clsRFunctionParameter:=clsHistAesFunction)
TestOkEnabled()
End Sub

Private Sub cmdOptions_Click(sender As Object, e As EventArgs) Handles cmdOptions.Click
sdgPlots.SetRCode(clsBaseOperator, clsNewYScalecontinuousFunction:=clsYScalecontinuousFunction, clsNewXScalecontinuousFunction:=clsXScalecontinuousFunction, clsNewXLabsTitleFunction:=clsXlabsFunction,
clsNewYLabTitleFunction:=clsYlabFunction, clsNewLabsFunction:=clsLabsFunction, clsNewThemeFunction:=clsThemeFunction, clsNewScaleFillViridisFunction:=clsScaleFillViridisFunction,
clsNewScaleColourViridisFunction:=clsScaleColourViridisFunction, dctNewThemeFunctions:=dctThemeFunctions, clsNewFacetFunction:=clsRFacetFunction, ucrNewBaseSelector:=ucrHistogramSelector,
clsNewGlobalAesFunction:=clsRaesFunction, clsNewCoordPolarFunction:=clsCoordPolarFunction, clsNewCoordPolarStartOperator:=clsCoordPolarStartOperator, clsNewXScaleDateFunction:=clsXScaleDateFunction,
clsNewAnnotateFunction:=clsAnnotateFunction, clsNewYScaleDateFunction:=clsYScaleDateFunction, strMainDialogGeomParameterNames:=strGeomParameterNames, bReset:=bResetSubdialog)
sdgPlots.ShowDialog()
bResetSubdialog = False
End Sub

Private Sub SetDialogOptions()
clsHistAesFunction.RemoveParameterByName("x")
clsHistAesFunction.RemoveParameterByName("y")
Expand Down Expand Up @@ -260,6 +286,16 @@ Public Class dlgHistogram
autoTranslate(Me)
End Sub

Private Sub TempOptionsDisabledInMultipleVariablesCase()
If ucrVariablesAsFactorforHist.bSingleVariable Then
cmdHistogramOptions.Enabled = True
cmdOptions.Enabled = True
Else
cmdHistogramOptions.Enabled = False
cmdOptions.Enabled = False
End If
End Sub

Private Sub ucrPnlOptions_Control() Handles ucrPnlOptions.ControlValueChanged, ucrChkDisplayAsDotPlot.ControlValueChanged, ucrChkRidges.ControlValueChanged, ucrFactorReceiver.ControlValueChanged, ucrVariablesAsFactorforHist.ControlValueChanged
toolStripMenuItemHistogramOptions.Enabled = rdoHistogram.Checked AndAlso Not ucrChkDisplayAsDotPlot.Checked
toolStripMenuItemDotOptions.Enabled = rdoHistogram.Checked AndAlso ucrChkDisplayAsDotPlot.Checked
Expand Down
908 changes: 454 additions & 454 deletions instat/dlgImportDataset.Designer.vb

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions instat/dlgImportShapeFiles.Designer.vb

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

26 changes: 13 additions & 13 deletions instat/dlgMakeDate.Designer.vb

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

6 changes: 3 additions & 3 deletions instat/dlgPICSARainfall.Designer.vb

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

83 changes: 47 additions & 36 deletions instat/sdgPICSARainfallGraph.Designer.vb

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

3 changes: 3 additions & 0 deletions instat/sdgPICSARainfallGraph.vb
Original file line number Diff line number Diff line change
Expand Up @@ -1384,10 +1384,13 @@ Public Class sdgPICSARainfallGraph

Select Case dlgPICSARainfall.enumPICSAMode
Case dlgPICSARainfall.PICSAMode.Temperature
Me.Text = "PICSA Temperature Graphs"
tbPICSA.TabPages.Add(tbPageSlope)
Case dlgPICSARainfall.PICSAMode.Rainfall
Me.Text = "PICSA Rainfall Graphs"
tbPICSA.TabPages.Add(tbPageLines)
Case dlgPICSARainfall.PICSAMode.General
Me.Text = "PICSA General Graphs"
tbPICSA.TabPages.Add(tbPageLines)
tbPICSA.TabPages.Add(tbPageSlope)
End Select
Expand Down
Loading

0 comments on commit 084c06f

Please sign in to comment.