[mythtv] mythfrontend setup with MythUI
Xavier Hervy
xavier.hervy at gmail.com
Tue Oct 11 19:54:01 UTC 2011
As requested on IRC, this is a quit presentation of my mythfrontend
setup implementation
This is standard view
http://imagebin.org/178524
We have 5 area, from top to bottom
The title (">" I did not have any title for that group)
Then the Tree view for the setting:
Setting are on two columns
On the right (depend of theming) the setting name
On the left the setting value with a ">" when there is sub settings
This image show only group of settings
http://imagebin.org/178525
This one show different type of setting:
The first on is a "ComboBox"
the three next one are "checkbox"
The two last are "spin box"
On the bottom, there is 3 optionnal textarea:
The currently selected setting name
The currently selected setting value
The currently selected setting help text
Additionally I am planning to add between the title and the tree the
help text for the current group.
I choose a tree view as it is easier to navigate:
Left to go one level up
right to go one level down
up/down to got to the previous/next setting
To edit a setting, press select:
Depending of the type of the setting, this does or not bring a dialog box:
LineEditBox will show a MythInputDialog (see
CheckBox does not show any dialog, but change the state of it straight away
A SpinBox will show a MythInputDialog where the user can only enter
numeric.
the result is also check to be within a certain range.
If the nuber enter fall outside the range a popup inform the user and
the SpinBox is not updated
see http://imagebin.org/178526
The last Type is the ComboBox, which bring a button dialog
see http://imagebin.org/178527
Because of the use of standard dialog the UI require very little theming
but it is still quite efficient
each Type can hold children because the derived from MythGenericTree,
even if I do not see the point for a LineEditBox.
The CheckBox and ComboBox have a special method wich allow to add
MythGenericTree as children depending of the value of the setting
As it can be seen on the following pictures:
When On, there is no children
http://imagebin.org/178528
but when it is off some subsetting appeared:
http://imagebin.org/178529
Same mechanism is available for the combobox (for example when we select
the audio card to use)
Xavier
More information about the mythtv-dev
mailing list