lp://staging/~encukou/picard/options-autoui

Created by Petr Viktorin and last modified

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/ui/options/*.py
- 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
Only Petr Viktorin can upload to this branch. If you are Petr Viktorin please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Petr Viktorin
Project:
MusicBrainz Picard
Status:
Experimental

Recent revisions

1036. By Petr Viktorin

Convert the Interface options page

1035. By Petr Viktorin

Add encode/decode functions for all options
Convert the Matching thresholds options page

1034. By Petr Viktorin

Convert the CDLookup options page

1033. By Petr Viktorin

Add File Browser button
Convert the Moving options page

1032. By Petr Viktorin

Remove unused parameter

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

1029. By Petr Viktorin

Unify handling of captions

The option name is used as a caption default now.

1028. By Petr Viktorin

Add GUI for a "Section" option
Convert the Ratings options page

1027. By Petr Viktorin

Add Default buttons
Convert the Metadata options page

Branch metadata

Branch format:
Branch format 6
Repository format:
Bazaar pack repository format 1 (needs bzr 0.92)
This branch contains Public information 
Everyone can see this information.

Subscribers