-
Notifications
You must be signed in to change notification settings - Fork 33
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
ExportDialogDeclarative2 #1065
ExportDialogDeclarative2 #1065
Conversation
cmeyer
commented
Jun 11, 2024
- Refactored Export Dialog in Declarative Mode
- Do not pass redundant/unused 'parent_window'. Do not assign export dialog to unused variable.
- Clean up instance variables in export dialog and its model.
- Ensure that correct writer index is initialized.
- Change export filename building to use pathlib.
- Improve dialog box with default width and stretches.
- Ensure selected writer is saved in preferences when export is pressed.
- Fix issue where filename has a '.' (isodate on mac/linux).
Fixed the bug with no checkboxes led to duplicate filenames, stopping all duplicate names happening. Reimplemented in Declarative UI model. Extracted the settings to a dataclass that can be re-used for scripting. Extracted the export functionality to a static function that can be re-used for scripting.
…alog to unused variable.
@Tiomat85 Thanks for the PR! Much improved. In the interest of moving your PR forward, I made a number of changes to clean up the code and fix bugs. By the time I was through I had made more changes than expected, so I decided to create a new PR with explanations of the changes. I squashed your changes, then made several commits on top of yours, described in order below. If you're ok with these changes, approve this PR (or if not, make comments) and I'll merge asap. 0c7513b self explanatory minor changes 335800e the main thing here was to (a) eliminate "optional" instance variables. now a631cb1 the existing PR didn't initialize 6991f2f changes the c4bc0e3 minor cleanup to make the dialog look nicer. Still might need some more improvement (such as eliding the directory name, and making the 'prefix' select automatically). Note, along the way I fixed an issue where the file format combo box was bound to 6714529 ensure that the last exported file type preference is saved. 557c22a fixes a bug introduced by my More items to-do (after merge):
|
@Tiomat85 Is it ok to merge this? (I saw the other PR was closed) |
Sure, I had a quick look through some of it and it looked to be tidying up
variables that weren't needed that hung around from the previous version
and my lack of understanding of some of the structures. The only
outstanding question would be the extra little issue-ettes you mentioned
that are worth doing post-merge, are they going to be created as their own
individual Issues? That would make the most sense to me as they are not
directly blocking the original issue from being completed, so better to get
that *done* and any follow up work that we discover makes sense as brand
new work items to be done at some point in the great future.
p.s. Trying the email reply option from github so this may not come through
clearly.
…On Wed, Jun 12, 2024 at 4:14 PM Chris Meyer ***@***.***> wrote:
@Tiomat85 <https://github.com/Tiomat85> Is it ok to merge this? (I saw
the other PR was closed)
—
Reply to this email directly, view it on GitHub
<#1065 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKEJZNLV2TBOMY3T346I7TZHBQUNAVCNFSM6AAAAABJFDUFVGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRTGI4TKNRYGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Put smaller issues here: |