-
Notifications
You must be signed in to change notification settings - Fork 103
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
Added memory of directory and filename to export & save dialogs #5873
Conversation
dlgExportDataset dlgExportGraphAsImage dlgExportRObjects dlgExportRWorkspace dlgSaveAs
@Ivanluv Please could you review this PR? thanks |
update save dialogs
@lloyddewit @dannyparsons upon looking this code much further, I realised that the consistent code repetition has reached my threshold of warranting a custom control. In this case, I'm thinking of a custom control that has a So @lloyddewit as you go through the code please check if my thoughts resonate with yours in regards to this, if they do, I can create an issue about this and have further discussions with the team. |
On a separate note, I noticed that there are design changes that will conflict with @lilyclements changes in PR #5880, So this PR should not be merged until that PR is merged. I will sort out the conflicts. |
@lloyddewit thanks for the notification. Yes I have resolved the conflicts. This is ready for your review. Please also take a look at my comment. Thank you
|
@Patowhiz yes, good suggestion. There is a lot of repeated code across the 5 dialog boxes. I agree that the best solution would be to create a new custom control (repetition could be handled in other ways but a new ucr would be the most consistent with R-Instat's current approach). |
@lloyddewit will complete the new control by end of today. I've created a new PR #5924 with an empty control which should be merged immediately to avoid conflicts cause by solution changes, I'm adding the functionality code in this PR and will have it ready for review by end of today. |
Ucr save as dialog
FileInputName
export dialogs code and dlgSaveAs dialogs code changes
@lloyddewit @rdstern this needed more technical work than I thought but it is now ready. |
update save diaologs
@lloyddewit I'm not seeing any change to the '.vbproj' file. Maybe it was cause I had not synchronised the changes from the master. From my end only 17 files are shown to be changed. All of which relate to this dialogs changed by this PR. |
@Patowhiz The |
@Ivanluv Please could you review this PR? thanks |
@lloyddewit am okay with these changes |
@rdstern Please could you test? thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to work. One small additional item for @Patowhiz is in the export dialogue. It does remember the directory, but not the type of data. So the default is a csv file. I saved as excel, but each time I return it is back to csv. Could it please also remember the last type of file.
The save seems fine.
@rdstern thanks for the observation. I have now added that feature. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Patowhiz This looks excellent. I especially liked the clarity/consistency between the different dialogs, the Using
statement and the XML comments.
I only have some small suggestions and questions. If you can accept/reject these then I can approve.
Thanks
@rdstern please could you approve? thanks |
updating my save dialogs branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok by me
@Patowhiz Please could you resolve the code conflict so that we can merge? thanks |
@lloyddewit I have resolved the conflicts. It's now ready. |
@dannyparsons please could you review (you asked to review this before it was merged)? thanks |
@dannyparsons Please could you review? (you asked to review this before it was merged), thanks |
@rdstern as discussed with @volloholic below is the screenshot of the changes made to the export dialog. The file type is now enforced through the combobox, which is now always visible. |
@volloholic @dannyparsons Do these new changes resolve your outstanding comments? Would you still like to review, or may @rdstern and I approve and merge? |
@rdstern did you manage to test the new design changes proposed by @volloholic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Patowhiz this is looking good and is an important improvement for the next update. Two trivial suggestions.
a) Can the file types field be wider, so most of the types are shown completely.
b) Then, when I was exporting multiple files (e.g. csv) it didn't let me choose the names. I could only choose the directory. I suggest we should say that. So, when there are multiple files and the full set of export options is provided, then the label changes to Export Directory: Perhaps the Export moves to the line above, so the directory name field stays the same size?
@rdstern I have addressed item (a). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Patowhiz I am happy now and would really like to see this feature merged. Over to @lloyddewit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed the commits since my last approval
Fixes #5606
Also Fixes #5589. (minor design changes)
Also Fixes #5602
Also Fixes #5590
This PR affects 4 dialogs
dlgExportDataset
,dlgExportGraphAsImage
,dlgExportRObjects
,dlgExportRWorkspace
,dlgSaveAs
@africanmathsinitiative/developers this is ready for review