Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing the coord_polar bugs in graphics dialog #5541

Merged
merged 15 commits into from
Oct 22, 2019

Conversation

maxwellfundi
Copy link
Contributor

No description provided.

@dannyparsons
Copy link
Contributor

@maxwellfundi I suggest we make the parameters of the set up to the sub dialog compulsory, this way we cannot accidentally miss out options which cause a crash if not included.

@maxwellfundi
Copy link
Contributor Author

@dannyparsons I think that makes a lot of sense! It would not be possible to have this kind of event again in the future.

@maxwellfundi
Copy link
Contributor Author

@africanmathsinitiative/developers Someone to test this to make sure all the graphics dialog do not crash now when the plot options button is clicked.

@Ivanluv
Copy link
Contributor

Ivanluv commented Oct 7, 2019

this looks good from my review

@dannyparsons
Copy link
Contributor

Are you going to make those parameters compulsory as well?

@maxwellfundi
Copy link
Contributor Author

maxwellfundi commented Oct 7, 2019 via email

@dannyparsons
Copy link
Contributor

You can include here, unless it might conflict with another pull request. That way we are sure this issue has been resolved in this pull request.

@maxwellfundi
Copy link
Contributor Author

@dannyparsons I actually have done the rest of the dialogs. It was useful to have this as the coordpolar parameter as mandatory. it actually helped to know where else the method is called and I fixed those dialogs too.

@@ -325,7 +325,7 @@ Public Class sdgPlots
ucrChkYaxisTickMarkLabelSize.AddParameterPresentCondition(False, "size", False)
End Sub

Public Sub SetRCode(clsNewOperator As ROperator, Optional clsNewGlobalAesFunction As RFunction = Nothing, Optional clsNewYScalecontinuousFunction As RFunction = Nothing, Optional clsNewXScalecontinuousFunction As RFunction = Nothing, Optional clsNewLabsFunction As RFunction = Nothing, Optional clsNewXLabsTitleFunction As RFunction = Nothing, Optional clsNewYLabTitleFunction As RFunction = Nothing, Optional clsNewFacetFunction As RFunction = Nothing, Optional clsNewThemeFunction As RFunction = Nothing, Optional clsNewCoordPolarFunction As RFunction = Nothing, Optional clsNewCoordPolarStartOperator As ROperator = Nothing, Optional dctNewThemeFunctions As Dictionary(Of String, RFunction) = Nothing, Optional ucrNewBaseSelector As ucrSelector = Nothing, Optional strMainDialogGeomParameterNames() As String = Nothing, Optional bReset As Boolean = False)
Public Sub SetRCode(clsNewOperator As ROperator, clsNewCoordPolarFunction As RFunction, clsNewCoordPolarStartOperator As ROperator, Optional clsNewGlobalAesFunction As RFunction = Nothing, Optional clsNewYScalecontinuousFunction As RFunction = Nothing, Optional clsNewXScalecontinuousFunction As RFunction = Nothing, Optional clsNewLabsFunction As RFunction = Nothing, Optional clsNewXLabsTitleFunction As RFunction = Nothing, Optional clsNewYLabTitleFunction As RFunction = Nothing, Optional clsNewFacetFunction As RFunction = Nothing, Optional clsNewThemeFunction As RFunction = Nothing, Optional dctNewThemeFunctions As Dictionary(Of String, RFunction) = Nothing, Optional ucrNewBaseSelector As ucrSelector = Nothing, Optional strMainDialogGeomParameterNames() As String = Nothing, Optional bReset As Boolean = False)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, but please make everything up to and including dctNewThemeFunctions compulsory. All of these are needed and will cause problems otherwise.
I think the last few may be ok if not given so can stay optional.

@maxwellfundi
Copy link
Contributor Author

maxwellfundi commented Oct 8, 2019 via email

@maxwellfundi
Copy link
Contributor Author

@dannyparsons this is now ready. All the necessary parameters have been made mandatory.

@Ivanluv
Copy link
Contributor

Ivanluv commented Oct 18, 2019

could this be done to the dlgPICSARainfallGraph too?

@maxwellfundi
Copy link
Contributor Author

@Ivanluv i did this for all the dialogs that uses sdgPlots. So that is taken care of too. Can someone test this quickly this morning, it needs to be merged because of the many file changes to avoid any conflicts.

@Ivanluv
Copy link
Contributor

Ivanluv commented Oct 22, 2019

@maxwellfundi I tested this and all was fine from my end.Sorry I missed to see the changes to dlgPICSARainfallGraph

@maxwellfundi
Copy link
Contributor Author

maxwellfundi commented Oct 22, 2019

Okay great I will merge this then. Thank you.

@maxwellfundi maxwellfundi merged commit 72e3fbe into IDEMSInternational:master Oct 22, 2019
@maxwellfundi maxwellfundi deleted the PolarBug branch October 22, 2019 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants