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
Set dxfEnableDDBlocks in options dialog #56984
Conversation
@mhugent can you please add a screenshot given that this involves a gui change? This will help the various contributors of docs and changelog figure out what it is about, without browsing the diff. Thanks. |
This pull request has been tagged for the changelog.
You can edit the description. Format available for credits
Thank you! |
@mhugent A documentation ticket will be opened at https://github.com/qgis/QGIS-Documentation when this PR is merged. Please update the description (not the comments) with helpful description and screenshot to help the work from documentors. Thank you! |
Thanks @mhugent. May I suggest to instead add it to the first comment? That is the one that will be picked by the different actions. |
I'm not a UI expert, but this doesn't feel right to me. All the options under the Data Source Handling group are related to generic open mechanisms. Here this is about specific DXF export. First: do we really need an option here? (my understanding is that it is already available in the DXF export dialog. why this one in particular and not the others?). and if we do, then perhaps have a dedicated "DXF export options" group ? Or possibly as a "sub-tab" (not sure about the terminology) similar to the "GDAL" one ? |
@rouault : that makes sense, it should probably go somewhere else. It's just that I don't know where (a new dxf-Tab just for one setting seems a bit strange)
The other options only affect the current dxf export. The setting in the option dialog is more a user preference that data defined blocks should always be enabled by default in the dialog. Still it would be an option to have the checkbox at the bottom of the dxf dialog. Another possibility would be to remove the data defined settings completely from the UI (also from the dxf dialog) and always build data defined blocks. It is even possible to write a block only if it is referenced at least by two features and insert the symbols which are only used once directly into the entities sections to minimize the file size. Opinions? |
and why not keeping the last user preference in the export dialog as the next default ? That way, this avoids the "duplication" of the option in different places. I believe this is done in a few places in the application. But I'm not sure if it is a best practice. |
It can be set per layer in the export dialog. So should we check if it is set for all layers the last time and if yes, enable it for all layers the next time? |
@mhugent, as far as I understand, you're attempting to set a global setting for an option that can be anyways modified on a case-by-case (per-layer) basis on the DXF Export dialog. To avoid this global setting, perhaps it could be enough to think whether all On the other hand, I intend to make this very per-layer setting remembered when closing and opening the dialog (fixing #56853). That is, if the same layer is present in both DXF Export sessions, its Additionally, note that #56982 suggests that QGIS allows users to store all DXF Export settings to an XML file, so that the I hope it helps. |
Ok, this is another solution. So if there are no objections, I'll enable the checkboxes by default and remove the global setting |
I've created a new PR, so closing this one: #57036 |
Allows to set the setting dxfEnableDDBlocks in the options dialog. The checkbox is in the datasource tab now, don't know if there is a better place.