lp://staging/~encukou/picard/options-autoui
Now, when a developer wants to add (or remove) configuration options from Picard, the change must be done in two places:
- the code with the list of options (picard/
- the Qt UI file (ui/options_*.ui)
And the pyuic tool must be re-run as well.
Disadvantages of this approach:
- resulting diffs look ugly (the .ui file, and the .py that's autogenerated from it, change depending on the version of PyQt tools, hiding the actial changes)
- the resulting UI is not as clean as it could be (bad tab ordering, different margins/spacing on different pages)
- common code for loading/saving options must be repeated over and over again
- the developer needs extra tools (Qt Designer, pyuic)
So, I've started on a rewrite where all information is right in the list of options, and the UI gets generated from that.
The disadvantage of this approach is that the option list is not as clear as before, but the fact that it's all in one place and easily edited should outweigh that.
- Get this branch:
- bzr branch lp://staging/~encukou/picard/options-autoui
Branch merges
Branch information
Recent revisions
- 1035. By Petr Viktorin
-
Add encode/decode functions for all options
Convert the Matching thresholds options page - 1031. By Petr Viktorin
-
Convert the Cover options page
Changes to the presentation:
- "Save cover images as separate files" is now a separate section, unchecking it disables the related options
- cover_image_filename now has a useful caption
- The "Location" section is no more (the title didn't apply to its contents anyway) - 1030. By Petr Viktorin
-
Add horizontal/vertical caption positions
Set the captioned elements as buddies for the corresponding widget
Convert the Folksonomy options page
Also change how the ignore_tags option is presented:
- caption: Ignore tags: => Tags to ignore:
- add a Default button
Branch metadata
- Branch format:
- Branch format 6
- Repository format:
- Bazaar pack repository format 1 (needs bzr 0.92)