-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Merge settings dialogs xml's #8856
Conversation
Nice. This is part of what I had as a long term goal when I unified the settings dialog's code. |
Great stuff, thanks ronie. |
Nice cleanup :) I have one remark though. If the ultimate goal is to have one dialog for all setting dialogs, maybe we can use a default template with 3 groups, like addonsettings has, and just use a default label/button named |
@BigNoid it's certainly an idea worth considering. currently only addon settings uses those category buttons. |
Keep in mind that the addon settings dialog isn't based on the same implementation as all the other setting dialogs. But the functionality for category buttons is also supported by the base implementation for setting dialogs it's just not used anywhere. |
f9b1791
to
4c8df51
Compare
added a commit which also makes the contentsettings dialog use DialogSettings.xml needs proper review! |
4d99a3b
to
0bad496
Compare
jenkins build this please |
@mkortstiege get out of the beer spa and review my code please ;-) |
Looks good to me. Btw, Unlimited Beer SPA! |
@Montellese is there a way to define parent/sub settings in the settings dialogs? i noticed there's a GetParent() function here: https://github.com/xbmc/xbmc/blob/master/xbmc/settings/dialogs/GUIDialogSettingsBase.cpp#L583-L608 i have a number of settings defined here: the reason is, i'd like to prefix the label of the subsetting with "- " |
If you have the |
a6cc4d7
to
dab97b4
Compare
@Montellese thx for the pointer :-) added two additional commits:
|
updated as @Montellese suggested: ronie@daa1e51 needs review: ronie@e748cec |
@@ -57,7 +57,7 @@ class CGUIDialogProfileSettings : public CGUIDialogSettingsManualBase | |||
*/ | |||
static bool GetProfilePath(std::string &directory, bool isDefault); | |||
|
|||
void updateProfileName(); | |||
void updateProfileImage(); | |||
void updateProfileDirectory(); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Would really like to see this merged. |
sure, sure :-) hopefully i'll have some time (read: motivation) to look into the remaining issues next week. |
a83d345
to
ff2ff2d
Compare
jenkins build this please |
1 similar comment
jenkins build this please |
subsetting->SetParent(SETTING_SCRAPER_LIST); | ||
|
||
group = AddGroup(category, 20322); | ||
if (category == NULL) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
in the past we've been adding a new settings dialog xml for every new future.
as a result there are now a lot of xml files in the skin that are (near) identical.
all those dialogs could (should) use a common settings dialog: DialogSettings.xml
this merges the following settings dialogs: